Files
openzeppelin-contracts/docs/source/SmartToken
AugustoL a4b1cd6e31 Add SmartToken contract with tests and documentation
add missing public identifier in approveData in SmartToken contract

remove constact from showMessage function in message helper contract

move Message helper contract to mocks folder

move SmartTokenMock contract to mocks folder
2018-01-11 12:57:30 -03:00

16 lines
1.0 KiB
Plaintext

SmartToken
=============================================
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)
approveData(address _spender, uint _value, bytes _data) returns (bool success)
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
It allows to approve the transfer of value and execute a call with the sent data.
function transferData(address _to, uint _value, bytes _data) returns (bool success)
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Transfer tokens to a specified address and execute a call with the sent data on the same transaction
transferDataFrom(address _from, address _to, uint _value, bytes _data) returns (bool success)
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Transfer tokens from one address to another and make a contract call on the same transaction