import { TAccount } from '../../models/TAccount'; import { ClientEventsStream, TClientEventsStreamData } from '../../clients/ClientEventsStream'; import { ContractBase } from '../../contracts/ContractBase'; import { TxWriter } from '../../txs/TxWriter'; import { ITxLogItem } from '../../txs/receipt/ITxLogItem'; import { Web3Client } from '../../clients/Web3Client'; import { IBlockchainExplorer } from '../../explorer/IBlockchainExplorer'; import { SubjectStream } from '../../class/SubjectStream'; import type { TAbiItem } from '../../types/TAbi'; import type { TEth } from '../../models/TEth'; import type { TOverrideReturns } from '../../utils/types'; export declare class Multicall extends ContractBase { address: TEth.Address; client: Web3Client; explorer: IBlockchainExplorer; constructor(address?: TEth.Address, client?: Web3Client, explorer?: IBlockchainExplorer); Types: TMulticallTypes; $meta: { class: string; }; multicall(sender: TSender, data: TEth.Hex[]): Promise; $call(): IMulticallTxCaller; $signed(): TOverrideReturns>; $data(): IMulticallTxData; $gas(): TOverrideReturns>; onTransaction(method: TMethod, options: Parameters[0]): SubjectStream<{ tx: TEth.Tx; block: TEth.Block; calldata: { method: TMethod; arguments: TMulticallTypes['Methods'][TMethod]['arguments']; }; }>; onLog(event: keyof TEvents, cb?: (event: TClientEventsStreamData) => void): ClientEventsStream; getPastLogs(events: TEventName[], options?: TEventLogOptions>): Promise, TEventName>[]>; getPastLogs(event: TEventName, options?: TEventLogOptions>): Promise, TEventName>[]>; abi: TAbiItem[]; } type TSender = TAccount & { value?: string | number | bigint; }; type TEventLogOptions = { fromBlock?: number | Date; toBlock?: number | Date; params?: TParams; }; export type TMulticallTypes = { Events: {}; Methods: { multicall: { method: "multicall"; arguments: [data: TEth.Hex[]]; }; }; }; interface IMulticallTxCaller { multicall(sender: TSender, data: TEth.Hex[]): Promise<{ error?: Error & { data?: { type: string; params: any; }; }; result?: any; }>; } interface IMulticallTxData { multicall(sender: TSender, data: TEth.Hex[]): Promise; } type TEvents = TMulticallTypes['Events']; type TEventParams = Partial; export {};