ERC827.sol 643 B

12345678910111213141516171819202122232425
  1. pragma solidity ^0.4.21;
  2. import "../ERC20/ERC20.sol";
  3. /**
  4. * @title ERC827 interface, an extension of ERC20 token standard
  5. *
  6. * @dev Interface of a ERC827 token, following the ERC20 standard with extra
  7. * @dev methods to transfer value and data and execute calls in transfers and
  8. * @dev approvals.
  9. */
  10. contract ERC827 is ERC20 {
  11. function approve(address _spender, uint256 _value, bytes _data) public returns (bool);
  12. function transfer(address _to, uint256 _value, bytes _data) public returns (bool);
  13. function transferFrom(
  14. address _from,
  15. address _to,
  16. uint256 _value,
  17. bytes _data
  18. )
  19. public
  20. returns (bool);
  21. }