tornado-contracts/dist/contracts/Unaudited/interfaces/ITovarishRegistry.d.ts

77 lines
4.2 KiB
TypeScript
Raw Permalink Normal View History

2025-01-23 16:41:42 +00:00
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../../common";
export declare namespace ITovarishRegistry {
type RelayerStruct = {
ensName: string;
owner: AddressLike;
balance: BigNumberish;
isRegistered: boolean;
isPrior: boolean;
tovarishHost: string;
tovarishChains: string;
records: string[];
};
type RelayerStructOutput = [
ensName: string,
owner: string,
balance: bigint,
isRegistered: boolean,
isPrior: boolean,
tovarishHost: string,
tovarishChains: string,
records: string[]
] & {
ensName: string;
owner: string;
balance: bigint;
isRegistered: boolean;
isPrior: boolean;
tovarishHost: string;
tovarishChains: string;
records: string[];
};
}
export interface ITovarishRegistryInterface extends Interface {
2025-01-27 17:25:44 +00:00
getFunction(nameOrSignature: "getChainIds" | "lastUpdate" | "relayerRegistry" | "relayersData"): FunctionFragment;
encodeFunctionData(functionFragment: "getChainIds", values?: undefined): string;
2025-01-25 13:42:01 +00:00
encodeFunctionData(functionFragment: "lastUpdate", values?: undefined): string;
2025-01-23 16:41:42 +00:00
encodeFunctionData(functionFragment: "relayerRegistry", values?: undefined): string;
encodeFunctionData(functionFragment: "relayersData", values: [string[]]): string;
2025-01-27 17:25:44 +00:00
decodeFunctionResult(functionFragment: "getChainIds", data: BytesLike): Result;
2025-01-25 13:42:01 +00:00
decodeFunctionResult(functionFragment: "lastUpdate", data: BytesLike): Result;
2025-01-23 16:41:42 +00:00
decodeFunctionResult(functionFragment: "relayerRegistry", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "relayersData", data: BytesLike): Result;
}
export interface ITovarishRegistry extends BaseContract {
connect(runner?: ContractRunner | null): ITovarishRegistry;
waitForDeployment(): Promise<this>;
interface: ITovarishRegistryInterface;
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>;
2025-01-27 17:25:44 +00:00
getChainIds: TypedContractMethod<[], [bigint[]], "view">;
2025-01-25 13:42:01 +00:00
lastUpdate: TypedContractMethod<[], [bigint], "view">;
2025-01-23 16:41:42 +00:00
relayerRegistry: TypedContractMethod<[], [string], "view">;
relayersData: TypedContractMethod<[
additionalRelayers: string[]
], [
ITovarishRegistry.RelayerStructOutput[]
], "view">;
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
2025-01-27 17:25:44 +00:00
getFunction(nameOrSignature: "getChainIds"): TypedContractMethod<[], [bigint[]], "view">;
2025-01-25 13:42:01 +00:00
getFunction(nameOrSignature: "lastUpdate"): TypedContractMethod<[], [bigint], "view">;
2025-01-23 16:41:42 +00:00
getFunction(nameOrSignature: "relayerRegistry"): TypedContractMethod<[], [string], "view">;
getFunction(nameOrSignature: "relayersData"): TypedContractMethod<[
additionalRelayers: string[]
], [
ITovarishRegistry.RelayerStructOutput[]
], "view">;
filters: {};
}