Contract 0x0Bc9B9F5B7c454d6BAF926E8B92062092De06C54

 

Contract Overview

Balance:
4 Ether

EtherValue:
$5,453.16 (@ $1,363.29/ETH)

Token:
 
Txn Hash
Method
Block
From
To
Value
0x2671eb5c5fe11cc8e615f90f0159ba1b802d6103e10ace184446f4eed6a7434bSafe Transfer Fr...156913592022-10-06 20:10:4751 mins ago0x1de05527aee72448987756e4ea55501a0ea410c3 IN  0x0bc9b9f5b7c454d6baf926e8b92062092de06c540 Ether0.00106128 11.87288191
0xdc6d9b7b8daa7dab760c00a611b0d6523be134999b9326c9f770691cf3d9f313Safe Transfer Fr...156913482022-10-06 20:08:3554 mins ago0x1de05527aee72448987756e4ea55501a0ea410c3 IN  0x0bc9b9f5b7c454d6baf926e8b92062092de06c540 Ether0.00099245 13.35968133
0x86d2c4d7994e8c11ad0eaac3614c9bf80ca360e2fdda9abb06fe55acabeb2741Safe Transfer Fr...156913222022-10-06 20:03:2359 mins ago0x1de05527aee72448987756e4ea55501a0ea410c3 IN  0x0bc9b9f5b7c454d6baf926e8b92062092de06c540 Ether0.00162803 18.21333721
0xdd9b6e46a52d4d64f0e0c799adb884d02971a656a91aa1adfea0f9c3db04cb2eMint156909912022-10-06 18:57:112 hrs 5 mins ago0xc48dfcf6fb4aa1492cbfeaca754b05544d471998 IN  0x0bc9b9f5b7c454d6baf926e8b92062092de06c541 Ether0.00334988 17.65921629
0x20e5b74cf20773eca80301cf614a1c7f410a94ab056bd7294b1c6134be54fe54Safe Transfer Fr...156902632022-10-06 16:30:594 hrs 31 mins ago0x6e7770c8bd8d73cc4c429ce56f5c089ad93eb30d IN  0x0bc9b9f5b7c454d6baf926e8b92062092de06c540 Ether0.00147236 16.47175557
0x0e13150c1f714218df556f84f587eeedfc8f917fbd919abf51d802b836524c35Safe Transfer Fr...156902522022-10-06 16:28:474 hrs 33 mins ago0x6e7770c8bd8d73cc4c429ce56f5c089ad93eb30d IN  0x0bc9b9f5b7c454d6baf926e8b92062092de06c540 Ether0.00142367 15.92704441
0xf56a22036c6353a8a35fa674ac428f9636d04fd462e4beac8cd84414df8d5a9fSafe Transfer Fr...156902322022-10-06 16:24:474 hrs 37 mins ago0x6e7770c8bd8d73cc4c429ce56f5c089ad93eb30d IN  0x0bc9b9f5b7c454d6baf926e8b92062092de06c540 Ether0.00152848 17.65259108
0xa562ea6029e733ca84ee4c7e55771664c4998019d4bb8ea8b495731c1a7de3c1Upgrade Mint156898942022-10-06 15:16:115 hrs 46 mins ago0x35366dfff3d9f6424a59ac35f44c5bfaa70085db IN  0x0bc9b9f5b7c454d6baf926e8b92062092de06c540 Ether0.02307077 70.24137517
0x41e87ee693a9d2e562b89c79f9c5742d134cc6b51455e158b0cd343bb691c6f9Mint156897352022-10-06 14:44:116 hrs 18 mins ago0xefdb888b3a8e1ed675d6ecc15ce0c45e09e740c8 IN  0x0bc9b9f5b7c454d6baf926e8b92062092de06c543 Ether0.00961118 21.19494726
0x38fe0c2e4811c98348e857c537c00d23bf81b8214ad1b86d680c8a3d25ae7007Upgrade Mint156896682022-10-06 14:30:356 hrs 32 mins ago0xf985f2c9d0143770748990c25da4dc32ade05863 IN  0x0bc9b9f5b7c454d6baf926e8b92062092de06c540 Ether0.00718123 21.71465807
0x763a3d0f0859cd65291ad87b9067c2d24e3ad63ccfb1d4d5483d1ea49f3aae71Safe Transfer Fr...156884552022-10-06 10:25:5910 hrs 36 mins ago0x0a264d77923e2be54d261a91ed8efa9271a19445 IN  0x0bc9b9f5b7c454d6baf926e8b92062092de06c540 Ether0.00048657 6.31205545
0xcb0b48989431ab1a1b6592d52cff940a6a919b10c24532321751ecee2da0e55fTransfer From156882682022-10-06 9:48:2311 hrs 14 mins ago0x8cf782ef12261a765a496d6967ecfda1fb6ef6ab IN  0x0bc9b9f5b7c454d6baf926e8b92062092de06c540 Ether0.00096667 11.54378194
0xf92007232798ac165cf2632e46e7a273951c9b8fc067c38672060716b671dfc6Upgrade Mint156875742022-10-06 7:28:1113 hrs 34 mins ago0x8b3bd3a771c0846e4052d8532691677051f6c0d2 IN  0x0bc9b9f5b7c454d6baf926e8b92062092de06c540 Ether0.00164812 4.4701662
0x4498e18c643b7cc431647b1c26ab97d3741f271832571445ad2cf68f0e66cecfSafe Transfer Fr...156872402022-10-06 6:21:2314 hrs 41 mins ago0x2f7be504745ba247588779dbdc30765d32367dba IN  0x0bc9b9f5b7c454d6baf926e8b92062092de06c540 Ether0.00043639 4.99414761
0x1c8dd10d0a79feaa62e170d9503dca4ce6de2c917aab3c4b02ff09e8c9d55eaeWithdraw All156871702022-10-06 6:07:2314 hrs 55 mins ago0xb9a02542e41dbedaec5cf18030a3519ee0120a51 IN  0x0bc9b9f5b7c454d6baf926e8b92062092de06c540 Ether0.00013251 4.34399991
0xdfe9a313e8f78385eae1f1cee6705288bf0ecdae8d409f525f5c0c09bbdeaf5eMint156867972022-10-06 4:52:2316 hrs 10 mins ago0xc734b9e86c3566af6cbec4b9d63c20bc57140cfa IN  0x0bc9b9f5b7c454d6baf926e8b92062092de06c543 Ether0.00191559 4.22453631
0x8ab3e4be686f790a672608356ab64c7d875ba1a8f06baa67fc2079448677569cUpgrade Mint156866522022-10-06 4:23:1116 hrs 39 mins ago0xeadd12c46221053a3440cf0cf2a6ed5fab8f5591 IN  0x0bc9b9f5b7c454d6baf926e8b92062092de06c540 Ether0.00178368 5.24776618
0x57ce26a14f60ab3403ab73aa2d620732afb496006749d55cd07ec8028268cefaMint156865372022-10-06 4:00:1117 hrs 2 mins ago0xbccdf0703cf71b81a94336023c93ef802476aaaf IN  0x0bc9b9f5b7c454d6baf926e8b92062092de06c543 Ether0.00353086 7.78672914
0x1b5e337b7f1138afff4671e4f3bf7721ea4fe3d93f3d93045f93554cb5bea84cSafe Transfer Fr...156864242022-10-06 3:37:3517 hrs 25 mins ago0x5763840a41d909b32cae74d1ec4380e59385977e IN  0x0bc9b9f5b7c454d6baf926e8b92062092de06c540 Ether0.00082993 9.2847094
0xb961c14d1a573cc2873ce966e7ff2b1af8d348b33fba8e0dc139998956d2f888Safe Transfer Fr...156864192022-10-06 3:36:3517 hrs 26 mins ago0x5763840a41d909b32cae74d1ec4380e59385977e IN  0x0bc9b9f5b7c454d6baf926e8b92062092de06c540 Ether0.00054216 7.29825809
0x5c5ac9d2c2fdfb5d4d2c89bf83b61a61e0d3e9b8842e96a968064ce530a44da1Safe Transfer Fr...156864102022-10-06 3:34:4717 hrs 27 mins ago0x5763840a41d909b32cae74d1ec4380e59385977e IN  0x0bc9b9f5b7c454d6baf926e8b92062092de06c540 Ether0.00069835 7.81272235
0xd57356549747f87cb9c7f73dc2ec99ffcc089c7aa3cd7f62db83f4873b5a65bcSafe Transfer Fr...156863062022-10-06 3:13:5917 hrs 48 mins ago0xec4bf9890be43d8e7bf2d23858a0baf9a004f271 IN  0x0bc9b9f5b7c454d6baf926e8b92062092de06c540 Ether0.00068953 7.71406374
0xfa41e610113995115975c73b452df77d766a32c8d8e9e3d233c002db51e5872fMint156862002022-10-06 2:52:3518 hrs 10 mins ago0x33cc4594c1bbeeca3b2d94bb1f2a8ce23c38272b IN  0x0bc9b9f5b7c454d6baf926e8b92062092de06c546 Ether0.00592364 7.687205
0xe09e0eadf101ea6e4db6a48e78467ed139d36e1f3295947adcdb490df0c373fcMint156861902022-10-06 2:50:3518 hrs 12 mins ago0x33cc4594c1bbeeca3b2d94bb1f2a8ce23c38272b IN  0x0bc9b9f5b7c454d6baf926e8b92062092de06c541 Ether0.00186243 8.31875416
0xd57520b87e424cd11f45596ae1610d817c418495bbb3b92f4469f18d967e7a47Mint156860302022-10-06 2:18:2318 hrs 44 mins ago0x6329207049491d6612f27ad86b4e0baf1f682be0 IN  0x0bc9b9f5b7c454d6baf926e8b92062092de06c541 Ether0.00148688 7.83827402
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x1c8dd10d0a79feaa62e170d9503dca4ce6de2c917aab3c4b02ff09e8c9d55eae156871702022-10-06 6:07:2314 hrs 55 mins ago 0x0bc9b9f5b7c454d6baf926e8b92062092de06c540xb9a02542e41dbedaec5cf18030a3519ee0120a5123 Ether
0x8332d2b5617ce3a059ca31c83f99d5340ba007bc51e69fdd57527e3998b33b62156756702022-10-04 15:29:592 days 5 hrs ago 0x0bc9b9f5b7c454d6baf926e8b92062092de06c540xb9a02542e41dbedaec5cf18030a3519ee0120a518 Ether
0xfc7e38c3dceb1829783f302e37c6f796a0711f6600f526147263af4c0ce16c40156616762022-10-02 16:31:354 days 4 hrs ago 0x0bc9b9f5b7c454d6baf926e8b92062092de06c540xb9a02542e41dbedaec5cf18030a3519ee0120a515 Ether
0xa3b8215b73a3dde5c3bad6b3b33dc7b10c14e4df83d16c81300be30b5b166c73156398072022-09-29 15:10:597 days 5 hrs ago 0x0bc9b9f5b7c454d6baf926e8b92062092de06c540xb9a02542e41dbedaec5cf18030a3519ee0120a516 Ether
0x51a0fe97fea9b0e9cbe1145fd7cb8c5d99dc54b6f3bf19e07d0ab236e499c70d156202532022-09-26 21:34:599 days 23 hrs ago 0x0bc9b9f5b7c454d6baf926e8b92062092de06c540xb9a02542e41dbedaec5cf18030a3519ee0120a512 Ether
0x86e26cd56a088d0848143439408208eb5e3e161b4f7c35995baed0c4d7195f8c156193632022-09-26 18:35:1110 days 2 hrs ago 0x0bc9b9f5b7c454d6baf926e8b92062092de06c540xb9a02542e41dbedaec5cf18030a3519ee0120a512 Ether
0x9dc679ec13b8d7c04679bcdae0148dd9f7e86c8d9913a749f82ed434d5b526e1156183792022-09-26 15:16:3510 days 5 hrs ago 0x0bc9b9f5b7c454d6baf926e8b92062092de06c540xb9a02542e41dbedaec5cf18030a3519ee0120a5115 Ether
0x3754946d4fa5d3ed97dbf6ea395bddacbf19611bfd7c3ceb2b518cf55814111f155968432022-09-23 15:08:3513 days 5 hrs ago 0x0bc9b9f5b7c454d6baf926e8b92062092de06c540xb9a02542e41dbedaec5cf18030a3519ee0120a517 Ether
0x9e33756785477bc47aaef5a4d3a23512dd260d894dca35e6913f8ce99ca5af42155867522022-09-22 5:19:4714 days 15 hrs ago 0x0bc9b9f5b7c454d6baf926e8b92062092de06c540xb9a02542e41dbedaec5cf18030a3519ee0120a515 Ether
0x22b0fcfe21ddc0db7109607cc8f8905a967f9d49e4b1ac141cf0c28aa788c32a155687302022-09-19 16:24:4717 days 4 hrs ago 0x0bc9b9f5b7c454d6baf926e8b92062092de06c540xb9a02542e41dbedaec5cf18030a3519ee0120a516 Ether
0x69d82fe98d373806dbfae5253a64bdad2f6b3986ad7b53b18897d178d42faa0f155400782022-09-15 15:46:5921 days 5 hrs ago 0x0bc9b9f5b7c454d6baf926e8b92062092de06c540xb9a02542e41dbedaec5cf18030a3519ee0120a511 Ether
0xdff685b166fce2348a52535d85518a8974b96cc0e2952e71d76a7fe3ccb1aa19155278292022-09-13 16:00:2523 days 5 hrs ago 0x0bc9b9f5b7c454d6baf926e8b92062092de06c540xb9a02542e41dbedaec5cf18030a3519ee0120a514 Ether
0xe5ad8bb2f76d8edf014fcf60b58a6fc31ed5656b8962e788de830d755f6c0427155010642022-09-09 5:44:5227 days 15 hrs ago 0x0bc9b9f5b7c454d6baf926e8b92062092de06c540xb9a02542e41dbedaec5cf18030a3519ee0120a512 Ether
0x16bd54d0cdb1bf56e7cad19967e48b64b6161f517b2130b3b0028c8beaae03f0154846962022-09-06 14:45:0030 days 6 hrs ago 0x0bc9b9f5b7c454d6baf926e8b92062092de06c540xb9a02542e41dbedaec5cf18030a3519ee0120a513 Ether
0x4a2afd54d2d87f3a69cf6b6c4fdc2ebdce14f619059295355d6e9cfca05ede53154730882022-09-04 18:07:0832 days 2 hrs ago 0x0bc9b9f5b7c454d6baf926e8b92062092de06c540xb9a02542e41dbedaec5cf18030a3519ee0120a512 Ether
0x74ebaf1bd613cde5c1d55b8e8eb29b8cc2d930c011628c97e9ff0201cb25c926154663922022-09-03 16:19:3233 days 4 hrs ago 0x0bc9b9f5b7c454d6baf926e8b92062092de06c540xb9a02542e41dbedaec5cf18030a3519ee0120a512 Ether
0x4fac8623e7a90faf989b65228a086aa4ef879ed9f21d3abd3e106a9e6f6274da154601782022-09-02 16:22:2434 days 4 hrs ago 0x0bc9b9f5b7c454d6baf926e8b92062092de06c540xb9a02542e41dbedaec5cf18030a3519ee0120a515 Ether
0x0e3228c1b9d457b5fc0aa0e93a98499b75bfa177619cd3e617217b88525d62cc154482962022-08-31 18:51:1036 days 2 hrs ago 0x0bc9b9f5b7c454d6baf926e8b92062092de06c540xb9a02542e41dbedaec5cf18030a3519ee0120a514 Ether
0xd5cb8f2aa9c05477d8a733143a96dbb4e9b7c28a8980214a24a25e2e8948868a154448032022-08-31 5:34:2436 days 15 hrs ago 0x0bc9b9f5b7c454d6baf926e8b92062092de06c540xb9a02542e41dbedaec5cf18030a3519ee0120a515 Ether
0x8ec34c73c63e764837bf87fa66f85dd536baa4972912bd360518a6a1ae3db2ff154410762022-08-30 15:13:3437 days 5 hrs ago 0x0bc9b9f5b7c454d6baf926e8b92062092de06c540xb9a02542e41dbedaec5cf18030a3519ee0120a512 Ether
0xcbe503897a2f6a0530da16b8ce05e618a4d1cfdd7c568119c6f240f1c21e77a1154378542022-08-30 2:46:5037 days 18 hrs ago 0x0bc9b9f5b7c454d6baf926e8b92062092de06c540xb9a02542e41dbedaec5cf18030a3519ee0120a515 Ether
0xbf6bd752fc06143f879fffda056157d109a596c67a2e57a15c4a6cbb349f36a5154346812022-08-29 14:42:3638 days 6 hrs ago 0x0bc9b9f5b7c454d6baf926e8b92062092de06c540xb9a02542e41dbedaec5cf18030a3519ee0120a516 Ether
0x3336067eb04255e24e9dd633e8b7b8c28cea56049ab28bcfd3c0b8685549b6f7154197902022-08-27 5:31:0040 days 15 hrs ago 0x0bc9b9f5b7c454d6baf926e8b92062092de06c540xb9a02542e41dbedaec5cf18030a3519ee0120a5111 Ether
0x7140cfea1a4c179993a550da25bbcaa478c23408c890367ed1a34e8c87a2f3ad154140102022-08-26 7:12:5741 days 13 hrs ago 0x0bc9b9f5b7c454d6baf926e8b92062092de06c540xb9a02542e41dbedaec5cf18030a3519ee0120a513 Ether
0x132cd4ca5192aae608c22c5b0bc8f0250c6e9920134ceaa4381e7f8dad0fbd0a153976972022-08-23 16:29:4544 days 4 hrs ago 0x0bc9b9f5b7c454d6baf926e8b92062092de06c540xb9a02542e41dbedaec5cf18030a3519ee0120a513 Ether
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MLSecretAgents

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 17 : MLSecretAgents.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import "./ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "./interface/IMLFieldAgents.sol";

