tornado-core/dist/prices.d.ts

13 lines
418 B
TypeScript
Raw Normal View History

2024-04-29 18:55:15 +03:00
import { type Provider } from 'ethers';
import type { OffchainOracle, Multicall } from './typechain';
export declare class TokenPriceOracle {
oracle?: OffchainOracle;
multicall: Multicall;
provider: Provider;
constructor(provider: Provider, multicall: Multicall, oracle?: OffchainOracle);
2024-04-29 23:05:55 +03:00
fetchPrices(tokens: {
tokenAddress: string;
decimals: number;
}[]): Promise<bigint[]>;
2024-04-29 18:55:15 +03:00
}