ERC721FullMock.sol 1.0 KB

1234567891011121314151617181920212223242526272829
  1. pragma solidity ^0.5.2;
  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 memory name, string memory symbol) public ERC721Mintable() ERC721Full(name, symbol) {
  13. // solhint-disable-previous-line no-empty-blocks
  14. }
  15. function exists(uint256 tokenId) public view returns (bool) {
  16. return _exists(tokenId);
  17. }
  18. function tokensOfOwner(address owner) public view returns (uint256[] memory) {
  19. return _tokensOfOwner(owner);
  20. }
  21. function setTokenURI(uint256 tokenId, string memory uri) public {
  22. _setTokenURI(tokenId, uri);
  23. }
  24. }