232 lines
13 KiB
TypeScript
Vendored
232 lines
13 KiB
TypeScript
Vendored
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 {
|
|
type RecipientStruct = {
|
|
to: AddressLike;
|
|
amount: BigNumberish;
|
|
};
|
|
type RecipientStructOutput = [to: string, amount: bigint] & {
|
|
to: string;
|
|
amount: bigint;
|
|
};
|
|
}
|
|
export interface VoucherMockInterface extends Interface {
|
|
getFunction(nameOrSignature: "allowance" | "allowedTransferee" | "approve" | "balanceOf" | "blockTimestamp" | "bulkResolve" | "decimals" | "decreaseAllowance" | "expiresAt" | "fakeTimestamp" | "governance" | "increaseAllowance" | "name" | "redeem" | "rescueExpiredTokens" | "resolve" | "setFakeTimestamp" | "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: "fakeTimestamp", 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: "setFakeTimestamp", values: [BigNumberish]): 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: "fakeTimestamp", 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: "setFakeTimestamp", 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 declare namespace ApprovalEvent {
|
|
type InputTuple = [
|
|
owner: AddressLike,
|
|
spender: AddressLike,
|
|
value: BigNumberish
|
|
];
|
|
type OutputTuple = [owner: string, spender: string, value: bigint];
|
|
interface OutputObject {
|
|
owner: string;
|
|
spender: string;
|
|
value: bigint;
|
|
}
|
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
type Log = TypedEventLog<Event>;
|
|
type LogDescription = TypedLogDescription<Event>;
|
|
}
|
|
export declare namespace TransferEvent {
|
|
type InputTuple = [
|
|
from: AddressLike,
|
|
to: AddressLike,
|
|
value: BigNumberish
|
|
];
|
|
type OutputTuple = [from: string, to: string, value: bigint];
|
|
interface OutputObject {
|
|
from: string;
|
|
to: string;
|
|
value: bigint;
|
|
}
|
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
type Filter = TypedDeferredTopicFilter<Event>;
|
|
type Log = TypedEventLog<Event>;
|
|
type LogDescription = TypedLogDescription<Event>;
|
|
}
|
|
export interface VoucherMock extends BaseContract {
|
|
connect(runner?: ContractRunner | null): VoucherMock;
|
|
waitForDeployment(): Promise<this>;
|
|
interface: VoucherMockInterface;
|
|
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
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">;
|
|
fakeTimestamp: 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<[addr: BytesLike], [string], "view">;
|
|
setFakeTimestamp: TypedContractMethod<[
|
|
_fakeTimestamp: BigNumberish
|
|
], [
|
|
void
|
|
], "nonpayable">;
|
|
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<T extends ContractMethod = ContractMethod>(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: "fakeTimestamp"): 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<[addr: BytesLike], [string], "view">;
|
|
getFunction(nameOrSignature: "setFakeTimestamp"): TypedContractMethod<[_fakeTimestamp: BigNumberish], [void], "nonpayable">;
|
|
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>;
|
|
};
|
|
}
|