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
spenderfor anowneris set by a call to {approve}.valueis the new allowance. Event with signatureApproval(address,address,uint256)and selector0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. - Transfer
- @dev Emitted when
valuetokens are moved from one account (from) to another (to). - allowance
Call - @dev Returns the remaining number of tokens that
spenderwill be allowed to spend on behalf ofownerthrough {transferFrom}. This is zero by default. - allowance
Return - @dev Returns the remaining number of tokens that
spenderwill be allowed to spend on behalf ofownerthrough {transferFrom}. This is zero by default. - approve
Call - @dev Sets a
valueamount of tokens as the allowance ofspenderover the caller’s tokens. - approve
Return - @dev Sets a
valueamount of tokens as the allowance ofspenderover 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
valueamount of tokens from the caller’s account toto. - transfer
From Call - @dev Moves a
valueamount of tokens fromfromtotousing the allowance mechanism.valueis then deducted from the caller’s allowance. - transfer
From Return - @dev Moves a
valueamount of tokens fromfromtotousing the allowance mechanism.valueis then deducted from the caller’s allowance. - transfer
Return - @dev Moves a
valueamount of tokens from the caller’s account toto.
Enums§
- IERC20
Calls - Container for all the
IERC20function calls. - IERC20
Events - Container for all the
IERC20events.