/* 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 declare namespace IModuleCalls { export type TransactionStruct = { delegateCall: boolean; revertOnError: boolean; gasLimit: BigNumberish; target: AddressLike; value: BigNumberish; data: BytesLike; }; export type TransactionStructOutput = [ delegateCall: boolean, revertOnError: boolean, gasLimit: bigint, target: string, value: bigint, data: string ] & { delegateCall: boolean; revertOnError: boolean; gasLimit: bigint; target: string; value: bigint; data: string; }; } export interface MainModuleInterface extends Interface { getFunction( nameOrSignature: | "FACTORY" | "INIT_CODE_HASH" | "SET_IMAGE_HASH_TYPE_HASH" | "UPGRADEABLE_IMPLEMENTATION" | "addHook" | "clearExtraImageHashes" | "createContract" | "execute" | "extraImageHash" | "ipfsRoot" | "ipfsRootBytes32" | "isValidSignature(bytes32,bytes)" | "isValidSignature(bytes,bytes)" | "nonce" | "onERC1155BatchReceived" | "onERC1155Received" | "onERC721Received" | "readHook" | "readNonce" | "removeHook" | "selfExecute" | "setExtraImageHash" | "signatureRecovery" | "supportsInterface" | "updateIPFSRoot" | "updateImageHash" | "updateImageHashAndIPFS" | "updateImplementation" ): FunctionFragment; getEvent( nameOrSignatureOrTopic: | "CreatedContract" | "DefinedHook" | "IPFSRootUpdated" | "ImageHashUpdated" | "ImplementationUpdated" | "NonceChange" | "SetExtraImageHash" | "TxExecuted" | "TxFailed" ): EventFragment; encodeFunctionData(functionFragment: "FACTORY", values?: undefined): string; encodeFunctionData( functionFragment: "INIT_CODE_HASH", values?: undefined ): string; encodeFunctionData( functionFragment: "SET_IMAGE_HASH_TYPE_HASH", values?: undefined ): string; encodeFunctionData( functionFragment: "UPGRADEABLE_IMPLEMENTATION", values?: undefined ): string; encodeFunctionData( functionFragment: "addHook", values: [BytesLike, AddressLike] ): string; encodeFunctionData( functionFragment: "clearExtraImageHashes", values: [BytesLike[]] ): string; encodeFunctionData( functionFragment: "createContract", values: [BytesLike] ): string; encodeFunctionData( functionFragment: "execute", values: [IModuleCalls.TransactionStruct[], BigNumberish, BytesLike] ): string; encodeFunctionData( functionFragment: "extraImageHash", values: [BytesLike] ): string; encodeFunctionData(functionFragment: "ipfsRoot", values?: undefined): string; encodeFunctionData( functionFragment: "ipfsRootBytes32", values?: undefined ): string; encodeFunctionData( functionFragment: "isValidSignature(bytes32,bytes)", values: [BytesLike, BytesLike] ): string; encodeFunctionData( functionFragment: "isValidSignature(bytes,bytes)", values: [BytesLike, BytesLike] ): string; encodeFunctionData(functionFragment: "nonce", values?: undefined): 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: "readNonce", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "removeHook", values: [BytesLike] ): string; encodeFunctionData( functionFragment: "selfExecute", values: [IModuleCalls.TransactionStruct[]] ): string; encodeFunctionData( functionFragment: "setExtraImageHash", values: [BytesLike, BigNumberish] ): string; encodeFunctionData( functionFragment: "signatureRecovery", values: [BytesLike, BytesLike] ): string; encodeFunctionData( functionFragment: "supportsInterface", values: [BytesLike] ): string; encodeFunctionData( functionFragment: "updateIPFSRoot", values: [BytesLike] ): string; encodeFunctionData( functionFragment: "updateImageHash", values: [BytesLike] ): string; encodeFunctionData( functionFragment: "updateImageHashAndIPFS", values: [BytesLike, BytesLike] ): string; encodeFunctionData( functionFragment: "updateImplementation", values: [AddressLike] ): string; decodeFunctionResult(functionFragment: "FACTORY", data: BytesLike): Result; decodeFunctionResult( functionFragment: "INIT_CODE_HASH", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "SET_IMAGE_HASH_TYPE_HASH", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "UPGRADEABLE_IMPLEMENTATION", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "addHook", data: BytesLike): Result; decodeFunctionResult( functionFragment: "clearExtraImageHashes", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "createContract", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "execute", data: BytesLike): Result; decodeFunctionResult( functionFragment: "extraImageHash", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "ipfsRoot", data: BytesLike): Result; decodeFunctionResult( functionFragment: "ipfsRootBytes32", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "isValidSignature(bytes32,bytes)", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "isValidSignature(bytes,bytes)", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "nonce", 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: "readNonce", data: BytesLike): Result; decodeFunctionResult(functionFragment: "removeHook", data: BytesLike): Result; decodeFunctionResult( functionFragment: "selfExecute", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "setExtraImageHash", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "signatureRecovery", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "supportsInterface", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "updateIPFSRoot", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "updateImageHash", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "updateImageHashAndIPFS", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "updateImplementation", data: BytesLike ): Result; } export namespace CreatedContractEvent { export type InputTuple = [_contract: AddressLike]; export type OutputTuple = [_contract: string]; export interface OutputObject { _contract: string; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } 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 namespace IPFSRootUpdatedEvent { export type InputTuple = [_hash: BytesLike]; export type OutputTuple = [_hash: string]; export interface OutputObject { _hash: string; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export namespace ImageHashUpdatedEvent { export type InputTuple = [newImageHash: BytesLike]; export type OutputTuple = [newImageHash: string]; export interface OutputObject { newImageHash: string; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export namespace ImplementationUpdatedEvent { export type InputTuple = [newImplementation: AddressLike]; export type OutputTuple = [newImplementation: string]; export interface OutputObject { newImplementation: string; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export namespace NonceChangeEvent { export type InputTuple = [_space: BigNumberish, _newNonce: BigNumberish]; export type OutputTuple = [_space: bigint, _newNonce: bigint]; export interface OutputObject { _space: bigint; _newNonce: bigint; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export namespace SetExtraImageHashEvent { export type InputTuple = [_imageHash: BytesLike, _expiration: BigNumberish]; export type OutputTuple = [_imageHash: string, _expiration: bigint]; export interface OutputObject { _imageHash: string; _expiration: bigint; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export namespace TxExecutedEvent { export type InputTuple = [_tx: BytesLike, _index: BigNumberish]; export type OutputTuple = [_tx: string, _index: bigint]; export interface OutputObject { _tx: string; _index: bigint; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export namespace TxFailedEvent { export type InputTuple = [ _tx: BytesLike, _index: BigNumberish, _reason: BytesLike ]; export type OutputTuple = [_tx: string, _index: bigint, _reason: string]; export interface OutputObject { _tx: string; _index: bigint; _reason: string; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export interface MainModule extends BaseContract { connect(runner?: ContractRunner | null): MainModule; waitForDeployment(): Promise; interface: MainModuleInterface; 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; FACTORY: TypedContractMethod<[], [string], "view">; INIT_CODE_HASH: TypedContractMethod<[], [string], "view">; SET_IMAGE_HASH_TYPE_HASH: TypedContractMethod<[], [string], "view">; UPGRADEABLE_IMPLEMENTATION: TypedContractMethod<[], [string], "view">; addHook: TypedContractMethod< [_signature: BytesLike, _implementation: AddressLike], [void], "nonpayable" >; clearExtraImageHashes: TypedContractMethod< [_imageHashes: BytesLike[]], [void], "nonpayable" >; createContract: TypedContractMethod<[_code: BytesLike], [string], "payable">; execute: TypedContractMethod< [ _txs: IModuleCalls.TransactionStruct[], _nonce: BigNumberish, _signature: BytesLike ], [void], "nonpayable" >; extraImageHash: TypedContractMethod< [_imageHash: BytesLike], [bigint], "view" >; ipfsRoot: TypedContractMethod<[], [string], "view">; ipfsRootBytes32: TypedContractMethod<[], [string], "view">; "isValidSignature(bytes32,bytes)": TypedContractMethod< [_hash: BytesLike, _signatures: BytesLike], [string], "view" >; "isValidSignature(bytes,bytes)": TypedContractMethod< [_data: BytesLike, _signatures: BytesLike], [string], "view" >; nonce: TypedContractMethod<[], [bigint], "view">; 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">; readNonce: TypedContractMethod<[_space: BigNumberish], [bigint], "view">; removeHook: TypedContractMethod< [_signature: BytesLike], [void], "nonpayable" >; selfExecute: TypedContractMethod< [_txs: IModuleCalls.TransactionStruct[]], [void], "nonpayable" >; setExtraImageHash: TypedContractMethod< [_imageHash: BytesLike, _expiration: BigNumberish], [void], "nonpayable" >; signatureRecovery: TypedContractMethod< [_digest: BytesLike, _signature: BytesLike], [ [bigint, bigint, string, string, bigint] & { threshold: bigint; weight: bigint; imageHash: string; subdigest: string; checkpoint: bigint; } ], "view" >; supportsInterface: TypedContractMethod< [_interfaceID: BytesLike], [boolean], "view" >; updateIPFSRoot: TypedContractMethod<[_hash: BytesLike], [void], "nonpayable">; updateImageHash: TypedContractMethod< [_imageHash: BytesLike], [void], "nonpayable" >; updateImageHashAndIPFS: TypedContractMethod< [_imageHash: BytesLike, _ipfsRoot: BytesLike], [void], "nonpayable" >; updateImplementation: TypedContractMethod< [_implementation: AddressLike], [void], "nonpayable" >; getFunction( key: string | FunctionFragment ): T; getFunction( nameOrSignature: "FACTORY" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "INIT_CODE_HASH" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "SET_IMAGE_HASH_TYPE_HASH" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "UPGRADEABLE_IMPLEMENTATION" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "addHook" ): TypedContractMethod< [_signature: BytesLike, _implementation: AddressLike], [void], "nonpayable" >; getFunction( nameOrSignature: "clearExtraImageHashes" ): TypedContractMethod<[_imageHashes: BytesLike[]], [void], "nonpayable">; getFunction( nameOrSignature: "createContract" ): TypedContractMethod<[_code: BytesLike], [string], "payable">; getFunction( nameOrSignature: "execute" ): TypedContractMethod< [ _txs: IModuleCalls.TransactionStruct[], _nonce: BigNumberish, _signature: BytesLike ], [void], "nonpayable" >; getFunction( nameOrSignature: "extraImageHash" ): TypedContractMethod<[_imageHash: BytesLike], [bigint], "view">; getFunction( nameOrSignature: "ipfsRoot" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "ipfsRootBytes32" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "isValidSignature(bytes32,bytes)" ): TypedContractMethod< [_hash: BytesLike, _signatures: BytesLike], [string], "view" >; getFunction( nameOrSignature: "isValidSignature(bytes,bytes)" ): TypedContractMethod< [_data: BytesLike, _signatures: BytesLike], [string], "view" >; getFunction( nameOrSignature: "nonce" ): TypedContractMethod<[], [bigint], "view">; 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: "readNonce" ): TypedContractMethod<[_space: BigNumberish], [bigint], "view">; getFunction( nameOrSignature: "removeHook" ): TypedContractMethod<[_signature: BytesLike], [void], "nonpayable">; getFunction( nameOrSignature: "selfExecute" ): TypedContractMethod< [_txs: IModuleCalls.TransactionStruct[]], [void], "nonpayable" >; getFunction( nameOrSignature: "setExtraImageHash" ): TypedContractMethod< [_imageHash: BytesLike, _expiration: BigNumberish], [void], "nonpayable" >; getFunction( nameOrSignature: "signatureRecovery" ): TypedContractMethod< [_digest: BytesLike, _signature: BytesLike], [ [bigint, bigint, string, string, bigint] & { threshold: bigint; weight: bigint; imageHash: string; subdigest: string; checkpoint: bigint; } ], "view" >; getFunction( nameOrSignature: "supportsInterface" ): TypedContractMethod<[_interfaceID: BytesLike], [boolean], "view">; getFunction( nameOrSignature: "updateIPFSRoot" ): TypedContractMethod<[_hash: BytesLike], [void], "nonpayable">; getFunction( nameOrSignature: "updateImageHash" ): TypedContractMethod<[_imageHash: BytesLike], [void], "nonpayable">; getFunction( nameOrSignature: "updateImageHashAndIPFS" ): TypedContractMethod< [_imageHash: BytesLike, _ipfsRoot: BytesLike], [void], "nonpayable" >; getFunction( nameOrSignature: "updateImplementation" ): TypedContractMethod<[_implementation: AddressLike], [void], "nonpayable">; getEvent( key: "CreatedContract" ): TypedContractEvent< CreatedContractEvent.InputTuple, CreatedContractEvent.OutputTuple, CreatedContractEvent.OutputObject >; getEvent( key: "DefinedHook" ): TypedContractEvent< DefinedHookEvent.InputTuple, DefinedHookEvent.OutputTuple, DefinedHookEvent.OutputObject >; getEvent( key: "IPFSRootUpdated" ): TypedContractEvent< IPFSRootUpdatedEvent.InputTuple, IPFSRootUpdatedEvent.OutputTuple, IPFSRootUpdatedEvent.OutputObject >; getEvent( key: "ImageHashUpdated" ): TypedContractEvent< ImageHashUpdatedEvent.InputTuple, ImageHashUpdatedEvent.OutputTuple, ImageHashUpdatedEvent.OutputObject >; getEvent( key: "ImplementationUpdated" ): TypedContractEvent< ImplementationUpdatedEvent.InputTuple, ImplementationUpdatedEvent.OutputTuple, ImplementationUpdatedEvent.OutputObject >; getEvent( key: "NonceChange" ): TypedContractEvent< NonceChangeEvent.InputTuple, NonceChangeEvent.OutputTuple, NonceChangeEvent.OutputObject >; getEvent( key: "SetExtraImageHash" ): TypedContractEvent< SetExtraImageHashEvent.InputTuple, SetExtraImageHashEvent.OutputTuple, SetExtraImageHashEvent.OutputObject >; getEvent( key: "TxExecuted" ): TypedContractEvent< TxExecutedEvent.InputTuple, TxExecutedEvent.OutputTuple, TxExecutedEvent.OutputObject >; getEvent( key: "TxFailed" ): TypedContractEvent< TxFailedEvent.InputTuple, TxFailedEvent.OutputTuple, TxFailedEvent.OutputObject >; filters: { "CreatedContract(address)": TypedContractEvent< CreatedContractEvent.InputTuple, CreatedContractEvent.OutputTuple, CreatedContractEvent.OutputObject >; CreatedContract: TypedContractEvent< CreatedContractEvent.InputTuple, CreatedContractEvent.OutputTuple, CreatedContractEvent.OutputObject >; "DefinedHook(bytes4,address)": TypedContractEvent< DefinedHookEvent.InputTuple, DefinedHookEvent.OutputTuple, DefinedHookEvent.OutputObject >; DefinedHook: TypedContractEvent< DefinedHookEvent.InputTuple, DefinedHookEvent.OutputTuple, DefinedHookEvent.OutputObject >; "IPFSRootUpdated(bytes32)": TypedContractEvent< IPFSRootUpdatedEvent.InputTuple, IPFSRootUpdatedEvent.OutputTuple, IPFSRootUpdatedEvent.OutputObject >; IPFSRootUpdated: TypedContractEvent< IPFSRootUpdatedEvent.InputTuple, IPFSRootUpdatedEvent.OutputTuple, IPFSRootUpdatedEvent.OutputObject >; "ImageHashUpdated(bytes32)": TypedContractEvent< ImageHashUpdatedEvent.InputTuple, ImageHashUpdatedEvent.OutputTuple, ImageHashUpdatedEvent.OutputObject >; ImageHashUpdated: TypedContractEvent< ImageHashUpdatedEvent.InputTuple, ImageHashUpdatedEvent.OutputTuple, ImageHashUpdatedEvent.OutputObject >; "ImplementationUpdated(address)": TypedContractEvent< ImplementationUpdatedEvent.InputTuple, ImplementationUpdatedEvent.OutputTuple, ImplementationUpdatedEvent.OutputObject >; ImplementationUpdated: TypedContractEvent< ImplementationUpdatedEvent.InputTuple, ImplementationUpdatedEvent.OutputTuple, ImplementationUpdatedEvent.OutputObject >; "NonceChange(uint256,uint256)": TypedContractEvent< NonceChangeEvent.InputTuple, NonceChangeEvent.OutputTuple, NonceChangeEvent.OutputObject >; NonceChange: TypedContractEvent< NonceChangeEvent.InputTuple, NonceChangeEvent.OutputTuple, NonceChangeEvent.OutputObject >; "SetExtraImageHash(bytes32,uint256)": TypedContractEvent< SetExtraImageHashEvent.InputTuple, SetExtraImageHashEvent.OutputTuple, SetExtraImageHashEvent.OutputObject >; SetExtraImageHash: TypedContractEvent< SetExtraImageHashEvent.InputTuple, SetExtraImageHashEvent.OutputTuple, SetExtraImageHashEvent.OutputObject >; "TxExecuted(bytes32,uint256)": TypedContractEvent< TxExecutedEvent.InputTuple, TxExecutedEvent.OutputTuple, TxExecutedEvent.OutputObject >; TxExecuted: TypedContractEvent< TxExecutedEvent.InputTuple, TxExecutedEvent.OutputTuple, TxExecutedEvent.OutputObject >; "TxFailed(bytes32,uint256,bytes)": TypedContractEvent< TxFailedEvent.InputTuple, TxFailedEvent.OutputTuple, TxFailedEvent.OutputObject >; TxFailed: TypedContractEvent< TxFailedEvent.InputTuple, TxFailedEvent.OutputTuple, TxFailedEvent.OutputObject >; }; }