ERC721FullMock.sol 890 B

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