I'm working on a new ERC721 Crypto-Collectible
project, which also means creating an Auction
and Marketplace
functionalities into the whole thing.
Should I just start with a basic ERC721
Contract - using the open-zeppelin
library, and then write all this other functionality into it? Or is there some logistical/practical reason to keep the ERC721 Collectable
contract separate from the Auction/Marketplace
contract?
Here's my starting point:
contract MyCollectable is ERC721Full {
constructor (string memory _name, string memory _symbol) public
ERC721Full(_name, _symbol) {
}
/**
* Custom accessor to create a unique token
*/
function mintUniqueTokenTo(address _to, uint256 _tokenId, string memory _tokenURI)
public {
super._mint(_to, _tokenId);
super._setTokenURI(_tokenId, _tokenURI);
}
}