EIP 20 Non Standard Interface
EIP20NonStandardInterface
Version of ERC20 with no return values for transfer
and transferFrom
See https://medium.com/coinmonks/missing-return-value-bug-at-least-130-tokens-affected-d67bf08521ca
Methods
allowance
Get the current allowance from owner
for spender
Parameters
Name | Type | Description |
---|---|---|
owner | address | The address of the account which owns the tokens to be spent |
spender | address | The address of the account which may transfer tokens return The number of tokens allowed to be spent |
Returns
Name | Type | Description |
---|---|---|
remaining | uint256 | undefined |
approve
Approve spender
to transfer up to amount
from src
This will overwrite the approval amount for spender
and is subject to issues noted here
Parameters
Name | Type | Description |
---|---|---|
spender | address | The address of the account which may transfer tokens |
amount | uint256 | The number of tokens that are approved return Whether or not the approval succeeded |
Returns
Name | Type | Description |
---|---|---|
success | bool | undefined |
balanceOf
Gets the balance of the specified address
Parameters
Name | Type | Description |
---|---|---|
owner | address | The address from which the balance will be retrieved |
Returns
Name | Type | Description |
---|---|---|
balance | uint256 | undefined |
totalSupply
Get the total number of tokens in circulation
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | The supply of tokens |
transfer
Transfer amount
tokens from msg.sender
to dst
Parameters
Name | Type | Description |
---|---|---|
dst | address | The address of the destination account |
amount | uint256 | The number of tokens to transfer |
transferFrom
Transfer amount
tokens from src
to dst
Parameters
Name | Type | Description |
---|---|---|
src | address | The address of the source account |
dst | address | The address of the destination account |
amount | uint256 | The number of tokens to transfer |
Events
Approval
Parameters
Name | Type | Description |
---|---|---|
owner | address | undefined |
spender | address | undefined |
amount | uint256 | undefined |
Transfer
Parameters
Name | Type | Description |
---|---|---|
from | address | undefined |
to | address | undefined |
amount | uint256 | undefined |
Last updated