SmartToken 1.0 KB

12345678910111213141516
  1. SmartToken
  2. =============================================
  3. Inherits from contract StandardToken. Implementation of a ERC20 compatible token with methods to transfer value and execute calls in transfers and approvals (see https://github.com/ethereum/EIPs/issues/20)
  4. approveData(address _spender, uint _value, bytes _data) returns (bool success)
  5. """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
  6. It allows to approve the transfer of value and execute a call with the sent data.
  7. function transferData(address _to, uint _value, bytes _data) returns (bool success)
  8. """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
  9. Transfer tokens to a specified address and execute a call with the sent data on the same transaction
  10. transferDataFrom(address _from, address _to, uint _value, bytes _data) returns (bool success)
  11. """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
  12. Transfer tokens from one address to another and make a contract call on the same transaction