// @author: olive

//////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
///                                                                                                        ///
///                                                                                                        ///
///    ooo        ooooo ooooo              .o.                                            .                ///
///    `88.       .888' `888'             .888.                                         .o8                ///
///     888b     d'888   888             .8"888.      .oooooooo  .ooooo.  ooo. .oo.   .o888oo  .oooo.o     ///
///     8 Y88. .P  888   888            .8' `888.    888' `88b  d88' `88b `888P"Y88b    888   d88(  "8     ///
///     8  `888'   888   888           .88ooo8888.   888   888  888ooo888  888   888    888   `"Y88b.      ///
///     8    Y     888   888       o  .8'     `888.  `88bod8P'  888    .o  888   888    888 . o.  )88b     ///
///    o8o        o888o o888ooooood8 o88o     o8888o `8oooooo.  `Y8bod8P' o888o o888o   "888" 8""888P'     ///
///                                                  d"     YD                                             ///
///                                                  "Y88888P'                                             ///
///                                                                                                        ///
//////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////

contract MLSecretAgents is ERC721Enumerable, Ownable {
    address private signerAddress;

    using SafeMath for uint256;
    using Counters for Counters.Counter;
    using Strings for uint256;

    uint256 public MAX_ELEMENTS = 9000;
    uint256 public MAX_ELEMENTS_COMMON = 4000;
    uint256 public PRICE = 1.5 ether;
    uint256 public constant START_AT = 1;
    uint256 public TIME_LIMIT = 60;
    uint256 public LIMIT_PER_MINT = 50;
    uint256 public mintedCommon = 0;

    IMLFieldAgents public fieldAgents;

    bool private PAUSE = true;
    bool private UPGRADE_PAUSE = true;

    Counters.Counter private _tokenIdTracker;

    string public baseTokenURI;

    bool public META_REVEAL = false;
    uint256 public HIDE_FROM = 1;
    uint256 public HIDE_TO = 9000;
    string public sampleTokenURI;

    address public constant creatorAddress =
        0xB9a02542e41DBEDaec5cF18030a3519ee0120a51;

    mapping(address => bool) internal admins;
    mapping(address => uint256) mintTokens;
    mapping(address => uint256) lastCheckPoint;

    event PauseEvent(bool pause);
    event UpgradePauseEvent(bool pause);
    event welcomeToLNS(uint256 indexed id);
    event NewPriceEvent(uint256 price);
    event NewMaxElement(uint256 max);

    constructor(address _singenr, IMLFieldAgents _mlagents)
        ERC721("Meta Labs Secret Agents", "MLA2")
    {
        signerAddress = _singenr;
        fieldAgents = _mlagents;
        admins[msg.sender] = true;
    }

    modifier saleIsOpen() {
        require(totalToken() <= MAX_ELEMENTS, "MLSecretAgents: Soldout!");
        require(!PAUSE, "MLSecretAgents: Sales not open");
        _;
    }

    modifier upgradeSaleIsOpen() {
        require(totalToken() <= MAX_ELEMENTS, "MLSecretAgents: Soldout!");
        require(!UPGRADE_PAUSE, "MLSecretAgents: Upgrade Sales not open");
        _;
    }

    modifier onlyAdmin() {
        require(
            admins[_msgSender()],
            "MLSecretAgents: Caller is not the admin"
        );
        _;
    }

    function _baseURI() internal view virtual override returns (string memory) {
        return baseTokenURI;
    }

    function setBaseURI(string memory baseURI) public onlyAdmin {
        baseTokenURI = baseURI;
    }

    function setSampleURI(string memory sampleURI) public onlyAdmin {
        sampleTokenURI = sampleURI;
    }

    function totalToken() public view returns (uint256) {
        return _tokenIdTracker.current();
    }

    function totalMintedCommon() public view returns (uint256) {
        return mintedCommon;
    }

    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        require(
            _exists(tokenId),
            "ERC721Metadata: URI query for nonexistent token"
        );

        if (!META_REVEAL && tokenId >= HIDE_FROM && tokenId <= HIDE_TO)
            return sampleTokenURI;

        string memory baseURI = _baseURI();
        return
            bytes(baseURI).length > 0
                ? string(abi.encodePacked(baseURI, tokenId.toString()))
                : "";
    }

    function mintTokensOfWallet(address _wallet) public view returns (uint256) {
        return mintTokens[_wallet];
    }

    function upgradeMint(
        uint256[] calldata commonIds,
        uint256[] calldata goldenIds,
        uint256 _timestamp,
        bytes memory _signature
    ) public saleIsOpen {
        address wallet = _msgSender();
        address signerOwner = signatureWalletUpgrade(
            wallet,
            commonIds,
            goldenIds,
            _timestamp,
            _signature
        );
        require(signerOwner == signerAddress, "MLSecretAgents: Not authorized to mint");
        require(block.timestamp >= _timestamp - TIME_LIMIT, "MLSecretAgents: Out of time");
        require(
            commonIds.length.mod(5) == 0,
            "MLSecretAgents: Token data is not correct."
        );
        uint256 total = totalToken();
        uint256 mintAmount = 0;
        if (commonIds.length > 0) {
            for (uint8 i = 0; i < commonIds.length; i++) {
                require(commonIds[i] != 0, "Token Id can't be zero.");

                require(
                    fieldAgents.ownerOf(commonIds[i]) == msg.sender,
                    "MLSecretAgents: Caller is not owner."
                );
            }
            fieldAgents.burn(commonIds);
            mintAmount += commonIds.length.div(5);
        }

        if (goldenIds.length > 0) {
            for (uint8 i = 0; i < goldenIds.length; i++) {
                require(goldenIds[i] != 0, "Token Id can't be zero.");
                require(
                    fieldAgents.ownerOf(goldenIds[i]) == msg.sender,
                    "MLSecretAgents: You are not owner."
                );
                mintAmount++;
            }
            fieldAgents.burn(goldenIds);
        }

        require(mintAmount > 0, "MLSecretAgents: Mint amount can't be zero.");

        for (uint8 i = 1; i <= mintAmount; i++) {
            _mintAnElement(msg.sender, total + i);
        }
    }

    function signatureWalletUpgrade(
        address wallet,
        uint256[] calldata commonIds,
        uint256[] calldata goldenIds,
        uint256 _timestamp,
        bytes memory _signature
    ) public pure returns (address) {
        return
            ECDSA.recover(
                keccak256(abi.encode(wallet, commonIds, goldenIds, _timestamp)),
                _signature
            );
    }

    function mint(
        uint256 _tokenAmount,
        uint256 _timestamp,
        bytes memory _signature
    ) public payable saleIsOpen {
        uint256 total = totalToken();
        require(
            _tokenAmount <= LIMIT_PER_MINT,
            "MLSecretAgents: Max limit per mint"
        );
        require(
            total + _tokenAmount <= MAX_ELEMENTS,
            "MLSecretAgents: Max limit"
        );
        require(
            mintedCommon + _tokenAmount <= MAX_ELEMENTS_COMMON,
            "MLSecretAgents: Max limit Common mint"
        );
        require(
            msg.value >= price(_tokenAmount),
            "MLSecretAgents: Value below price"
        );

        address wallet = _msgSender();

        address signerOwner = signatureWallet(
            wallet,
            _tokenAmount,
            _timestamp,
            _signature
        );
        require(signerOwner == signerAddress, "Not authorized to mint");

        require(block.timestamp >= _timestamp - TIME_LIMIT, "Out of time");
        require(_timestamp > lastCheckPoint[wallet], "Invalid timestamp");

        lastCheckPoint[wallet] = block.timestamp;

        mintTokens[wallet] += _tokenAmount;
        mintedCommon += _tokenAmount;
        for (uint8 i = 1; i <= _tokenAmount; i++) {
            _mintAnElement(wallet, total + i);
        }
    }

    function signatureWallet(
        address wallet,
        uint256 _tokenAmount,
        uint256 _timestamp,
        bytes memory _signature
    ) public pure returns (address) {
        return
            ECDSA.recover(
                keccak256(abi.encode(wallet, _tokenAmount, _timestamp)),
                _signature
            );
    }

    function setCheckPoint(address _minter, uint256 _point) public onlyOwner {
        require(_minter != address(0), "Unknown address");
        lastCheckPoint[_minter] = _point;
    }

    function getCheckPoint(address _minter) external view returns (uint256) {
        return lastCheckPoint[_minter];
    }

    function _mintAnElement(address _to, uint256 _tokenId) private {
        _tokenIdTracker.increment();
        _safeMint(_to, _tokenId);

        emit welcomeToLNS(_tokenId);
    }

    function price(uint256 _count) public view returns (uint256) {
        return PRICE.mul(_count);
    }

    function walletOfOwner(address _owner)
        external
        view
        returns (uint256[] memory)
    {
        uint256 tokenCount = balanceOf(_owner);

        uint256[] memory tokensId = new uint256[](tokenCount);
        for (uint256 i = 0; i < tokenCount; i++) {
            tokensId[i] = tokenOfOwnerByIndex(_owner, i);
        }

        return tokensId;
    }

    function setPause(bool _pause) public onlyAdmin {
        PAUSE = _pause;
        emit PauseEvent(PAUSE);
    }

    function setUpgradePause(bool _pause) public onlyAdmin {
        UPGRADE_PAUSE = _pause;
        emit UpgradePauseEvent(UPGRADE_PAUSE);
    }

    function setPrice(uint256 _price) public onlyOwner {
        PRICE = _price;
        emit NewPriceEvent(PRICE);
    }

    function setMaxElement(uint256 _max) public onlyOwner {
        MAX_ELEMENTS = _max;
        emit NewMaxElement(MAX_ELEMENTS);
    }

    function setMaxElementCommon(uint256 _max) public onlyAdmin {
        MAX_ELEMENTS_COMMON = _max;
        emit NewMaxElement(MAX_ELEMENTS_COMMON);
    }

    function setMetaReveal(
        bool _reveal,
        uint256 _from,
        uint256 _to
    ) public onlyAdmin {
        META_REVEAL = _reveal;
        HIDE_FROM = _from;
        HIDE_TO = _to;
    }

    function withdrawAll() public onlyAdmin {
        uint256 balance = address(this).balance;
        require(balance > 0);
        _widthdraw(creatorAddress, balance);
    }

    function _widthdraw(address _address, uint256 _amount) private {
        (bool success, ) = _address.call{value: _amount}("");
        require(success, "Transfer failed.");
    }

    function giftMint(address[] memory _addrs, uint256[] memory _tokenAmounts)
        public
        onlyAdmin
    {
        uint256 totalQuantity = 0;
        uint256 total = totalToken();
        for (uint256 i = 0; i < _addrs.length; i++) {
            totalQuantity += _tokenAmounts[i];
        }
        require(total + totalQuantity <= MAX_ELEMENTS, "Max limit");
        for (uint256 i = 0; i < _addrs.length; i++) {
            for (uint256 j = 0; j < _tokenAmounts[i]; j++) {
                total++;
                _mintAnElement(_addrs[i], total);
            }
        }
    }

    function mintUnsoldTokens(uint256[] memory _tokensId) public onlyOwner {
        require(PAUSE, "Pause is disable");

        for (uint256 i = 0; i < _tokensId.length; i++) {
            if (rawOwnerOf(_tokensId[i]) == address(0)) {
                _mintAnElement(owner(), _tokensId[i]);
            }
        }
    }

    function addAdminRole(address _address) external onlyOwner {
        admins[_address] = true;
    }

    function revokeAdminRole(address _address) external onlyOwner {
        admins[_address] = false;
    }

    function hasAdminRole(address _address) external view returns (bool) {
        return admins[_address];
    }

    function burn(uint256 tokenId) external onlyAdmin {
        _burn(tokenId);
    }

    function updateTimeLimit(uint256 _timeLimit) public onlyAdmin {
        TIME_LIMIT = _timeLimit;
    }

    function updateSignerAddress(address _signer) public onlyOwner {
        signerAddress = _signer;
    }

    function updateLimitPerMint(uint256 _limitpermint) public onlyAdmin {
        LIMIT_PER_MINT = _limitpermint;
    }

    function setMLAgents1Contract(IMLFieldAgents _fieldAgents)
        public
        onlyOwner
    {
        fieldAgents = _fieldAgents;
    }
}

