all files / contracts/mocks/ MockSpanningERC721Pausable.sol

42.86% Statements 3/7
100% Branches 0/0
50% Functions 4/8
42.86% Lines 3/7
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52                                                                                                 
// SPDX-License-Identifier: MIT
// SPDX-FileCopyrightText: Copyright (C) 2022 Spanning Labs Inc.
 
pragma solidity ^0.8.0;
 
import "../token/ERC721/SpanningERC721.sol";
import "../token/ERC721/extensions/SpanningERC721Pausable.sol";
 
/**
 * @title ERC721PausableMock
 * This mock just provides a public mint, burn and exists functions for testing purposes
 */
contract MockSpanningERC721Pausable is SpanningERC721Pausable {
    constructor(
        string memory name,
        string memory symbol,
        address delegate
    ) SpanningERC721(name, symbol, delegate) {}
 
    function pause() external {
        _pause();
    }
 
    function unpause() external {
        _unpause();
    }
 
    function exists(uint256 tokenId) public view returns (bool) {
        return _exists(tokenId);
    }
 
    function mint(bytes32 to, uint256 tokenId) public {
        _mint(to, tokenId);
    }
 
    function safeMint(bytes32 to, uint256 tokenId) public {
        _safeMint(to, tokenId);
    }
 
    function safeMint(
        bytes32 to,
        uint256 tokenId,
        bytes memory _data
    ) public {
        _safeMint(to, tokenId, _data);
    }
 
    function burn(uint256 tokenId) public {
        _burn(tokenId);
    }
}