ERC721FullMock.sol 945 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 public functions for setting metadata URI, getting all tokens of an owner,
  9. * checking token existence, removal of a token from an address
  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 tokensOfOwner(address owner) public view returns (uint256[] memory) {
  17. return _tokensOfOwner(owner);
  18. }
  19. function setTokenURI(uint256 tokenId, string uri) public {
  20. _setTokenURI(tokenId, uri);
  21. }
  22. }