/* 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 Voucher { export type RecipientStruct = { to: AddressLike; amount: BigNumberish }; export type RecipientStructOutput = [to: string, amount: bigint] & { to: string; amount: bigint; }; } export interface VoucherInterface extends Interface { getFunction( nameOrSignature: | "allowance" | "allowedTransferee" | "approve" | "balanceOf" | "blockTimestamp" | "bulkResolve" | "decimals" | "decreaseAllowance" | "expiresAt" | "governance" | "increaseAllowance" | "name" | "redeem" | "rescueExpiredTokens" | "resolve" | "symbol" | "torn" | "totalSupply" | "transfer" | "transferFrom" ): FunctionFragment; getEvent(nameOrSignatureOrTopic: "Approval" | "Transfer"): EventFragment; encodeFunctionData( functionFragment: "allowance", values: [AddressLike, AddressLike] ): string; encodeFunctionData( functionFragment: "allowedTransferee", values: [AddressLike] ): string; encodeFunctionData( functionFragment: "approve", values: [AddressLike, BigNumberish] ): string; encodeFunctionData( functionFragment: "balanceOf", values: [AddressLike] ): string; encodeFunctionData( functionFragment: "blockTimestamp", values?: undefined ): string; encodeFunctionData( functionFragment: "bulkResolve", values: [BytesLike[]] ): string; encodeFunctionData(functionFragment: "decimals", values?: undefined): string; encodeFunctionData( functionFragment: "decreaseAllowance", values: [AddressLike, BigNumberish] ): string; encodeFunctionData(functionFragment: "expiresAt", values?: undefined): string; encodeFunctionData( functionFragment: "governance", values?: undefined ): string; encodeFunctionData( functionFragment: "increaseAllowance", values: [AddressLike, BigNumberish] ): string; encodeFunctionData(functionFragment: "name", values?: undefined): string; encodeFunctionData(functionFragment: "redeem", values?: undefined): string; encodeFunctionData( functionFragment: "rescueExpiredTokens", values?: undefined ): string; encodeFunctionData(functionFragment: "resolve", values: [BytesLike]): string; encodeFunctionData(functionFragment: "symbol", values?: undefined): string; encodeFunctionData(functionFragment: "torn", 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: "allowance", data: BytesLike): Result; decodeFunctionResult( functionFragment: "allowedTransferee", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result; decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result; decodeFunctionResult( functionFragment: "blockTimestamp", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "bulkResolve", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "decimals", data: BytesLike): Result; decodeFunctionResult( functionFragment: "decreaseAllowance", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "expiresAt", data: BytesLike): Result; decodeFunctionResult(functionFragment: "governance", data: BytesLike): Result; decodeFunctionResult( functionFragment: "increaseAllowance", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "name", data: BytesLike): Result; decodeFunctionResult(functionFragment: "redeem", data: BytesLike): Result; decodeFunctionResult( functionFragment: "rescueExpiredTokens", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "resolve", data: BytesLike): Result; decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result; decodeFunctionResult(functionFragment: "torn", 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 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 Voucher extends BaseContract { connect(runner?: ContractRunner | null): Voucher; waitForDeployment(): Promise; interface: VoucherInterface; 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; allowance: TypedContractMethod< [owner: AddressLike, spender: AddressLike], [bigint], "view" >; allowedTransferee: TypedContractMethod< [arg0: AddressLike], [boolean], "view" >; approve: TypedContractMethod< [spender: AddressLike, amount: BigNumberish], [boolean], "nonpayable" >; balanceOf: TypedContractMethod<[account: AddressLike], [bigint], "view">; blockTimestamp: TypedContractMethod<[], [bigint], "view">; bulkResolve: TypedContractMethod<[domains: BytesLike[]], [string[]], "view">; decimals: TypedContractMethod<[], [bigint], "view">; decreaseAllowance: TypedContractMethod< [spender: AddressLike, subtractedValue: BigNumberish], [boolean], "nonpayable" >; expiresAt: TypedContractMethod<[], [bigint], "view">; governance: TypedContractMethod<[], [string], "view">; increaseAllowance: TypedContractMethod< [spender: AddressLike, addedValue: BigNumberish], [boolean], "nonpayable" >; name: TypedContractMethod<[], [string], "view">; redeem: TypedContractMethod<[], [void], "nonpayable">; rescueExpiredTokens: TypedContractMethod<[], [void], "nonpayable">; resolve: TypedContractMethod<[node: BytesLike], [string], "view">; symbol: TypedContractMethod<[], [string], "view">; torn: TypedContractMethod<[], [string], "view">; totalSupply: TypedContractMethod<[], [bigint], "view">; transfer: TypedContractMethod< [recipient: AddressLike, amount: BigNumberish], [boolean], "nonpayable" >; transferFrom: TypedContractMethod< [sender: AddressLike, recipient: AddressLike, amount: BigNumberish], [boolean], "nonpayable" >; getFunction( key: string | FunctionFragment ): T; getFunction( nameOrSignature: "allowance" ): TypedContractMethod< [owner: AddressLike, spender: AddressLike], [bigint], "view" >; getFunction( nameOrSignature: "allowedTransferee" ): TypedContractMethod<[arg0: AddressLike], [boolean], "view">; getFunction( nameOrSignature: "approve" ): TypedContractMethod< [spender: AddressLike, amount: BigNumberish], [boolean], "nonpayable" >; getFunction( nameOrSignature: "balanceOf" ): TypedContractMethod<[account: AddressLike], [bigint], "view">; getFunction( nameOrSignature: "blockTimestamp" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "bulkResolve" ): TypedContractMethod<[domains: BytesLike[]], [string[]], "view">; getFunction( nameOrSignature: "decimals" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "decreaseAllowance" ): TypedContractMethod< [spender: AddressLike, subtractedValue: BigNumberish], [boolean], "nonpayable" >; getFunction( nameOrSignature: "expiresAt" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "governance" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "increaseAllowance" ): TypedContractMethod< [spender: AddressLike, addedValue: BigNumberish], [boolean], "nonpayable" >; getFunction( nameOrSignature: "name" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "redeem" ): TypedContractMethod<[], [void], "nonpayable">; getFunction( nameOrSignature: "rescueExpiredTokens" ): TypedContractMethod<[], [void], "nonpayable">; getFunction( nameOrSignature: "resolve" ): TypedContractMethod<[node: BytesLike], [string], "view">; getFunction( nameOrSignature: "symbol" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "torn" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "totalSupply" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "transfer" ): TypedContractMethod< [recipient: AddressLike, amount: BigNumberish], [boolean], "nonpayable" >; getFunction( nameOrSignature: "transferFrom" ): TypedContractMethod< [sender: AddressLike, recipient: AddressLike, amount: BigNumberish], [boolean], "nonpayable" >; getEvent( key: "Approval" ): TypedContractEvent< ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.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 >; "Transfer(address,address,uint256)": TypedContractEvent< TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject >; Transfer: TypedContractEvent< TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject >; }; }