File 2 of 17 : IMLFieldAgents.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

interface IMLFieldAgents {
    function burn(uint256[] calldata tokenIds) external;
    function ownerOf(uint256 tokenId) external view returns (address owner);
}

File 3 of 17 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.13;

import "./ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(IERC165, ERC721)
        returns (bool)
    {
        return
            interfaceId == type(IERC721Enumerable).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index)
        public
        view
        virtual
        override
        returns (uint256)
    {
        require(
            index < ERC721.balanceOf(owner),
            "ERC721Enumerable: owner index out of bounds"
        );
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index)
        public
        view
        virtual
        override
        returns (uint256)
    {
        require(
            index < ERC721Enumerable.totalSupply(),
            "ERC721Enumerable: global index out of bounds"
        );
        return _allTokens[index];
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId)
        private
    {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

File 4 of 17 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.13;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC165, IERC165)
        returns (bool)
    {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner)
        public
        view
        virtual
        override
        returns (uint256)
    {
        require(
            owner != address(0),
            "ERC721: balance query for the zero address"
        );
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId)
        public
        view
        virtual
        override
        returns (address)
    {
        address owner = _owners[tokenId];
        require(
            owner != address(0),
            "ERC721: owner query for nonexistent token"
        );
        return owner;
    }

    /**
     * @dev Edit for rawOwnerOf token
     */
    function rawOwnerOf(uint256 tokenId) public view returns (address) {
        return _owners[tokenId];
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        require(
            _exists(tokenId),
            "ERC721Metadata: URI query for nonexistent token"
        );

        string memory baseURI = _baseURI();
        return
            bytes(baseURI).length > 0
                ? string(abi.encodePacked(baseURI, tokenId.toString()))
                : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId)
        public
        view
        virtual
        override
        returns (address)
    {
        require(
            _exists(tokenId),
            "ERC721: approved query for nonexistent token"
        );

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved)
        public
        virtual
        override
    {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator)
        public
        view
        virtual
        override
        returns (bool)
    {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(
            _isApprovedOrOwner(_msgSender(), tokenId),
            "ERC721: transfer caller is not owner nor approved"
        );

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(
            _isApprovedOrOwner(_msgSender(), tokenId),
            "ERC721: transfer caller is not owner nor approved"
        );
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(
            _checkOnERC721Received(from, to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId)
        internal
        view
        virtual
        returns (bool)
    {
        require(
            _exists(tokenId),
            "ERC721: operator query for nonexistent token"
        );
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner ||
            getApproved(tokenId) == spender ||
            isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);
        address to = address(0);

        _beforeTokenTransfer(owner, to, tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, to, tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(
            ERC721.ownerOf(tokenId) == from,
            "ERC721: transfer of token that is not own"
        );
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try
                IERC721Receiver(to).onERC721Received(
                    _msgSender(),
                    from,
                    tokenId,
                    _data
                )
            returns (bytes4 retval) {
                return retval == IERC721Receiver(to).onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert(
                        "ERC721: transfer to non ERC721Receiver implementer"
                    );
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 5 of 17 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 6 of 17 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

File 7 of 17 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

File 8 of 17 : ECDSA.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s;
        uint8 v;
        assembly {
            s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
            v := add(shr(255, vs), 27)
        }
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 9 of 17 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

File 10 of 17 : Counters.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

File 11 of 17 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

File 12 of 17 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 13 of 17 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}

File 14 of 17 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 15 of 17 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 16 of 17 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../../utils/introspection/IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}

File 17 of 17 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _setOwner(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _setOwner(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

Settings
{
  "remappings": [],
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "evmVersion": "london",
  "libraries": {},
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_singenr","type":"address"},{"internalType":"contract IMLFieldAgents","name":"_mlagents","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"max","type":"uint256"}],"name":"NewMaxElement","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"}],"name":"NewPriceEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"pause","type":"bool"}],"name":"PauseEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"pause","type":"bool"}],"name":"UpgradePauseEvent","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"welcomeToLNS","type":"event"},{"inputs":[],"name":"HIDE_FROM","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"HIDE_TO","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LIMIT_PER_MINT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_ELEMENTS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_ELEMENTS_COMMON","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"META_REVEAL","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"START_AT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TIME_LIMIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"addAdminRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"creatorAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"fieldAgents","outputs":[{"internalType":"contract IMLFieldAgents","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"}],"name":"getCheckPoint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addrs","type":"address[]"},{"internalType":"uint256[]","name":"_tokenAmounts","type":"uint256[]"}],"name":"giftMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"hasAdminRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenAmount","type":"uint256"},{"internalType":"uint256","name":"_timestamp","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_wallet","type":"address"}],"name":"mintTokensOfWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_tokensId","type":"uint256[]"}],"name":"mintUnsoldTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintedCommon","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"rawOwnerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"revokeAdminRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"sampleTokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"},{"internalType":"uint256","name":"_point","type":"uint256"}],"name":"setCheckPoint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IMLFieldAgents","name":"_fieldAgents","type":"address"}],"name":"setMLAgents1Contract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_max","type":"uint256"}],"name":"setMaxElement","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_max","type":"uint256"}],"name":"setMaxElementCommon","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_reveal","type":"bool"},{"internalType":"uint256","name":"_from","type":"uint256"},{"internalType":"uint256","name":"_to","type":"uint256"}],"name":"setMetaReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_pause","type":"bool"}],"name":"setPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"sampleURI","type":"string"}],"name":"setSampleURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_pause","type":"bool"}],"name":"setUpgradePause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint256","name":"_tokenAmount","type":"uint256"},{"internalType":"uint256","name":"_timestamp","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"signatureWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint256[]","name":"commonIds","type":"uint256[]"},{"internalType":"uint256[]","name":"goldenIds","type":"uint256[]"},{"internalType":"uint256","name":"_timestamp","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"signatureWalletUpgrade","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMintedCommon","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalToken","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limitpermint","type":"uint256"}],"name":"updateLimitPerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"updateSignerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_timeLimit","type":"uint256"}],"name":"updateTimeLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"commonIds","type":"uint256[]"},{"internalType":"uint256[]","name":"goldenIds","type":"uint256[]"},{"internalType":"uint256","name":"_timestamp","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"upgradeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052612328600c819055610fa0600d556714d1120d7b160000600e55603c600f55603260105560006011556012805461ffff60a01b191661010160a01b1790556015805460ff1916905560016016556017553480156200006157600080fd5b506040516200467c3803806200467c833981016040819052620000849162000279565b604080518082018252601781527f4d657461204c61627320536563726574204167656e747300000000000000000060208083019182528351808501909452600484526326a6209960e11b908401528151919291620000e591600091620001ba565b508051620000fb906001906020840190620001ba565b50505062000118620001126200016460201b60201c565b62000168565b600b80546001600160a01b039384166001600160a01b03199182161790915560128054929093169116179055336000908152601960205260409020805460ff19166001179055620002f4565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001c890620002b8565b90600052602060002090601f016020900481019282620001ec576000855562000237565b82601f106200020757805160ff191683800117855562000237565b8280016001018555821562000237579182015b82811115620002375782518255916020019190600101906200021a565b506200024592915062000249565b5090565b5b808211156200024557600081556001016200024a565b6001600160a01b03811681146200027657600080fd5b50565b600080604083850312156200028d57600080fd5b82516200029a8162000260565b6020840151909250620002ad8162000260565b809150509250929050565b600181811c90821680620002cd57607f821691505b602082108103620002ee57634e487b7160e01b600052602260045260246000fd5b50919050565b61437880620003046000396000f3fe6080604052600436106103c35760003560e01c80637f81be69116101f2578063b82c7d461161010d578063c7427093116100a0578063e927fc5c1161006f578063e927fc5c14610b27578063e985e9c514610b4f578063f232056814610b98578063f2fde38b14610bb857600080fd5b8063c742709314610abc578063c87b56dd14610ad2578063cfc2004c14610af2578063d547cfb714610b1257600080fd5b8063bedb86fb116100dc578063bedb86fb14610a38578063bf7b766d14610a58578063c395fcb314610a6d578063c6f10e6b14610aa657600080fd5b8063b82c7d46146109be578063b88d4fde146109de578063b8ea3cb0146109fe578063bc13a68814610a1e57600080fd5b80638fa2a9f011610185578063a22cb46511610154578063a22cb4651461093e578063a312ac971461095e578063a528e07e1461097e578063b2992bb01461099e57600080fd5b80638fa2a9f0146108c957806391b7f5ed146108e957806395d89b41146109095780639a19c7b01461091e57600080fd5b80638d0f4417116101c15780638d0f44171461085f5780638d25b2aa146108755780638d859f3e146108955780638da5cb5b146108ab57600080fd5b80637f81be69146107d457806384d4cafc1461080a578063853828b61461082a57806389ece9411461083f57600080fd5b8063438b6300116102e2578063698224ae11610275578063715018a611610244578063715018a61461075e578063716658651461077357806376e81263146107885780637f4b73d21461079e57600080fd5b8063698224ae146106e85780636b2d2caa146106fe5780636ea5d1781461071e57806370a082311461073e57600080fd5b8063626be567116102b1578063626be567146106735780636352211e146106885780636422039d146106a85780636595171c146106c857600080fd5b8063438b6300146105e65780634f6ccce71461061357806355f804b314610633578063578a27541461065357600080fd5b806318160ddd1161035a5780632f745c59116103295780632f745c59146105705780633502a7161461059057806342842e0e146105a657806342966c68146105c657600080fd5b806318160ddd146105055780631ec858ec1461051a57806323b872dd1461053057806326a49e371461055057600080fd5b8063095ea7b311610396578063095ea7b31461046c5780630c42f6351461048c578063103c4b53146104d057806312c2449f146104e557600080fd5b806301ffc9a7146103c857806306fdde03146103fd578063081812fc1461041f57806308dc9f4214610457575b600080fd5b3480156103d457600080fd5b506103e86103e3366004613822565b610bd8565b60405190151581526020015b60405180910390f35b34801561040957600080fd5b50610412610c03565b6040516103f49190613897565b34801561042b57600080fd5b5061043f61043a3660046138aa565b610c95565b6040516001600160a01b0390911681526020016103f4565b61046a610465366004613980565b610d2f565b005b34801561047857600080fd5b5061046a6104873660046139e4565b61110f565b34801561049857600080fd5b506104c26104a7366004613a10565b6001600160a01b03166000908152601a602052604090205490565b6040519081526020016103f4565b3480156104dc57600080fd5b50610412611224565b3480156104f157600080fd5b5061046a610500366004613a42565b6112b2565b34801561051157600080fd5b506008546104c2565b34801561052657600080fd5b506104c260165481565b34801561053c57600080fd5b5061046a61054b366004613a75565b6112fb565b34801561055c57600080fd5b506104c261056b3660046138aa565b61132c565b34801561057c57600080fd5b506104c261058b3660046139e4565b61133c565b34801561059c57600080fd5b506104c2600c5481565b3480156105b257600080fd5b5061046a6105c1366004613a75565b6113d2565b3480156105d257600080fd5b5061046a6105e13660046138aa565b6113ed565b3480156105f257600080fd5b50610606610601366004613a10565b611428565b6040516103f49190613ab6565b34801561061f57600080fd5b506104c261062e3660046138aa565b6114c9565b34801561063f57600080fd5b5061046a61064e366004613afa565b61155c565b34801561065f57600080fd5b5061046a61066e366004613b86565b6115a2565b34801561067f57600080fd5b506104c2611c2f565b34801561069457600080fd5b5061043f6106a33660046138aa565b611c3f565b3480156106b457600080fd5b5061046a6106c33660046139e4565b611cb6565b3480156106d457600080fd5b5061046a6106e3366004613a10565b611d44565b3480156106f457600080fd5b506104c2600f5481565b34801561070a57600080fd5b5061046a610719366004613a10565b611d92565b34801561072a57600080fd5b5061046a610739366004613caf565b611dde565b34801561074a57600080fd5b506104c2610759366004613a10565b611f33565b34801561076a57600080fd5b5061046a611fba565b34801561077f57600080fd5b506011546104c2565b34801561079457600080fd5b506104c260105481565b3480156107aa57600080fd5b506104c26107b9366004613a10565b6001600160a01b03166000908152601b602052604090205490565b3480156107e057600080fd5b5061043f6107ef3660046138aa565b6000908152600260205260409020546001600160a01b031690565b34801561081657600080fd5b5061046a6108253660046138aa565b611ff0565b34801561083657600080fd5b5061046a61205b565b34801561084b57600080fd5b5061046a61085a366004613afa565b6120b3565b34801561086b57600080fd5b506104c260115481565b34801561088157600080fd5b5061043f610890366004613d70565b6120f5565b3480156108a157600080fd5b506104c2600e5481565b3480156108b757600080fd5b50600a546001600160a01b031661043f565b3480156108d557600080fd5b5061046a6108e4366004613a10565b61213d565b3480156108f557600080fd5b5061046a6109043660046138aa565b612189565b34801561091557600080fd5b506104126121e8565b34801561092a57600080fd5b5061046a610939366004613a10565b6121f7565b34801561094a57600080fd5b5061046a610959366004613e1f565b612242565b34801561096a57600080fd5b5061046a6109793660046138aa565b612306565b34801561098a57600080fd5b5060125461043f906001600160a01b031681565b3480156109aa57600080fd5b5061046a6109b9366004613e54565b61233a565b3480156109ca57600080fd5b5061046a6109d9366004613e88565b612453565b3480156109ea57600080fd5b5061046a6109f9366004613ea3565b6124d7565b348015610a0a57600080fd5b5061046a610a193660046138aa565b61250f565b348015610a2a57600080fd5b506015546103e89060ff1681565b348015610a4457600080fd5b5061046a610a53366004613e88565b61256e565b348015610a6457600080fd5b506104c2600181565b348015610a7957600080fd5b506103e8610a88366004613a10565b6001600160a01b031660009081526019602052604090205460ff1690565b348015610ab257600080fd5b506104c2600d5481565b348015610ac857600080fd5b506104c260175481565b348015610ade57600080fd5b50610412610aed3660046138aa565b6125f2565b348015610afe57600080fd5b5061046a610b0d3660046138aa565b612787565b348015610b1e57600080fd5b506104126127bb565b348015610b3357600080fd5b5061043f73b9a02542e41dbedaec5cf18030a3519ee0120a5181565b348015610b5b57600080fd5b506103e8610b6a366004613f0e565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610ba457600080fd5b5061043f610bb3366004613f47565b6127c8565b348015610bc457600080fd5b5061046a610bd3366004613a10565b612802565b60006001600160e01b0319821663780e9d6360e01b1480610bfd5750610bfd8261289a565b92915050565b606060008054610c1290613f91565b80601f0160208091040260200160405190810160405280929190818152602001828054610c3e90613f91565b8015610c8b5780601f10610c6057610100808354040283529160200191610c8b565b820191906000526020600020905b815481529060010190602001808311610c6e57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b0316610d135760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600c54610d3a611c2f565b1115610d835760405162461bcd60e51b81526020600482015260186024820152774d4c5365637265744167656e74733a20536f6c646f75742160401b6044820152606401610d0a565b601254600160a01b900460ff1615610ddd5760405162461bcd60e51b815260206004820152601e60248201527f4d4c5365637265744167656e74733a2053616c6573206e6f74206f70656e00006044820152606401610d0a565b6000610de7611c2f565b9050601054841115610e465760405162461bcd60e51b815260206004820152602260248201527f4d4c5365637265744167656e74733a204d6178206c696d697420706572206d696044820152611b9d60f21b6064820152608401610d0a565b600c54610e538583613fe1565b1115610ea15760405162461bcd60e51b815260206004820152601960248201527f4d4c5365637265744167656e74733a204d6178206c696d6974000000000000006044820152606401610d0a565b600d5484601154610eb29190613fe1565b1115610f0e5760405162461bcd60e51b815260206004820152602560248201527f4d4c5365637265744167656e74733a204d6178206c696d697420436f6d6d6f6e604482015264081b5a5b9d60da1b6064820152608401610d0a565b610f178461132c565b341015610f705760405162461bcd60e51b815260206004820152602160248201527f4d4c5365637265744167656e74733a2056616c75652062656c6f7720707269636044820152606560f81b6064820152608401610d0a565b336000610f7f828787876127c8565b600b549091506001600160a01b03808316911614610fd85760405162461bcd60e51b8152602060048201526016602482015275139bdd08185d5d1a1bdc9a5e9959081d1bc81b5a5b9d60521b6044820152606401610d0a565b600f54610fe59086613ff9565b4210156110225760405162461bcd60e51b815260206004820152600b60248201526a4f7574206f662074696d6560a81b6044820152606401610d0a565b6001600160a01b0382166000908152601b6020526040902054851161107d5760405162461bcd60e51b81526020600482015260116024820152700496e76616c69642074696d657374616d7607c1b6044820152606401610d0a565b6001600160a01b0382166000908152601b60209081526040808320429055601a909152812080548892906110b2908490613fe1565b9250508190555085601160008282546110cb9190613fe1565b90915550600190505b868160ff1611611106576110f4836110ef60ff841687613fe1565b6128ea565b806110fe81614010565b9150506110d4565b50505050505050565b600061111a82611c3f565b9050806001600160a01b0316836001600160a01b0316036111875760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610d0a565b336001600160a01b03821614806111a357506111a38133610b6a565b6112155760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610d0a565b61121f8383612931565b505050565b6018805461123190613f91565b80601f016020809104026020016040519081016040528092919081815260200182805461125d90613f91565b80156112aa5780601f1061127f576101008083540402835291602001916112aa565b820191906000526020600020905b81548152906001019060200180831161128d57829003601f168201915b505050505081565b3360009081526019602052604090205460ff166112e15760405162461bcd60e51b8152600401610d0a9061402f565b6015805460ff191693151593909317909255601655601755565b611305338261299f565b6113215760405162461bcd60e51b8152600401610d0a90614076565b61121f838383612a92565b600e54600090610bfd9083612c3d565b600061134783611f33565b82106113a95760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610d0a565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b61121f838383604051806020016040528060008152506124d7565b3360009081526019602052604090205460ff1661141c5760405162461bcd60e51b8152600401610d0a9061402f565b61142581612c49565b50565b6060600061143583611f33565b90506000816001600160401b03811115611451576114516138c3565b60405190808252806020026020018201604052801561147a578160200160208202803683370190505b50905060005b828110156114c157611492858261133c565b8282815181106114a4576114a46140c7565b6020908102919091010152806114b9816140dd565b915050611480565b509392505050565b60006114d460085490565b82106115375760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610d0a565b6008828154811061154a5761154a6140c7565b90600052602060002001549050919050565b3360009081526019602052604090205460ff1661158b5760405162461bcd60e51b8152600401610d0a9061402f565b805161159e906014906020840190613773565b5050565b600c546115ad611c2f565b11156115f65760405162461bcd60e51b81526020600482015260186024820152774d4c5365637265744167656e74733a20536f6c646f75742160401b6044820152606401610d0a565b601254600160a01b900460ff16156116505760405162461bcd60e51b815260206004820152601e60248201527f4d4c5365637265744167656e74733a2053616c6573206e6f74206f70656e00006044820152606401610d0a565b336000611662828989898989896120f5565b600b549091506001600160a01b038083169116146116d15760405162461bcd60e51b815260206004820152602660248201527f4d4c5365637265744167656e74733a204e6f7420617574686f72697a656420746044820152651bc81b5a5b9d60d21b6064820152608401610d0a565b600f546116de9085613ff9565b42101561172d5760405162461bcd60e51b815260206004820152601b60248201527f4d4c5365637265744167656e74733a204f7574206f662074696d6500000000006044820152606401610d0a565b611738876005612cf4565b156117985760405162461bcd60e51b815260206004820152602a60248201527f4d4c5365637265744167656e74733a20546f6b656e2064617461206973206e6f6044820152693a1031b7b93932b1ba1760b11b6064820152608401610d0a565b60006117a2611c2f565b9050600088156119a15760005b60ff81168a1115611921578a8a8260ff168181106117cf576117cf6140c7565b9050602002013560000361181f5760405162461bcd60e51b81526020600482015260176024820152762a37b5b2b71024b21031b0b713ba103132903d32b9379760491b6044820152606401610d0a565b60125433906001600160a01b0316636352211e8d8d60ff8616818110611847576118476140c7565b905060200201356040518263ffffffff1660e01b815260040161186c91815260200190565b602060405180830381865afa158015611889573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118ad91906140f6565b6001600160a01b03161461190f5760405162461bcd60e51b8152602060048201526024808201527f4d4c5365637265744167656e74733a2043616c6c6572206973206e6f74206f776044820152633732b91760e11b6064820152608401610d0a565b8061191981614010565b9150506117af565b5060125460405163b80f55c960e01b81526001600160a01b039091169063b80f55c990611954908d908d90600401614149565b600060405180830381600087803b15801561196e57600080fd5b505af1158015611982573d6000803e3d6000fd5b5061199492508b915060059050612d00565b61199e9082613fe1565b90505b8615611b8f5760005b60ff8116881115611b295788888260ff168181106119ca576119ca6140c7565b90506020020135600003611a1a5760405162461bcd60e51b81526020600482015260176024820152762a37b5b2b71024b21031b0b713ba103132903d32b9379760491b6044820152606401610d0a565b60125433906001600160a01b0316636352211e8b8b60ff8616818110611a4257611a426140c7565b905060200201356040518263ffffffff1660e01b8152600401611a6791815260200190565b602060405180830381865afa158015611a84573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611aa891906140f6565b6001600160a01b031614611b095760405162461bcd60e51b815260206004820152602260248201527f4d4c5365637265744167656e74733a20596f7520617265206e6f74206f776e65604482015261391760f11b6064820152608401610d0a565b81611b13816140dd565b9250508080611b2190614010565b9150506119aa565b5060125460405163b80f55c960e01b81526001600160a01b039091169063b80f55c990611b5c908b908b90600401614149565b600060405180830381600087803b158015611b7657600080fd5b505af1158015611b8a573d6000803e3d6000fd5b505050505b60008111611bf25760405162461bcd60e51b815260206004820152602a60248201527f4d4c5365637265744167656e74733a204d696e7420616d6f756e742063616e276044820152693a103132903d32b9379760b11b6064820152608401610d0a565b60015b818160ff1611611c2257611c10336110ef60ff841686613fe1565b80611c1a81614010565b915050611bf5565b5050505050505050505050565b6000611c3a60135490565b905090565b6000818152600260205260408120546001600160a01b031680610bfd5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610d0a565b600a546001600160a01b03163314611ce05760405162461bcd60e51b8152600401610d0a9061415d565b6001600160a01b038216611d285760405162461bcd60e51b815260206004820152600f60248201526e556e6b6e6f776e206164647265737360881b6044820152606401610d0a565b6001600160a01b039091166000908152601b6020526040902055565b600a546001600160a01b03163314611d6e5760405162461bcd60e51b8152600401610d0a9061415d565b6001600160a01b03166000908152601960205260409020805460ff19166001179055565b600a546001600160a01b03163314611dbc5760405162461bcd60e51b8152600401610d0a9061415d565b601280546001600160a01b0319166001600160a01b0392909216919091179055565b3360009081526019602052604090205460ff16611e0d5760405162461bcd60e51b8152600401610d0a9061402f565b600080611e18611c2f565b905060005b8451811015611e5f57838181518110611e3857611e386140c7565b602002602001015183611e4b9190613fe1565b925080611e57816140dd565b915050611e1d565b50600c54611e6d8383613fe1565b1115611ea75760405162461bcd60e51b815260206004820152600960248201526813585e081b1a5b5a5d60ba1b6044820152606401610d0a565b60005b8451811015611f2c5760005b848281518110611ec857611ec86140c7565b6020026020010151811015611f195782611ee1816140dd565b935050611f07868381518110611ef957611ef96140c7565b6020026020010151846128ea565b80611f11816140dd565b915050611eb6565b5080611f24816140dd565b915050611eaa565b5050505050565b60006001600160a01b038216611f9e5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610d0a565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b03163314611fe45760405162461bcd60e51b8152600401610d0a9061415d565b611fee6000612d0c565b565b3360009081526019602052604090205460ff1661201f5760405162461bcd60e51b8152600401610d0a9061402f565b600d8190556040518181527fc83d13efd20405bd69a6e26fd71d067b31246b9fe9ad2b945536dd1770330d48906020015b60405180910390a150565b3360009081526019602052604090205460ff1661208a5760405162461bcd60e51b8152600401610d0a9061402f565b478061209557600080fd5b61142573b9a02542e41dbedaec5cf18030a3519ee0120a5182612d5e565b3360009081526019602052604090205460ff166120e25760405162461bcd60e51b8152600401610d0a9061402f565b805161159e906018906020840190613773565b600061213188888888888860405160200161211596959493929190614192565b6040516020818303038152906040528051906020012083612df4565b98975050505050505050565b600a546001600160a01b031633146121675760405162461bcd60e51b8152600401610d0a9061415d565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b600a546001600160a01b031633146121b35760405162461bcd60e51b8152600401610d0a9061415d565b600e8190556040518181527f0e4af3870af723022c49a1ebcf7379a14fa7732c2dc92925407b8d219116a26b90602001612050565b606060018054610c1290613f91565b600a546001600160a01b031633146122215760405162461bcd60e51b8152600401610d0a9061415d565b6001600160a01b03166000908152601960205260409020805460ff19169055565b336001600160a01b0383160361229a5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610d0a565b3360008181526005602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b3360009081526019602052604090205460ff166123355760405162461bcd60e51b8152600401610d0a9061402f565b600f55565b600a546001600160a01b031633146123645760405162461bcd60e51b8152600401610d0a9061415d565b601254600160a01b900460ff166123b05760405162461bcd60e51b815260206004820152601060248201526f50617573652069732064697361626c6560801b6044820152606401610d0a565b60005b815181101561159e5760006001600160a01b03166123ff8383815181106123dc576123dc6140c7565b60200260200101516000908152600260205260409020546001600160a01b031690565b6001600160a01b03160361244157612441612422600a546001600160a01b031690565b838381518110612434576124346140c7565b60200260200101516128ea565b8061244b816140dd565b9150506123b3565b3360009081526019602052604090205460ff166124825760405162461bcd60e51b8152600401610d0a9061402f565b6012805460ff60a81b1916600160a81b8315158102919091179182905560405160ff9190920416151581527fc9a86cb37d0aa63f74b589955a9e81eb64bef79fc5cd22257d081e6704cbba6e90602001612050565b6124e1338361299f565b6124fd5760405162461bcd60e51b8152600401610d0a90614076565b61250984848484612e10565b50505050565b600a546001600160a01b031633146125395760405162461bcd60e51b8152600401610d0a9061415d565b600c8190556040518181527fc83d13efd20405bd69a6e26fd71d067b31246b9fe9ad2b945536dd1770330d4890602001612050565b3360009081526019602052604090205460ff1661259d5760405162461bcd60e51b8152600401610d0a9061402f565b6012805460ff60a01b1916600160a01b8315158102919091179182905560405160ff9190920416151581527f10e1c3fcaff06b68391033547e8f9bb8067d7c4a2e32659b0629153814d242d390602001612050565b6000818152600260205260409020546060906001600160a01b03166126715760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610d0a565b60155460ff1615801561268657506016548210155b801561269457506017548211155b1561272b57601880546126a690613f91565b80601f01602080910402602001604051908101604052809291908181526020018280546126d290613f91565b801561271f5780601f106126f45761010080835404028352916020019161271f565b820191906000526020600020905b81548152906001019060200180831161270257829003601f168201915b50505050509050919050565b6000612735612e43565b905060008151116127555760405180602001604052806000815250612780565b8061275f84612e52565b6040516020016127709291906141de565b6040516020818303038152906040525b9392505050565b3360009081526019602052604090205460ff166127b65760405162461bcd60e51b8152600401610d0a9061402f565b601055565b6014805461123190613f91565b604080516001600160a01b0386166020820152908101849052606081018390526000906127f790608001612115565b90505b949350505050565b600a546001600160a01b0316331461282c5760405162461bcd60e51b8152600401610d0a9061415d565b6001600160a01b0381166128915760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d0a565b61142581612d0c565b60006001600160e01b031982166380ac58cd60e01b14806128cb57506001600160e01b03198216635b5e139f60e01b145b80610bfd57506301ffc9a760e01b6001600160e01b0319831614610bfd565b6128f8601380546001019055565b6129028282612f52565b60405181907fbe1271b0a81e356910e2c561a1f82422374662a1eb03a602fb5f6cf296d0902390600090a25050565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061296682611c3f565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316612a185760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610d0a565b6000612a2383611c3f565b9050806001600160a01b0316846001600160a01b03161480612a5e5750836001600160a01b0316612a5384610c95565b6001600160a01b0316145b806127fa57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff166127fa565b826001600160a01b0316612aa582611c3f565b6001600160a01b031614612b0d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610d0a565b6001600160a01b038216612b6f5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610d0a565b612b7a838383612f6c565b612b85600082612931565b6001600160a01b0383166000908152600360205260408120805460019290612bae908490613ff9565b90915550506001600160a01b0382166000908152600360205260408120805460019290612bdc908490613fe1565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000612780828461420d565b6000612c5482611c3f565b90506000612c63828285612f6c565b612c6e600084612931565b6001600160a01b0382166000908152600360205260408120805460019290612c97908490613ff9565b909155505060008381526002602052604080822080546001600160a01b03191690555184916001600160a01b0384811692908616917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006127808284614242565b60006127808284614256565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612dab576040519150601f19603f3d011682016040523d82523d6000602084013e612db0565b606091505b505090508061121f5760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610d0a565b6000806000612e038585613024565b915091506114c181613092565b612e1b848484612a92565b612e2784848484613248565b6125095760405162461bcd60e51b8152600401610d0a9061426a565b606060148054610c1290613f91565b606081600003612e795750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612ea35780612e8d816140dd565b9150612e9c9050600a83614256565b9150612e7d565b6000816001600160401b03811115612ebd57612ebd6138c3565b6040519080825280601f01601f191660200182016040528015612ee7576020820181803683370190505b5090505b84156127fa57612efc600183613ff9565b9150612f09600a86614242565b612f14906030613fe1565b60f81b818381518110612f2957612f296140c7565b60200101906001600160f81b031916908160001a905350612f4b600a86614256565b9450612eeb565b61159e828260405180602001604052806000815250613346565b6001600160a01b038316612fc757612fc281600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b612fea565b816001600160a01b0316836001600160a01b031614612fea57612fea8382613379565b6001600160a01b0382166130015761121f81613416565b826001600160a01b0316826001600160a01b03161461121f5761121f82826134c5565b600080825160410361305a5760208301516040840151606085015160001a61304e87828585613509565b9450945050505061308b565b825160400361308357602083015160408401516130788683836135f6565b93509350505061308b565b506000905060025b9250929050565b60008160048111156130a6576130a66142bc565b036130ae5750565b60018160048111156130c2576130c26142bc565b0361310f5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610d0a565b6002816004811115613123576131236142bc565b036131705760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610d0a565b6003816004811115613184576131846142bc565b036131dc5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610d0a565b60048160048111156131f0576131f06142bc565b036114255760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610d0a565b60006001600160a01b0384163b1561333e57604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061328c9033908990889088906004016142d2565b6020604051808303816000875af19250505080156132c7575060408051601f3d908101601f191682019092526132c49181019061430f565b60015b613324573d8080156132f5576040519150601f19603f3d011682016040523d82523d6000602084013e6132fa565b606091505b50805160000361331c5760405162461bcd60e51b8152600401610d0a9061426a565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506127fa565b5060016127fa565b6133508383613625565b61335d6000848484613248565b61121f5760405162461bcd60e51b8152600401610d0a9061426a565b6000600161338684611f33565b6133909190613ff9565b6000838152600760205260409020549091508082146133e3576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061342890600190613ff9565b60008381526009602052604081205460088054939450909284908110613450576134506140c7565b906000526020600020015490508060088381548110613471576134716140c7565b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806134a9576134a961432c565b6001900381819060005260206000200160009055905550505050565b60006134d083611f33565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561354057506000905060036135ed565b8460ff16601b1415801561355857508460ff16601c14155b1561356957506000905060046135ed565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156135bd573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166135e6576000600192509250506135ed565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b0161361787828885613509565b935093505050935093915050565b6001600160a01b03821661367b5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610d0a565b6000818152600260205260409020546001600160a01b0316156136e05760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610d0a565b6136ec60008383612f6c565b6001600160a01b0382166000908152600360205260408120805460019290613715908490613fe1565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461377f90613f91565b90600052602060002090601f0160209004810192826137a157600085556137e7565b82601f106137ba57805160ff19168380011785556137e7565b828001600101855582156137e7579182015b828111156137e75782518255916020019190600101906137cc565b506137f39291506137f7565b5090565b5b808211156137f357600081556001016137f8565b6001600160e01b03198116811461142557600080fd5b60006020828403121561383457600080fd5b81356127808161380c565b60005b8381101561385a578181015183820152602001613842565b838111156125095750506000910152565b6000815180845261388381602086016020860161383f565b601f01601f19169290920160200192915050565b602081526000612780602083018461386b565b6000602082840312156138bc57600080fd5b5035919050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715613901576139016138c3565b604052919050565b60006001600160401b03831115613922576139226138c3565b613935601f8401601f19166020016138d9565b905082815283838301111561394957600080fd5b828260208301376000602084830101529392505050565b600082601f83011261397157600080fd5b61278083833560208501613909565b60008060006060848603121561399557600080fd5b833592506020840135915060408401356001600160401b038111156139b957600080fd5b6139c586828701613960565b9150509250925092565b6001600160a01b038116811461142557600080fd5b600080604083850312156139f757600080fd5b8235613a02816139cf565b946020939093013593505050565b600060208284031215613a2257600080fd5b8135612780816139cf565b80358015158114613a3d57600080fd5b919050565b600080600060608486031215613a5757600080fd5b613a6084613a2d565b95602085013595506040909401359392505050565b600080600060608486031215613a8a57600080fd5b8335613a95816139cf565b92506020840135613aa5816139cf565b929592945050506040919091013590565b6020808252825182820181905260009190848201906040850190845b81811015613aee57835183529284019291840191600101613ad2565b50909695505050505050565b600060208284031215613b0c57600080fd5b81356001600160401b03811115613b2257600080fd5b8201601f81018413613b3357600080fd5b6127fa84823560208401613909565b60008083601f840112613b5457600080fd5b5081356001600160401b03811115613b6b57600080fd5b6020830191508360208260051b850101111561308b57600080fd5b60008060008060008060808789031215613b9f57600080fd5b86356001600160401b0380821115613bb657600080fd5b613bc28a838b01613b42565b90985096506020890135915080821115613bdb57600080fd5b613be78a838b01613b42565b9096509450604089013593506060890135915080821115613c0757600080fd5b50613c1489828a01613960565b9150509295509295509295565b60006001600160401b03821115613c3a57613c3a6138c3565b5060051b60200190565b600082601f830112613c5557600080fd5b81356020613c6a613c6583613c21565b6138d9565b82815260059290921b84018101918181019086841115613c8957600080fd5b8286015b84811015613ca45780358352918301918301613c8d565b509695505050505050565b60008060408385031215613cc257600080fd5b82356001600160401b0380821115613cd957600080fd5b818501915085601f830112613ced57600080fd5b81356020613cfd613c6583613c21565b82815260059290921b84018101918181019089841115613d1c57600080fd5b948201945b83861015613d43578535613d34816139cf565b82529482019490820190613d21565b96505086013592505080821115613d5957600080fd5b50613d6685828601613c44565b9150509250929050565b600080600080600080600060a0888a031215613d8b57600080fd5b8735613d96816139cf565b965060208801356001600160401b0380821115613db257600080fd5b613dbe8b838c01613b42565b909850965060408a0135915080821115613dd757600080fd5b613de38b838c01613b42565b909650945060608a0135935060808a0135915080821115613e0357600080fd5b50613e108a828b01613960565b91505092959891949750929550565b60008060408385031215613e3257600080fd5b8235613e3d816139cf565b9150613e4b60208401613a2d565b90509250929050565b600060208284031215613e6657600080fd5b81356001600160401b03811115613e7c57600080fd5b6127fa84828501613c44565b600060208284031215613e9a57600080fd5b61278082613a2d565b60008060008060808587031215613eb957600080fd5b8435613ec4816139cf565b93506020850135613ed4816139cf565b92506040850135915060608501356001600160401b03811115613ef657600080fd5b613f0287828801613960565b91505092959194509250565b60008060408385031215613f2157600080fd5b8235613f2c816139cf565b91506020830135613f3c816139cf565b809150509250929050565b60008060008060808587031215613f5d57600080fd5b8435613f68816139cf565b9350602085013592506040850135915060608501356001600160401b03811115613ef657600080fd5b600181811c90821680613fa557607f821691505b602082108103613fc557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115613ff457613ff4613fcb565b500190565b60008282101561400b5761400b613fcb565b500390565b600060ff821660ff810361402657614026613fcb565b60010192915050565b60208082526027908201527f4d4c5365637265744167656e74733a2043616c6c6572206973206e6f74207468604082015266329030b236b4b760c91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b6000600182016140ef576140ef613fcb565b5060010190565b60006020828403121561410857600080fd5b8151612780816139cf565b81835260006001600160fb1b0383111561412c57600080fd5b8260051b8083602087013760009401602001938452509192915050565b6020815260006127fa602083018486614113565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b6001600160a01b03871681526080602082018190526000906141b79083018789614113565b82810360408401526141ca818688614113565b915050826060830152979650505050505050565b600083516141f081846020880161383f565b83519083019061420481836020880161383f565b01949350505050565b600081600019048311821515161561422757614227613fcb565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826142515761425161422c565b500690565b6000826142655761426561422c565b500490565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b634e487b7160e01b600052602160045260246000fd5b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906143059083018461386b565b9695505050505050565b60006020828403121561432157600080fd5b81516127808161380c565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220bc907cffa1cdd9374fda1c292c07dd4e08047a2c2ed495b72d487e88d9f8f2c964736f6c634300080d003300000000000000000000000097872711eed74649d0f460ebaa7208d4daff9f160000000000000000000000007a41e410bb784d9875fa14f2d7d2fa825466cdae

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000097872711eed74649d0f460ebaa7208d4daff9f160000000000000000000000007a41e410bb784d9875fa14f2d7d2fa825466cdae

-----Decoded View---------------
Arg [0] : _singenr (address): 0x97872711EeD74649d0F460ebAa7208d4daff9F16
Arg [1] : _mlagents (address): 0x7A41e410BB784D9875Fa14F2d7d2fA825466CDaE

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 00000000000000000000000097872711eed74649d0f460ebaa7208d4daff9f16
Arg [1] : 0000000000000000000000007a41e410bb784d9875fa14f2d7d2fa825466cdae


Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.