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
This commit is contained in:
AugustoL
2017-10-26 19:48:29 -04:00
parent 94697726f5
commit a4b1cd6e31
5 changed files with 459 additions and 0 deletions

16
docs/source/SmartToken Normal file
View File

@ -0,0 +1,16 @@
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