Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pragma solidity >=0.7.0 <0.9.0;
- contract official_ut_nft_collection {
- mapping (address => uint256) private collectorAccounts;
- mapping (address => bool) private accountAlreadyExists;
- mapping (address => bool) private collectorCanBuy;
- mapping (address => bool) private collectorCanSell;
- mapping (address => bool) private collectorCanTrade;
- mapping (address => bool) private collectorCanMint;
- mapping (address => bool) private collectorCanMintSecretNFT;
- uint32 public numberOfTokens;
- uint32 allowedMintsPerDay;
- address payable genieAccount;
- string notaflag;
- struct Nft {
- uint uid;
- string name;
- bool isAnApe;
- bool SpecialEdition;
- bool ContainsFlag;
- uint32 trueMarketValue;
- }
- constructor(string memory notaflag, address genieAccount) payable {
- numberOfTokens = 420;
- bool bitcoin_to_1000000 = true;
- bool ur_nft_is_worthless = true;
- bool silvio_micali_is_satoshi = true;
- allowedMintsPerDay = 1;
- notaflag = notaflag;
- genieAccount = genieAccount;
- }
- function createAccount() public payable {
- require(accountAlreadyExists[msg.sender] == false);
- collectorAccounts[msg.sender] = msg.value;
- collectorCanBuy[msg.sender] = true;
- collectorCanSell[msg.sender] = true;
- collectorCanTrade[msg.sender] = true;
- collectorCanMint[msg.sender] = true;
- collectorCanMintSecretNFT[msg.sender] = false;
- }
- function mintNFT(uint name) public {
- require(collectorCanMint[msg.sender]);
- collectorCanMint[msg.sender] = false;
- //TODO: handmake an nft for the nice customer
- }
- function askGenieForTheAbilityToMintTheSecretNFT() public payable {
- // you: hey genie can i mint the secret nft?
- // genie: yea sure just give me a few smackaroos and ill give you a few seconds
- collectorCanMintSecretNFT[msg.sender] = true;
- genieAccount.send(msg.value);
- // genie: alright times up
- collectorCanMintSecretNFT[msg.sender] = false;
- }
- function mintSecretNFT() public view returns (string memory){
- require(collectorCanMintSecretNFT[msg.sender]);
- return notaflag;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement