tornado-contracts/dist/contracts/Governance/interfaces/IRelayerRegistry.d.ts

52 lines
3.2 KiB
TypeScript
Raw Permalink Normal View History

import type { BaseContract, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
2025-01-04 18:39:49 +00:00
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../../common";
export interface IRelayerRegistryInterface extends Interface {
2025-01-04 18:39:49 +00:00
getFunction(nameOrSignature: "getRelayerBalance" | "getRelayerEnsHash" | "isRelayerRegistered"): FunctionFragment;
encodeFunctionData(functionFragment: "getRelayerBalance", values: [AddressLike]): string;
2025-01-04 18:39:49 +00:00
encodeFunctionData(functionFragment: "getRelayerEnsHash", values: [AddressLike]): string;
encodeFunctionData(functionFragment: "isRelayerRegistered", values: [AddressLike, AddressLike]): string;
decodeFunctionResult(functionFragment: "getRelayerBalance", data: BytesLike): Result;
2025-01-04 18:39:49 +00:00
decodeFunctionResult(functionFragment: "getRelayerEnsHash", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "isRelayerRegistered", data: BytesLike): Result;
}
export interface IRelayerRegistry extends BaseContract {
connect(runner?: ContractRunner | null): IRelayerRegistry;
waitForDeployment(): Promise<this>;
interface: IRelayerRegistryInterface;
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>;
getRelayerBalance: TypedContractMethod<[
relayer: AddressLike
], [
bigint
], "view">;
2025-01-04 18:39:49 +00:00
getRelayerEnsHash: TypedContractMethod<[
relayer: AddressLike
], [
string
], "view">;
isRelayerRegistered: TypedContractMethod<[
relayer: AddressLike,
toResolve: AddressLike
], [
boolean
], "view">;
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
getFunction(nameOrSignature: "getRelayerBalance"): TypedContractMethod<[relayer: AddressLike], [bigint], "view">;
2025-01-04 18:39:49 +00:00
getFunction(nameOrSignature: "getRelayerEnsHash"): TypedContractMethod<[relayer: AddressLike], [string], "view">;
getFunction(nameOrSignature: "isRelayerRegistered"): TypedContractMethod<[
relayer: AddressLike,
toResolve: AddressLike
], [
boolean
], "view">;
filters: {};
}