UNPKG

intents-framework

Version:

A reference ERC7683 implementation with TypeScript support

129 lines 9.19 kB
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers"; import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "./common"; export interface MailboxClientInterface extends Interface { getFunction(nameOrSignature: "PACKAGE_VERSION" | "hook" | "interchainSecurityModule" | "localDomain" | "mailbox" | "owner" | "renounceOwnership" | "setHook" | "setInterchainSecurityModule" | "transferOwnership"): FunctionFragment; getEvent(nameOrSignatureOrTopic: "HookSet" | "Initialized" | "IsmSet" | "OwnershipTransferred"): EventFragment; encodeFunctionData(functionFragment: "PACKAGE_VERSION", values?: undefined): string; encodeFunctionData(functionFragment: "hook", values?: undefined): string; encodeFunctionData(functionFragment: "interchainSecurityModule", values?: undefined): string; encodeFunctionData(functionFragment: "localDomain", values?: undefined): string; encodeFunctionData(functionFragment: "mailbox", values?: undefined): string; encodeFunctionData(functionFragment: "owner", values?: undefined): string; encodeFunctionData(functionFragment: "renounceOwnership", values?: undefined): string; encodeFunctionData(functionFragment: "setHook", values: [AddressLike]): string; encodeFunctionData(functionFragment: "setInterchainSecurityModule", values: [AddressLike]): string; encodeFunctionData(functionFragment: "transferOwnership", values: [AddressLike]): string; decodeFunctionResult(functionFragment: "PACKAGE_VERSION", data: BytesLike): Result; decodeFunctionResult(functionFragment: "hook", data: BytesLike): Result; decodeFunctionResult(functionFragment: "interchainSecurityModule", data: BytesLike): Result; decodeFunctionResult(functionFragment: "localDomain", data: BytesLike): Result; decodeFunctionResult(functionFragment: "mailbox", data: BytesLike): Result; decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; decodeFunctionResult(functionFragment: "renounceOwnership", data: BytesLike): Result; decodeFunctionResult(functionFragment: "setHook", data: BytesLike): Result; decodeFunctionResult(functionFragment: "setInterchainSecurityModule", data: BytesLike): Result; decodeFunctionResult(functionFragment: "transferOwnership", data: BytesLike): Result; } export declare namespace HookSetEvent { type InputTuple = [_hook: AddressLike]; type OutputTuple = [_hook: string]; interface OutputObject { _hook: string; } type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; type Filter = TypedDeferredTopicFilter<Event>; type Log = TypedEventLog<Event>; type LogDescription = TypedLogDescription<Event>; } export declare namespace InitializedEvent { type InputTuple = [version: BigNumberish]; type OutputTuple = [version: bigint]; interface OutputObject { version: bigint; } type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; type Filter = TypedDeferredTopicFilter<Event>; type Log = TypedEventLog<Event>; type LogDescription = TypedLogDescription<Event>; } export declare namespace IsmSetEvent { type InputTuple = [_ism: AddressLike]; type OutputTuple = [_ism: string]; interface OutputObject { _ism: string; } type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; type Filter = TypedDeferredTopicFilter<Event>; type Log = TypedEventLog<Event>; type LogDescription = TypedLogDescription<Event>; } export declare namespace OwnershipTransferredEvent { type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike]; type OutputTuple = [previousOwner: string, newOwner: string]; interface OutputObject { previousOwner: string; newOwner: string; } type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>; type Filter = TypedDeferredTopicFilter<Event>; type Log = TypedEventLog<Event>; type LogDescription = TypedLogDescription<Event>; } export interface MailboxClient extends BaseContract { connect(runner?: ContractRunner | null): MailboxClient; waitForDeployment(): Promise<this>; interface: MailboxClientInterface; 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>; PACKAGE_VERSION: TypedContractMethod<[], [string], "view">; hook: TypedContractMethod<[], [string], "view">; interchainSecurityModule: TypedContractMethod<[], [string], "view">; localDomain: TypedContractMethod<[], [bigint], "view">; mailbox: TypedContractMethod<[], [string], "view">; owner: TypedContractMethod<[], [string], "view">; renounceOwnership: TypedContractMethod<[], [void], "nonpayable">; setHook: TypedContractMethod<[_hook: AddressLike], [void], "nonpayable">; setInterchainSecurityModule: TypedContractMethod<[ _module: AddressLike ], [ void ], "nonpayable">; transferOwnership: TypedContractMethod<[ newOwner: AddressLike ], [ void ], "nonpayable">; getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T; getFunction(nameOrSignature: "PACKAGE_VERSION"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "hook"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "interchainSecurityModule"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "localDomain"): TypedContractMethod<[], [bigint], "view">; getFunction(nameOrSignature: "mailbox"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "owner"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "renounceOwnership"): TypedContractMethod<[], [void], "nonpayable">; getFunction(nameOrSignature: "setHook"): TypedContractMethod<[_hook: AddressLike], [void], "nonpayable">; getFunction(nameOrSignature: "setInterchainSecurityModule"): TypedContractMethod<[_module: AddressLike], [void], "nonpayable">; getFunction(nameOrSignature: "transferOwnership"): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">; getEvent(key: "HookSet"): TypedContractEvent<HookSetEvent.InputTuple, HookSetEvent.OutputTuple, HookSetEvent.OutputObject>; getEvent(key: "Initialized"): TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>; getEvent(key: "IsmSet"): TypedContractEvent<IsmSetEvent.InputTuple, IsmSetEvent.OutputTuple, IsmSetEvent.OutputObject>; getEvent(key: "OwnershipTransferred"): TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>; filters: { "HookSet(address)": TypedContractEvent<HookSetEvent.InputTuple, HookSetEvent.OutputTuple, HookSetEvent.OutputObject>; HookSet: TypedContractEvent<HookSetEvent.InputTuple, HookSetEvent.OutputTuple, HookSetEvent.OutputObject>; "Initialized(uint8)": TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>; Initialized: TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>; "IsmSet(address)": TypedContractEvent<IsmSetEvent.InputTuple, IsmSetEvent.OutputTuple, IsmSetEvent.OutputObject>; IsmSet: TypedContractEvent<IsmSetEvent.InputTuple, IsmSetEvent.OutputTuple, IsmSetEvent.OutputObject>; "OwnershipTransferred(address,address)": TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>; OwnershipTransferred: TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>; }; } //# sourceMappingURL=MailboxClient.d.ts.map