ethereum-multicall-extended
Version:
Multicall allows multiple smart contract constant function calls to be grouped into a single call and the results aggregated into a single result
25 lines (24 loc) • 620 B
TypeScript
import { CallContext } from './call-context';
export interface ContractCallContext<TContext = any> {
/**
* Reference to this contract call context
*/
reference: string;
/**
* The contract address
*/
contractAddress: string;
/**
* The abi for the contract
*/
abi: any[];
/**
* All the calls you want to do for this contract
*/
calls: CallContext[];
/**
* Store any context or state in here so you don't need
* to look back over arrays once you got the result back.
*/
context?: TContext | undefined;
}