Merge pull request #29 from trailofbits/patch/11/nft-metadata
Use Metadata in NFT
This commit is contained in:
commit
e011c84cbc
|
@ -1,13 +1,13 @@
|
||||||
pragma solidity >=0.5.0 <0.6.0;
|
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/Controlled.sol";
|
||||||
import "../../common/TokenClaimer.sol";
|
import "../../common/TokenClaimer.sol";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Ricardo Guilherme Schmidt (Status Research & Development GmbH)
|
* @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
|
mapping(uint256 => uint256) public tokenPackId; //packId
|
||||||
uint256 public tokenCount; //tokens buys
|
uint256 public tokenCount; //tokens buys
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
pragma solidity >=0.5.0 <0.6.0;
|
pragma solidity >=0.5.0 <0.6.0;
|
||||||
|
|
||||||
import "../../openzeppelin/math/SafeMath.sol";
|
import "../../openzeppelin/math/SafeMath.sol";
|
||||||
import "../../openzeppelin/token/ERC721/ERC721Enumerable.sol";
|
import "../../openzeppelin/token/ERC721/ERC721Full.sol";
|
||||||
import "../../common/Controlled.sol";
|
import "../../common/Controlled.sol";
|
||||||
import "../../common/TokenClaimer.sol";
|
import "../../common/TokenClaimer.sol";
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ import "../../common/TokenClaimer.sol";
|
||||||
* @author Ricardo Guilherme Schmidt (Status Research & Development GmbH)
|
* @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.
|
* 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;
|
using SafeMath for uint256;
|
||||||
event Register(uint256 indexed packId, uint256 dataPrice, bytes _contenthash);
|
event Register(uint256 indexed packId, uint256 dataPrice, bytes _contenthash);
|
||||||
event PriceChanged(uint256 indexed packId, uint256 dataPrice);
|
event PriceChanged(uint256 indexed packId, uint256 dataPrice);
|
||||||
|
|
Loading…
Reference in New Issue