From 5fc5ded661f8b6f59763ec26c5c4b8dd7430e369 Mon Sep 17 00:00:00 2001 From: Facundo Spagnuolo Date: Tue, 16 Jan 2018 15:57:44 -0300 Subject: [PATCH] Provide ERC721 required functionality interface --- contracts/token/ERC721.sol | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 contracts/token/ERC721.sol diff --git a/contracts/token/ERC721.sol b/contracts/token/ERC721.sol new file mode 100644 index 000000000..f88376f61 --- /dev/null +++ b/contracts/token/ERC721.sol @@ -0,0 +1,16 @@ +pragma solidity ^0.4.18; + +/** + * @title ERC721 interface + * @dev see https://github.com/ethereum/eips/issues/721 + */ +contract ERC721 { + event Transfer(address indexed _from, address indexed _to, uint256 _tokenId); + event Approval(address indexed _owner, address indexed _approved, uint256 _tokenId); + + function balanceOf(address _owner) public view returns (uint256 _balance); + function ownerOf(uint256 _tokenId) public view returns (address _owner); + function transfer(address _to, uint256 _tokenId) public; + function approve(address _to, uint256 _tokenId) public; + function takeOwnership(uint256 _tokenId) public; +}