UNPKG

intents-framework

Version:

A reference ERC7683 implementation with TypeScript support

198 lines (177 loc) 5.4 kB
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, ContractRunner, ContractMethod, Listener, } from "ethers"; import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod, } from "./common"; export interface TestPostDispatchHookInterface extends Interface { getFunction( nameOrSignature: | "PACKAGE_VERSION" | "fee" | "hookType" | "messageDispatched" | "postDispatch" | "quoteDispatch" | "setFee" | "supportsMetadata" ): FunctionFragment; encodeFunctionData( functionFragment: "PACKAGE_VERSION", values?: undefined ): string; encodeFunctionData(functionFragment: "fee", values?: undefined): string; encodeFunctionData(functionFragment: "hookType", values?: undefined): string; encodeFunctionData( functionFragment: "messageDispatched", values: [BytesLike] ): string; encodeFunctionData( functionFragment: "postDispatch", values: [BytesLike, BytesLike] ): string; encodeFunctionData( functionFragment: "quoteDispatch", values: [BytesLike, BytesLike] ): string; encodeFunctionData( functionFragment: "setFee", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "supportsMetadata", values: [BytesLike] ): string; decodeFunctionResult( functionFragment: "PACKAGE_VERSION", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "fee", data: BytesLike): Result; decodeFunctionResult(functionFragment: "hookType", data: BytesLike): Result; decodeFunctionResult( functionFragment: "messageDispatched", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "postDispatch", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "quoteDispatch", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "setFee", data: BytesLike): Result; decodeFunctionResult( functionFragment: "supportsMetadata", data: BytesLike ): Result; } export interface TestPostDispatchHook extends BaseContract { connect(runner?: ContractRunner | null): TestPostDispatchHook; waitForDeployment(): Promise<this>; interface: TestPostDispatchHookInterface; 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">; fee: TypedContractMethod<[], [bigint], "view">; hookType: TypedContractMethod<[], [bigint], "view">; messageDispatched: TypedContractMethod< [messageId: BytesLike], [boolean], "view" >; postDispatch: TypedContractMethod< [metadata: BytesLike, message: BytesLike], [void], "payable" >; quoteDispatch: TypedContractMethod< [metadata: BytesLike, message: BytesLike], [bigint], "view" >; setFee: TypedContractMethod<[_fee: BigNumberish], [void], "nonpayable">; supportsMetadata: TypedContractMethod<[arg0: BytesLike], [boolean], "view">; getFunction<T extends ContractMethod = ContractMethod>( key: string | FunctionFragment ): T; getFunction( nameOrSignature: "PACKAGE_VERSION" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "fee" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "hookType" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "messageDispatched" ): TypedContractMethod<[messageId: BytesLike], [boolean], "view">; getFunction( nameOrSignature: "postDispatch" ): TypedContractMethod< [metadata: BytesLike, message: BytesLike], [void], "payable" >; getFunction( nameOrSignature: "quoteDispatch" ): TypedContractMethod< [metadata: BytesLike, message: BytesLike], [bigint], "view" >; getFunction( nameOrSignature: "setFee" ): TypedContractMethod<[_fee: BigNumberish], [void], "nonpayable">; getFunction( nameOrSignature: "supportsMetadata" ): TypedContractMethod<[arg0: BytesLike], [boolean], "view">; filters: {}; }