Created
December 20, 2017 01:03
-
-
Save aunyks/2d148a77150247f6f9745286ff46fc53 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
contract ERC721 { | |
// ERC20 compatible functions | |
function name() constant returns (string name); | |
function symbol() constant returns (string symbol); | |
function totalSupply() constant returns (uint256 totalSupply); | |
function balanceOf(address _owner) constant returns (uint balance); | |
// Functions that define ownership | |
function ownerOf(uint256 _tokenId) constant returns (address owner); | |
function approve(address _to, uint256 _tokenId); | |
function takeOwnership(uint256 _tokenId); | |
function transfer(address _to, uint256 _tokenId); | |
function tokenOfOwnerByIndex(address _owner, uint256 _index) constant returns (uint tokenId); | |
// Token metadata | |
function tokenMetadata(uint256 _tokenId) constant returns (string infoUrl); | |
// Events | |
event Transfer(address indexed _from, address indexed _to, uint256 _tokenId); | |
event Approval(address indexed _owner, address indexed _approved, uint256 _tokenId); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
i like