12 lines
449 B
TypeScript
12 lines
449 B
TypeScript
import { Provider } from 'ethers';
|
|
import { Multicall, OffchainOracle } from './contracts';
|
|
import { ChainIdType } from './constants';
|
|
import { Token, TokenPrices, networkConfig } from './types';
|
|
export declare class TokenPriceOracle {
|
|
oracle?: OffchainOracle;
|
|
multicall: Multicall;
|
|
provider: Provider;
|
|
constructor(netId: ChainIdType, rpcUrl: string, config: networkConfig);
|
|
fetchPrices(tokens: Token[]): Promise<TokenPrices>;
|
|
}
|