UNPKG

intents-framework

Version:

A reference ERC7683 implementation with TypeScript support

53 lines 4.65 kB
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, ContractRunner, ContractMethod, Listener } from "ethers"; import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "./common"; export interface MockHyperlaneEnvironmentInterface extends Interface { getFunction(nameOrSignature: "destinationDomain" | "igps" | "isms" | "mailboxes" | "originDomain" | "processNextPendingMessage" | "processNextPendingMessageFromDestination"): FunctionFragment; encodeFunctionData(functionFragment: "destinationDomain", values?: undefined): string; encodeFunctionData(functionFragment: "igps", values: [BigNumberish]): string; encodeFunctionData(functionFragment: "isms", values: [BigNumberish]): string; encodeFunctionData(functionFragment: "mailboxes", values: [BigNumberish]): string; encodeFunctionData(functionFragment: "originDomain", values?: undefined): string; encodeFunctionData(functionFragment: "processNextPendingMessage", values?: undefined): string; encodeFunctionData(functionFragment: "processNextPendingMessageFromDestination", values?: undefined): string; decodeFunctionResult(functionFragment: "destinationDomain", data: BytesLike): Result; decodeFunctionResult(functionFragment: "igps", data: BytesLike): Result; decodeFunctionResult(functionFragment: "isms", data: BytesLike): Result; decodeFunctionResult(functionFragment: "mailboxes", data: BytesLike): Result; decodeFunctionResult(functionFragment: "originDomain", data: BytesLike): Result; decodeFunctionResult(functionFragment: "processNextPendingMessage", data: BytesLike): Result; decodeFunctionResult(functionFragment: "processNextPendingMessageFromDestination", data: BytesLike): Result; } export interface MockHyperlaneEnvironment extends BaseContract { connect(runner?: ContractRunner | null): MockHyperlaneEnvironment; waitForDeployment(): Promise<this>; interface: MockHyperlaneEnvironmentInterface; 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>; destinationDomain: TypedContractMethod<[], [bigint], "view">; igps: TypedContractMethod<[arg0: BigNumberish], [string], "view">; isms: TypedContractMethod<[arg0: BigNumberish], [string], "view">; mailboxes: TypedContractMethod<[arg0: BigNumberish], [string], "view">; originDomain: TypedContractMethod<[], [bigint], "view">; processNextPendingMessage: TypedContractMethod<[], [void], "payable">; processNextPendingMessageFromDestination: TypedContractMethod<[ ], [ void ], "nonpayable">; getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T; getFunction(nameOrSignature: "destinationDomain"): TypedContractMethod<[], [bigint], "view">; getFunction(nameOrSignature: "igps"): TypedContractMethod<[arg0: BigNumberish], [string], "view">; getFunction(nameOrSignature: "isms"): TypedContractMethod<[arg0: BigNumberish], [string], "view">; getFunction(nameOrSignature: "mailboxes"): TypedContractMethod<[arg0: BigNumberish], [string], "view">; getFunction(nameOrSignature: "originDomain"): TypedContractMethod<[], [bigint], "view">; getFunction(nameOrSignature: "processNextPendingMessage"): TypedContractMethod<[], [void], "payable">; getFunction(nameOrSignature: "processNextPendingMessageFromDestination"): TypedContractMethod<[], [void], "nonpayable">; filters: {}; } //# sourceMappingURL=MockHyperlaneEnvironment.d.ts.map