tornado-contracts/dist/contracts/Governance/Aggregator/RelayerAggregator.d.ts

61 lines
3.4 KiB
TypeScript
Vendored

import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../../common";
export type RelayerStruct = {
owner: AddressLike;
balance: BigNumberish;
isRegistered: boolean;
records: string[];
};
export type RelayerStructOutput = [
owner: string,
balance: bigint,
isRegistered: boolean,
records: string[]
] & {
owner: string;
balance: bigint;
isRegistered: boolean;
records: string[];
};
export interface RelayerAggregatorInterface extends Interface {
getFunction(nameOrSignature: "ENSRegistry" | "RelayerRegistry" | "relayersData"): FunctionFragment;
encodeFunctionData(functionFragment: "ENSRegistry", values?: undefined): string;
encodeFunctionData(functionFragment: "RelayerRegistry", values?: undefined): string;
encodeFunctionData(functionFragment: "relayersData", values: [BytesLike[], string[]]): string;
decodeFunctionResult(functionFragment: "ENSRegistry", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "RelayerRegistry", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "relayersData", data: BytesLike): Result;
}
export interface RelayerAggregator extends BaseContract {
connect(runner?: ContractRunner | null): RelayerAggregator;
waitForDeployment(): Promise<this>;
interface: RelayerAggregatorInterface;
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>;
ENSRegistry: TypedContractMethod<[], [string], "view">;
RelayerRegistry: TypedContractMethod<[], [string], "view">;
relayersData: TypedContractMethod<[
_relayers: BytesLike[],
_subdomains: string[]
], [
RelayerStructOutput[]
], "view">;
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
getFunction(nameOrSignature: "ENSRegistry"): TypedContractMethod<[], [string], "view">;
getFunction(nameOrSignature: "RelayerRegistry"): TypedContractMethod<[], [string], "view">;
getFunction(nameOrSignature: "relayersData"): TypedContractMethod<[
_relayers: BytesLike[],
_subdomains: string[]
], [
RelayerStructOutput[]
], "view">;
filters: {};
}