ERC721PausableMock.sol 746 B

12345678910111213141516171819202122232425262728293031
  1. pragma solidity ^0.6.0;
  2. import "../token/ERC721/ERC721Pausable.sol";
  3. /**
  4. * @title ERC721PausableMock
  5. * This mock just provides a public mint, burn and exists functions for testing purposes
  6. */
  7. contract ERC721PausableMock is ERC721Pausable {
  8. constructor (string memory name, string memory symbol) public ERC721(name, symbol) { }
  9. function mint(address to, uint256 tokenId) public {
  10. super._mint(to, tokenId);
  11. }
  12. function burn(uint256 tokenId) public {
  13. super._burn(tokenId);
  14. }
  15. function exists(uint256 tokenId) public view returns (bool) {
  16. return super._exists(tokenId);
  17. }
  18. function pause() external {
  19. _pause();
  20. }
  21. function unpause() external {
  22. _unpause();
  23. }
  24. }