ERC721FullMock.sol 793 B

123456789101112131415161718192021222324252627282930
  1. pragma solidity ^0.4.24;
  2. import "../token/ERC721/ERC721Full.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 ERC721FullMock is ERC721Full, ERC721Mintable, ERC721Burnable {
  11. constructor(string name, string symbol) public
  12. ERC721Mintable()
  13. ERC721Full(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. }