Expand description
@dev Interface of the ERC-20 standard as defined in the ERC.
interface IERC20 {
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address to, uint256 value) external returns (bool);
function allowance(address owner, address spender) external view returns (uint256);
function approve(address spender, uint256 value) external returns (bool);
function transferFrom(address from, address to, uint256 value) external returns (bool);
}
Structs§
- Approval
- @dev Emitted when the allowance of a
spender
for anowner
is set by a call to {approve}.value
is the new allowance. Event with signatureApproval(address,address,uint256)
and selector0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925
. - Transfer
- @dev Emitted when
value
tokens are moved from one account (from
) to another (to
). - allowance
Call - @dev Returns the remaining number of tokens that
spender
will be allowed to spend on behalf ofowner
through {transferFrom}. This is zero by default. - allowance
Return - @dev Returns the remaining number of tokens that
spender
will be allowed to spend on behalf ofowner
through {transferFrom}. This is zero by default. - approve
Call - @dev Sets a
value
amount of tokens as the allowance ofspender
over the caller’s tokens. - approve
Return - @dev Sets a
value
amount of tokens as the allowance ofspender
over the caller’s tokens. - balance
OfCall - @dev Returns the value of tokens owned by
account
. Function with signaturebalanceOf(address)
and selector0x70a08231
. - balance
OfReturn - @dev Returns the value of tokens owned by
account
. Container type for the return parameters of thebalanceOf(address)
function. - total
Supply Call - @dev Returns the value of tokens in existence.
Function with signature
totalSupply()
and selector0x18160ddd
. - total
Supply Return - @dev Returns the value of tokens in existence.
Container type for the return parameters of the
totalSupply()
function. - transfer
Call - @dev Moves a
value
amount of tokens from the caller’s account toto
. - transfer
From Call - @dev Moves a
value
amount of tokens fromfrom
toto
using the allowance mechanism.value
is then deducted from the caller’s allowance. - transfer
From Return - @dev Moves a
value
amount of tokens fromfrom
toto
using the allowance mechanism.value
is then deducted from the caller’s allowance. - transfer
Return - @dev Moves a
value
amount of tokens from the caller’s account toto
.
Enums§
- IERC20
Calls - Container for all the
IERC20
function calls. - IERC20
Events - Container for all the
IERC20
events.