/* 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.js"; export interface IERC20LockableInterface extends Interface { getFunction( nameOrSignature: | "DOMAIN_SEPARATOR" | "allowance" | "approve" | "balanceOf" | "decimals" | "isLocked" | "isLockedUntil" | "lock" | "lockPermit" | "lockedBalance" | "lockedBalanceUntil" | "lockedUntil" | "name" | "nonces" | "permit" | "supportsInterface" | "symbol" | "totalSupply" | "transfer" | "transferFrom", ): FunctionFragment; getEvent( nameOrSignatureOrTopic: "Approval" | "Lock" | "LockedBy" | "Transfer", ): EventFragment; encodeFunctionData( functionFragment: "DOMAIN_SEPARATOR", values?: undefined, ): string; encodeFunctionData( functionFragment: "allowance", values: [AddressLike, AddressLike], ): string; encodeFunctionData( functionFragment: "approve", values: [AddressLike, BigNumberish], ): string; encodeFunctionData( functionFragment: "balanceOf", values: [AddressLike], ): string; encodeFunctionData(functionFragment: "decimals", values?: undefined): string; encodeFunctionData( functionFragment: "isLocked", values: [AddressLike], ): string; encodeFunctionData( functionFragment: "isLockedUntil", values: [AddressLike, BigNumberish], ): string; encodeFunctionData( functionFragment: "lock", values: [BigNumberish, BytesLike], ): string; encodeFunctionData( functionFragment: "lockPermit", values: [ AddressLike, AddressLike, BigNumberish, BigNumberish, BytesLike, BytesLike, ], ): string; encodeFunctionData( functionFragment: "lockedBalance", values: [AddressLike], ): string; encodeFunctionData( functionFragment: "lockedBalanceUntil", values: [AddressLike, BigNumberish], ): string; encodeFunctionData( functionFragment: "lockedUntil", values: [AddressLike], ): string; encodeFunctionData(functionFragment: "name", values?: undefined): string; encodeFunctionData(functionFragment: "nonces", values: [AddressLike]): string; encodeFunctionData( functionFragment: "permit", values: [ AddressLike, AddressLike, BigNumberish, BigNumberish, BigNumberish, BytesLike, BytesLike, ], ): string; encodeFunctionData( functionFragment: "supportsInterface", values: [BytesLike], ): string; encodeFunctionData(functionFragment: "symbol", values?: undefined): string; encodeFunctionData( functionFragment: "totalSupply", values?: undefined, ): string; encodeFunctionData( functionFragment: "transfer", values: [AddressLike, BigNumberish], ): string; encodeFunctionData( functionFragment: "transferFrom", values: [AddressLike, AddressLike, BigNumberish], ): string; decodeFunctionResult( functionFragment: "DOMAIN_SEPARATOR", data: BytesLike, ): Result; decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result; decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result; decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result; decodeFunctionResult(functionFragment: "decimals", data: BytesLike): Result; decodeFunctionResult(functionFragment: "isLocked", data: BytesLike): Result; decodeFunctionResult( functionFragment: "isLockedUntil", data: BytesLike, ): Result; decodeFunctionResult(functionFragment: "lock", data: BytesLike): Result; decodeFunctionResult(functionFragment: "lockPermit", data: BytesLike): Result; decodeFunctionResult( functionFragment: "lockedBalance", data: BytesLike, ): Result; decodeFunctionResult( functionFragment: "lockedBalanceUntil", data: BytesLike, ): Result; decodeFunctionResult( functionFragment: "lockedUntil", data: BytesLike, ): Result; decodeFunctionResult(functionFragment: "name", data: BytesLike): Result; decodeFunctionResult(functionFragment: "nonces", data: BytesLike): Result; decodeFunctionResult(functionFragment: "permit", data: BytesLike): Result; decodeFunctionResult( functionFragment: "supportsInterface", data: BytesLike, ): Result; decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result; decodeFunctionResult( functionFragment: "totalSupply", data: BytesLike, ): Result; decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result; decodeFunctionResult( functionFragment: "transferFrom", data: BytesLike, ): Result; } export namespace ApprovalEvent { export type InputTuple = [ owner: AddressLike, spender: AddressLike, value: BigNumberish, ]; export type OutputTuple = [owner: string, spender: string, value: bigint]; export interface OutputObject { owner: string; spender: string; value: bigint; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export namespace LockEvent { export type InputTuple = [owner: AddressLike, lockUntil: BigNumberish]; export type OutputTuple = [owner: string, lockUntil: bigint]; export interface OutputObject { owner: string; lockUntil: bigint; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export namespace LockedByEvent { export type InputTuple = [ owner: AddressLike, lockBy: AddressLike, lockUntil: BigNumberish, ]; export type OutputTuple = [owner: string, lockBy: string, lockUntil: bigint]; export interface OutputObject { owner: string; lockBy: string; lockUntil: bigint; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export namespace TransferEvent { export type InputTuple = [ from: AddressLike, to: AddressLike, value: BigNumberish, ]; export type OutputTuple = [from: string, to: string, value: bigint]; export interface OutputObject { from: string; to: string; value: bigint; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export interface IERC20Lockable extends BaseContract { connect(runner?: ContractRunner | null): IERC20Lockable; waitForDeployment(): Promise; interface: IERC20LockableInterface; 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; DOMAIN_SEPARATOR: TypedContractMethod<[], [string], "view">; allowance: TypedContractMethod< [owner: AddressLike, spender: AddressLike], [bigint], "view" >; approve: TypedContractMethod< [spender: AddressLike, value: BigNumberish], [boolean], "nonpayable" >; balanceOf: TypedContractMethod<[account: AddressLike], [bigint], "view">; decimals: TypedContractMethod<[], [bigint], "view">; isLocked: TypedContractMethod<[owner: AddressLike], [boolean], "view">; isLockedUntil: TypedContractMethod< [owner: AddressLike, until: BigNumberish], [boolean], "view" >; lock: TypedContractMethod< [until: BigNumberish, lockParams: BytesLike], [void], "nonpayable" >; lockPermit: TypedContractMethod< [ owner: AddressLike, lockBy: AddressLike, lockUntil: BigNumberish, deadline: BigNumberish, signature: BytesLike, lockParams: BytesLike, ], [void], "nonpayable" >; lockedBalance: TypedContractMethod<[owner: AddressLike], [bigint], "view">; lockedBalanceUntil: TypedContractMethod< [owner: AddressLike, until: BigNumberish], [bigint], "view" >; lockedUntil: TypedContractMethod<[owner: AddressLike], [bigint], "view">; name: TypedContractMethod<[], [string], "view">; nonces: TypedContractMethod<[owner: AddressLike], [bigint], "view">; permit: TypedContractMethod< [ owner: AddressLike, spender: AddressLike, value: BigNumberish, deadline: BigNumberish, v: BigNumberish, r: BytesLike, s: BytesLike, ], [void], "nonpayable" >; supportsInterface: TypedContractMethod< [interfaceId: BytesLike], [boolean], "view" >; symbol: TypedContractMethod<[], [string], "view">; totalSupply: TypedContractMethod<[], [bigint], "view">; transfer: TypedContractMethod< [to: AddressLike, value: BigNumberish], [boolean], "nonpayable" >; transferFrom: TypedContractMethod< [from: AddressLike, to: AddressLike, value: BigNumberish], [boolean], "nonpayable" >; getFunction( key: string | FunctionFragment, ): T; getFunction( nameOrSignature: "DOMAIN_SEPARATOR", ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "allowance", ): TypedContractMethod< [owner: AddressLike, spender: AddressLike], [bigint], "view" >; getFunction( nameOrSignature: "approve", ): TypedContractMethod< [spender: AddressLike, value: BigNumberish], [boolean], "nonpayable" >; getFunction( nameOrSignature: "balanceOf", ): TypedContractMethod<[account: AddressLike], [bigint], "view">; getFunction( nameOrSignature: "decimals", ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "isLocked", ): TypedContractMethod<[owner: AddressLike], [boolean], "view">; getFunction( nameOrSignature: "isLockedUntil", ): TypedContractMethod< [owner: AddressLike, until: BigNumberish], [boolean], "view" >; getFunction( nameOrSignature: "lock", ): TypedContractMethod< [until: BigNumberish, lockParams: BytesLike], [void], "nonpayable" >; getFunction( nameOrSignature: "lockPermit", ): TypedContractMethod< [ owner: AddressLike, lockBy: AddressLike, lockUntil: BigNumberish, deadline: BigNumberish, signature: BytesLike, lockParams: BytesLike, ], [void], "nonpayable" >; getFunction( nameOrSignature: "lockedBalance", ): TypedContractMethod<[owner: AddressLike], [bigint], "view">; getFunction( nameOrSignature: "lockedBalanceUntil", ): TypedContractMethod< [owner: AddressLike, until: BigNumberish], [bigint], "view" >; getFunction( nameOrSignature: "lockedUntil", ): TypedContractMethod<[owner: AddressLike], [bigint], "view">; getFunction( nameOrSignature: "name", ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "nonces", ): TypedContractMethod<[owner: AddressLike], [bigint], "view">; getFunction( nameOrSignature: "permit", ): TypedContractMethod< [ owner: AddressLike, spender: AddressLike, value: BigNumberish, deadline: BigNumberish, v: BigNumberish, r: BytesLike, s: BytesLike, ], [void], "nonpayable" >; getFunction( nameOrSignature: "supportsInterface", ): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">; getFunction( nameOrSignature: "symbol", ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "totalSupply", ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "transfer", ): TypedContractMethod< [to: AddressLike, value: BigNumberish], [boolean], "nonpayable" >; getFunction( nameOrSignature: "transferFrom", ): TypedContractMethod< [from: AddressLike, to: AddressLike, value: BigNumberish], [boolean], "nonpayable" >; getEvent( key: "Approval", ): TypedContractEvent< ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject >; getEvent( key: "Lock", ): TypedContractEvent< LockEvent.InputTuple, LockEvent.OutputTuple, LockEvent.OutputObject >; getEvent( key: "LockedBy", ): TypedContractEvent< LockedByEvent.InputTuple, LockedByEvent.OutputTuple, LockedByEvent.OutputObject >; getEvent( key: "Transfer", ): TypedContractEvent< TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject >; filters: { "Approval(address,address,uint256)": TypedContractEvent< ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject >; Approval: TypedContractEvent< ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject >; "Lock(address,uint48)": TypedContractEvent< LockEvent.InputTuple, LockEvent.OutputTuple, LockEvent.OutputObject >; Lock: TypedContractEvent< LockEvent.InputTuple, LockEvent.OutputTuple, LockEvent.OutputObject >; "LockedBy(address,address,uint48)": TypedContractEvent< LockedByEvent.InputTuple, LockedByEvent.OutputTuple, LockedByEvent.OutputObject >; LockedBy: TypedContractEvent< LockedByEvent.InputTuple, LockedByEvent.OutputTuple, LockedByEvent.OutputObject >; "Transfer(address,address,uint256)": TypedContractEvent< TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject >; Transfer: TypedContractEvent< TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject >; }; }