Skip to content

Instantly share code, notes, and snippets.

@aunyks
Created December 20, 2017 01:03
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save aunyks/2d148a77150247f6f9745286ff46fc53 to your computer and use it in GitHub Desktop.
Save aunyks/2d148a77150247f6f9745286ff46fc53 to your computer and use it in GitHub Desktop.
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);
}
@Manasse228
Copy link

i like

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment