-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
UNS Release bot
committed
Sep 12, 2024
1 parent
84f62be
commit 4171cc3
Showing
85 changed files
with
3,156 additions
and
25 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
184 changes: 184 additions & 0 deletions
184
dist/types/@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,184 @@ | ||
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 ERC20UpgradeableInterface extends Interface { | ||
getFunction(nameOrSignature: "allowance" | "approve" | "balanceOf" | "decimals" | "decreaseAllowance" | "increaseAllowance" | "name" | "symbol" | "totalSupply" | "transfer" | "transferFrom"): FunctionFragment; | ||
getEvent(nameOrSignatureOrTopic: "Approval" | "Initialized" | "Transfer"): EventFragment; | ||
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: "decreaseAllowance", values: [AddressLike, BigNumberish]): string; | ||
encodeFunctionData(functionFragment: "increaseAllowance", values: [AddressLike, BigNumberish]): string; | ||
encodeFunctionData(functionFragment: "name", values?: undefined): 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: "allowance", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "decimals", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "decreaseAllowance", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "increaseAllowance", data: BytesLike): Result; | ||
decodeFunctionResult(functionFragment: "name", 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 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 InitializedEvent { | ||
type InputTuple = [version: BigNumberish]; | ||
type OutputTuple = [version: bigint]; | ||
interface OutputObject { | ||
version: 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 ERC20Upgradeable extends BaseContract { | ||
connect(runner?: ContractRunner | null): ERC20Upgradeable; | ||
waitForDeployment(): Promise<this>; | ||
interface: ERC20UpgradeableInterface; | ||
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">; | ||
approve: TypedContractMethod<[ | ||
spender: AddressLike, | ||
amount: BigNumberish | ||
], [ | ||
boolean | ||
], "nonpayable">; | ||
balanceOf: TypedContractMethod<[account: AddressLike], [bigint], "view">; | ||
decimals: TypedContractMethod<[], [bigint], "view">; | ||
decreaseAllowance: TypedContractMethod<[ | ||
spender: AddressLike, | ||
subtractedValue: BigNumberish | ||
], [ | ||
boolean | ||
], "nonpayable">; | ||
increaseAllowance: TypedContractMethod<[ | ||
spender: AddressLike, | ||
addedValue: BigNumberish | ||
], [ | ||
boolean | ||
], "nonpayable">; | ||
name: TypedContractMethod<[], [string], "view">; | ||
symbol: TypedContractMethod<[], [string], "view">; | ||
totalSupply: TypedContractMethod<[], [bigint], "view">; | ||
transfer: TypedContractMethod<[ | ||
to: AddressLike, | ||
amount: BigNumberish | ||
], [ | ||
boolean | ||
], "nonpayable">; | ||
transferFrom: TypedContractMethod<[ | ||
from: AddressLike, | ||
to: 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: "approve"): TypedContractMethod<[ | ||
spender: AddressLike, | ||
amount: BigNumberish | ||
], [ | ||
boolean | ||
], "nonpayable">; | ||
getFunction(nameOrSignature: "balanceOf"): TypedContractMethod<[account: AddressLike], [bigint], "view">; | ||
getFunction(nameOrSignature: "decimals"): TypedContractMethod<[], [bigint], "view">; | ||
getFunction(nameOrSignature: "decreaseAllowance"): TypedContractMethod<[ | ||
spender: AddressLike, | ||
subtractedValue: BigNumberish | ||
], [ | ||
boolean | ||
], "nonpayable">; | ||
getFunction(nameOrSignature: "increaseAllowance"): TypedContractMethod<[ | ||
spender: AddressLike, | ||
addedValue: BigNumberish | ||
], [ | ||
boolean | ||
], "nonpayable">; | ||
getFunction(nameOrSignature: "name"): TypedContractMethod<[], [string], "view">; | ||
getFunction(nameOrSignature: "symbol"): TypedContractMethod<[], [string], "view">; | ||
getFunction(nameOrSignature: "totalSupply"): TypedContractMethod<[], [bigint], "view">; | ||
getFunction(nameOrSignature: "transfer"): TypedContractMethod<[ | ||
to: AddressLike, | ||
amount: BigNumberish | ||
], [ | ||
boolean | ||
], "nonpayable">; | ||
getFunction(nameOrSignature: "transferFrom"): TypedContractMethod<[ | ||
from: AddressLike, | ||
to: AddressLike, | ||
amount: BigNumberish | ||
], [ | ||
boolean | ||
], "nonpayable">; | ||
getEvent(key: "Approval"): TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>; | ||
getEvent(key: "Initialized"): TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.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>; | ||
"Initialized(uint8)": TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>; | ||
Initialized: TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>; | ||
"Transfer(address,address,uint256)": TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>; | ||
Transfer: TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>; | ||
}; | ||
} | ||
//# sourceMappingURL=ERC20Upgradeable.d.ts.map |
1 change: 1 addition & 0 deletions
1
dist/types/@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.d.ts.map
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 2 additions & 0 deletions
2
dist/types/@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); |
Oops, something went wrong.