Merge pull request #29 from trailofbits/patch/11/nft-metadata

Use Metadata in NFT
This commit is contained in:
Ricardo Guilherme Schmidt 2019-07-19 14:03:05 -03:00 committed by GitHub
commit e011c84cbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -1,13 +1,13 @@
pragma solidity >=0.5.0 <0.6.0;
import "../../openzeppelin/token/ERC721/ERC721Enumerable.sol";
import "../../openzeppelin/token/ERC721/ERC721Full.sol";
import "../../common/Controlled.sol";
import "../../common/TokenClaimer.sol";
/**
* @author Ricardo Guilherme Schmidt (Status Research & Development GmbH)
*/
contract StickerPack is Controlled, TokenClaimer, ERC721Enumerable {
contract StickerPack is Controlled, TokenClaimer, ERC721Full("Status Sticker Pack","STKP") {
mapping(uint256 => uint256) public tokenPackId; //packId
uint256 public tokenCount; //tokens buys

View File

@ -1,7 +1,7 @@
pragma solidity >=0.5.0 <0.6.0;
import "../../openzeppelin/math/SafeMath.sol";
import "../../openzeppelin/token/ERC721/ERC721Enumerable.sol";
import "../../openzeppelin/token/ERC721/ERC721Full.sol";
import "../../common/Controlled.sol";
import "../../common/TokenClaimer.sol";
@ -9,7 +9,7 @@ import "../../common/TokenClaimer.sol";
* @author Ricardo Guilherme Schmidt (Status Research & Development GmbH)
* StickerMarket allows any address register "StickerPack" which can be sold to any address in form of "StickerPack", an ERC721 token.
*/
contract StickerType is Controlled, TokenClaimer, ERC721Enumerable {
contract StickerType is Controlled, TokenClaimer, ERC721Full("Status Sticker Pack Authorship","STKA") {
using SafeMath for uint256;
event Register(uint256 indexed packId, uint256 dataPrice, bytes _contenthash);
event PriceChanged(uint256 indexed packId, uint256 dataPrice);