Skip to main content
Version: v3.x

Minimal Anti Collusion Infrastructure (MACI) / IERC20

Interface: IERC20

Defined in: contracts/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.ts:114

Extends​

  • BaseContract

Properties​

allowance​

allowance: TypedContractMethod<[AddressLike, AddressLike], [bigint], "view">

Defined in: contracts/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.ts:157


approve​

approve: TypedContractMethod<[AddressLike, BigNumberish], [boolean], "nonpayable">

Defined in: contracts/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.ts:163


balanceOf​

balanceOf: TypedContractMethod<[AddressLike], [bigint], "view">

Defined in: contracts/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.ts:169


filters​

filters: object

Defined in: contracts/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.ts:239

All the Events available on this contract.

Approval​

Approval: TypedContractEvent<InputTuple, OutputTuple, OutputObject>

Approval(address,address,uint256)​

Approval(address,address,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>

Transfer​

Transfer: TypedContractEvent<InputTuple, OutputTuple, OutputObject>

Transfer(address,address,uint256)​

Transfer(address,address,uint256): TypedContractEvent<InputTuple, OutputTuple, OutputObject>

Overrides​

BaseContract.filters


interface​

interface: IERC20Interface

Defined in: contracts/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.ts:118

The contract Interface.

Overrides​

BaseContract.interface


totalSupply​

totalSupply: TypedContractMethod<[], [bigint], "view">

Defined in: contracts/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.ts:171


transfer​

transfer: TypedContractMethod<[AddressLike, BigNumberish], [boolean], "nonpayable">

Defined in: contracts/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.ts:173


transferFrom​

transferFrom: TypedContractMethod<[AddressLike, AddressLike, BigNumberish], [boolean], "nonpayable">

Defined in: contracts/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.ts:179

Methods​

connect()​

connect(runner?): IERC20

Defined in: contracts/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.ts:115

Return a new Contract instance with the same target and ABI, but a different %%runner%%.

Parameters​

runner?​

ContractRunner | null

Returns​

IERC20

Overrides​

BaseContract.connect


getEvent()​

Call Signature​

getEvent(key): TypedContractEvent<InputTuple, OutputTuple, OutputObject>

Defined in: contracts/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.ts:224

Return the event for a given name. This is useful when a contract event name conflicts with a JavaScript name such as prototype or when using a Contract programatically.

Parameters​
key​

"Approval"

Returns​

TypedContractEvent<InputTuple, OutputTuple, OutputObject>

Overrides​

BaseContract.getEvent

Call Signature​

getEvent(key): TypedContractEvent<InputTuple, OutputTuple, OutputObject>

Defined in: contracts/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.ts:231

Return the event for a given name. This is useful when a contract event name conflicts with a JavaScript name such as prototype or when using a Contract programatically.

Parameters​
key​

"Transfer"

Returns​

TypedContractEvent<InputTuple, OutputTuple, OutputObject>

Overrides​

BaseContract.getEvent


getFunction()​

Call Signature​

getFunction<T>(key): T

Defined in: contracts/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.ts:185

Return the function for a given name. This is useful when a contract method name conflicts with a JavaScript name such as prototype or when using a Contract programatically.

Type Parameters​
T​

T extends ContractMethod<any[], any, any> = ContractMethod<any[], any, any>

Parameters​
key​

string | FunctionFragment

Returns​

T

Overrides​

BaseContract.getFunction

Call Signature​

getFunction(nameOrSignature): TypedContractMethod<[AddressLike, AddressLike], [bigint], "view">

Defined in: contracts/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.ts:189

Return the function for a given name. This is useful when a contract method name conflicts with a JavaScript name such as prototype or when using a Contract programatically.

Parameters​
nameOrSignature​

"allowance"

Returns​

TypedContractMethod<[AddressLike, AddressLike], [bigint], "view">

Overrides​

BaseContract.getFunction

Call Signature​

getFunction(nameOrSignature): TypedContractMethod<[AddressLike, BigNumberish], [boolean], "nonpayable">

Defined in: contracts/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.ts:196

Return the function for a given name. This is useful when a contract method name conflicts with a JavaScript name such as prototype or when using a Contract programatically.

Parameters​
nameOrSignature​

"approve"

Returns​

TypedContractMethod<[AddressLike, BigNumberish], [boolean], "nonpayable">

Overrides​

BaseContract.getFunction

Call Signature​

getFunction(nameOrSignature): TypedContractMethod<[AddressLike], [bigint], "view">

Defined in: contracts/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.ts:203

Return the function for a given name. This is useful when a contract method name conflicts with a JavaScript name such as prototype or when using a Contract programatically.

Parameters​
nameOrSignature​

"balanceOf"

Returns​

TypedContractMethod<[AddressLike], [bigint], "view">

Overrides​

BaseContract.getFunction

Call Signature​

getFunction(nameOrSignature): TypedContractMethod<[], [bigint], "view">

Defined in: contracts/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.ts:206

Return the function for a given name. This is useful when a contract method name conflicts with a JavaScript name such as prototype or when using a Contract programatically.

Parameters​
nameOrSignature​

"totalSupply"

Returns​

TypedContractMethod<[], [bigint], "view">

Overrides​

BaseContract.getFunction

Call Signature​

getFunction(nameOrSignature): TypedContractMethod<[AddressLike, BigNumberish], [boolean], "nonpayable">

Defined in: contracts/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.ts:209

Return the function for a given name. This is useful when a contract method name conflicts with a JavaScript name such as prototype or when using a Contract programatically.

Parameters​
nameOrSignature​

"transfer"

Returns​

TypedContractMethod<[AddressLike, BigNumberish], [boolean], "nonpayable">

Overrides​

BaseContract.getFunction

Call Signature​

getFunction(nameOrSignature): TypedContractMethod<[AddressLike, AddressLike, BigNumberish], [boolean], "nonpayable">

Defined in: contracts/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.ts:216

Return the function for a given name. This is useful when a contract method name conflicts with a JavaScript name such as prototype or when using a Contract programatically.

Parameters​
nameOrSignature​

"transferFrom"

Returns​

TypedContractMethod<[AddressLike, AddressLike, BigNumberish], [boolean], "nonpayable">

Overrides​

BaseContract.getFunction


listeners()​

Call Signature​

listeners<TCEvent>(event): Promise<TypedListener<TCEvent>[]>

Defined in: contracts/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.ts:149

Resolves to the listeners subscribed to %%event%% or all listeners if unspecified.

Type Parameters​
TCEvent​

TCEvent extends TypedContractEvent<any, any, any>

Parameters​
event​

TCEvent

Returns​

Promise<TypedListener<TCEvent>[]>

Overrides​

BaseContract.listeners

Call Signature​

listeners(eventName?): Promise<Listener[]>

Defined in: contracts/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.ts:152

Resolves to the listeners subscribed to %%event%% or all listeners if unspecified.

Parameters​
eventName?​

string

Returns​

Promise<Listener[]>

Overrides​

BaseContract.listeners


on()​

Call Signature​

on<TCEvent>(event, listener): Promise<IERC20>

Defined in: contracts/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.ts:131

Add an event %%listener%% for the %%event%%.

Type Parameters​
TCEvent​

TCEvent extends TypedContractEvent<any, any, any>

Parameters​
event​

TCEvent

listener​

TypedListener<TCEvent>

Returns​

Promise<IERC20>

Overrides​

BaseContract.on

Call Signature​

on<TCEvent>(filter, listener): Promise<IERC20>

Defined in: contracts/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.ts:135

Add an event %%listener%% for the %%event%%.

Type Parameters​
TCEvent​

TCEvent extends TypedContractEvent<any, any, any>

Parameters​
filter​

TypedDeferredTopicFilter<TCEvent>

listener​

TypedListener<TCEvent>

Returns​

Promise<IERC20>

Overrides​

BaseContract.on


once()​

Call Signature​

once<TCEvent>(event, listener): Promise<IERC20>

Defined in: contracts/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.ts:140

Add an event %%listener%% for the %%event%%, but remove the listener after it is fired once.

Type Parameters​
TCEvent​

TCEvent extends TypedContractEvent<any, any, any>

Parameters​
event​

TCEvent

listener​

TypedListener<TCEvent>

Returns​

Promise<IERC20>

Overrides​

BaseContract.once

Call Signature​

once<TCEvent>(filter, listener): Promise<IERC20>

Defined in: contracts/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.ts:144

Add an event %%listener%% for the %%event%%, but remove the listener after it is fired once.

Type Parameters​
TCEvent​

TCEvent extends TypedContractEvent<any, any, any>

Parameters​
filter​

TypedDeferredTopicFilter<TCEvent>

listener​

TypedListener<TCEvent>

Returns​

Promise<IERC20>

Overrides​

BaseContract.once


queryFilter()​

Call Signature​

queryFilter<TCEvent>(event, fromBlockOrBlockhash?, toBlock?): Promise<TypedEventLog<TCEvent>[]>

Defined in: contracts/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.ts:120

Provide historic access to event data for %%event%% in the range %%fromBlock%% (default: 0) to %%toBlock%% (default: "latest") inclusive.

Type Parameters​
TCEvent​

TCEvent extends TypedContractEvent<any, any, any>

Parameters​
event​

TCEvent

fromBlockOrBlockhash?​

string | number

toBlock?​

string | number

Returns​

Promise<TypedEventLog<TCEvent>[]>

Overrides​

BaseContract.queryFilter

Call Signature​

queryFilter<TCEvent>(filter, fromBlockOrBlockhash?, toBlock?): Promise<TypedEventLog<TCEvent>[]>

Defined in: contracts/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.ts:125

Provide historic access to event data for %%event%% in the range %%fromBlock%% (default: 0) to %%toBlock%% (default: "latest") inclusive.

Type Parameters​
TCEvent​

TCEvent extends TypedContractEvent<any, any, any>

Parameters​
filter​

TypedDeferredTopicFilter<TCEvent>

fromBlockOrBlockhash?​

string | number

toBlock?​

string | number

Returns​

Promise<TypedEventLog<TCEvent>[]>

Overrides​

BaseContract.queryFilter


removeAllListeners()​

removeAllListeners<TCEvent>(event?): Promise<IERC20>

Defined in: contracts/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.ts:153

Remove all the listeners for %%event%% or remove all listeners if unspecified.

Type Parameters​

TCEvent​

TCEvent extends TypedContractEvent<any, any, any>

Parameters​

event?​

TCEvent

Returns​

Promise<IERC20>

Overrides​

BaseContract.removeAllListeners


waitForDeployment()​

waitForDeployment(): Promise<IERC20>

Defined in: contracts/typechain-types/@openzeppelin/contracts/token/ERC20/IERC20.ts:116

Resolve to this Contract once the bytecode has been deployed, or resolve immediately if already deployed.

Returns​

Promise<IERC20>

Overrides​

BaseContract.waitForDeployment