IERC20
ERC20 interface
see https://github.com/ethereum/EIPs/issues/20
Methods
allowance
function allowance(address owner, address spender) external view returns (uint256)
Parameters
Name | Type | Description |
---|---|---|
owner | address | undefined |
spender | address | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
approve
function approve(address spender, uint256 value) external nonpayable returns (bool)
Parameters
Name | Type | Description |
---|---|---|
spender | address | undefined |
value | uint256 | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | bool | undefined |
balanceOf
function balanceOf(address who) external view returns (uint256)
Parameters
Name | Type | Description |
---|---|---|
who | address | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
totalSupply
function totalSupply() external view returns (uint256)
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
transfer
function transfer(address to, uint256 value) external nonpayable returns (bool)
Parameters
Name | Type | Description |
---|---|---|
to | address | undefined |
value | uint256 | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | bool | undefined |
transferFrom
function transferFrom(address from, address to, uint256 value) external nonpayable returns (bool)
Parameters
Name | Type | Description |
---|---|---|
from | address | undefined |
to | address | undefined |
value | uint256 | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | bool | undefined |
Events
Approval
event Approval(address indexed owner, address indexed spender, uint256 value)
Parameters
Name | Type | Description |
---|---|---|
owner indexed | address | undefined |
spender indexed | address | undefined |
value | uint256 | undefined |
Transfer
event Transfer(address indexed from, address indexed to, uint256 value)
Parameters
Name | Type | Description |
---|---|---|
from indexed | address | undefined |
to indexed | address | undefined |
value | uint256 | undefined |