standardtoken.rst 1.5 KB

1234567891011121314151617181920212223242526
  1. StandardToken
  2. =============================================
  3. Based on code by FirstBlood: `Link FirstBloodToken.sol <https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol/>`_
  4. Inherits from contract SafeMath. Implementation of abstract contract ERC20 (see https://github.com/ethereum/EIPs/issues/20)
  5. approve(address _spender, uint _value) returns (bool success)
  6. """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
  7. Sets the amount of the sender's token balance that the passed address is approved to use.
  8. allowance(address _owner, address _spender) constant returns (uint remaining)
  9. """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
  10. Returns the approved amount of the owner's balance that the spender can use.
  11. balanceOf(address _owner) constant returns (uint balance)
  12. """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
  13. Returns the token balance of the passed address.
  14. transferFrom(address _from, address _to, uint _value) returns (bool success)
  15. """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
  16. Transfers tokens from an account that the sender is approved to transfer from. Amount must not be greater than the approved amount or the account's balance.
  17. function transfer(address _to, uint _value) returns (bool success)
  18. """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
  19. Transfers tokens from sender's account. Amount must not be greater than sender's balance.