@kodex-data/multicall
Version:
`@kodex-data/multicall` is a JavaScript library that allows you to batch multiple Ethereum read-only calls into a single request, reducing the number of RPC calls and improving performance. It supports the `eth_call` method and the `multicall` contract, w
26 lines (25 loc) • 1.04 kB
TypeScript
import type { BigNumber } from '@ethersproject/bignumber';
import type { FunctionFragment } from '@ethersproject/abi';
import type { Result } from '@ethersproject/abi';
export type { Multicall2, Multicall2Interface } from './Multicall2';
export type { Signer } from '@ethersproject/abstract-signer';
export type { Signature } from '@ethersproject/bytes';
export type { ContractReceipt } from '@ethersproject/contracts';
export type { FunctionFragment, JsonFragment, Result } from '@ethersproject/abi';
export type { Provider, Web3Provider, Block, TransactionResponse } from '@ethersproject/providers';
export type { Contract } from '@ethersproject/contracts';
export type NonNullable<T> = Exclude<T, null | undefined>;
export type FnParameters = {
[paramIndex: number]: any;
};
export type Operation = {
index?: number;
resultValue?: string | BigNumber | Result;
sigHash?: string;
signature?: string;
value?: any;
callData?: string;
target: string;
abi: FunctionFragment;
parameters: FnParameters;
};