* Updated code style to 4 spaces and 120 max characters per line. * Update contracts/token/ERC721/ERC721Pausable.sol Co-Authored-By: nventuro <nicolas.venturo@gmail.com> * Update contracts/token/ERC721/IERC721.sol Co-Authored-By: nventuro <nicolas.venturo@gmail.com>
28 lines
890 B
Solidity
28 lines
890 B
Solidity
pragma solidity ^0.4.24;
|
|
|
|
import "../token/ERC721/ERC721Full.sol";
|
|
import "../token/ERC721/ERC721Mintable.sol";
|
|
import "../token/ERC721/ERC721MetadataMintable.sol";
|
|
import "../token/ERC721/ERC721Burnable.sol";
|
|
|
|
/**
|
|
* @title ERC721FullMock
|
|
* This mock just provides a public mint and burn functions for testing purposes,
|
|
* and a public setter for metadata URI
|
|
*/
|
|
contract ERC721FullMock is ERC721Full, ERC721Mintable, ERC721MetadataMintable, ERC721Burnable {
|
|
constructor (string name, string symbol) public ERC721Mintable() ERC721Full(name, symbol) {}
|
|
|
|
function exists(uint256 tokenId) public view returns (bool) {
|
|
return _exists(tokenId);
|
|
}
|
|
|
|
function setTokenURI(uint256 tokenId, string uri) public {
|
|
_setTokenURI(tokenId, uri);
|
|
}
|
|
|
|
function removeTokenFrom(address from, uint256 tokenId) public {
|
|
_removeTokenFrom(from, tokenId);
|
|
}
|
|
}
|