30 lines
2.6 KiB
TypeScript
30 lines
2.6 KiB
TypeScript
import type { BaseContract, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../../common";
|
|
export interface ITornadoGovernanceInterface extends Interface {
|
|
getFunction(nameOrSignature: "lockedBalance" | "userVault"): FunctionFragment;
|
|
encodeFunctionData(functionFragment: "lockedBalance", values: [AddressLike]): string;
|
|
encodeFunctionData(functionFragment: "userVault", values?: undefined): string;
|
|
decodeFunctionResult(functionFragment: "lockedBalance", data: BytesLike): Result;
|
|
decodeFunctionResult(functionFragment: "userVault", data: BytesLike): Result;
|
|
}
|
|
export interface ITornadoGovernance extends BaseContract {
|
|
connect(runner?: ContractRunner | null): ITornadoGovernance;
|
|
waitForDeployment(): Promise<this>;
|
|
interface: ITornadoGovernanceInterface;
|
|
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>;
|
|
lockedBalance: TypedContractMethod<[account: AddressLike], [bigint], "view">;
|
|
userVault: TypedContractMethod<[], [string], "view">;
|
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
getFunction(nameOrSignature: "lockedBalance"): TypedContractMethod<[account: AddressLike], [bigint], "view">;
|
|
getFunction(nameOrSignature: "userVault"): TypedContractMethod<[], [string], "view">;
|
|
filters: {};
|
|
}
|