/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ 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 ModuleHooksInterface extends Interface { getFunction( nameOrSignature: | "addHook" | "onERC1155BatchReceived" | "onERC1155Received" | "onERC721Received" | "readHook" | "removeHook" | "supportsInterface" ): FunctionFragment; getEvent(nameOrSignatureOrTopic: "DefinedHook"): EventFragment; encodeFunctionData( functionFragment: "addHook", values: [BytesLike, AddressLike] ): string; encodeFunctionData( functionFragment: "onERC1155BatchReceived", values: [ AddressLike, AddressLike, BigNumberish[], BigNumberish[], BytesLike ] ): string; encodeFunctionData( functionFragment: "onERC1155Received", values: [AddressLike, AddressLike, BigNumberish, BigNumberish, BytesLike] ): string; encodeFunctionData( functionFragment: "onERC721Received", values: [AddressLike, AddressLike, BigNumberish, BytesLike] ): string; encodeFunctionData(functionFragment: "readHook", values: [BytesLike]): string; encodeFunctionData( functionFragment: "removeHook", values: [BytesLike] ): string; encodeFunctionData( functionFragment: "supportsInterface", values: [BytesLike] ): string; decodeFunctionResult(functionFragment: "addHook", data: BytesLike): Result; decodeFunctionResult( functionFragment: "onERC1155BatchReceived", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "onERC1155Received", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "onERC721Received", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "readHook", data: BytesLike): Result; decodeFunctionResult(functionFragment: "removeHook", data: BytesLike): Result; decodeFunctionResult( functionFragment: "supportsInterface", data: BytesLike ): Result; } export namespace DefinedHookEvent { export type InputTuple = [ _signature: BytesLike, _implementation: AddressLike ]; export type OutputTuple = [_signature: string, _implementation: string]; export interface OutputObject { _signature: string; _implementation: string; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export interface ModuleHooks extends BaseContract { connect(runner?: ContractRunner | null): ModuleHooks; waitForDeployment(): Promise; interface: ModuleHooksInterface; queryFilter( event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined ): Promise>>; queryFilter( filter: TypedDeferredTopicFilter, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined ): Promise>>; on( event: TCEvent, listener: TypedListener ): Promise; on( filter: TypedDeferredTopicFilter, listener: TypedListener ): Promise; once( event: TCEvent, listener: TypedListener ): Promise; once( filter: TypedDeferredTopicFilter, listener: TypedListener ): Promise; listeners( event: TCEvent ): Promise>>; listeners(eventName?: string): Promise>; removeAllListeners( event?: TCEvent ): Promise; addHook: TypedContractMethod< [_signature: BytesLike, _implementation: AddressLike], [void], "nonpayable" >; onERC1155BatchReceived: TypedContractMethod< [ arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish[], arg3: BigNumberish[], arg4: BytesLike ], [string], "nonpayable" >; onERC1155Received: TypedContractMethod< [ arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish, arg3: BigNumberish, arg4: BytesLike ], [string], "nonpayable" >; onERC721Received: TypedContractMethod< [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish, arg3: BytesLike], [string], "nonpayable" >; readHook: TypedContractMethod<[_signature: BytesLike], [string], "view">; removeHook: TypedContractMethod< [_signature: BytesLike], [void], "nonpayable" >; supportsInterface: TypedContractMethod< [_interfaceID: BytesLike], [boolean], "view" >; getFunction( key: string | FunctionFragment ): T; getFunction( nameOrSignature: "addHook" ): TypedContractMethod< [_signature: BytesLike, _implementation: AddressLike], [void], "nonpayable" >; getFunction( nameOrSignature: "onERC1155BatchReceived" ): TypedContractMethod< [ arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish[], arg3: BigNumberish[], arg4: BytesLike ], [string], "nonpayable" >; getFunction( nameOrSignature: "onERC1155Received" ): TypedContractMethod< [ arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish, arg3: BigNumberish, arg4: BytesLike ], [string], "nonpayable" >; getFunction( nameOrSignature: "onERC721Received" ): TypedContractMethod< [arg0: AddressLike, arg1: AddressLike, arg2: BigNumberish, arg3: BytesLike], [string], "nonpayable" >; getFunction( nameOrSignature: "readHook" ): TypedContractMethod<[_signature: BytesLike], [string], "view">; getFunction( nameOrSignature: "removeHook" ): TypedContractMethod<[_signature: BytesLike], [void], "nonpayable">; getFunction( nameOrSignature: "supportsInterface" ): TypedContractMethod<[_interfaceID: BytesLike], [boolean], "view">; getEvent( key: "DefinedHook" ): TypedContractEvent< DefinedHookEvent.InputTuple, DefinedHookEvent.OutputTuple, DefinedHookEvent.OutputObject >; filters: { "DefinedHook(bytes4,address)": TypedContractEvent< DefinedHookEvent.InputTuple, DefinedHookEvent.OutputTuple, DefinedHookEvent.OutputObject >; DefinedHook: TypedContractEvent< DefinedHookEvent.InputTuple, DefinedHookEvent.OutputTuple, DefinedHookEvent.OutputObject >; }; }