UNPKG

@api3/contracts

Version:

Contracts through which API3 services are delivered

44 lines 2.94 kB
import type { BaseContract, BytesLike, FunctionFragment, Result, Interface, ContractRunner, ContractMethod, Listener } from "ethers"; import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../common"; export interface ISelfMulticallInterface extends Interface { getFunction(nameOrSignature: "multicall" | "tryMulticall"): FunctionFragment; encodeFunctionData(functionFragment: "multicall", values: [BytesLike[]]): string; encodeFunctionData(functionFragment: "tryMulticall", values: [BytesLike[]]): string; decodeFunctionResult(functionFragment: "multicall", data: BytesLike): Result; decodeFunctionResult(functionFragment: "tryMulticall", data: BytesLike): Result; } export interface ISelfMulticall extends BaseContract { connect(runner?: ContractRunner | null): ISelfMulticall; waitForDeployment(): Promise<this>; interface: ISelfMulticallInterface; queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>; queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>; on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>; on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>; once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>; once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>; listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>; listeners(eventName?: string): Promise<Array<Listener>>; removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>; multicall: TypedContractMethod<[data: BytesLike[]], [string[]], "nonpayable">; tryMulticall: TypedContractMethod<[ data: BytesLike[] ], [ [boolean[], string[]] & { successes: boolean[]; returndata: string[]; } ], "nonpayable">; getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T; getFunction(nameOrSignature: "multicall"): TypedContractMethod<[data: BytesLike[]], [string[]], "nonpayable">; getFunction(nameOrSignature: "tryMulticall"): TypedContractMethod<[ data: BytesLike[] ], [ [boolean[], string[]] & { successes: boolean[]; returndata: string[]; } ], "nonpayable">; filters: {}; } //# sourceMappingURL=ISelfMulticall.d.ts.map