- Tests for new features are pending - ERC721 is abstract, since it requires metadata implementation - Move some methods into DeprecatedERC721 contract - Reorganise base vs full implementation - Pending tokenByIndex
19 lines
627 B
Solidity
19 lines
627 B
Solidity
pragma solidity ^0.4.18;
|
|
|
|
import "./ERC721Basic.sol";
|
|
|
|
contract ERC721Enumerable is ERC721Basic {
|
|
function totalSupply() public view returns (uint256);
|
|
function tokenOfOwnerByIndex(address _owner, uint256 _index) public view returns (uint256 _tokenId);
|
|
// function tokenByIndex(uint256 _index) public view returns (uint256);
|
|
}
|
|
|
|
contract ERC721Metadata is ERC721Basic {
|
|
function name() public view returns (string _name);
|
|
function symbol() public view returns (string _symbol);
|
|
function tokenURI(uint256 _tokenId) public view returns (string);
|
|
}
|
|
|
|
contract ERC721 is ERC721Basic, ERC721Enumerable, ERC721Metadata {
|
|
}
|