IERC721Basic.sol 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. pragma solidity ^0.4.24;
  2. import "../../introspection/IERC165.sol";
  3. /**
  4. * @title ERC721 Non-Fungible Token Standard basic interface
  5. * @dev see https://github.com/ethereum/EIPs/blob/master/EIPS/eip-721.md
  6. */
  7. contract IERC721Basic is IERC165 {
  8. event Transfer(
  9. address indexed from,
  10. address indexed to,
  11. uint256 indexed tokenId
  12. );
  13. event Approval(
  14. address indexed owner,
  15. address indexed approved,
  16. uint256 indexed tokenId
  17. );
  18. event ApprovalForAll(
  19. address indexed owner,
  20. address indexed operator,
  21. bool approved
  22. );
  23. function balanceOf(address _owner) public view returns (uint256 _balance);
  24. function ownerOf(uint256 _tokenId) public view returns (address _owner);
  25. function approve(address _to, uint256 _tokenId) public;
  26. function getApproved(uint256 _tokenId)
  27. public view returns (address _operator);
  28. function setApprovalForAll(address _operator, bool _approved) public;
  29. function isApprovedForAll(address _owner, address _operator)
  30. public view returns (bool);
  31. function transferFrom(address _from, address _to, uint256 _tokenId) public;
  32. function safeTransferFrom(address _from, address _to, uint256 _tokenId)
  33. public;
  34. function safeTransferFrom(
  35. address _from,
  36. address _to,
  37. uint256 _tokenId,
  38. bytes _data
  39. )
  40. public;
  41. }