ERC827Token
contract ERC827Token
is ERC827, StandardToken
Approvals. * @dev Uses OpenZeppelin StandardToken.
Source: token/ERC827/ERC827Token.sol
Reference
Functions
approveAndCall
function approveAndCall(address _spender, uint256 _value, bytes _data) public payable returns (bool)
Https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729 * @param _spender The address that will spend the funds.
- Parameters:
_spender
- address_value
- The amount of tokens to be spent._data
- ABI-encoded contract call to call `_to` address. * @return true if the call function was executed successfully- Returns:
- bool
decreaseApprovalAndCall
function decreaseApprovalAndCall(address _spender, uint _subtractedValue, bytes _data) public payable returns (bool)
From MonolithDAO Token.sol * @param _spender The address which will spend the funds.
- Parameters:
_spender
- address_subtractedValue
- The amount of tokens to decrease the allowance by._data
- ABI-encoded contract call to call `_spender` address.- Returns:
- bool
increaseApprovalAndCall
function increaseApprovalAndCall(address _spender, uint _addedValue, bytes _data) public payable returns (bool)
From MonolithDAO Token.sol * @param _spender The address which will spend the funds.
- Parameters:
_spender
- address_addedValue
- The amount of tokens to increase the allowance by._data
- ABI-encoded contract call to call `_spender` address.- Returns:
- bool
transferAndCall
function transferAndCall(address _to, uint256 _value, bytes _data) public payable returns (bool)
Address and execute a call with the sent data on the same transaction * @param _to address The address which you want to transfer to.
- Parameters:
_to
- address_value
- uint256 the amout of tokens to be transfered_data
- ABI-encoded contract call to call `_to` address. * @return true if the call function was executed successfully- Returns:
- bool
transferFromAndCall
function transferFromAndCall(address _from, address _to, uint256 _value, bytes _data) public payable returns (bool)
Another and make a contract call on the same transaction * @param _from The address which you want to send tokens from.
- Parameters:
_from
- address_to
- The address which you want to transfer to_value
- The amout of tokens to be transferred_data
- ABI-encoded contract call to call `_to` address. * @return true if the call function was executed successfully- Returns:
- bool