/* 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 SnapshotUserRegistryInterface extends Interface { getFunction( nameOrSignature: | "addUser" | "blockHash" | "isVerifiedUser" | "minBalance" | "owner" | "renounceOwnership" | "setMinBalance" | "setStorageRoot" | "storageRoot" | "storageSlot" | "token" | "transferOwnership" | "users" ): FunctionFragment; getEvent( nameOrSignatureOrTopic: | "MinBalanceChanged" | "OwnershipTransferred" | "StorageRootChanged" | "UserAdded" ): EventFragment; encodeFunctionData( functionFragment: "addUser", values: [AddressLike, BytesLike] ): string; encodeFunctionData(functionFragment: "blockHash", values?: undefined): string; encodeFunctionData( functionFragment: "isVerifiedUser", values: [AddressLike] ): string; encodeFunctionData( functionFragment: "minBalance", values?: undefined ): string; encodeFunctionData(functionFragment: "owner", values?: undefined): string; encodeFunctionData( functionFragment: "renounceOwnership", values?: undefined ): string; encodeFunctionData( functionFragment: "setMinBalance", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "setStorageRoot", values: [AddressLike, BytesLike, BytesLike, BigNumberish, BytesLike] ): string; encodeFunctionData( functionFragment: "storageRoot", values?: undefined ): string; encodeFunctionData( functionFragment: "storageSlot", values?: undefined ): string; encodeFunctionData(functionFragment: "token", values?: undefined): string; encodeFunctionData( functionFragment: "transferOwnership", values: [AddressLike] ): string; encodeFunctionData( functionFragment: "users", values: [BytesLike, AddressLike] ): string; decodeFunctionResult(functionFragment: "addUser", data: BytesLike): Result; decodeFunctionResult(functionFragment: "blockHash", data: BytesLike): Result; decodeFunctionResult( functionFragment: "isVerifiedUser", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "minBalance", data: BytesLike): Result; decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; decodeFunctionResult( functionFragment: "renounceOwnership", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "setMinBalance", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "setStorageRoot", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "storageRoot", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "storageSlot", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "token", data: BytesLike): Result; decodeFunctionResult( functionFragment: "transferOwnership", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "users", data: BytesLike): Result; } export namespace MinBalanceChangedEvent { export type InputTuple = [newBalance: BigNumberish]; export type OutputTuple = [newBalance: bigint]; export interface OutputObject { newBalance: bigint; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export namespace OwnershipTransferredEvent { export type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike]; export type OutputTuple = [previousOwner: string, newOwner: string]; export interface OutputObject { previousOwner: string; newOwner: string; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export namespace StorageRootChangedEvent { export type InputTuple = [ _token: AddressLike, _blockHash: BytesLike, storageSlot: BigNumberish ]; export type OutputTuple = [ _token: string, _blockHash: string, storageSlot: bigint ]; export interface OutputObject { _token: string; _blockHash: string; storageSlot: bigint; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export namespace UserAddedEvent { export type InputTuple = [_user: AddressLike, blockHash: BytesLike]; export type OutputTuple = [_user: string, blockHash: string]; export interface OutputObject { _user: string; blockHash: string; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export interface SnapshotUserRegistry extends BaseContract { connect(runner?: ContractRunner | null): SnapshotUserRegistry; waitForDeployment(): Promise; interface: SnapshotUserRegistryInterface; 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; addUser: TypedContractMethod< [_user: AddressLike, storageProofRlpBytes: BytesLike], [void], "nonpayable" >; blockHash: TypedContractMethod<[], [string], "view">; isVerifiedUser: TypedContractMethod<[_user: AddressLike], [boolean], "view">; minBalance: TypedContractMethod<[], [bigint], "view">; owner: TypedContractMethod<[], [string], "view">; renounceOwnership: TypedContractMethod<[], [void], "nonpayable">; setMinBalance: TypedContractMethod< [newMinBalance: BigNumberish], [void], "nonpayable" >; setStorageRoot: TypedContractMethod< [ _tokenAddress: AddressLike, _blockHash: BytesLike, _stateRoot: BytesLike, _slotIndex: BigNumberish, _accountProofRlpBytes: BytesLike ], [void], "nonpayable" >; storageRoot: TypedContractMethod<[], [string], "view">; storageSlot: TypedContractMethod<[], [bigint], "view">; token: TypedContractMethod<[], [string], "view">; transferOwnership: TypedContractMethod< [newOwner: AddressLike], [void], "nonpayable" >; users: TypedContractMethod< [arg0: BytesLike, arg1: AddressLike], [bigint], "view" >; getFunction( key: string | FunctionFragment ): T; getFunction( nameOrSignature: "addUser" ): TypedContractMethod< [_user: AddressLike, storageProofRlpBytes: BytesLike], [void], "nonpayable" >; getFunction( nameOrSignature: "blockHash" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "isVerifiedUser" ): TypedContractMethod<[_user: AddressLike], [boolean], "view">; getFunction( nameOrSignature: "minBalance" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "owner" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "renounceOwnership" ): TypedContractMethod<[], [void], "nonpayable">; getFunction( nameOrSignature: "setMinBalance" ): TypedContractMethod<[newMinBalance: BigNumberish], [void], "nonpayable">; getFunction( nameOrSignature: "setStorageRoot" ): TypedContractMethod< [ _tokenAddress: AddressLike, _blockHash: BytesLike, _stateRoot: BytesLike, _slotIndex: BigNumberish, _accountProofRlpBytes: BytesLike ], [void], "nonpayable" >; getFunction( nameOrSignature: "storageRoot" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "storageSlot" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "token" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "transferOwnership" ): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">; getFunction( nameOrSignature: "users" ): TypedContractMethod< [arg0: BytesLike, arg1: AddressLike], [bigint], "view" >; getEvent( key: "MinBalanceChanged" ): TypedContractEvent< MinBalanceChangedEvent.InputTuple, MinBalanceChangedEvent.OutputTuple, MinBalanceChangedEvent.OutputObject >; getEvent( key: "OwnershipTransferred" ): TypedContractEvent< OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject >; getEvent( key: "StorageRootChanged" ): TypedContractEvent< StorageRootChangedEvent.InputTuple, StorageRootChangedEvent.OutputTuple, StorageRootChangedEvent.OutputObject >; getEvent( key: "UserAdded" ): TypedContractEvent< UserAddedEvent.InputTuple, UserAddedEvent.OutputTuple, UserAddedEvent.OutputObject >; filters: { "MinBalanceChanged(uint256)": TypedContractEvent< MinBalanceChangedEvent.InputTuple, MinBalanceChangedEvent.OutputTuple, MinBalanceChangedEvent.OutputObject >; MinBalanceChanged: TypedContractEvent< MinBalanceChangedEvent.InputTuple, MinBalanceChangedEvent.OutputTuple, MinBalanceChangedEvent.OutputObject >; "OwnershipTransferred(address,address)": TypedContractEvent< OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject >; OwnershipTransferred: TypedContractEvent< OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject >; "StorageRootChanged(address,bytes32,uint256)": TypedContractEvent< StorageRootChangedEvent.InputTuple, StorageRootChangedEvent.OutputTuple, StorageRootChangedEvent.OutputObject >; StorageRootChanged: TypedContractEvent< StorageRootChangedEvent.InputTuple, StorageRootChangedEvent.OutputTuple, StorageRootChangedEvent.OutputObject >; "UserAdded(address,bytes32)": TypedContractEvent< UserAddedEvent.InputTuple, UserAddedEvent.OutputTuple, UserAddedEvent.OutputObject >; UserAdded: TypedContractEvent< UserAddedEvent.InputTuple, UserAddedEvent.OutputTuple, UserAddedEvent.OutputObject >; }; }