Contract 0x98701E1a746B792D527bd33c0bd26466A017f092

Txn Hash Method
Block
From
To
Value [Txn Fee]
0x2a0289ccb35a8a8d3bd883499bb123f2138488605d2635965ac99f23f9e9b92fSet Approval For...194798542022-09-03 8:54:34198 days 3 hrs agoTrader Joe: Deployer IN  0x98701e1a746b792d527bd33c0bd26466a017f0920 AVAX0.0012254925 26.5
0x169272b50eb55f45907168967165d39737b5d61530206e4b81a825948121bf25Set Approval For...194797882022-09-03 8:52:22198 days 3 hrs agoTrader Joe: Deployer IN  0x98701e1a746b792d527bd33c0bd26466a017f0920 AVAX0.0012254925 26.5
0x154b2a97c15a20556c5a1eb8b20cf5c7c5d6eb1af820b9d7a9b7b854cfd405ceSafe Transfer Fr...194790062022-09-03 8:25:57198 days 3 hrs ago0xb14c35ce299e95f0adaa19b91d12d03edda4da0b IN  0x98701e1a746b792d527bd33c0bd26466a017f0920 AVAX0.0029696430
0x42140300fa4156ec793c85e5d1e8b9ac0f4397ebf441d8de66085da012ef8589Safe Transfer Fr...194790062022-09-03 8:25:57198 days 3 hrs ago0x333bca45c635bd7b3821a5b187332611dbe9afb8 IN  0x98701e1a746b792d527bd33c0bd26466a017f0920 AVAX0.0029696430
0x40e3aa415eadf5cc068ceae6a8a9ef6d30824aa4f812b40104bf40b7e8217e82Safe Transfer Fr...194790062022-09-03 8:25:57198 days 3 hrs ago0xfcc0a9b36d7fc8be72eb276743718e2e78653595 IN  0x98701e1a746b792d527bd33c0bd26466a017f0920 AVAX0.0029696430
0x2dbe6f995d5223b7e76f8a66cb0a2f37d112e32e7295e74c48d34293d9ade014Safe Transfer Fr...194790062022-09-03 8:25:57198 days 3 hrs ago0x4f8ee62ee26a7cce27ebf91fb1f3e5c9697d68f3 IN  0x98701e1a746b792d527bd33c0bd26466a017f0920 AVAX0.0029696430
0x2a723d1cf4ae39af229c78a50f715104c51aef6abc53f643f8b971ced2107ce0Safe Transfer Fr...194790062022-09-03 8:25:57198 days 3 hrs ago0x51bc2914c356ce81e2b02a55440e0fe3ac48d7f9 IN  0x98701e1a746b792d527bd33c0bd26466a017f0920 AVAX0.0029696430
0x205c95f431ea24cead3b5f0ad19f298ac0c2e83e381fde11c6522064c9bb2ae0Safe Transfer Fr...194790062022-09-03 8:25:57198 days 3 hrs ago0x935d5a6da193f071014a37948723e7ca76b4af44 IN  0x98701e1a746b792d527bd33c0bd26466a017f0920 AVAX0.0029696430
0x7be3437da76b43fa8f323ec20e86483c7e7ea9ac3c6aea2f928075e8425c0174Safe Transfer Fr...194790062022-09-03 8:25:57198 days 3 hrs ago0xde42aff25aad49199241690f736faf4d23924fbf IN  0x98701e1a746b792d527bd33c0bd26466a017f0920 AVAX0.0029696430
0x5f15b79257e128324d420a4856e1b3ddc7908cd5d9fd26894b5d76f1fffddfa0Safe Transfer Fr...194790062022-09-03 8:25:57198 days 3 hrs ago0x128472112ce992ed70d6e6126086ed4638d611d0 IN  0x98701e1a746b792d527bd33c0bd26466a017f0920 AVAX0.0029696430
0xf056725e5d94415ceabae5d1708895a1874af2f12b648c60ebe7709c57dac265Safe Transfer Fr...194790062022-09-03 8:25:57198 days 3 hrs ago0x39732de98113a08136c78b2f113b33bd50eb3a8e IN  0x98701e1a746b792d527bd33c0bd26466a017f0920 AVAX0.0029696430
0xdd1a0f71a98c49c23cbef657cc6b7f754f3cf6edfbf3f747efcca6188cd3f161Safe Transfer Fr...194790062022-09-03 8:25:57198 days 3 hrs ago0xdb999e8df27445581b42bf2489c198ddda53e9ba IN  0x98701e1a746b792d527bd33c0bd26466a017f0920 AVAX0.0029696430
0xb6a4d8cf48c3885ea330a6f8330d4789b0723d9096a6d00489157ec6ef80d2d4Safe Transfer Fr...194790062022-09-03 8:25:57198 days 3 hrs ago0x3336cfa3666246356cc5bb19df2dd6e8b5910610 IN  0x98701e1a746b792d527bd33c0bd26466a017f0920 AVAX0.0029696430
0x9f37f3c32fa71a26557e53fe4bb84f07b4e6d13ae577c03d24e36824b8faaf58Safe Transfer Fr...194790062022-09-03 8:25:57198 days 3 hrs ago0xb05da83c060d486a17963123cb17ce65aa16d452 IN  0x98701e1a746b792d527bd33c0bd26466a017f0920 AVAX0.0029696430
0x65e266cb0cc88c665da3088c79ec82bb9f1623ef2d391e686fb3c3b20521503fSafe Transfer Fr...194790062022-09-03 8:25:57198 days 3 hrs ago0x1bb3797f0d689ebc57c67a042d492ec659acf3b8 IN  0x98701e1a746b792d527bd33c0bd26466a017f0920 AVAX0.0029696430
0x9f5ec7f4c57fecd934f46c8da1b28f578b99e149566c6b73198fa01da7c452bfSafe Transfer Fr...194790062022-09-03 8:25:57198 days 3 hrs ago0xb0590756e17cf45346da2c6809d0d43bbd5df4ba IN  0x98701e1a746b792d527bd33c0bd26466a017f0920 AVAX0.0029696430
0x579f8c5423c62ee94fe3a996edb8b07282a2eaa6a46f52fd4e07db62cf681bddSafe Transfer Fr...194790062022-09-03 8:25:57198 days 3 hrs ago0xe62816d919d2129d9180a30c7b1ae09cf61ab9ce IN  0x98701e1a746b792d527bd33c0bd26466a017f0920 AVAX0.0029696430
0xc42054ac0a4b2c038bbd19815af10ec2f173b76504c8fcb7e9fc13617becc43eSafe Transfer Fr...194790062022-09-03 8:25:57198 days 3 hrs ago0x33bd178854de2d314e6fe5e410a90ab12567b9fd IN  0x98701e1a746b792d527bd33c0bd26466a017f0920 AVAX0.0029696430
0x006ebcedc1927d6f2db10e9b0a192520f200b75b52f068ff28ce80e84430f538Safe Transfer Fr...194790062022-09-03 8:25:57198 days 3 hrs ago0x4a1d530d16359c712a25208f1ded3051303c104d IN  0x98701e1a746b792d527bd33c0bd26466a017f0920 AVAX0.0029696430
0xcd38b70128a6fe48ee0ccce87da5f9dedd3a581e70a68f720b14fc38ccb87f80Safe Transfer Fr...194790062022-09-03 8:25:57198 days 3 hrs ago0x4e841a3ea455fcdc91ccc8f5223a1743cd279aa2 IN  0x98701e1a746b792d527bd33c0bd26466a017f0920 AVAX0.0029696430
0x31494114c7de331d4773b36af51682aeabf1221e852b4f072bceda33289a6b96Safe Transfer Fr...194790052022-09-03 8:25:56198 days 3 hrs ago0xb17a41f344d8337ccbe28206cf69b7a870634b9c IN  0x98701e1a746b792d527bd33c0bd26466a017f0920 AVAX0.0028856430
0xd3bed1cbf4529fe9cc3215c1370eccddc82f504d1bf314a1ddc3b2c1ce96349aSet Approval For...194615272022-09-02 22:29:33198 days 13 hrs ago0xb0590756e17cf45346da2c6809d0d43bbd5df4ba IN  0x98701e1a746b792d527bd33c0bd26466a017f0920 AVAX0.0012717375 27.5
0x48455e139d6dd34ac85f0078e23529978c2428a2fc6fff59d2a110a3e63cef67Set Approval For...194615162022-09-02 22:29:11198 days 13 hrs ago0xb0590756e17cf45346da2c6809d0d43bbd5df4ba IN  0x98701e1a746b792d527bd33c0bd26466a017f0920 AVAX0.0012254925 26.5
0xb0dbe90eb4fb8246821b4f9cc930cdeff7ad9423487108ed8fd0a93d6873044bSet Approval For...194615082022-09-02 22:28:55198 days 13 hrs ago0xb0590756e17cf45346da2c6809d0d43bbd5df4ba IN  0x98701e1a746b792d527bd33c0bd26466a017f0920 AVAX0.0012254925 26.5
0x5d8f98115a135ca4d0cdeb42e48bc82ada70828031ba210388367ff6e9c160f1Set Approval For...194614852022-09-02 22:28:09198 days 13 hrs ago0x884cf175a529e9848bdabf6beb4c7b465a448aac IN  0x98701e1a746b792d527bd33c0bd26466a017f0920 AVAX0.0012254925 26.5
[ Download CSV Export 
Latest 1 internal transaction
Parent Txn Hash Block From To Value
0x9a8f815e4cca225e92c95adc7f4094e28b4273c50776bd90a5db142d8eea09b1194607812022-09-02 22:04:33198 days 14 hrs ago 0x98701e1a746b792d527bd33c0bd26466a017f092DegenX: Deployer160 AVAX
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
DGNXPrivateSaleNFT

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 15 : DGNXPrivateSaleNFT.sol
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.4;

import '@openzeppelin/contracts/access/Ownable.sol';
import '@openzeppelin/contracts/token/ERC721/ERC721.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol';
import '@openzeppelin/contracts/utils/Counters.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/security/ReentrancyGuard.sol';

contract DGNXPrivateSaleNFT is
    Ownable,
    ReentrancyGuard,
    ERC721,
    ERC721Enumerable
{
    using Strings for uint256;
    using Counters for Counters.Counter;

    enum TicketType {
        BRONZE,
        SILVER,
        GOLD
    }

    bool private _mintingStarted = false;
    bool private _mintingStartedGold = false;
    bool private _mintingStartedSilver = false;
    bool private _mintingStartedBronze = false;
    string private _assetsBaseURI;
    uint256 public _mintPriceBronze;
    uint256 public _mintPriceSilver;
    uint256 public _mintPriceGold;
    uint256 public _bronzeMaxSupply;
    uint256 public _silverMaxSupply;
    uint256 public _goldMaxSupply;

    // whitelisting
    mapping(address => bool) private whitelist;
    mapping(address => TicketType) private whitelistType;
    mapping(address => bool) private whitelistAdmins;

    // status
    Counters.Counter private _tokenIds;

    mapping(uint256 => TicketType) private _tokenTicketTypes;
    uint256 public _bronzeCurrentSupply;
    uint256 public _silverCurrentSupply;
    uint256 public _goldCurrentSupply;

    // events
    event StartMinting(address sender);
    event StopMinting(address sender);
    event StartMintingBronze(address sender);
    event StopMintingBronze(address sender);
    event StartMintingSilver(address sender);
    event StopMintingSilver(address sender);
    event StartMintingGold(address sender);
    event StopMintingGold(address sender);
    event FundsDirectlyDeposited(address sender, uint256 amount);
    event FundsReceived(address sender, uint256 amount);
    event TokensMinted(
        address minter,
        uint256 currentSupply,
        uint256 bronzeSupply,
        uint256 silverSupply,
        uint256 goldSupply,
        uint256 bronzeMaxSupply,
        uint256 silverMaxSupply,
        uint256 goldMaxSupply
    );
    event TokensBurned(
        address burner,
        uint256 currentSupply,
        uint256 bronzeSupply,
        uint256 silverSupply,
        uint256 goldSupply,
        uint256 bronzeMaxSupply,
        uint256 silverMaxSupply,
        uint256 goldMaxSupply
    );

    constructor(
        string memory _name,
        string memory _symbol,
        string memory assetsBaseURI,
        uint256 goldMaxSupply,
        uint256 silverMaxSupply,
        uint256 bronzeMaxSupply
    ) ERC721(_name, _symbol) {
        // set bronze info for contract
        _goldMaxSupply = goldMaxSupply;
        _silverMaxSupply = silverMaxSupply;
        _bronzeMaxSupply = bronzeMaxSupply;
        _mintPriceBronze = 2;
        _mintPriceSilver = 2;
        _mintPriceGold = 2;
        _assetsBaseURI = assetsBaseURI;
    }

    // --- fallback/received --- //
    receive() external payable {
        emit FundsReceived(_msgSender(), msg.value);
    }

    fallback() external payable {
        emit FundsDirectlyDeposited(_msgSender(), msg.value);
    }

    modifier onlyAllowed() {
        require(
            _msgSender() == owner() || whitelistAdmins[_msgSender()],
            '!rights'
        );
        _;
    }

    // --- overrides --- //
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override(ERC721, ERC721Enumerable) {
        super._beforeTokenTransfer(from, to, tokenId);
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC721, ERC721Enumerable)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }

    function _baseURI() internal view override(ERC721) returns (string memory) {
        return _assetsBaseURI;
    }

    // --- modifiers --- //
    modifier whenMintingAllowed() {
        require(
            _mintingStarted &&
                _tokenIds.current() <
                _bronzeMaxSupply + _silverMaxSupply + _goldMaxSupply,
            'DGNXPrivateSaleNFT::whenMintingAllowed not started or sold-out'
        );
        _;
    }

    // -- utils -- //
    function _actualMintPrice(TicketType sType)
        internal
        view
        returns (uint256)
    {
        if (sType == TicketType.BRONZE) {
            return _mintPriceBronze * (10**(18));
        } else if (sType == TicketType.SILVER) {
            return _mintPriceSilver * (10**(18));
        } else {
            return _mintPriceGold * (10**(18));
        }
    }

    // --- owners call --- //
    /**
     *  withdraw
     */
    function withdrawFunds() external onlyOwner {
        payable(owner()).transfer(address(this).balance);
    }

    /**
     * airdrop minting - this function is only to be called in case
     * of not minting out and community vote to airdrop the remainders
     * to all holders.
     */
    function airdropMint(address recipient, TicketType sType)
        external
        onlyOwner
    {
        require(
            balanceOf(recipient) == 0,
            'DGNXPrivateSaleNFT::airdropMint Exceeds maximum amount per ticket per wallet'
        );
        bool allowedToMint = false;
        if (sType == TicketType.BRONZE) {
            allowedToMint = (_bronzeCurrentSupply + 1) <= _bronzeMaxSupply;
        }
        if (sType == TicketType.SILVER) {
            allowedToMint = (_silverCurrentSupply + 1) <= _silverMaxSupply;
        }
        if (sType == TicketType.GOLD) {
            allowedToMint = (_goldCurrentSupply + 1) <= _goldMaxSupply;
        }

        require(
            allowedToMint,
            'DGNXPrivateSaleNFT::airdropMint Exceeds max supply allowed'
        );
        mintToken(recipient, sType, 1);
    }

    // --- token --- //
    /**
     * actual mint function
     */
    function mintToken(
        address recipient,
        TicketType sType,
        uint256 amount
    ) internal {
        uint256 tokenId;
        for (uint256 i = 0; i < amount; i++) {
            _tokenIds.increment();
            tokenId = _tokenIds.current();
            _mint(recipient, tokenId);
            _tokenTicketTypes[tokenId] = sType;
        }

        if (sType == TicketType.BRONZE) {
            _bronzeCurrentSupply += amount;
        } else if (sType == TicketType.SILVER) {
            _silverCurrentSupply += amount;
        } else {
            _goldCurrentSupply += amount;
        }

        emit TokensMinted(
            recipient,
            totalSupply(),
            _bronzeCurrentSupply,
            _silverCurrentSupply,
            _goldCurrentSupply,
            _bronzeMaxSupply,
            _silverMaxSupply,
            _goldMaxSupply
        );
    }

    function mint() public payable whenMintingAllowed nonReentrant {
        require(
            !whitelist[_msgSender()],
            'DGNXPrivateSaleNFT::mint not allowed to mint ticket'
        );
        require(
            balanceOf(_msgSender()) == 0,
            'DGNXPrivateSaleNFT::mint Exceeds maximum amount per ticket per wallet'
        );
        require(
            msg.value >= _actualMintPrice(TicketType.SILVER),
            'DGNXPrivateSaleNFT::mint Insufficient payment'
        );
        require(
            (_silverCurrentSupply + 1) <= _silverMaxSupply,
            'DGNXPrivateSaleNFT::mint Exceeds max supply allowed for ticket'
        );
        require(
            _mintingStartedSilver,
            'DGNXPrivateSaleNFT::mintWhitelist Silver minting not started yet'
        );

        mintToken(_msgSender(), TicketType.SILVER, 1);
    }

    function mintWhitelist() public payable whenMintingAllowed nonReentrant {
        TicketType _type = whitelistType[_msgSender()];
        delete whitelistType[_msgSender()];
        require(
            whitelist[_msgSender()],
            'DGNXPrivateSaleNFT::mintWhitelist not allowed to mint ticket'
        );
        require(
            balanceOf(_msgSender()) == 0,
            'DGNXPrivateSaleNFT::mintWhitelist Exceeds maximum amount per ticket per wallet'
        );
        require(
            msg.value >= _actualMintPrice(_type),
            'DGNXPrivateSaleNFT::mintWhitelist Insufficient payment'
        );

        bool allowedToMint = false;
        if (_type == TicketType.GOLD) {
            require(
                _mintingStartedGold,
                'DGNXPrivateSaleNFT::mintWhitelist Gold minting not started yet'
            );
            allowedToMint = (_goldCurrentSupply + 1) <= _goldMaxSupply;
        }
        if (_type == TicketType.BRONZE) {
            require(
                _mintingStartedBronze,
                'DGNXPrivateSaleNFT::mintWhitelist Bronze minting not started yet'
            );
            allowedToMint = (_bronzeCurrentSupply + 1) <= _bronzeMaxSupply;
        }

        require(
            allowedToMint,
            'DGNXPrivateSaleNFT::mintWhitelist Exceeds max supply allowed for ticket'
        );

        mintToken(_msgSender(), _type, 1);
    }

    function burn(uint256 tokenId) public nonReentrant {
        require(
            _isApprovedOrOwner(_msgSender(), tokenId),
            'DGNXPrivateSaleNFT::burn Not owner nor approved'
        );
        _burn(tokenId);
        emit TokensBurned(
            _msgSender(),
            totalSupply(),
            _bronzeCurrentSupply,
            _silverCurrentSupply,
            _goldCurrentSupply,
            _bronzeMaxSupply,
            _silverMaxSupply,
            _goldMaxSupply
        );
    }

    /**
     * @dev returns the token metadata uri - initially we'll be hosting our own
     * once we get some metrics in how metadata & assets are being used by the ecosystem
     * we will find a place to host it permanently and decentralized (e.g: ipfs)
     */
    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override(ERC721)
        returns (string memory)
    {
        require(
            _exists(tokenId),
            'DGNXPrivateSaleNFT::tokenURI Nonexistent token'
        );
        string memory baseURI = _baseURI();
        string memory typeName;
        if (_tokenTicketTypes[tokenId] == TicketType.GOLD) {
            typeName = 'gold.jpg';
        } else if (_tokenTicketTypes[tokenId] == TicketType.SILVER) {
            typeName = 'silver.jpg';
        } else {
            typeName = 'bronze.jpg';
        }
        return
            bytes(baseURI).length > 0
                ? string(abi.encodePacked(baseURI, typeName))
                : '';
    }

    function lookupTicketType(uint256 tokenId) public view returns (uint256) {
        require(
            _exists(tokenId),
            'DGNXPrivateSaleNFT::lookupTicketType Nonexistent token'
        );
        return uint256(_tokenTicketTypes[tokenId]);
    }

    // whitelisting
    function addToWhitelist(address _addr, TicketType _type)
        external
        onlyAllowed
    {
        require(
            _addr != address(0),
            'DGNXPrivateSaleNFT::addToWhitelist not valid address'
        );
        require(
            _type == TicketType.GOLD || _type == TicketType.BRONZE,
            'DGNXPrivateSaleNFT::addToWhitelist not valid ticket type'
        );
        whitelist[_addr] = true;
        whitelistType[_addr] = _type;
    }

    function revokeFromWhitelist(address _addr) external onlyAllowed {
        require(
            _addr != address(0),
            'DGNXPrivateSaleNFT::revokeFromWhitelist not valid address'
        );
        whitelist[_addr] = false;
        delete whitelistType[_addr];
    }

    function isWhitelistedForType(address _addr, TicketType _type)
        external
        view
        returns (bool)
    {
        return whitelist[_addr] && whitelistType[_addr] == _type;
    }

    function isWhitelisted(address _addr) external view returns (bool) {
        return whitelist[_addr];
    }

    function addWhitelistAdmin(address _addr) external onlyOwner {
        require(
            _addr != address(0),
            'DGNXPrivateSaleNFT::addWhitelistAdmin not valid address'
        );
        whitelistAdmins[_addr] = true;
    }

    function revokeWhitelistAdmin(address _addr) external onlyOwner {
        require(
            _addr != address(0) && whitelistAdmins[_addr],
            'DGNXPrivateSaleNFT::revokeWhitelistAdmin not valid address'
        );
        whitelistAdmins[_addr] = false;
    }

    function isWhitelistAdmin(address _addr)
        external
        view
        onlyOwner
        returns (bool)
    {
        return whitelistAdmins[_addr];
    }

    function startMintingGold() external onlyOwner {
        _mintingStartedGold = true;
        emit StartMintingGold(_msgSender());
    }

    function stopMintingGold() external onlyOwner {
        _mintingStartedGold = false;
        emit StopMintingGold(_msgSender());
    }

    function hasMintingGoldStarted() external view returns (bool) {
        return _mintingStartedGold;
    }

    function startMintingSilver() external onlyOwner {
        _mintingStartedSilver = true;
        emit StartMintingSilver(_msgSender());
    }

    function stopMintingSilver() external onlyOwner {
        _mintingStartedSilver = false;
        emit StopMintingSilver(_msgSender());
    }

    function hasMintingSilverStarted() external view returns (bool) {
        return _mintingStartedSilver;
    }

    function startMintingBronze() external onlyOwner {
        _mintingStartedBronze = true;
        emit StartMintingBronze(_msgSender());
    }

    function stopMintingBronze() external onlyOwner {
        _mintingStartedBronze = false;
        emit StopMintingBronze(_msgSender());
    }

    function hasMintingBronzeStarted() external view returns (bool) {
        return _mintingStartedBronze;
    }

    function startMinting() external onlyOwner {
        _mintingStarted = true;
        emit StartMinting(_msgSender());
    }

    function stopMinting() external onlyOwner {
        _mintingStarted = false;
        emit StopMinting(_msgSender());
    }

    function hasMintingStarted() external view returns (bool) {
        return _mintingStarted;
    }
}

