EIP20NonStandardInterface (EIP20NonStandardInterface.sol)

View Source: contracts/EIP20NonStandardInterface.sol

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

Contract Members

Constants & Variables

uint256 public totalSupply;

Events

event Transfer(address indexed _from, address indexed _to, uint256  _value);
event Approval(address indexed _owner, address indexed _spender, uint256  _value);

Functions

  • balanceOf(address _owner)

  • transfer(address _to, uint256 _value)

  • transferFrom(address _from, address _to, uint256 _value)

  • approve(address _spender, uint256 _value)

  • allowance(address _owner, address _spender)

balanceOf

function balanceOf(address _owner) public view
returns(balance uint256)

Returns

The balance

Arguments

transfer

send _value token to _to from msg.sender

function transfer(address _to, uint256 _value) public nonpayable

Returns

Whether the transfer was successful or not

Arguments

transferFrom

send _value token to _to from _from on the condition it is approved by _from

function transferFrom(address _from, address _to, uint256 _value) public nonpayable

Returns

Whether the transfer was successful or not

Arguments

approve

msg.sender approves _spender to spend _value tokens

function approve(address _spender, uint256 _value) public nonpayable
returns(success bool)

Returns

Whether the approval was successful or not

Arguments

allowance

function allowance(address _owner, address _spender) public view
returns(remaining uint256)

Returns

Amount of remaining tokens allowed to spent

Arguments

Last updated