all files / contracts/mocks/ MockSpanningERC721.sol

100% Statements 5/5
100% Branches 0/0
100% Functions 6/6
100% Lines 5/5
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                                                                   
// SPDX-License-Identifier: MIT
// SPDX-FileCopyrightText: Copyright (C) 2022 Spanning Labs Inc.
 
pragma solidity ^0.8.0;
 
import "../token/ERC721/SpanningERC721.sol";
 
/**
 * @title MockSpanningERC721
 * This mock just provides a public safeMint, mint, and burn functions for testing purposes
 */
contract MockSpanningERC721 is SpanningERC721 {
    constructor(
        string memory name_in,
        string memory symbol_in,
        address delegate
    ) SpanningERC721(name_in, symbol_in, delegate) {}
 
    function baseURI() public view returns (string memory) {
        return _baseURI();
    }
 
    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 burn(uint256 tokenId) public {
        _burn(tokenId);
    }
}