ERC721Mock.sol 791 B

123456789101112131415161718192021222324252627282930
  1. pragma solidity ^0.4.24;
  2. import "../token/ERC721/ERC721.sol";
  3. import "../token/ERC721/ERC721Mintable.sol";
  4. import "../token/ERC721/ERC721Burnable.sol";
  5. /**
  6. * @title ERC721Mock
  7. * This mock just provides a public mint and burn functions for testing purposes,
  8. * and a public setter for metadata URI
  9. */
  10. contract ERC721Mock is ERC721, ERC721Mintable, ERC721Burnable {
  11. constructor(string _name, string _symbol) public
  12. ERC721Mintable()
  13. ERC721(_name, _symbol)
  14. {}
  15. function exists(uint256 _tokenId) public view returns (bool) {
  16. return _exists(_tokenId);
  17. }
  18. function setTokenURI(uint256 _tokenId, string _uri) public {
  19. _setTokenURI(_tokenId, _uri);
  20. }
  21. function removeTokenFrom(address _from, uint256 _tokenId) public {
  22. _removeTokenFrom(_from, _tokenId);
  23. }
  24. }