2022-05-10 10:52:07 +02:00
|
|
|
/* Autogenerated file. Do not edit manually. */
|
|
|
|
/* tslint:disable */
|
|
|
|
/* eslint-disable */
|
|
|
|
import type {
|
|
|
|
BaseContract,
|
|
|
|
BigNumber,
|
|
|
|
BytesLike,
|
|
|
|
CallOverrides,
|
|
|
|
PopulatedTransaction,
|
|
|
|
Signer,
|
|
|
|
utils,
|
2022-05-12 05:00:59 +02:00
|
|
|
} from "ethers";
|
|
|
|
import type { FunctionFragment, Result } from "@ethersproject/abi";
|
|
|
|
import type { Listener, Provider } from "@ethersproject/providers";
|
2022-05-10 10:52:07 +02:00
|
|
|
import type {
|
|
|
|
TypedEventFilter,
|
|
|
|
TypedEvent,
|
|
|
|
TypedListener,
|
|
|
|
OnEvent,
|
2022-05-12 05:00:59 +02:00
|
|
|
} from "./common";
|
2022-05-10 10:52:07 +02:00
|
|
|
|
|
|
|
export declare namespace MultiCall {
|
|
|
|
export type CallStruct = { to: string; data: BytesLike };
|
|
|
|
|
|
|
|
export type CallStructOutput = [string, string] & {
|
|
|
|
to: string;
|
|
|
|
data: string;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface MulticallAbiInterface extends utils.Interface {
|
2022-05-12 05:00:59 +02:00
|
|
|
contractName: "MulticallAbi";
|
|
|
|
|
2022-05-10 10:52:07 +02:00
|
|
|
functions: {
|
2022-05-12 05:00:59 +02:00
|
|
|
"multicall((address,bytes)[])": FunctionFragment;
|
2022-05-10 10:52:07 +02:00
|
|
|
};
|
|
|
|
|
2022-05-12 05:00:59 +02:00
|
|
|
getFunction(nameOrSignatureOrTopic: "multicall"): FunctionFragment;
|
2022-05-10 10:52:07 +02:00
|
|
|
|
|
|
|
encodeFunctionData(
|
2022-05-12 05:00:59 +02:00
|
|
|
functionFragment: "multicall",
|
|
|
|
values: [MultiCall.CallStruct[]]
|
2022-05-10 10:52:07 +02:00
|
|
|
): string;
|
|
|
|
|
2022-05-12 05:00:59 +02:00
|
|
|
decodeFunctionResult(functionFragment: "multicall", data: BytesLike): Result;
|
2022-05-10 10:52:07 +02:00
|
|
|
|
|
|
|
events: {};
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface MulticallAbi extends BaseContract {
|
2022-05-12 05:00:59 +02:00
|
|
|
contractName: "MulticallAbi";
|
2022-05-10 10:52:07 +02:00
|
|
|
|
2022-05-12 05:00:59 +02:00
|
|
|
connect(signerOrProvider: Signer | Provider | string): this;
|
2022-05-10 10:52:07 +02:00
|
|
|
attach(addressOrName: string): this;
|
|
|
|
deployed(): Promise<this>;
|
|
|
|
|
|
|
|
interface: MulticallAbiInterface;
|
|
|
|
|
|
|
|
queryFilter<TEvent extends TypedEvent>(
|
|
|
|
event: TypedEventFilter<TEvent>,
|
|
|
|
fromBlockOrBlockhash?: string | number | undefined,
|
2022-05-12 05:00:59 +02:00
|
|
|
toBlock?: string | number | undefined
|
2022-05-10 10:52:07 +02:00
|
|
|
): Promise<Array<TEvent>>;
|
|
|
|
|
|
|
|
listeners<TEvent extends TypedEvent>(
|
2022-05-12 05:00:59 +02:00
|
|
|
eventFilter?: TypedEventFilter<TEvent>
|
2022-05-10 10:52:07 +02:00
|
|
|
): Array<TypedListener<TEvent>>;
|
|
|
|
listeners(eventName?: string): Array<Listener>;
|
|
|
|
removeAllListeners<TEvent extends TypedEvent>(
|
2022-05-12 05:00:59 +02:00
|
|
|
eventFilter: TypedEventFilter<TEvent>
|
2022-05-10 10:52:07 +02:00
|
|
|
): this;
|
|
|
|
removeAllListeners(eventName?: string): this;
|
|
|
|
off: OnEvent<this>;
|
|
|
|
on: OnEvent<this>;
|
|
|
|
once: OnEvent<this>;
|
|
|
|
removeListener: OnEvent<this>;
|
|
|
|
|
|
|
|
functions: {
|
|
|
|
multicall(
|
|
|
|
calls: MultiCall.CallStruct[],
|
2022-05-12 05:00:59 +02:00
|
|
|
overrides?: CallOverrides
|
|
|
|
): Promise<
|
|
|
|
[string[], boolean[]] & { results: string[]; success: boolean[] }
|
|
|
|
>;
|
2022-05-10 10:52:07 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
multicall(
|
|
|
|
calls: MultiCall.CallStruct[],
|
2022-05-12 05:00:59 +02:00
|
|
|
overrides?: CallOverrides
|
2022-05-10 10:52:07 +02:00
|
|
|
): Promise<[string[], boolean[]] & { results: string[]; success: boolean[] }>;
|
|
|
|
|
|
|
|
callStatic: {
|
|
|
|
multicall(
|
|
|
|
calls: MultiCall.CallStruct[],
|
2022-05-12 05:00:59 +02:00
|
|
|
overrides?: CallOverrides
|
|
|
|
): Promise<
|
|
|
|
[string[], boolean[]] & { results: string[]; success: boolean[] }
|
|
|
|
>;
|
2022-05-10 10:52:07 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
filters: {};
|
|
|
|
|
|
|
|
estimateGas: {
|
|
|
|
multicall(
|
|
|
|
calls: MultiCall.CallStruct[],
|
2022-05-12 05:00:59 +02:00
|
|
|
overrides?: CallOverrides
|
2022-05-10 10:52:07 +02:00
|
|
|
): Promise<BigNumber>;
|
|
|
|
};
|
|
|
|
|
|
|
|
populateTransaction: {
|
|
|
|
multicall(
|
|
|
|
calls: MultiCall.CallStruct[],
|
2022-05-12 05:00:59 +02:00
|
|
|
overrides?: CallOverrides
|
2022-05-10 10:52:07 +02:00
|
|
|
): Promise<PopulatedTransaction>;
|
|
|
|
};
|
|
|
|
}
|