File 2 of 15 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

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() {
        _transferOwnership(_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 {
        _transferOwnership(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");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 3 of 15 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../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 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 overridden 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 {
        _setApprovalForAll(_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 || isApprovedForAll(owner, spender) || getApproved(tokenId) == 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);

        _afterTokenTransfer(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);

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

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

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

        emit Transfer(owner, address(0), tokenId);

        _afterTokenTransfer(owner, address(0), 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 from incorrect owner");
        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);

        _afterTokenTransfer(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 Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @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.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 {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

File 4 of 15 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./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 5 of 15 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

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 6 of 15 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

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 7 of 15 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 8 of 15 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

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 9 of 15 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol)

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`.
     *
     * 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;

    /**
     * @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 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 the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @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);
}

File 10 of 15 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

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 `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 11 of 15 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

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 12 of 15 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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 15 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

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 14 of 15 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

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 15 of 15 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

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);

    /**
     * @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);
}

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

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"assetsBaseURI","type":"string"},{"internalType":"uint256","name":"goldMaxSupply","type":"uint256"},{"internalType":"uint256","name":"silverMaxSupply","type":"uint256"},{"internalType":"uint256","name":"bronzeMaxSupply","type":"uint256"}],"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":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"FundsDirectlyDeposited","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"FundsReceived","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":"address","name":"sender","type":"address"}],"name":"StartMinting","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"}],"name":"StartMintingBronze","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"}],"name":"StartMintingGold","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"}],"name":"StartMintingSilver","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"}],"name":"StopMinting","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"}],"name":"StopMintingBronze","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"}],"name":"StopMintingGold","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"sender","type":"address"}],"name":"StopMintingSilver","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"burner","type":"address"},{"indexed":false,"internalType":"uint256","name":"currentSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"bronzeSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"silverSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"goldSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"bronzeMaxSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"silverMaxSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"goldMaxSupply","type":"uint256"}],"name":"TokensBurned","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"uint256","name":"currentSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"bronzeSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"silverSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"goldSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"bronzeMaxSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"silverMaxSupply","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"goldMaxSupply","type":"uint256"}],"name":"TokensMinted","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"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"_bronzeCurrentSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_bronzeMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_goldCurrentSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_goldMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_mintPriceBronze","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_mintPriceGold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_mintPriceSilver","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_silverCurrentSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"_silverMaxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"},{"internalType":"enum DGNXPrivateSaleNFT.TicketType","name":"_type","type":"uint8"}],"name":"addToWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"addWhitelistAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"enum DGNXPrivateSaleNFT.TicketType","name":"sType","type":"uint8"}],"name":"airdropMint","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hasMintingBronzeStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hasMintingGoldStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hasMintingSilverStarted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hasMintingStarted","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":"address","name":"_addr","type":"address"}],"name":"isWhitelistAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"},{"internalType":"enum DGNXPrivateSaleNFT.TicketType","name":"_type","type":"uint8"}],"name":"isWhitelistedForType","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"lookupTicketType","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintWhitelist","outputs":[],"stateMutability":"payable","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":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"revokeFromWhitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"revokeWhitelistAdmin","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":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startMintingBronze","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startMintingGold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startMintingSilver","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stopMinting","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stopMintingBronze","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stopMintingGold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stopMintingSilver","outputs":[],"stateMutability":"nonpayable","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":"totalSupply","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":[],"name":"withdrawFunds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

6080604052600c805463ffffffff191690553480156200001e57600080fd5b506040516200398638038062003986833981016040819052620000419162000283565b85856200004e33620000c0565b6001805581516200006790600290602085019062000110565b5080516200007d90600390602084019062000110565b5050506013839055601282905560118190556002600e819055600f8190556010558351620000b390600d90602087019062000110565b505050505050506200036c565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8280546200011e9062000330565b90600052602060002090601f0160209004810192826200014257600085556200018d565b82601f106200015d57805160ff19168380011785556200018d565b828001600101855582156200018d579182015b828111156200018d57825182559160200191906001019062000170565b506200019b9291506200019f565b5090565b5b808211156200019b5760008155600101620001a0565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620001de57600080fd5b81516001600160401b0380821115620001fb57620001fb620001b6565b604051601f8301601f19908116603f01168101908282118183101715620002265762000226620001b6565b816040528381526020925086838588010111156200024357600080fd5b600091505b8382101562000267578582018301518183018401529082019062000248565b83821115620002795760008385830101525b9695505050505050565b60008060008060008060c087890312156200029d57600080fd5b86516001600160401b0380821115620002b557600080fd5b620002c38a838b01620001cc565b97506020890151915080821115620002da57600080fd5b620002e88a838b01620001cc565b96506040890151915080821115620002ff57600080fd5b506200030e89828a01620001cc565b945050606087015192506080870151915060a087015190509295509295509295565b600181811c908216806200034557607f821691505b6020821081036200036657634e487b7160e01b600052602260045260246000fd5b50919050565b61360a806200037c6000396000f3fe60806040526004361061031e5760003560e01c80635c30ccd2116101ab5780639f23277f116100f7578063bc81402711610095578063d01e6efb1161006f578063d01e6efb146108ef578063e985e9c51461090f578063f2fde38b14610958578063fb47150e1461097857610368565b8063bc81402714610899578063c87b56dd146108af578063cdbe0af7146108cf57610368565b8063b48d3cad116100d1578063b48d3cad1461082e578063b6f4749014610843578063b88d4fde14610859578063bb5f747b1461087957610368565b80639f23277f146107d1578063a22cb465146107ee578063a5873eb01461080e57610368565b806388ac8ed1116101645780638da5cb5b1161013e5780638da5cb5b146107735780638e0a308e1461079157806395d89b41146107a75780639a65ea26146107bc57610368565b806388ac8ed1146107275780638ce340db1461073d5780638d88a2ff1461075357610368565b80635c30ccd2146106755780636352211e1461069357806370a08231146106b3578063715018a6146106d35780637362d9c8146106e8578063882a90ab1461070857610368565b80632675c8551161026a5780633e4a38e8116102235780634bd38028116101fd5780634bd38028146106125780634f6ccce7146106285780635a21f826146106485780635aa5d1ee1461065d57610368565b80633e4a38e8146105bd57806342842e0e146105d257806342966c68146105f257610368565b80632675c8551461051c5780632d3df31f146105315780632f745c591461053957806338e40ac5146105595780633af32abf1461056f5780633e3e0b12146105a857610368565b80630fcf56de116102d75780631b71c21a116102b15780631b71c21a146104bc5780631fae571b146104d157806323b872dd146104e757806324600fc31461050757610368565b80630fcf56de146104805780631249c58b1461049557806318160ddd1461049d57610368565b806301698fd11461038f57806301ffc9a7146103c45780630263b858146103e457806306fdde0314610406578063081812fc14610428578063095ea7b31461046057610368565b36610368577f8e47b87b0ef542cdfa1659c551d88bad38aa7f452d2bbb349ab7530dfec8be8f335b604080516001600160a01b0390921682523460208301520160405180910390a1005b7f75756668f8561d6983cba1a336c6b5321e30f585d6a8cb31742a082b2994098933610346565b34801561039b57600080fd5b506103af6103aa366004612fbc565b61098e565b60405190151581526020015b60405180910390f35b3480156103d057600080fd5b506103af6103df36600461300d565b6109f9565b3480156103f057600080fd5b506104046103ff366004612fbc565b610a0a565b005b34801561041257600080fd5b5061041b610bd7565b6040516103bb9190613082565b34801561043457600080fd5b50610448610443366004613095565b610c69565b6040516001600160a01b0390911681526020016103bb565b34801561046c57600080fd5b5061040461047b3660046130ae565b610cfe565b34801561048c57600080fd5b50610404610e13565b610404610e8a565b3480156104a957600080fd5b50600a545b6040519081526020016103bb565b3480156104c857600080fd5b50610404611176565b3480156104dd57600080fd5b506104ae60195481565b3480156104f357600080fd5b506104046105023660046130d8565b6111db565b34801561051357600080fd5b5061040461120d565b34801561052857600080fd5b50610404611274565b6104046112d5565b34801561054557600080fd5b506104ae6105543660046130ae565b611678565b34801561056557600080fd5b506104ae60105481565b34801561057b57600080fd5b506103af61058a366004613114565b6001600160a01b031660009081526014602052604090205460ff1690565b3480156105b457600080fd5b5061040461170e565b3480156105c957600080fd5b50610404611769565b3480156105de57600080fd5b506104046105ed3660046130d8565b6117cc565b3480156105fe57600080fd5b5061040461060d366004613095565b6117e7565b34801561061e57600080fd5b506104ae600f5481565b34801561063457600080fd5b506104ae610643366004613095565b6118de565b34801561065457600080fd5b50610404611971565b34801561066957600080fd5b50600c5460ff166103af565b34801561068157600080fd5b50600c5462010000900460ff166103af565b34801561069f57600080fd5b506104486106ae366004613095565b6119ce565b3480156106bf57600080fd5b506104ae6106ce366004613114565b611a45565b3480156106df57600080fd5b50610404611acc565b3480156106f457600080fd5b50610404610703366004613114565b611b02565b34801561071457600080fd5b50600c546301000000900460ff166103af565b34801561073357600080fd5b506104ae60125481565b34801561074957600080fd5b506104ae60115481565b34801561075f57600080fd5b5061040461076e366004613114565b611bcc565b34801561077f57600080fd5b506000546001600160a01b0316610448565b34801561079d57600080fd5b506104ae60135481565b3480156107b357600080fd5b5061041b611cb9565b3480156107c857600080fd5b50610404611cc8565b3480156107dd57600080fd5b50600c54610100900460ff166103af565b3480156107fa57600080fd5b5061040461080936600461312f565b611d27565b34801561081a57600080fd5b506104ae610829366004613095565b611d36565b34801561083a57600080fd5b50610404611ddc565b34801561084f57600080fd5b506104ae600e5481565b34801561086557600080fd5b50610404610874366004613176565b611e38565b34801561088557600080fd5b506103af610894366004613114565b611e70565b3480156108a557600080fd5b506104ae601b5481565b3480156108bb57600080fd5b5061041b6108ca366004613095565b611ebe565b3480156108db57600080fd5b506104046108ea366004613114565b612056565b3480156108fb57600080fd5b5061040461090a366004612fbc565b612166565b34801561091b57600080fd5b506103af61092a366004613252565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561096457600080fd5b50610404610973366004613114565b61232e565b34801561098457600080fd5b506104ae601a5481565b6001600160a01b03821660009081526014602052604081205460ff1680156109f257508160028111156109c3576109c3613285565b6001600160a01b03841660009081526015602052604090205460ff1660028111156109f0576109f0613285565b145b9392505050565b6000610a04826123c6565b92915050565b6000546001600160a01b0316331480610a3257503360009081526016602052604090205460ff165b610a6d5760405162461bcd60e51b81526020600482015260076024820152662172696768747360c81b60448201526064015b60405180910390fd5b6001600160a01b038216610ae05760405162461bcd60e51b815260206004820152603460248201527f44474e585072697661746553616c654e46543a3a616464546f57686974656c696044820152737374206e6f742076616c6964206164647265737360601b6064820152608401610a64565b6002816002811115610af457610af4613285565b1480610b1157506000816002811115610b0f57610b0f613285565b145b610b835760405162461bcd60e51b815260206004820152603860248201527f44474e585072697661746553616c654e46543a3a616464546f57686974656c6960448201527f7374206e6f742076616c6964207469636b6574207479706500000000000000006064820152608401610a64565b6001600160a01b03821660009081526014602090815260408083208054600160ff199182168117909255601590935292208054849391921690836002811115610bce57610bce613285565b02179055505050565b606060028054610be69061329b565b80601f0160208091040260200160405190810160405280929190818152602001828054610c129061329b565b8015610c5f5780601f10610c3457610100808354040283529160200191610c5f565b820191906000526020600020905b815481529060010190602001808311610c4257829003601f168201915b5050505050905090565b6000818152600460205260408120546001600160a01b0316610ce25760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a64565b506000908152600660205260409020546001600160a01b031690565b6000610d09826119ce565b9050806001600160a01b0316836001600160a01b031603610d765760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610a64565b336001600160a01b0382161480610d925750610d92813361092a565b610e045760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610a64565b610e0e83836123eb565b505050565b6000546001600160a01b03163314610e3d5760405162461bcd60e51b8152600401610a64906132d5565b600c805463ff000000191690557fcd69fd7541524ae3dd67da2f3482753ced3a41d30209028c62c5e1157c387aea335b6040516001600160a01b03909116815260200160405180910390a1565b600c5460ff168015610eb95750601354601254601154610eaa9190613320565b610eb49190613320565b601754105b610ed55760405162461bcd60e51b8152600401610a6490613338565b600260015403610ef75760405162461bcd60e51b8152600401610a6490613395565b60026001553360009081526014602052604090205460ff1615610f785760405162461bcd60e51b815260206004820152603360248201527f44474e585072697661746553616c654e46543a3a6d696e74206e6f7420616c6c6044820152721bddd959081d1bc81b5a5b9d081d1a58dad95d606a1b6064820152608401610a64565b610f8133611a45565b156110025760405162461bcd60e51b815260206004820152604560248201527f44474e585072697661746553616c654e46543a3a6d696e74204578636565647360448201527f206d6178696d756d20616d6f756e7420706572207469636b6574207065722077606482015264185b1b195d60da1b608482015260a401610a64565b61100c6001612459565b3410156110715760405162461bcd60e51b815260206004820152602d60248201527f44474e585072697661746553616c654e46543a3a6d696e7420496e737566666960448201526c18da595b9d081c185e5b595b9d609a1b6064820152608401610a64565b601254601a54611082906001613320565b11156110f65760405162461bcd60e51b815260206004820152603e60248201527f44474e585072697661746553616c654e46543a3a6d696e74204578636565647360448201527f206d617820737570706c7920616c6c6f77656420666f72207469636b657400006064820152608401610a64565b600c5462010000900460ff16611164576040805162461bcd60e51b81526020600482015260248101919091526000805160206135b583398151915260448201527f742053696c766572206d696e74696e67206e6f742073746172746564207965746064820152608401610a64565b611170336001806124cb565b60018055565b6000546001600160a01b031633146111a05760405162461bcd60e51b8152600401610a64906132d5565b600c805463ff000000191663010000001790557f6c6de7f653ca382bd57d31e710866d98e5691f3b26bfde1d90ba7a825b5cdef7610e6d3390565b6111e6335b8261260f565b6112025760405162461bcd60e51b8152600401610a64906133cc565b610e0e838383612705565b6000546001600160a01b031633146112375760405162461bcd60e51b8152600401610a64906132d5565b600080546040516001600160a01b03909116914780156108fc02929091818181858888f19350505050158015611271573d6000803e3d6000fd5b50565b6000546001600160a01b0316331461129e5760405162461bcd60e51b8152600401610a64906132d5565b600c805461ff0019166101001790557fc28bfd46ccaf83fcdefe7cf100f65af9b244fa3b9f4f7f1b5e6f7c4ab29acf72610e6d3390565b600c5460ff16801561130457506013546012546011546112f59190613320565b6112ff9190613320565b601754105b6113205760405162461bcd60e51b8152600401610a6490613338565b6002600154036113425760405162461bcd60e51b8152600401610a6490613395565b6002600155336000908152601560209081526040808320805460ff19811690915560149092529091205460ff91821691166113d35760405162461bcd60e51b815260206004820152603c60248201526000805160206135b583398151915260448201527f74206e6f7420616c6c6f77656420746f206d696e74207469636b6574000000006064820152608401610a64565b6113dc33611a45565b156114545760405162461bcd60e51b815260206004820152604e60248201526000805160206135b583398151915260448201527f742045786365656473206d6178696d756d20616d6f756e74207065722074696360648201526d1ad95d081c195c881dd85b1b195d60921b608482015260a401610a64565b61145d81612459565b3410156114b95760405162461bcd60e51b815260206004820152603660248201526000805160206135b58339815191526044820152751d08125b9cdd59999a58da595b9d081c185e5b595b9d60521b6064820152608401610a64565b600060028260028111156114cf576114cf613285565b0361155557600c54610100900460ff1661153f5760405162461bcd60e51b815260206004820152603e60248201526000805160206135b583398151915260448201527f7420476f6c64206d696e74696e67206e6f7420737461727465642079657400006064820152608401610a64565b601354601b54611550906001613320565b111590505b600082600281111561156957611569613285565b036115f357600c546301000000900460ff166115dd576040805162461bcd60e51b81526020600482015260248101919091526000805160206135b583398151915260448201527f742042726f6e7a65206d696e74696e67206e6f742073746172746564207965746064820152608401610a64565b6011546019546115ee906001613320565b111590505b806116645760405162461bcd60e51b815260206004820152604760248201526000805160206135b583398151915260448201527f742045786365656473206d617820737570706c7920616c6c6f77656420666f72606482015266081d1a58dad95d60ca1b608482015260a401610a64565b611670338360016124cb565b505060018055565b600061168383611a45565b82106116e55760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610a64565b506001600160a01b03919091166000908152600860209081526040808320938352929052205490565b6000546001600160a01b031633146117385760405162461bcd60e51b8152600401610a64906132d5565b600c805460ff191690557ff148337138a1460b6350b47c21e160ffee9c049fdf06ff4988d52e8608e9580033610e6d565b6000546001600160a01b031633146117935760405162461bcd60e51b8152600401610a64906132d5565b600c805462ff00001916620100001790557f274609ed84273ccec0d072d63e0a1173cf675143d9ee123bd3735a82f425d0e4610e6d3390565b610e0e83838360405180602001604052806000815250611e38565b6002600154036118095760405162461bcd60e51b8152600401610a6490613395565b6002600155611817336111e0565b61187b5760405162461bcd60e51b815260206004820152602f60248201527f44474e585072697661746553616c654e46543a3a6275726e204e6f74206f776e60448201526e195c881b9bdc88185c1c1c9bdd9959608a1b6064820152608401610a64565b611884816128ac565b7f14526567c809024eb51eb4dcf1279bc5e17fd1958d0a760350ff1059ef555a5733600a54601954601a54601b546011546012546013546040516118cf98979695949392919061341d565b60405180910390a15060018055565b60006118e9600a5490565b821061194c5760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610a64565b600a828154811061195f5761195f61345e565b90600052602060002001549050919050565b6000546001600160a01b0316331461199b5760405162461bcd60e51b8152600401610a64906132d5565b600c805462ff0000191690557fd3b81addb2ece103ef6f17491049b9c0334cc9b5dd4bec27341d191f2c6768fd33610e6d565b6000818152600460205260408120546001600160a01b031680610a045760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610a64565b60006001600160a01b038216611ab05760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610a64565b506001600160a01b031660009081526005602052604090205490565b6000546001600160a01b03163314611af65760405162461bcd60e51b8152600401610a64906132d5565b611b006000612953565b565b6000546001600160a01b03163314611b2c5760405162461bcd60e51b8152600401610a64906132d5565b6001600160a01b038116611ba85760405162461bcd60e51b815260206004820152603760248201527f44474e585072697661746553616c654e46543a3a61646457686974656c69737460448201527f41646d696e206e6f742076616c696420616464726573730000000000000000006064820152608401610a64565b6001600160a01b03166000908152601660205260409020805460ff19166001179055565b6000546001600160a01b03163314611bf65760405162461bcd60e51b8152600401610a64906132d5565b6001600160a01b03811615801590611c2657506001600160a01b03811660009081526016602052604090205460ff165b611c985760405162461bcd60e51b815260206004820152603a60248201527f44474e585072697661746553616c654e46543a3a7265766f6b6557686974656c60448201527f69737441646d696e206e6f742076616c696420616464726573730000000000006064820152608401610a64565b6001600160a01b03166000908152601660205260409020805460ff19169055565b606060038054610be69061329b565b6000546001600160a01b03163314611cf25760405162461bcd60e51b8152600401610a64906132d5565b600c805460ff191660011790557ffeefd6cab60299791dfa7b3e2831299a9023a84e73cefb89d31ebc7f5b059af3610e6d3390565b611d323383836129a3565b5050565b6000818152600460205260408120546001600160a01b0316611db95760405162461bcd60e51b815260206004820152603660248201527f44474e585072697661746553616c654e46543a3a6c6f6f6b75705469636b65746044820152752a3cb832902737b732bc34b9ba32b73a103a37b5b2b760511b6064820152608401610a64565b60008281526018602052604090205460ff166002811115610a0457610a04613285565b6000546001600160a01b03163314611e065760405162461bcd60e51b8152600401610a64906132d5565b600c805461ff00191690557f1d5287a48ecfb181e65feedb70d6959f7d6bd13f11b0eb16e808a466c522947433610e6d565b611e42338361260f565b611e5e5760405162461bcd60e51b8152600401610a64906133cc565b611e6a84848484612a71565b50505050565b600080546001600160a01b03163314611e9b5760405162461bcd60e51b8152600401610a64906132d5565b506001600160a01b03811660009081526016602052604090205460ff165b919050565b6000818152600460205260409020546060906001600160a01b0316611f3c5760405162461bcd60e51b815260206004820152602e60248201527f44474e585072697661746553616c654e46543a3a746f6b656e555249204e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b6064820152608401610a64565b6000611f46612aa4565b90506060600260008581526018602052604090205460ff166002811115611f6f57611f6f613285565b03611f995750604080518082019091526008815267676f6c642e6a706760c01b602082015261200d565b600160008581526018602052604090205460ff166002811115611fbe57611fbe613285565b03611fea575060408051808201909152600a81526973696c7665722e6a706760b01b602082015261200d565b5060408051808201909152600a81526962726f6e7a652e6a706760b01b60208201525b600082511161202b576040518060200160405280600081525061204e565b818160405160200161203e929190613474565b6040516020818303038152906040525b949350505050565b6000546001600160a01b031633148061207e57503360009081526016602052604090205460ff165b6120b45760405162461bcd60e51b81526020600482015260076024820152662172696768747360c81b6044820152606401610a64565b6001600160a01b0381166121305760405162461bcd60e51b815260206004820152603960248201527f44474e585072697661746553616c654e46543a3a7265766f6b6546726f6d576860448201527f6974656c697374206e6f742076616c69642061646472657373000000000000006064820152608401610a64565b6001600160a01b03166000908152601460209081526040808320805460ff19908116909155601590925290912080549091169055565b6000546001600160a01b031633146121905760405162461bcd60e51b8152600401610a64906132d5565b61219982611a45565b156122215760405162461bcd60e51b815260206004820152604c60248201527f44474e585072697661746553616c654e46543a3a61697264726f704d696e742060448201527f45786365656473206d6178696d756d20616d6f756e7420706572207469636b6560648201526b1d081c195c881dd85b1b195d60a21b608482015260a401610a64565b60008082600281111561223657612236613285565b036122515760115460195461224c906001613320565b111590505b600182600281111561226557612265613285565b0361228057601254601a5461227b906001613320565b111590505b600282600281111561229457612294613285565b036122af57601354601b546122aa906001613320565b111590505b806123225760405162461bcd60e51b815260206004820152603a60248201527f44474e585072697661746553616c654e46543a3a61697264726f704d696e742060448201527f45786365656473206d617820737570706c7920616c6c6f7765640000000000006064820152608401610a64565b610e0e838360016124cb565b6000546001600160a01b031633146123585760405162461bcd60e51b8152600401610a64906132d5565b6001600160a01b0381166123bd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a64565b61127181612953565b60006001600160e01b0319821663780e9d6360e01b1480610a045750610a0482612ab3565b600081815260066020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612420826119ce565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008082600281111561246e5761246e613285565b0361248857600e54610a0490670de0b6b3a76400006134a3565b600182600281111561249c5761249c613285565b036124b657600f54610a0490670de0b6b3a76400006134a3565b601054610a0490670de0b6b3a76400006134a3565b6000805b82811015612536576124e5601780546001019055565b60175491506124f48583612b03565b6000828152601860205260409020805485919060ff1916600183600281111561251f5761251f613285565b02179055508061252e816134c2565b9150506124cf565b50600083600281111561254b5761254b613285565b0361256d5781601960008282546125629190613320565b909155506125b09050565b600183600281111561258157612581613285565b036125985781601a60008282546125629190613320565b81601b60008282546125aa9190613320565b90915550505b7f49daa03ece553cfbabac8db740d3323eee4cd3e41af00bdd2b88c119af078957846125db600a5490565b601954601a54601b5460115460125460135460405161260198979695949392919061341d565b60405180910390a150505050565b6000818152600460205260408120546001600160a01b03166126885760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610a64565b6000612693836119ce565b9050806001600160a01b0316846001600160a01b031614806126da57506001600160a01b0380821660009081526007602090815260408083209388168352929052205460ff165b8061204e5750836001600160a01b03166126f384610c69565b6001600160a01b031614949350505050565b826001600160a01b0316612718826119ce565b6001600160a01b03161461277c5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610a64565b6001600160a01b0382166127de5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610a64565b6127e9838383612c51565b6127f46000826123eb565b6001600160a01b038316600090815260056020526040812080546001929061281d9084906134db565b90915550506001600160a01b038216600090815260056020526040812080546001929061284b908490613320565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60006128b7826119ce565b90506128c581600084612c51565b6128d06000836123eb565b6001600160a01b03811660009081526005602052604081208054600192906128f99084906134db565b909155505060008281526004602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b816001600160a01b0316836001600160a01b031603612a045760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610a64565b6001600160a01b03838116600081815260076020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612a7c848484612705565b612a8884848484612c5c565b611e6a5760405162461bcd60e51b8152600401610a64906134f2565b6060600d8054610be69061329b565b60006001600160e01b031982166380ac58cd60e01b1480612ae457506001600160e01b03198216635b5e139f60e01b145b80610a0457506301ffc9a760e01b6001600160e01b0319831614610a04565b6001600160a01b038216612b595760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610a64565b6000818152600460205260409020546001600160a01b031615612bbe5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610a64565b612bca60008383612c51565b6001600160a01b0382166000908152600560205260408120805460019290612bf3908490613320565b909155505060008181526004602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b610e0e838383612d5d565b60006001600160a01b0384163b15612d5257604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612ca0903390899088908890600401613544565b6020604051808303816000875af1925050508015612cdb575060408051601f3d908101601f19168201909252612cd891810190613581565b60015b612d38573d808015612d09576040519150601f19603f3d011682016040523d82523d6000602084013e612d0e565b606091505b508051600003612d305760405162461bcd60e51b8152600401610a64906134f2565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061204e565b506001949350505050565b6001600160a01b038316612db857612db381600a80546000838152600b60205260408120829055600182018355919091527fc65a7bb8d6351c1cf70c95a316cc6a92839c986682d98bc35f958f4883f9d2a80155565b612ddb565b816001600160a01b0316836001600160a01b031614612ddb57612ddb8382612e15565b6001600160a01b038216612df257610e0e81612eb2565b826001600160a01b0316826001600160a01b031614610e0e57610e0e8282612f61565b60006001612e2284611a45565b612e2c91906134db565b600083815260096020526040902054909150808214612e7f576001600160a01b03841660009081526008602090815260408083208584528252808320548484528184208190558352600990915290208190555b5060009182526009602090815260408084208490556001600160a01b039094168352600881528383209183525290812055565b600a54600090612ec4906001906134db565b6000838152600b6020526040812054600a8054939450909284908110612eec57612eec61345e565b9060005260206000200154905080600a8381548110612f0d57612f0d61345e565b6000918252602080832090910192909255828152600b9091526040808220849055858252812055600a805480612f4557612f4561359e565b6001900381819060005260206000200160009055905550505050565b6000612f6c83611a45565b6001600160a01b039093166000908152600860209081526040808320868452825280832085905593825260099052919091209190915550565b80356001600160a01b0381168114611eb957600080fd5b60008060408385031215612fcf57600080fd5b612fd883612fa5565b9150602083013560038110612fec57600080fd5b809150509250929050565b6001600160e01b03198116811461127157600080fd5b60006020828403121561301f57600080fd5b81356109f281612ff7565b60005b8381101561304557818101518382015260200161302d565b83811115611e6a5750506000910152565b6000815180845261306e81602086016020860161302a565b601f01601f19169290920160200192915050565b6020815260006109f26020830184613056565b6000602082840312156130a757600080fd5b5035919050565b600080604083850312156130c157600080fd5b6130ca83612fa5565b946020939093013593505050565b6000806000606084860312156130ed57600080fd5b6130f684612fa5565b925061310460208501612fa5565b9150604084013590509250925092565b60006020828403121561312657600080fd5b6109f282612fa5565b6000806040838503121561314257600080fd5b61314b83612fa5565b915060208301358015158114612fec57600080fd5b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561318c57600080fd5b61319585612fa5565b93506131a360208601612fa5565b925060408501359150606085013567ffffffffffffffff808211156131c757600080fd5b818701915087601f8301126131db57600080fd5b8135818111156131ed576131ed613160565b604051601f8201601f19908116603f0116810190838211818310171561321557613215613160565b816040528281528a602084870101111561322e57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561326557600080fd5b61326e83612fa5565b915061327c60208401612fa5565b90509250929050565b634e487b7160e01b600052602160045260246000fd5b600181811c908216806132af57607f821691505b6020821081036132cf57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082198211156133335761333361330a565b500190565b6020808252603e908201527f44474e585072697661746553616c654e46543a3a7768656e4d696e74696e674160408201527f6c6c6f776564206e6f742073746172746564206f7220736f6c642d6f75740000606082015260800190565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6001600160a01b03989098168852602088019690965260408701949094526060860192909252608085015260a084015260c083015260e08201526101000190565b634e487b7160e01b600052603260045260246000fd5b6000835161348681846020880161302a565b83519083019061349a81836020880161302a565b01949350505050565b60008160001904831182151516156134bd576134bd61330a565b500290565b6000600182016134d4576134d461330a565b5060010190565b6000828210156134ed576134ed61330a565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061357790830184613056565b9695505050505050565b60006020828403121561359357600080fd5b81516109f281612ff7565b634e487b7160e01b600052603160045260246000fdfe44474e585072697661746553616c654e46543a3a6d696e7457686974656c6973a26469706673582212209a85f8eeca929e7c352293586d17e774672a7cb2d204cebc3166299dc02a1b1d64736f6c634300080d003300000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000023000000000000000000000000000000000000000000000000000000000000000f000000000000000000000000000000000000000000000000000000000000001744474e5820507269766174652053616c6520546f6b656e00000000000000000000000000000000000000000000000000000000000000000000000000000000035053540000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002e68747470733a2f2f64676e782e66696e616e63652f6173736574732f6e6674732f707269766174652d73616c652f000000000000000000000000000000000000

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

00000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000023000000000000000000000000000000000000000000000000000000000000000f000000000000000000000000000000000000000000000000000000000000001744474e5820507269766174652053616c6520546f6b656e00000000000000000000000000000000000000000000000000000000000000000000000000000000035053540000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002e68747470733a2f2f64676e782e66696e616e63652f6173736574732f6e6674732f707269766174652d73616c652f000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): DGNX Private Sale Token
Arg [1] : _symbol (string): PST
Arg [2] : assetsBaseURI (string): https://dgnx.finance/assets/nfts/private-sale/
Arg [3] : goldMaxSupply (uint256): 30
Arg [4] : silverMaxSupply (uint256): 35
Arg [5] : bronzeMaxSupply (uint256): 15

-----Encoded View---------------
13 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000140
Arg [3] : 000000000000000000000000000000000000000000000000000000000000001e
Arg [4] : 0000000000000000000000000000000000000000000000000000000000000023
Arg [5] : 000000000000000000000000000000000000000000000000000000000000000f
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000017
Arg [7] : 44474e5820507269766174652053616c6520546f6b656e000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [9] : 5053540000000000000000000000000000000000000000000000000000000000
Arg [10] : 000000000000000000000000000000000000000000000000000000000000002e
Arg [11] : 68747470733a2f2f64676e782e66696e616e63652f6173736574732f6e667473
Arg [12] : 2f707269766174652d73616c652f000000000000000000000000000000000000


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.