* Add IERC721Metadata implementation into ERC721 * Add IERC721Enumerable into ERC721 * Update ERC721Pausable and ERC721Burnable * Delete ERC721Metadata, ERC721Enumerable and ERC721 (now ERC721) * Update mocks * Update tests * Update contracts/token/ERC721/ERC721.sol Co-Authored-By: Francisco Giordano <frangio.1@gmail.com> * Make ERC721Pausable and ERC721Burnable abstract Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
32 lines
746 B
Solidity
32 lines
746 B
Solidity
pragma solidity ^0.6.0;
|
|
|
|
import "../token/ERC721/ERC721Pausable.sol";
|
|
|
|
/**
|
|
* @title ERC721PausableMock
|
|
* This mock just provides a public mint, burn and exists functions for testing purposes
|
|
*/
|
|
contract ERC721PausableMock is ERC721Pausable {
|
|
constructor (string memory name, string memory symbol) public ERC721(name, symbol) { }
|
|
|
|
function mint(address to, uint256 tokenId) public {
|
|
super._mint(to, tokenId);
|
|
}
|
|
|
|
function burn(uint256 tokenId) public {
|
|
super._burn(tokenId);
|
|
}
|
|
|
|
function exists(uint256 tokenId) public view returns (bool) {
|
|
return super._exists(tokenId);
|
|
}
|
|
|
|
function pause() external {
|
|
_pause();
|
|
}
|
|
|
|
function unpause() external {
|
|
_unpause();
|
|
}
|
|
}
|