/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, ContractRunner, ContractMethod, Listener, } from "ethers"; import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod, } from "../../common.js"; export interface LockInterface extends Interface { getFunction( nameOrSignature: "owner" | "unlockTime" | "withdraw", ): FunctionFragment; getEvent(nameOrSignatureOrTopic: "Withdrawal"): EventFragment; encodeFunctionData(functionFragment: "owner", values?: undefined): string; encodeFunctionData( functionFragment: "unlockTime", values?: undefined, ): string; encodeFunctionData(functionFragment: "withdraw", values?: undefined): string; decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; decodeFunctionResult(functionFragment: "unlockTime", data: BytesLike): Result; decodeFunctionResult(functionFragment: "withdraw", data: BytesLike): Result; } export namespace WithdrawalEvent { export type InputTuple = [amount: BigNumberish, when: BigNumberish]; export type OutputTuple = [amount: bigint, when: bigint]; export interface OutputObject { amount: bigint; when: bigint; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export interface Lock extends BaseContract { connect(runner?: ContractRunner | null): Lock; waitForDeployment(): Promise; interface: LockInterface; 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; owner: TypedContractMethod<[], [string], "view">; unlockTime: TypedContractMethod<[], [bigint], "view">; withdraw: TypedContractMethod<[], [void], "nonpayable">; getFunction( key: string | FunctionFragment, ): T; getFunction( nameOrSignature: "owner", ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "unlockTime", ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "withdraw", ): TypedContractMethod<[], [void], "nonpayable">; getEvent( key: "Withdrawal", ): TypedContractEvent< WithdrawalEvent.InputTuple, WithdrawalEvent.OutputTuple, WithdrawalEvent.OutputObject >; filters: { "Withdrawal(uint256,uint256)": TypedContractEvent< WithdrawalEvent.InputTuple, WithdrawalEvent.OutputTuple, WithdrawalEvent.OutputObject >; Withdrawal: TypedContractEvent< WithdrawalEvent.InputTuple, WithdrawalEvent.OutputTuple, WithdrawalEvent.OutputObject >; }; }