@dahlia-labs/use-ethers
Version:
Multicall extensions to ethers.
8 lines • 602 B
TypeScript
import type { Multicall2 } from "./generated";
import type { Call, ChainType, Multicall, ProviderOrSigner } from "./types";
export declare const getMulticall: (provider: ProviderOrSigner, chain: ChainType) => Multicall2;
export declare function fetchMulticalls<T extends unknown[]>(multicalls: readonly [...{
[I in keyof T]: Multicall<T[I]>;
}], multicallContract: Multicall2, maxChunk?: number): Promise<Readonly<T>>;
export declare const fetchCalls: (calls: readonly Call[], multicallContract: Multicall2, maxChunk?: number) => Promise<Readonly<string[]>>;
//# sourceMappingURL=multicall.d.ts.map