ETH Price: $3,432.75 (+2.49%)

Token

DikPikPenguins (DPP)
 

Overview

Max Total Supply

806 DPP

Holders

153

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
earnestapener.eth
Balance
6 DPP
0x39a523208c6967EDFe0baE3a2c668F0310d3Ef43
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

DikPikPenguins - or DPP is a community-driven NFT project of 3333 collectibles. Although our DikPikPenguins don't really know how to behave, they are still our frens.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
DikPikPenguins

Compiler Version
v0.8.12+commit.f00d7308

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 15 : DPP.sol
// SPDX-License-Identifier: MIT
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// @author: https://twitter.com/ti_bi_ke                                                                                                            // 
// @url:    https://www.dikpikpenguins.com                                                                                                          //
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//                                                                                                                                                  //
//                                                                                                                                                  //
//                                                                                                                                                  //
//                                                                                                                                                  //
//                                                                                                                                                  //
//                                                                          ..................                                                      //
//                                                                      .';codxO0KXNNx::cloddxkOk.                                                  //
//                                                                 .,cdOKNWMMMMMMMMMWWWWMMMMMMMMXd;,....                                            //
//                                                             .,lkKWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWWNXK0Oo                                          //
//                                                          .,o0NMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNx,                                         //
//                                                        .l0NMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNKkl;.                                     //
//                                                      ,xXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWKx:.                                  //
//                                                    ,xNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWKo'                                //
//                                                  .dXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMXd'                              //
//                                                 :0WMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMXo.                            //
//                                               .oXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWO,                           //
//                                              .dNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMKc                          //
//                                             .oNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMXl.                        //
//                                             cNMMMMMMMMMMMMMMMMMMMMMMMMMMMWNX0xolc:;;:cldkKNMMMMMMMMMMMMMMMMMMMMMMMMMMMMNl                        //
//                                            ,0MMMMMMMNKxolldkKWMMMMMMMMNOo;'..            .,cxKWMMMMMMMMMMMMMMMMMMMMMMMMMXc                       //
//                                           .dWMMMMMNx;.      .:ONMMMW0l'                      .:kNMMMMMMMMMMMMMMMMMMMMMMMM0,                      //
//                                           '0MMMMMK:           .lXW0c.                           ,xNMMMMMMMMMMMMMMMMMMMMMMWx.                     //
//                                           cNMMMMX:              :l.                               :0WMMMMMMMMMMMMMMMMMMMMMX:                     //
//                                           oWMMMWx.                                                 .xWMMMMMMMMMMMMMMMMMMMMMx.                    //
//                                          .xMMMMNc                                                   .oNMMMMMMMMMMMMMMMMMMMMX;                    //
//                                          .xMMMMX;                                                    .dWMMMMMMMMMMMMMMMMMMMWo                    //
//                                          .dWMMMN:                                                     .OMMMMMMMMMMMMMMMMMMMMk.                   //
//                                           lNMMMWo                                                      ,KMMMMMMMMMMMMMMMMMMM0'                   //
//                                           ,KMMMM0'  'lc,.                                               oWMMMMMMMMMMMMMMMMMMK,                   //
//                                           .dWMMMWo .xWKd,                                               ,KMMMMMMMMMMMMMMMMMMX:                   //
//                                            ,0MMMMX: 'cc,'''.                   .','                     .xMMMMMMMMMMMMMMMMMMN:                   //
//                                             cXMMMM0,  .ckkxxxo;.              .ckXK:                     oWMMMMMMMMMMMMMMMMMX;                   //
//                                             .lNMMMMO'.dk;. .'codoc;..         .;xOo.                     lWMMMMMMMMMMMMMMMMMK,                   //
//                                              .lXMMMW0OKc   .'. .'coooollcccllllodxxo;.                   lWMMMMMMMMMMMMMMMMM0'                   //
//                                                ;0WMMMNl.             ...... ......;o0O,                  dWMMMMMMMMMMMMMMMMMk.                   //
//                                                 .dNMMO.                            .kWO.                .kMMMMMMMMMMMMMMMMMWo                    //
//                                                  .cKWo                            ,kNMK,                '0MMMMMMMMMMMMMMMMMX:                    //
//                                                   .d0,                         'ckNMMWx.                :NMMMMMMMMMMMMMMMMM0'                    //
//                                                   ;Oc                    ..'cdONWNNMWx.                .dWMMMMMMMMMMMMMMMMWd.                    //
//                                                  ;Ol                  'cx0XNNXOdokK0c.                 ,KMMMMMMMMMMMMMMMMMX;                     //
//                                                 ;Oo.               ,lOK0xlc:'..:xx:.                   oWMMMMMMMMMMMMMMMMMk.                     //
//                                                .kx.             'lkOxc'.     ;xd,                     '0MMMMMMMMMMMMMMMMMNc                      //
//                                                cO,           'cdxo;.       .dx;                       lNMMMMMMMMMMMMMMMMMk.                      //
//                                               .dx.       .;cloc'.       .:dko.                       .kMMMMMMMMMMMMMMMMMNc                       //
//                                               .xo  ..,;:c:;'.         .:xxl,                         ;KMMMMMMMMMMMMMMMMMk.                       //
//                                                cdloxOOxdlccccccccccodxxo,.                           oWMMMMMMMMMMMMMMMMX:                        //
//                                                 .........',;:kWMMMKo:'.                             .OMMMMMMMMMMMMMMMMWd.                        //
//                                                              '0MMMx.                                :XMMMMMMMMMMMMMMMM0'                         //
//                                                              .dWMMO.                                oWMMMMMMMMMMMMMMMNc                          //
//                                                               oWMMk.                               .OMMMMMMMMMMMMMMMWx.                          //
//                                                              .kMMWo                                ;XMMMMMMMMMMMMMMM0'                           //
//                                                              cXMMK,                                cNMMMMMMMMMMMMMMNc                            //
//                                                             :KMMWd.                               .dWMMMMMMMMMMMMMWx.                            //
//                                                           .oXMMMK;                                .OMMMMMMMMMMMMMMK;                             //
//                                                        .;dKWMMMWd.                                ,KMMMMMMMMMMMMMWx.                             //
//                              .......''''''',,;;;:clodk0XWMMMMMMK,                                 cNMMMMMMMMMMMMMNc                              //
//                      .,:ldxO0KKXXNNNNWWWWWWWWWWMMMMMMMMMMMMMMMWo                                  oWMMMMMMMMMMMMMX;                              //
//                  .:dOXWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMO.                                 .xMMMMMMMMMMMMMMN:                              //
//                ,kXWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMX:                                  .OMMMMMMMMMMMMMMWx.                             //
//               ;KMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWd.                                  '0MMMMMMMMMMMMMMMXc                             //
//              .kMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMO.                                   ,KMMMMMMMMMMMMMMMMK;                            //
//              cNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMK;                                    :XMMMMMMMMMMMMMMMMMK:                           //
//             .kMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNo                                     cNMMMMMMMMMMMMMMMMMMXl.                         //
//             ;KMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMO.                                     lWMMMMMMMMMMMMMMMMMMMNd.                        //
//             :XMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMXc                                      oWMMMMMMMMMMMMMMMMMMMMWk'                       //
//             ,KMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWx.                                      dWMMMMMMMMMMMMMMMMMMMMMM0,                      //
//             .kMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWNX0KWMMMMMMMK;                                       dWMMMMMMMMMMMMMMMMMMMMMMMK;                     //
//              :XMMMMMMMMMMMMMMMMMMMMMMMMMMXx:'..,OMMMMMMWo                                        dWMMMMMMMMMMMMMMMMMMMMMMMMK;                    //
//               lNMMMMMMMMMMMMMMMMMMMMMMMMNl     ,0MMMMMM0'                                       .dMMMMMMMMMMMMMMMMMMMMMMMMMM0,                   //
//               .oNMMMMMMMMMMMMMMMMMMMMMMMWd.    oWMMMMMNl                                        .xMMMMMMMMMMMMMMMMMMMMMMMMMMWO'                  //
//                .lXMMMMMMMMMMMMMMMMMMMMMMMXl   ;KMMMMMMO.                                        .dWMMMMMMMMMMMMMMMMMMMMMMMMMMWx.                 //
//                  :0WMMMMMMMMMMMMMMMMMMMMMMNo..xMMMMMMNl                                          oWMMMMMMMMMMMMMMMMMMMMMMMMMMMNl                 //
//                   .xNMMMMMMMMMMMMMMMMMMMMMMW00NMMMMMM0,                                          lNMMMMMMMMMMMMMMMMMMMMMMMMMMMMK;                //
//                     :0WMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMk.     ..                                   :XMMMMMMMMMMMMMMMMMMMMMMMMMMMMWx.               //
//                      .oKMMMMMMMMMMMMMMMMMMMMMMMMMMMMWd.   .oK0;                                  ,KMMMMMMMMMMMMMMMMMMMMMMMMMMMMMX:               //
//                        'dXWMMMMMMMMMMMMMMMMMMMMMMMMMMX:  ;OWMMK:                                 .OMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMx.              //
//                          .l0WMMMMMMMMMMMMMMMMMMMMMMMMM0:oXMMMMMXl                                 oWMMMMMMMMMMMMMMMMMMMMMMMMMMMMM0'              //
//                            .:kXWMMMMMMMMMMMMMMMMMMMMMMWNWMMMMMMMNo.                               :XMMMMMMMMMMMMMMMMMMMMMMMMMMMMM0'              //
//                               .ckKWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNd.                             'o0WMMMMMMMMMMMMMMMMMMMMMMMMMMMMWx.              //
//                                  .;okKNMMMMMMMMMMMMMMMMMMMMMMMMKc.                           'lkNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWk.               //
//                                      .,:oxXMMMMMMMMMMMMMMMMMMNx'                         .,oONMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNo.                //
//                                          .xWMMMMMMMMMMMMMMMWKc.                       .cx0WMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMW0:                  //
//                                          '0MMMMMMMMMMMMMMMNx'                     .;oOXWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMXo.                   //
//                                          :XMMMMMMMMMMMMMW0:                    .:dKWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWXd'                     //
//                                          oWMMMMMMMMMMMMNd.                  'cxKWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMW0l.                       //
//                                          ,lx0NMMMMK0NW0:                .ldONMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWN0d:.                         //
//                                          .;:clokXWd';:.               'dXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWKko:,..                           //
//                                            .;lcc:c'                 .lXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWKxc,..,lxOO;                          //
//                                           ,c;..;clc'.              .xWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMN0xl;,,:, .odl:,.                          //
//                                         ,xXMWKx:'.;lol:,.         .xWMMMMMMMMMMMMMMMMMMMMMMMMMWNXKOxollccoxkxo,   ':ldkc                         //
//                                        .kMMMMMMWKx:'.,codxdoc:;'..,:ccllooooodddxxxxxxxxdoolllccllodxkkkdl;'.,::..xMMMMO.                        //
//                                        '0MMMMMMMMMWNOd:'.,:ldxkkkkkkkkkxdddoollllllllllllllodoooddoc;'''':ox0NW0,.xMMMMX:                        //
//                                        ,KMMMMMMMMMMMMMWXOdc:,,'''''',,;;;;;;;;;;;;;;;;;;;;;,'...',;cox0KNWMMMMMK,.xMMMMWo                        //
//                                        ;XMMMMMMMMMMWK0NMMMMMWNXXK0Okxxxxxdddxddxxxxxxxxxdxxdl' .l0NMMMMMMMMMMMM0'.xMMMMMx.                       //
//                                        ;XMMMMMMMMMM0,.kMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMXkc'.;dOXWMMMMMMMMO..kMMMMMk.                       //
//                                        ,KMMMMMMMMMNl ;KMMMMMMMMMMMMMMNklOWMMWMMMMMMMMMMMMMMMMMMWXxc,.';oxk0XNWWx.'0MMMMMk.                       //
//                                        '0MMMMMMMMMO..xWMMMMMMMMMMMMMXc.'xOdcc0MMMMMMMMMMMMMMMMMMMMMNKxc;,'''',,. ;KMMMMMk.                       //
//                                        .xWMMMMMMMNl ;XMMMMMMMMMMMMMMXdldc..'oXMMMMMMMMMMMMMMMMMMMMMMMMMWNXKOkxo. lNMMMMMx.                       //
//                                         :NMMMMMMMO..xWMMMMMMMMMMMMMMMWO,,coooxXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMX; oWMMMMWl                        //
//                                         .kWMMMMMMx.'0MMMMMMMMMMMMMMMMMN0o,..,dXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM0'.xMMMMMK,                        //
//                                          :XMMMMMM0'.oNMMMMMMMMMMMMMMMMMWOoodx0WMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMWx.'0MMMMWx.                        //
//                                          .xWMMMMMWO,.:OWMMMMMMMMMMMMMMMMWx;,'lXMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNl :XMMMMX:                         //
//                                           ;XMMMMMMMXd'.:kXWMMMMMMMMMMMMMMX00KWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMX; oWMMMMk.                         //
//                                           .dNMMMMMMMWXd;.':d0XWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMO..kMMMMX:                          //
//                                           ..;dKWMMMMMMMW0d:'.';lkKNWMMMW0OKNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNl ;XMMMWx.                          //
//                                          'kk:'.;lkKWMMMMMMWN0ko;''':oxOo:kWWMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMX; oWMMMK;                           //
//                                          .OMWXkl;..,cokKNWMMMMMWX0xl;'. ,KMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM0'.xMMW0c.                           //
//                                           ;kNMMMWKkoc,'',:ox0NWMMMMMWNk'.l0XMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMx.'OXk:.';.                          //
//                                             'lkXWMMMMWXOdl;'.';ldO0XNWW0;..:0WMMMMMMMMWWNX0OOkxxdooooooooooo' .,'.;dXO'                          //
//                                                .:okKNWWWWWWX0xl:,''',,;;'   .o0NWXOxoc;,''''',,,;;;;;;;;;;;;. .cxKWMMO.                          //
//                                                   .;ddc,,;coxkO00K0Okxddoool:'.,,'.';codkOKXXNNWWMMMMWWMWWWX; lWMMMWKc                           //
//                                                'cdOOd,.  'cxOkl'.,:lx0NWMMMMWk.  ,ONWMMMMMWWWNNNNNWWWMMMMMMX; oXKko;.                            //
//                                            .;oONWNx, .;oONMWKl.  .;od;,:lllll,   .lkxdoool:,,';oo;',;:loddxl. .'.                                //
//                                           'dXMMMMKc:dKWMMMNd. .:xKWKc.              'okO0x.  .dNXc    ,xOkc.                                     //
//                                            .,xXXXXXNMMMMMMXdlxKWMNk'               ,OWMMM0' ,OWMMx.  ;KMMMO.                                     //
//                                               ....';cxKWMWNXXXXX0c.               ;KMMMMMNkxXMMMMK; ;0MMMM0'                                     //
//                                                       .;:,'......                .cxxk0XWWXK0KXNMWKOXWMMMWK;                                     //
//                                                                                        .,,.....':d0XKxoc;,'.                                     //
//                                                                                                   ...                                            //
//                                                                                                                                                  //
//                                                                                                                                                  //
//                                                                                                                                                  //
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
pragma solidity ^0.8.12;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/interfaces/IERC2981.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

contract DikPikPenguins is ERC721, IERC2981, Ownable {
    using Counters for Counters.Counter;

    Counters.Counter private supplyCounter;

    bool public isPublicSaleActive = false;
    bool public isPresaleActive = false;
    bool public isExternalActive = false;
    bool public isGoodEggActive = false;
    bytes32 public goodEggMerkleRoot;
    bytes32 public merkleRoot;
    uint256 public revealedTo = 0;
    uint256 public maxSupply = 3333;
    uint256 public price = .033 ether;
    uint256 public presaleMaxMintAmount = 5;
    uint256 public goodEggMaxMintAmount = 7;
    uint256 public externalMaxMintAmount = 7;
    uint256 public publicMaxMintAmount = 10;
    uint256 public externalLimit = 99;
    address public royaltyAddress;
    uint256 public royaltyPercent;
    uint256 public externalAddressCounter;
    address[] public externalAddresses;
    mapping(address => uint256) public presaleAddressMintCount;
    mapping(address => uint256) public goodEggAddressMintCount;
    mapping(address => uint256) public externalAddressMintCount;

    string private customBaseURI;
    string private notRevealedURI;

    modifier isValidMerkleProof(bytes32[] calldata merkleProof, bytes32 root) {
        require(
            MerkleProof.verify(
                merkleProof,
                root,
                keccak256(abi.encodePacked(msg.sender))
            ),
            "You're not whitelisted"
        );
        _;
    }

    modifier callerIsUser() {
        require(tx.origin == msg.sender, "Contract denied");
        _;
    }

    modifier goodEggActive() {
        require(isGoodEggActive, "Good Egg presale not active");
        _;
    }

    modifier preSaleActive() {
        require(isPresaleActive, "Presale not active");
        _;
    }

    modifier externalActive() {
        require(isExternalActive, "Project mint not active");
        _;
    }

    modifier publicSaleActive() {
        require(isPublicSaleActive, "Public sale not active");
        _;
    }

    constructor(string memory notRevealedURI_) ERC721("DikPikPenguins", "DPP") {
        notRevealedURI = notRevealedURI_;
        royaltyAddress = owner();
        royaltyPercent = 500;
    }

    function totalSupply() public view returns (uint256) {
        return supplyCounter.current();
    }

    function goodEggMint(uint256 _mintAmount, bytes32[] calldata _merkleProof)
        external
        payable
        goodEggActive
        callerIsUser
        isValidMerkleProof(_merkleProof, goodEggMerkleRoot)
    {
        uint256 freeMints = 0;
        if (_mintAmount > 1 && _mintAmount < 5) {
            freeMints = 1;
        } else if (_mintAmount >= 5 && _mintAmount < 7) {
            freeMints = 2;
        } else if (_mintAmount >= 7) {
            freeMints = 3;
        }

        require(
            msg.value >= price * (_mintAmount - freeMints),
            "Not enough eth sent"
        );
        require(
            goodEggAddressMintCount[msg.sender] + _mintAmount <=
                goodEggMaxMintAmount,
            "Attempting to mint too many penguins for Good Egg pre-sale"
        );
        require(
            totalSupply() + _mintAmount + freeMints <= maxSupply,
            "Max supply exceeded"
        );

        goodEggAddressMintCount[msg.sender] += _mintAmount;
        _mintLoop(msg.sender, _mintAmount + freeMints);
    }

    function presaleMint(uint256 _mintAmount, bytes32[] calldata _merkleProof)
        external
        payable
        preSaleActive
        callerIsUser
        isValidMerkleProof(_merkleProof, merkleRoot)
    {
        uint256 freeMints = 0;
        if (_mintAmount > 2 && _mintAmount < 5) {
            freeMints = 1;
        } else if (_mintAmount >= 5) {
            freeMints = 2;
        }

        require(
            msg.value >= price * (_mintAmount - freeMints),
            "Not enough eth sent"
        );
        require(
            presaleAddressMintCount[msg.sender] + _mintAmount <=
                presaleMaxMintAmount,
            "Attempting to mint too many penguins for pre-sale"
        );
        require(
            totalSupply() + _mintAmount + freeMints <= maxSupply,
            "Max supply exceeded"
        );

        presaleAddressMintCount[msg.sender] += _mintAmount;
        _mintLoop(msg.sender, _mintAmount + freeMints);
    }

    function externalMint(uint256 _mintAmount)
        external
        payable
        externalActive
        callerIsUser
    {
        bool hasNft = false;
        for (uint256 i = 0; i < externalAddressCounter; i++) {
            if (IERC721(externalAddresses[i]).balanceOf(msg.sender) > 0) {
                hasNft = true;
                break;
            }
        }
        require(hasNft, "You don't own the NFT");
        require(externalLimit > 0, "Maximum limit for this project reached");

        uint256 freeMints = 0;
        if (_mintAmount >= 3) {
            freeMints = 1;
        }

        require(
            msg.value >= price * (_mintAmount - freeMints),
            "Not enough eth sent"
        );
        require(
            externalAddressMintCount[msg.sender] + _mintAmount <=
                externalMaxMintAmount,
            "Attempting to mint too many penguins"
        );
        require(
            totalSupply() + _mintAmount + freeMints <= maxSupply,
            "Max supply exceeded"
        );

        externalAddressMintCount[msg.sender] += _mintAmount;
        externalLimit--;
        _mintLoop(msg.sender, _mintAmount + freeMints);
    }

    function mint(uint256 _mintAmount)
        public
        payable
        publicSaleActive
        callerIsUser
    {
        require(msg.value >= price * _mintAmount, "Not enough eth sent");
        require(
            _mintAmount <= publicMaxMintAmount,
            "Attempting to mint too many penguins"
        );
        require(
            totalSupply() + _mintAmount <= maxSupply,
            "Max supply exceeded"
        );

        _mintLoop(msg.sender, _mintAmount);
    }

    function mintAdmin(address _recipient, uint256 _mintAmount)
        external
        onlyOwner
    {
        require(
            totalSupply() + _mintAmount <= maxSupply,
            "Max supply exceeded"
        );
        _mintLoop(_recipient, _mintAmount);
    }

    function decreaseMaxSupply(uint16 decreaseByAmount) external onlyOwner {
        require(decreaseByAmount > 0, "Should be decreased by at least one");
        require(
            maxSupply - decreaseByAmount >= totalSupply(),
            "Amount cannot be decreased as it has already been minted"
        );

        maxSupply = maxSupply - decreaseByAmount;
    }

    function setRevealedTo(uint256 _revealedTo) external onlyOwner {
        revealedTo = _revealedTo;
    }

    function setBaseURI(string memory _customBaseURI) external onlyOwner {
        customBaseURI = _customBaseURI;
    }

    function setNotRevealedURI(string memory _notRevealedURI)
        external
        onlyOwner
    {
        notRevealedURI = _notRevealedURI;
    }

    function setMerkleRoots(bytes32 _merkleRoot, bytes32 _goodEggMerkleRoot)
        external
        onlyOwner
    {
        merkleRoot = _merkleRoot;
        goodEggMerkleRoot = _goodEggMerkleRoot;
    }

    function setActiveStates(
        bool _isGoodEggActive,
        bool _isPresaleActive,
        bool _isPublicSaleActive,
        bool _externalActive
    ) external onlyOwner {
        isGoodEggActive = _isGoodEggActive;
        isPresaleActive = _isPresaleActive;
        isPublicSaleActive = _isPublicSaleActive;
        isExternalActive = _externalActive;
    }

    function setMaxMintAmounts(
        uint256 _goodEggAmount,
        uint256 _preAmount,
        uint256 _publicAmount,
        uint256 _externalAmount
    ) external onlyOwner {
        goodEggMaxMintAmount = _goodEggAmount;
        presaleMaxMintAmount = _preAmount;
        publicMaxMintAmount = _publicAmount;
        externalMaxMintAmount = _externalAmount;
    }

    function setPrice(uint256 _price) public onlyOwner {
        price = _price;
    }

    function setExternalDetails(
        address[] memory _externalAddresses,
        uint256 _externalAddressCounter,
        uint256 _limit
    ) public onlyOwner {
        externalAddresses = _externalAddresses;
        externalAddressCounter = _externalAddressCounter;
        externalLimit = _limit;
    }

    function setRoyaltyPercentage(uint256 royaltyPercentage)
        external
        onlyOwner
    {
        royaltyPercent = royaltyPercentage;
    }

    function setRoyaltyReceiver(address royaltyReceiver) public onlyOwner {
        royaltyAddress = royaltyReceiver;
    }

    function _mintLoop(address _receiver, uint256 _mintAmount) internal {
        for (uint256 i = 0; i < _mintAmount; i++) {
            supplyCounter.increment();
            _safeMint(_receiver, supplyCounter.current());
        }
    }

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

    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        require(_exists(tokenId), "Non-existent token");

        if (tokenId <= revealedTo) {
            return super.tokenURI(tokenId);
        }

        return notRevealedURI;
    }

    function withdraw() public onlyOwner {
        uint256 balance = address(this).balance;
        Address.sendValue(payable(royaltyAddress), balance);
    }

    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        override
        returns (address receiver, uint256 royaltyAmount)
    {
        require(_exists(tokenId), "Non-existent token");
        return (royaltyAddress, (salePrice * royaltyPercent) / 10000);
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC721, IERC165)
        returns (bool)
    {
        return (interfaceId == type(IERC2981).interfaceId ||
            super.supportsInterface(interfaceId));
    }
}

File 2 of 15 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _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 || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

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

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

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

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

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

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

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

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

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

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

        emit Transfer(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 of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

File 3 of 15 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Interface for the NFT Royalty Standard
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Called with the sale price to determine how much royalty is owed and to whom.
     * @param tokenId - the NFT asset queried for royalty information
     * @param salePrice - the sale price of the NFT asset specified by `tokenId`
     * @return receiver - address of who should be sent the royalty payment
     * @return royaltyAmount - the royalty payment amount for `salePrice`
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 4 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 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 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }
        return computedHash;
    }
}

File 7 of 15 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

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

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

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

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

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

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

File 8 of 15 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 11 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 12 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 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 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (interfaces/IERC165.sol)

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"notRevealedURI_","type":"string"}],"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":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","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"},{"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":"uint16","name":"decreaseByAmount","type":"uint16"}],"name":"decreaseMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"externalAddressCounter","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"externalAddressMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"externalAddresses","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"externalLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"externalMaxMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"externalMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"goodEggAddressMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"goodEggMaxMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"goodEggMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"goodEggMint","outputs":[],"stateMutability":"payable","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":[],"name":"isExternalActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isGoodEggActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPresaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPublicSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mintAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"presaleAddressMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleMaxMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicMaxMintAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealedTo","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"royaltyPercent","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":"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":"bool","name":"_isGoodEggActive","type":"bool"},{"internalType":"bool","name":"_isPresaleActive","type":"bool"},{"internalType":"bool","name":"_isPublicSaleActive","type":"bool"},{"internalType":"bool","name":"_externalActive","type":"bool"}],"name":"setActiveStates","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":[{"internalType":"string","name":"_customBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_externalAddresses","type":"address[]"},{"internalType":"uint256","name":"_externalAddressCounter","type":"uint256"},{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setExternalDetails","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_goodEggAmount","type":"uint256"},{"internalType":"uint256","name":"_preAmount","type":"uint256"},{"internalType":"uint256","name":"_publicAmount","type":"uint256"},{"internalType":"uint256","name":"_externalAmount","type":"uint256"}],"name":"setMaxMintAmounts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"},{"internalType":"bytes32","name":"_goodEggMerkleRoot","type":"bytes32"}],"name":"setMerkleRoots","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_notRevealedURI","type":"string"}],"name":"setNotRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_revealedTo","type":"uint256"}],"name":"setRevealedTo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"royaltyPercentage","type":"uint256"}],"name":"setRoyaltyPercentage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"royaltyReceiver","type":"address"}],"name":"setRoyaltyReceiver","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":"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":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526008805463ffffffff191690556000600b55610d05600c5566753d533d968000600d556005600e556007600f819055601055600a60115560636012553480156200004d57600080fd5b50604051620036603803806200366083398101604081905262000070916200024b565b604080518082018252600e81526d44696b50696b50656e6775696e7360901b60208083019182528351808501909452600384526204450560ec1b908401528151919291620000c1916000916200018f565b508051620000d79060019060208401906200018f565b505050620000f4620000ee6200013960201b60201c565b6200013d565b80516200010990601b9060208401906200018f565b5050600654601380546001600160a01b0319166001600160a01b039092169190911790556101f460145562000364565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200019d9062000327565b90600052602060002090601f016020900481019282620001c157600085556200020c565b82601f10620001dc57805160ff19168380011785556200020c565b828001600101855582156200020c579182015b828111156200020c578251825591602001919060010190620001ef565b506200021a9291506200021e565b5090565b5b808211156200021a57600081556001016200021f565b634e487b7160e01b600052604160045260246000fd5b600060208083850312156200025f57600080fd5b82516001600160401b03808211156200027757600080fd5b818501915085601f8301126200028c57600080fd5b815181811115620002a157620002a162000235565b604051601f8201601f19908116603f01168101908382118183101715620002cc57620002cc62000235565b816040528281528886848701011115620002e557600080fd5b600093505b82841015620003095784840186015181850187015292850192620002ea565b828411156200031b5760008684830101525b98975050505050505050565b600181811c908216806200033c57607f821691505b602082108114156200035e57634e487b7160e01b600052602260045260246000fd5b50919050565b6132ec80620003746000396000f3fe60806040526004361061036b5760003560e01c80637a0e09a2116101c6578063a22cb465116100f7578063d5abeb0111610095578063f02d9bb81161006f578063f02d9bb8146109c8578063f2c4ce1e146109de578063f2fde38b146109fe578063ffe1db5d14610a1e57600080fd5b8063d5abeb0114610956578063e3e1e8ef1461096c578063e985e9c51461097f57600080fd5b8063c3a71999116100d1578063c3a71999146108e0578063c87b56dd14610900578063cce54e4414610920578063ccf8f2c71461093657600080fd5b8063a22cb46514610880578063ad2f852a146108a0578063b88d4fde146108c057600080fd5b806392a800c9116101645780639a48eb511161013e5780639a48eb51146108215780639f67756d14610841578063a035b1fe14610857578063a0712d681461086d57600080fd5b806392a800c9146107d657806393a88a6c146107f657806395d89b411461080c57600080fd5b80638c66aac4116101a05780638c66aac4146107655780638da5cb5b146107785780638dc251e31461079657806391b7f5ed146107b657600080fd5b80637a0e09a2146107025780637db5a636146107185780637f1564121461074557600080fd5b80633ccfd60b116102a057806361ba27da1161023e57806370a082311161021857806370a08231146106a1578063715018a6146106c157806372fe7177146106d6578063795dfdef146106ec57600080fd5b806361ba27da1461064b5780636352211e1461066b5780636c4588051461068b57600080fd5b80635503fee11161027a5780635503fee1146105c957806355f804b3146105f657806356f40b711461061657806360d938dc1461062c57600080fd5b80633ccfd60b1461058157806342842e0e146105965780635364524a146105b657600080fd5b8063209f3af81161030d57806325f3fe9a116102e757806325f3fe9a146104df5780632a55205a146104ff5780632eb4a7ab1461053e57806331b2528d1461055457600080fd5b8063209f3af81461047e57806320fe63de1461049e57806323b872dd146104bf57600080fd5b8063081812fc11610349578063081812fc146103ff578063095ea7b31461041f57806318160ddd146104415780631e84c4131461046457600080fd5b806301ffc9a71461037057806306eee068146103a557806306fdde03146103dd575b600080fd5b34801561037c57600080fd5b5061039061038b366004612a39565b610a3e565b60405190151581526020015b60405180910390f35b3480156103b157600080fd5b506103c56103c0366004612a56565b610a69565b6040516001600160a01b03909116815260200161039c565b3480156103e957600080fd5b506103f2610a93565b60405161039c9190612ac7565b34801561040b57600080fd5b506103c561041a366004612a56565b610b25565b34801561042b57600080fd5b5061043f61043a366004612af6565b610bb2565b005b34801561044d57600080fd5b50610456610cc8565b60405190815260200161039c565b34801561047057600080fd5b506008546103909060ff1681565b34801561048a57600080fd5b5061043f610499366004612a56565b610cd8565b3480156104aa57600080fd5b50600854610390906301000000900460ff1681565b3480156104cb57600080fd5b5061043f6104da366004612b20565b610d07565b3480156104eb57600080fd5b5061043f6104fa366004612b5c565b610d38565b34801561050b57600080fd5b5061051f61051a366004612b80565b610e68565b604080516001600160a01b03909316835260208301919091520161039c565b34801561054a57600080fd5b50610456600a5481565b34801561056057600080fd5b5061045661056f366004612ba2565b60186020526000908152604090205481565b34801561058d57600080fd5b5061043f610eea565b3480156105a257600080fd5b5061043f6105b1366004612b20565b610f2f565b61043f6105c4366004612a56565b610f4a565b3480156105d557600080fd5b506104566105e4366004612ba2565b60196020526000908152604090205481565b34801561060257600080fd5b5061043f610611366004612c5c565b61122d565b34801561062257600080fd5b5061045660105481565b34801561063857600080fd5b5060085461039090610100900460ff1681565b34801561065757600080fd5b5061043f610666366004612a56565b61126e565b34801561067757600080fd5b506103c5610686366004612a56565b61129d565b34801561069757600080fd5b50610456600f5481565b3480156106ad57600080fd5b506104566106bc366004612ba2565b611314565b3480156106cd57600080fd5b5061043f61139b565b3480156106e257600080fd5b50610456600e5481565b3480156106f857600080fd5b5061045660125481565b34801561070e57600080fd5b5061045660095481565b34801561072457600080fd5b50610456610733366004612ba2565b60176020526000908152604090205481565b34801561075157600080fd5b5061043f610760366004612ca5565b6113d1565b61043f610773366004612cd7565b61140f565b34801561078457600080fd5b506006546001600160a01b03166103c5565b3480156107a257600080fd5b5061043f6107b1366004612ba2565b6116d0565b3480156107c257600080fd5b5061043f6107d1366004612a56565b61171c565b3480156107e257600080fd5b5061043f6107f1366004612d56565b61174b565b34801561080257600080fd5b5061045660155481565b34801561081857600080fd5b506103f2611795565b34801561082d57600080fd5b5061043f61083c366004612b80565b6117a4565b34801561084d57600080fd5b5061045660145481565b34801561086357600080fd5b50610456600d5481565b61043f61087b366004612a56565b6117d9565b34801561088c57600080fd5b5061043f61089b366004612e23565b6118d0565b3480156108ac57600080fd5b506013546103c5906001600160a01b031681565b3480156108cc57600080fd5b5061043f6108db366004612e56565b6118db565b3480156108ec57600080fd5b5061043f6108fb366004612af6565b611913565b34801561090c57600080fd5b506103f261091b366004612a56565b61197b565b34801561092c57600080fd5b5061045660115481565b34801561094257600080fd5b506008546103909062010000900460ff1681565b34801561096257600080fd5b50610456600c5481565b61043f61097a366004612cd7565b611a6b565b34801561098b57600080fd5b5061039061099a366004612ed2565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156109d457600080fd5b50610456600b5481565b3480156109ea57600080fd5b5061043f6109f9366004612c5c565b611cc1565b348015610a0a57600080fd5b5061043f610a19366004612ba2565b611cfe565b348015610a2a57600080fd5b5061043f610a39366004612efc565b611d96565b60006001600160e01b0319821663152a902d60e11b1480610a635750610a6382611e0e565b92915050565b60168181548110610a7957600080fd5b6000918252602090912001546001600160a01b0316905081565b606060008054610aa290612f50565b80601f0160208091040260200160405190810160405280929190818152602001828054610ace90612f50565b8015610b1b5780601f10610af057610100808354040283529160200191610b1b565b820191906000526020600020905b815481529060010190602001808311610afe57829003601f168201915b5050505050905090565b6000610b3082611e5e565b610b965760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610bbd8261129d565b9050806001600160a01b0316836001600160a01b03161415610c2b5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610b8d565b336001600160a01b0382161480610c475750610c47813361099a565b610cb95760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610b8d565b610cc38383611e7b565b505050565b6000610cd360075490565b905090565b6006546001600160a01b03163314610d025760405162461bcd60e51b8152600401610b8d90612f8b565b600b55565b610d113382611ee9565b610d2d5760405162461bcd60e51b8152600401610b8d90612fc0565b610cc3838383611fd3565b6006546001600160a01b03163314610d625760405162461bcd60e51b8152600401610b8d90612f8b565b60008161ffff1611610dc25760405162461bcd60e51b815260206004820152602360248201527f53686f756c6420626520646563726561736564206279206174206c65617374206044820152626f6e6560e81b6064820152608401610b8d565b610dca610cc8565b8161ffff16600c54610ddc9190613027565b1015610e505760405162461bcd60e51b815260206004820152603860248201527f416d6f756e742063616e6e6f742062652064656372656173656420617320697460448201527f2068617320616c7265616479206265656e206d696e74656400000000000000006064820152608401610b8d565b8061ffff16600c54610e629190613027565b600c5550565b600080610e7484611e5e565b610eb55760405162461bcd60e51b81526020600482015260126024820152712737b716b2bc34b9ba32b73a103a37b5b2b760711b6044820152606401610b8d565b6013546014546001600160a01b039091169061271090610ed5908661303e565b610edf9190613073565b915091509250929050565b6006546001600160a01b03163314610f145760405162461bcd60e51b8152600401610b8d90612f8b565b6013544790610f2c906001600160a01b031682612173565b50565b610cc3838383604051806020016040528060008152506118db565b60085462010000900460ff16610fa25760405162461bcd60e51b815260206004820152601760248201527f50726f6a656374206d696e74206e6f74206163746976650000000000000000006044820152606401610b8d565b323314610fc15760405162461bcd60e51b8152600401610b8d90613087565b6000805b60155481101561107a57600060168281548110610fe457610fe46130b0565b6000918252602090912001546040516370a0823160e01b81523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015611035573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061105991906130c6565b1115611068576001915061107a565b80611072816130df565b915050610fc5565b50806110c05760405162461bcd60e51b8152602060048201526015602482015274165bdd48191bdb89dd081bdddb881d1a1948139195605a1b6044820152606401610b8d565b6000601254116111215760405162461bcd60e51b815260206004820152602660248201527f4d6178696d756d206c696d697420666f7220746869732070726f6a6563742072604482015265195858da195960d21b6064820152608401610b8d565b60006003831061112f575060015b6111398184613027565b600d54611146919061303e565b3410156111655760405162461bcd60e51b8152600401610b8d906130fa565b60105433600090815260196020526040902054611183908590613127565b11156111a15760405162461bcd60e51b8152600401610b8d9061313f565b600c5481846111ae610cc8565b6111b89190613127565b6111c29190613127565b11156111e05760405162461bcd60e51b8152600401610b8d90613183565b33600090815260196020526040812080548592906111ff908490613127565b909155505060128054906000611214836131b0565b90915550610cc39050336112288386613127565b61228c565b6006546001600160a01b031633146112575760405162461bcd60e51b8152600401610b8d90612f8b565b805161126a90601a906020840190612935565b5050565b6006546001600160a01b031633146112985760405162461bcd60e51b8152600401610b8d90612f8b565b601455565b6000818152600260205260408120546001600160a01b031680610a635760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610b8d565b60006001600160a01b03821661137f5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610b8d565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146113c55760405162461bcd60e51b8152600401610b8d90612f8b565b6113cf60006122c9565b565b6006546001600160a01b031633146113fb5760405162461bcd60e51b8152600401610b8d90612f8b565b600f93909355600e91909155601155601055565b6008546301000000900460ff166114685760405162461bcd60e51b815260206004820152601b60248201527f476f6f64204567672070726573616c65206e6f742061637469766500000000006044820152606401610b8d565b3233146114875760405162461bcd60e51b8152600401610b8d90613087565b81816009546114ff838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040516bffffffffffffffffffffffff193360601b16602082015285925060340190505b6040516020818303038152906040528051906020012061231b565b6115445760405162461bcd60e51b8152602060048201526016602482015275165bdd49dc99481b9bdd081dda1a5d195b1a5cdd195960521b6044820152606401610b8d565b60006001871180156115565750600587105b156115635750600161158d565b600587101580156115745750600787105b156115815750600261158d565b6007871061158d575060035b6115978188613027565b600d546115a4919061303e565b3410156115c35760405162461bcd60e51b8152600401610b8d906130fa565b600f54336000908152601860205260409020546115e1908990613127565b11156116555760405162461bcd60e51b815260206004820152603a60248201527f417474656d7074696e6720746f206d696e7420746f6f206d616e792070656e6760448201527f75696e7320666f7220476f6f6420456767207072652d73616c650000000000006064820152608401610b8d565b600c548188611662610cc8565b61166c9190613127565b6116769190613127565b11156116945760405162461bcd60e51b8152600401610b8d90613183565b33600090815260186020526040812080548992906116b3908490613127565b909155506116c7905033611228838a613127565b50505050505050565b6006546001600160a01b031633146116fa5760405162461bcd60e51b8152600401610b8d90612f8b565b601380546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b031633146117465760405162461bcd60e51b8152600401610b8d90612f8b565b600d55565b6006546001600160a01b031633146117755760405162461bcd60e51b8152600401610b8d90612f8b565b82516117889060169060208601906129b9565b5060159190915560125550565b606060018054610aa290612f50565b6006546001600160a01b031633146117ce5760405162461bcd60e51b8152600401610b8d90612f8b565b600a91909155600955565b60085460ff166118245760405162461bcd60e51b81526020600482015260166024820152755075626c69632073616c65206e6f742061637469766560501b6044820152606401610b8d565b3233146118435760405162461bcd60e51b8152600401610b8d90613087565b80600d54611851919061303e565b3410156118705760405162461bcd60e51b8152600401610b8d906130fa565b6011548111156118925760405162461bcd60e51b8152600401610b8d9061313f565b600c548161189e610cc8565b6118a89190613127565b11156118c65760405162461bcd60e51b8152600401610b8d90613183565b610f2c338261228c565b61126a338383612331565b6118e53383611ee9565b6119015760405162461bcd60e51b8152600401610b8d90612fc0565b61190d84848484612400565b50505050565b6006546001600160a01b0316331461193d5760405162461bcd60e51b8152600401610b8d90612f8b565b600c5481611949610cc8565b6119539190613127565b11156119715760405162461bcd60e51b8152600401610b8d90613183565b61126a828261228c565b606061198682611e5e565b6119c75760405162461bcd60e51b81526020600482015260126024820152712737b716b2bc34b9ba32b73a103a37b5b2b760711b6044820152606401610b8d565b600b5482116119d957610a6382612433565b601b80546119e690612f50565b80601f0160208091040260200160405190810160405280929190818152602001828054611a1290612f50565b8015611a5f5780601f10611a3457610100808354040283529160200191611a5f565b820191906000526020600020905b815481529060010190602001808311611a4257829003601f168201915b50505050509050919050565b600854610100900460ff16611ab75760405162461bcd60e51b815260206004820152601260248201527150726573616c65206e6f742061637469766560701b6044820152606401610b8d565b323314611ad65760405162461bcd60e51b8152600401610b8d90613087565b8181600a54611b37838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040516bffffffffffffffffffffffff193360601b16602082015285925060340190506114e4565b611b7c5760405162461bcd60e51b8152602060048201526016602482015275165bdd49dc99481b9bdd081dda1a5d195b1a5cdd195960521b6044820152606401610b8d565b6000600287118015611b8e5750600587105b15611b9b57506001611ba7565b60058710611ba7575060025b611bb18188613027565b600d54611bbe919061303e565b341015611bdd5760405162461bcd60e51b8152600401610b8d906130fa565b600e5433600090815260176020526040902054611bfb908990613127565b1115611c635760405162461bcd60e51b815260206004820152603160248201527f417474656d7074696e6720746f206d696e7420746f6f206d616e792070656e6760448201527075696e7320666f72207072652d73616c6560781b6064820152608401610b8d565b600c548188611c70610cc8565b611c7a9190613127565b611c849190613127565b1115611ca25760405162461bcd60e51b8152600401610b8d90613183565b33600090815260176020526040812080548992906116b3908490613127565b6006546001600160a01b03163314611ceb5760405162461bcd60e51b8152600401610b8d90612f8b565b805161126a90601b906020840190612935565b6006546001600160a01b03163314611d285760405162461bcd60e51b8152600401610b8d90612f8b565b6001600160a01b038116611d8d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b8d565b610f2c816122c9565b6006546001600160a01b03163314611dc05760405162461bcd60e51b8152600401610b8d90612f8b565b6008805463ff00ff00191663010000009515159590950261ff00191694909417610100931515939093029290921762ff00ff191690151562ff00001916176201000091151591909102179055565b60006001600160e01b031982166380ac58cd60e01b1480611e3f57506001600160e01b03198216635b5e139f60e01b145b80610a6357506301ffc9a760e01b6001600160e01b0319831614610a63565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611eb08261129d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611ef482611e5e565b611f555760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b8d565b6000611f608361129d565b9050806001600160a01b0316846001600160a01b03161480611f9b5750836001600160a01b0316611f9084610b25565b6001600160a01b0316145b80611fcb57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611fe68261129d565b6001600160a01b03161461204e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610b8d565b6001600160a01b0382166120b05760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610b8d565b6120bb600082611e7b565b6001600160a01b03831660009081526003602052604081208054600192906120e4908490613027565b90915550506001600160a01b0382166000908152600360205260408120805460019290612112908490613127565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b804710156121c35760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610b8d565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612210576040519150601f19603f3d011682016040523d82523d6000602084013e612215565b606091505b5050905080610cc35760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610b8d565b60005b81811015610cc3576122a5600780546001019055565b6122b7836122b260075490565b6124fe565b806122c1816130df565b91505061228f565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000826123288584612518565b14949350505050565b816001600160a01b0316836001600160a01b031614156123935760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b8d565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61240b848484611fd3565b612417848484846125c4565b61190d5760405162461bcd60e51b8152600401610b8d906131c7565b606061243e82611e5e565b6124a25760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610b8d565b60006124ac6126c2565b905060008151116124cc57604051806020016040528060008152506124f7565b806124d6846126d1565b6040516020016124e7929190613219565b6040516020818303038152906040525b9392505050565b61126a8282604051806020016040528060008152506127cf565b600081815b84518110156125bc57600085828151811061253a5761253a6130b0565b6020026020010151905080831161257c5760408051602081018590529081018290526060016040516020818303038152906040528051906020012092506125a9565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b50806125b4816130df565b91505061251d565b509392505050565b60006001600160a01b0384163b156126b757604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612608903390899088908890600401613248565b6020604051808303816000875af1925050508015612643575060408051601f3d908101601f1916820190925261264091810190613285565b60015b61269d573d808015612671576040519150601f19603f3d011682016040523d82523d6000602084013e612676565b606091505b5080516126955760405162461bcd60e51b8152600401610b8d906131c7565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611fcb565b506001949350505050565b6060601a8054610aa290612f50565b6060816126f55750506040805180820190915260018152600360fc1b602082015290565b8160005b811561271f5780612709816130df565b91506127189050600a83613073565b91506126f9565b60008167ffffffffffffffff81111561273a5761273a612bbd565b6040519080825280601f01601f191660200182016040528015612764576020820181803683370190505b5090505b8415611fcb57612779600183613027565b9150612786600a866132a2565b612791906030613127565b60f81b8183815181106127a6576127a66130b0565b60200101906001600160f81b031916908160001a9053506127c8600a86613073565b9450612768565b6127d98383612802565b6127e660008484846125c4565b610cc35760405162461bcd60e51b8152600401610b8d906131c7565b6001600160a01b0382166128585760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b8d565b61286181611e5e565b156128ae5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b8d565b6001600160a01b03821660009081526003602052604081208054600192906128d7908490613127565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461294190612f50565b90600052602060002090601f01602090048101928261296357600085556129a9565b82601f1061297c57805160ff19168380011785556129a9565b828001600101855582156129a9579182015b828111156129a957825182559160200191906001019061298e565b506129b5929150612a0e565b5090565b8280548282559060005260206000209081019282156129a9579160200282015b828111156129a957825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906129d9565b5b808211156129b55760008155600101612a0f565b6001600160e01b031981168114610f2c57600080fd5b600060208284031215612a4b57600080fd5b81356124f781612a23565b600060208284031215612a6857600080fd5b5035919050565b60005b83811015612a8a578181015183820152602001612a72565b8381111561190d5750506000910152565b60008151808452612ab3816020860160208601612a6f565b601f01601f19169290920160200192915050565b6020815260006124f76020830184612a9b565b80356001600160a01b0381168114612af157600080fd5b919050565b60008060408385031215612b0957600080fd5b612b1283612ada565b946020939093013593505050565b600080600060608486031215612b3557600080fd5b612b3e84612ada565b9250612b4c60208501612ada565b9150604084013590509250925092565b600060208284031215612b6e57600080fd5b813561ffff811681146124f757600080fd5b60008060408385031215612b9357600080fd5b50508035926020909101359150565b600060208284031215612bb457600080fd5b6124f782612ada565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612bfc57612bfc612bbd565b604052919050565b600067ffffffffffffffff831115612c1e57612c1e612bbd565b612c31601f8401601f1916602001612bd3565b9050828152838383011115612c4557600080fd5b828260208301376000602084830101529392505050565b600060208284031215612c6e57600080fd5b813567ffffffffffffffff811115612c8557600080fd5b8201601f81018413612c9657600080fd5b611fcb84823560208401612c04565b60008060008060808587031215612cbb57600080fd5b5050823594602084013594506040840135936060013592509050565b600080600060408486031215612cec57600080fd5b83359250602084013567ffffffffffffffff80821115612d0b57600080fd5b818601915086601f830112612d1f57600080fd5b813581811115612d2e57600080fd5b8760208260051b8501011115612d4357600080fd5b6020830194508093505050509250925092565b600080600060608486031215612d6b57600080fd5b833567ffffffffffffffff80821115612d8357600080fd5b818601915086601f830112612d9757600080fd5b8135602082821115612dab57612dab612bbd565b8160051b9250612dbc818401612bd3565b828152928401810192818101908a851115612dd657600080fd5b948201945b84861015612dfb57612dec86612ada565b82529482019490820190612ddb565b9a918901359950506040909701359695505050505050565b80358015158114612af157600080fd5b60008060408385031215612e3657600080fd5b612e3f83612ada565b9150612e4d60208401612e13565b90509250929050565b60008060008060808587031215612e6c57600080fd5b612e7585612ada565b9350612e8360208601612ada565b925060408501359150606085013567ffffffffffffffff811115612ea657600080fd5b8501601f81018713612eb757600080fd5b612ec687823560208401612c04565b91505092959194509250565b60008060408385031215612ee557600080fd5b612eee83612ada565b9150612e4d60208401612ada565b60008060008060808587031215612f1257600080fd5b612f1b85612e13565b9350612f2960208601612e13565b9250612f3760408601612e13565b9150612f4560608601612e13565b905092959194509250565b600181811c90821680612f6457607f821691505b60208210811415612f8557634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b60008282101561303957613039613011565b500390565b600081600019048311821515161561305857613058613011565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826130825761308261305d565b500490565b6020808252600f908201526e10dbdb9d1c9858dd0819195b9a5959608a1b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156130d857600080fd5b5051919050565b60006000198214156130f3576130f3613011565b5060010190565b602080825260139082015272139bdd08195b9bdd59da08195d1a081cd95b9d606a1b604082015260600190565b6000821982111561313a5761313a613011565b500190565b60208082526024908201527f417474656d7074696e6720746f206d696e7420746f6f206d616e792070656e6760408201526375696e7360e01b606082015260800190565b60208082526013908201527213585e081cdd5c1c1b1e48195e18d959591959606a1b604082015260600190565b6000816131bf576131bf613011565b506000190190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000835161322b818460208801612a6f565b83519083019061323f818360208801612a6f565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061327b90830184612a9b565b9695505050505050565b60006020828403121561329757600080fd5b81516124f781612a23565b6000826132b1576132b161305d565b50069056fea26469706673582212206b7626042996d1b4d1bf753b03d7fb2e5e7d6f06cf69be4b53d3022f46df86d764736f6c634300080c003300000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261666b7265696633616c746b7a70346d7662346a7676746b676c76727a6f727771796f336264717034357578643470356a737675366679706734000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x60806040526004361061036b5760003560e01c80637a0e09a2116101c6578063a22cb465116100f7578063d5abeb0111610095578063f02d9bb81161006f578063f02d9bb8146109c8578063f2c4ce1e146109de578063f2fde38b146109fe578063ffe1db5d14610a1e57600080fd5b8063d5abeb0114610956578063e3e1e8ef1461096c578063e985e9c51461097f57600080fd5b8063c3a71999116100d1578063c3a71999146108e0578063c87b56dd14610900578063cce54e4414610920578063ccf8f2c71461093657600080fd5b8063a22cb46514610880578063ad2f852a146108a0578063b88d4fde146108c057600080fd5b806392a800c9116101645780639a48eb511161013e5780639a48eb51146108215780639f67756d14610841578063a035b1fe14610857578063a0712d681461086d57600080fd5b806392a800c9146107d657806393a88a6c146107f657806395d89b411461080c57600080fd5b80638c66aac4116101a05780638c66aac4146107655780638da5cb5b146107785780638dc251e31461079657806391b7f5ed146107b657600080fd5b80637a0e09a2146107025780637db5a636146107185780637f1564121461074557600080fd5b80633ccfd60b116102a057806361ba27da1161023e57806370a082311161021857806370a08231146106a1578063715018a6146106c157806372fe7177146106d6578063795dfdef146106ec57600080fd5b806361ba27da1461064b5780636352211e1461066b5780636c4588051461068b57600080fd5b80635503fee11161027a5780635503fee1146105c957806355f804b3146105f657806356f40b711461061657806360d938dc1461062c57600080fd5b80633ccfd60b1461058157806342842e0e146105965780635364524a146105b657600080fd5b8063209f3af81161030d57806325f3fe9a116102e757806325f3fe9a146104df5780632a55205a146104ff5780632eb4a7ab1461053e57806331b2528d1461055457600080fd5b8063209f3af81461047e57806320fe63de1461049e57806323b872dd146104bf57600080fd5b8063081812fc11610349578063081812fc146103ff578063095ea7b31461041f57806318160ddd146104415780631e84c4131461046457600080fd5b806301ffc9a71461037057806306eee068146103a557806306fdde03146103dd575b600080fd5b34801561037c57600080fd5b5061039061038b366004612a39565b610a3e565b60405190151581526020015b60405180910390f35b3480156103b157600080fd5b506103c56103c0366004612a56565b610a69565b6040516001600160a01b03909116815260200161039c565b3480156103e957600080fd5b506103f2610a93565b60405161039c9190612ac7565b34801561040b57600080fd5b506103c561041a366004612a56565b610b25565b34801561042b57600080fd5b5061043f61043a366004612af6565b610bb2565b005b34801561044d57600080fd5b50610456610cc8565b60405190815260200161039c565b34801561047057600080fd5b506008546103909060ff1681565b34801561048a57600080fd5b5061043f610499366004612a56565b610cd8565b3480156104aa57600080fd5b50600854610390906301000000900460ff1681565b3480156104cb57600080fd5b5061043f6104da366004612b20565b610d07565b3480156104eb57600080fd5b5061043f6104fa366004612b5c565b610d38565b34801561050b57600080fd5b5061051f61051a366004612b80565b610e68565b604080516001600160a01b03909316835260208301919091520161039c565b34801561054a57600080fd5b50610456600a5481565b34801561056057600080fd5b5061045661056f366004612ba2565b60186020526000908152604090205481565b34801561058d57600080fd5b5061043f610eea565b3480156105a257600080fd5b5061043f6105b1366004612b20565b610f2f565b61043f6105c4366004612a56565b610f4a565b3480156105d557600080fd5b506104566105e4366004612ba2565b60196020526000908152604090205481565b34801561060257600080fd5b5061043f610611366004612c5c565b61122d565b34801561062257600080fd5b5061045660105481565b34801561063857600080fd5b5060085461039090610100900460ff1681565b34801561065757600080fd5b5061043f610666366004612a56565b61126e565b34801561067757600080fd5b506103c5610686366004612a56565b61129d565b34801561069757600080fd5b50610456600f5481565b3480156106ad57600080fd5b506104566106bc366004612ba2565b611314565b3480156106cd57600080fd5b5061043f61139b565b3480156106e257600080fd5b50610456600e5481565b3480156106f857600080fd5b5061045660125481565b34801561070e57600080fd5b5061045660095481565b34801561072457600080fd5b50610456610733366004612ba2565b60176020526000908152604090205481565b34801561075157600080fd5b5061043f610760366004612ca5565b6113d1565b61043f610773366004612cd7565b61140f565b34801561078457600080fd5b506006546001600160a01b03166103c5565b3480156107a257600080fd5b5061043f6107b1366004612ba2565b6116d0565b3480156107c257600080fd5b5061043f6107d1366004612a56565b61171c565b3480156107e257600080fd5b5061043f6107f1366004612d56565b61174b565b34801561080257600080fd5b5061045660155481565b34801561081857600080fd5b506103f2611795565b34801561082d57600080fd5b5061043f61083c366004612b80565b6117a4565b34801561084d57600080fd5b5061045660145481565b34801561086357600080fd5b50610456600d5481565b61043f61087b366004612a56565b6117d9565b34801561088c57600080fd5b5061043f61089b366004612e23565b6118d0565b3480156108ac57600080fd5b506013546103c5906001600160a01b031681565b3480156108cc57600080fd5b5061043f6108db366004612e56565b6118db565b3480156108ec57600080fd5b5061043f6108fb366004612af6565b611913565b34801561090c57600080fd5b506103f261091b366004612a56565b61197b565b34801561092c57600080fd5b5061045660115481565b34801561094257600080fd5b506008546103909062010000900460ff1681565b34801561096257600080fd5b50610456600c5481565b61043f61097a366004612cd7565b611a6b565b34801561098b57600080fd5b5061039061099a366004612ed2565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156109d457600080fd5b50610456600b5481565b3480156109ea57600080fd5b5061043f6109f9366004612c5c565b611cc1565b348015610a0a57600080fd5b5061043f610a19366004612ba2565b611cfe565b348015610a2a57600080fd5b5061043f610a39366004612efc565b611d96565b60006001600160e01b0319821663152a902d60e11b1480610a635750610a6382611e0e565b92915050565b60168181548110610a7957600080fd5b6000918252602090912001546001600160a01b0316905081565b606060008054610aa290612f50565b80601f0160208091040260200160405190810160405280929190818152602001828054610ace90612f50565b8015610b1b5780601f10610af057610100808354040283529160200191610b1b565b820191906000526020600020905b815481529060010190602001808311610afe57829003601f168201915b5050505050905090565b6000610b3082611e5e565b610b965760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610bbd8261129d565b9050806001600160a01b0316836001600160a01b03161415610c2b5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610b8d565b336001600160a01b0382161480610c475750610c47813361099a565b610cb95760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610b8d565b610cc38383611e7b565b505050565b6000610cd360075490565b905090565b6006546001600160a01b03163314610d025760405162461bcd60e51b8152600401610b8d90612f8b565b600b55565b610d113382611ee9565b610d2d5760405162461bcd60e51b8152600401610b8d90612fc0565b610cc3838383611fd3565b6006546001600160a01b03163314610d625760405162461bcd60e51b8152600401610b8d90612f8b565b60008161ffff1611610dc25760405162461bcd60e51b815260206004820152602360248201527f53686f756c6420626520646563726561736564206279206174206c65617374206044820152626f6e6560e81b6064820152608401610b8d565b610dca610cc8565b8161ffff16600c54610ddc9190613027565b1015610e505760405162461bcd60e51b815260206004820152603860248201527f416d6f756e742063616e6e6f742062652064656372656173656420617320697460448201527f2068617320616c7265616479206265656e206d696e74656400000000000000006064820152608401610b8d565b8061ffff16600c54610e629190613027565b600c5550565b600080610e7484611e5e565b610eb55760405162461bcd60e51b81526020600482015260126024820152712737b716b2bc34b9ba32b73a103a37b5b2b760711b6044820152606401610b8d565b6013546014546001600160a01b039091169061271090610ed5908661303e565b610edf9190613073565b915091509250929050565b6006546001600160a01b03163314610f145760405162461bcd60e51b8152600401610b8d90612f8b565b6013544790610f2c906001600160a01b031682612173565b50565b610cc3838383604051806020016040528060008152506118db565b60085462010000900460ff16610fa25760405162461bcd60e51b815260206004820152601760248201527f50726f6a656374206d696e74206e6f74206163746976650000000000000000006044820152606401610b8d565b323314610fc15760405162461bcd60e51b8152600401610b8d90613087565b6000805b60155481101561107a57600060168281548110610fe457610fe46130b0565b6000918252602090912001546040516370a0823160e01b81523360048201526001600160a01b03909116906370a0823190602401602060405180830381865afa158015611035573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061105991906130c6565b1115611068576001915061107a565b80611072816130df565b915050610fc5565b50806110c05760405162461bcd60e51b8152602060048201526015602482015274165bdd48191bdb89dd081bdddb881d1a1948139195605a1b6044820152606401610b8d565b6000601254116111215760405162461bcd60e51b815260206004820152602660248201527f4d6178696d756d206c696d697420666f7220746869732070726f6a6563742072604482015265195858da195960d21b6064820152608401610b8d565b60006003831061112f575060015b6111398184613027565b600d54611146919061303e565b3410156111655760405162461bcd60e51b8152600401610b8d906130fa565b60105433600090815260196020526040902054611183908590613127565b11156111a15760405162461bcd60e51b8152600401610b8d9061313f565b600c5481846111ae610cc8565b6111b89190613127565b6111c29190613127565b11156111e05760405162461bcd60e51b8152600401610b8d90613183565b33600090815260196020526040812080548592906111ff908490613127565b909155505060128054906000611214836131b0565b90915550610cc39050336112288386613127565b61228c565b6006546001600160a01b031633146112575760405162461bcd60e51b8152600401610b8d90612f8b565b805161126a90601a906020840190612935565b5050565b6006546001600160a01b031633146112985760405162461bcd60e51b8152600401610b8d90612f8b565b601455565b6000818152600260205260408120546001600160a01b031680610a635760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610b8d565b60006001600160a01b03821661137f5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610b8d565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b031633146113c55760405162461bcd60e51b8152600401610b8d90612f8b565b6113cf60006122c9565b565b6006546001600160a01b031633146113fb5760405162461bcd60e51b8152600401610b8d90612f8b565b600f93909355600e91909155601155601055565b6008546301000000900460ff166114685760405162461bcd60e51b815260206004820152601b60248201527f476f6f64204567672070726573616c65206e6f742061637469766500000000006044820152606401610b8d565b3233146114875760405162461bcd60e51b8152600401610b8d90613087565b81816009546114ff838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040516bffffffffffffffffffffffff193360601b16602082015285925060340190505b6040516020818303038152906040528051906020012061231b565b6115445760405162461bcd60e51b8152602060048201526016602482015275165bdd49dc99481b9bdd081dda1a5d195b1a5cdd195960521b6044820152606401610b8d565b60006001871180156115565750600587105b156115635750600161158d565b600587101580156115745750600787105b156115815750600261158d565b6007871061158d575060035b6115978188613027565b600d546115a4919061303e565b3410156115c35760405162461bcd60e51b8152600401610b8d906130fa565b600f54336000908152601860205260409020546115e1908990613127565b11156116555760405162461bcd60e51b815260206004820152603a60248201527f417474656d7074696e6720746f206d696e7420746f6f206d616e792070656e6760448201527f75696e7320666f7220476f6f6420456767207072652d73616c650000000000006064820152608401610b8d565b600c548188611662610cc8565b61166c9190613127565b6116769190613127565b11156116945760405162461bcd60e51b8152600401610b8d90613183565b33600090815260186020526040812080548992906116b3908490613127565b909155506116c7905033611228838a613127565b50505050505050565b6006546001600160a01b031633146116fa5760405162461bcd60e51b8152600401610b8d90612f8b565b601380546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b031633146117465760405162461bcd60e51b8152600401610b8d90612f8b565b600d55565b6006546001600160a01b031633146117755760405162461bcd60e51b8152600401610b8d90612f8b565b82516117889060169060208601906129b9565b5060159190915560125550565b606060018054610aa290612f50565b6006546001600160a01b031633146117ce5760405162461bcd60e51b8152600401610b8d90612f8b565b600a91909155600955565b60085460ff166118245760405162461bcd60e51b81526020600482015260166024820152755075626c69632073616c65206e6f742061637469766560501b6044820152606401610b8d565b3233146118435760405162461bcd60e51b8152600401610b8d90613087565b80600d54611851919061303e565b3410156118705760405162461bcd60e51b8152600401610b8d906130fa565b6011548111156118925760405162461bcd60e51b8152600401610b8d9061313f565b600c548161189e610cc8565b6118a89190613127565b11156118c65760405162461bcd60e51b8152600401610b8d90613183565b610f2c338261228c565b61126a338383612331565b6118e53383611ee9565b6119015760405162461bcd60e51b8152600401610b8d90612fc0565b61190d84848484612400565b50505050565b6006546001600160a01b0316331461193d5760405162461bcd60e51b8152600401610b8d90612f8b565b600c5481611949610cc8565b6119539190613127565b11156119715760405162461bcd60e51b8152600401610b8d90613183565b61126a828261228c565b606061198682611e5e565b6119c75760405162461bcd60e51b81526020600482015260126024820152712737b716b2bc34b9ba32b73a103a37b5b2b760711b6044820152606401610b8d565b600b5482116119d957610a6382612433565b601b80546119e690612f50565b80601f0160208091040260200160405190810160405280929190818152602001828054611a1290612f50565b8015611a5f5780601f10611a3457610100808354040283529160200191611a5f565b820191906000526020600020905b815481529060010190602001808311611a4257829003601f168201915b50505050509050919050565b600854610100900460ff16611ab75760405162461bcd60e51b815260206004820152601260248201527150726573616c65206e6f742061637469766560701b6044820152606401610b8d565b323314611ad65760405162461bcd60e51b8152600401610b8d90613087565b8181600a54611b37838380806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250506040516bffffffffffffffffffffffff193360601b16602082015285925060340190506114e4565b611b7c5760405162461bcd60e51b8152602060048201526016602482015275165bdd49dc99481b9bdd081dda1a5d195b1a5cdd195960521b6044820152606401610b8d565b6000600287118015611b8e5750600587105b15611b9b57506001611ba7565b60058710611ba7575060025b611bb18188613027565b600d54611bbe919061303e565b341015611bdd5760405162461bcd60e51b8152600401610b8d906130fa565b600e5433600090815260176020526040902054611bfb908990613127565b1115611c635760405162461bcd60e51b815260206004820152603160248201527f417474656d7074696e6720746f206d696e7420746f6f206d616e792070656e6760448201527075696e7320666f72207072652d73616c6560781b6064820152608401610b8d565b600c548188611c70610cc8565b611c7a9190613127565b611c849190613127565b1115611ca25760405162461bcd60e51b8152600401610b8d90613183565b33600090815260176020526040812080548992906116b3908490613127565b6006546001600160a01b03163314611ceb5760405162461bcd60e51b8152600401610b8d90612f8b565b805161126a90601b906020840190612935565b6006546001600160a01b03163314611d285760405162461bcd60e51b8152600401610b8d90612f8b565b6001600160a01b038116611d8d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b8d565b610f2c816122c9565b6006546001600160a01b03163314611dc05760405162461bcd60e51b8152600401610b8d90612f8b565b6008805463ff00ff00191663010000009515159590950261ff00191694909417610100931515939093029290921762ff00ff191690151562ff00001916176201000091151591909102179055565b60006001600160e01b031982166380ac58cd60e01b1480611e3f57506001600160e01b03198216635b5e139f60e01b145b80610a6357506301ffc9a760e01b6001600160e01b0319831614610a63565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611eb08261129d565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611ef482611e5e565b611f555760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b8d565b6000611f608361129d565b9050806001600160a01b0316846001600160a01b03161480611f9b5750836001600160a01b0316611f9084610b25565b6001600160a01b0316145b80611fcb57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316611fe68261129d565b6001600160a01b03161461204e5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610b8d565b6001600160a01b0382166120b05760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610b8d565b6120bb600082611e7b565b6001600160a01b03831660009081526003602052604081208054600192906120e4908490613027565b90915550506001600160a01b0382166000908152600360205260408120805460019290612112908490613127565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b804710156121c35760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610b8d565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612210576040519150601f19603f3d011682016040523d82523d6000602084013e612215565b606091505b5050905080610cc35760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610b8d565b60005b81811015610cc3576122a5600780546001019055565b6122b7836122b260075490565b6124fe565b806122c1816130df565b91505061228f565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000826123288584612518565b14949350505050565b816001600160a01b0316836001600160a01b031614156123935760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b8d565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61240b848484611fd3565b612417848484846125c4565b61190d5760405162461bcd60e51b8152600401610b8d906131c7565b606061243e82611e5e565b6124a25760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610b8d565b60006124ac6126c2565b905060008151116124cc57604051806020016040528060008152506124f7565b806124d6846126d1565b6040516020016124e7929190613219565b6040516020818303038152906040525b9392505050565b61126a8282604051806020016040528060008152506127cf565b600081815b84518110156125bc57600085828151811061253a5761253a6130b0565b6020026020010151905080831161257c5760408051602081018590529081018290526060016040516020818303038152906040528051906020012092506125a9565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b50806125b4816130df565b91505061251d565b509392505050565b60006001600160a01b0384163b156126b757604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612608903390899088908890600401613248565b6020604051808303816000875af1925050508015612643575060408051601f3d908101601f1916820190925261264091810190613285565b60015b61269d573d808015612671576040519150601f19603f3d011682016040523d82523d6000602084013e612676565b606091505b5080516126955760405162461bcd60e51b8152600401610b8d906131c7565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611fcb565b506001949350505050565b6060601a8054610aa290612f50565b6060816126f55750506040805180820190915260018152600360fc1b602082015290565b8160005b811561271f5780612709816130df565b91506127189050600a83613073565b91506126f9565b60008167ffffffffffffffff81111561273a5761273a612bbd565b6040519080825280601f01601f191660200182016040528015612764576020820181803683370190505b5090505b8415611fcb57612779600183613027565b9150612786600a866132a2565b612791906030613127565b60f81b8183815181106127a6576127a66130b0565b60200101906001600160f81b031916908160001a9053506127c8600a86613073565b9450612768565b6127d98383612802565b6127e660008484846125c4565b610cc35760405162461bcd60e51b8152600401610b8d906131c7565b6001600160a01b0382166128585760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b8d565b61286181611e5e565b156128ae5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b8d565b6001600160a01b03821660009081526003602052604081208054600192906128d7908490613127565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461294190612f50565b90600052602060002090601f01602090048101928261296357600085556129a9565b82601f1061297c57805160ff19168380011785556129a9565b828001600101855582156129a9579182015b828111156129a957825182559160200191906001019061298e565b506129b5929150612a0e565b5090565b8280548282559060005260206000209081019282156129a9579160200282015b828111156129a957825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906129d9565b5b808211156129b55760008155600101612a0f565b6001600160e01b031981168114610f2c57600080fd5b600060208284031215612a4b57600080fd5b81356124f781612a23565b600060208284031215612a6857600080fd5b5035919050565b60005b83811015612a8a578181015183820152602001612a72565b8381111561190d5750506000910152565b60008151808452612ab3816020860160208601612a6f565b601f01601f19169290920160200192915050565b6020815260006124f76020830184612a9b565b80356001600160a01b0381168114612af157600080fd5b919050565b60008060408385031215612b0957600080fd5b612b1283612ada565b946020939093013593505050565b600080600060608486031215612b3557600080fd5b612b3e84612ada565b9250612b4c60208501612ada565b9150604084013590509250925092565b600060208284031215612b6e57600080fd5b813561ffff811681146124f757600080fd5b60008060408385031215612b9357600080fd5b50508035926020909101359150565b600060208284031215612bb457600080fd5b6124f782612ada565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff81118282101715612bfc57612bfc612bbd565b604052919050565b600067ffffffffffffffff831115612c1e57612c1e612bbd565b612c31601f8401601f1916602001612bd3565b9050828152838383011115612c4557600080fd5b828260208301376000602084830101529392505050565b600060208284031215612c6e57600080fd5b813567ffffffffffffffff811115612c8557600080fd5b8201601f81018413612c9657600080fd5b611fcb84823560208401612c04565b60008060008060808587031215612cbb57600080fd5b5050823594602084013594506040840135936060013592509050565b600080600060408486031215612cec57600080fd5b83359250602084013567ffffffffffffffff80821115612d0b57600080fd5b818601915086601f830112612d1f57600080fd5b813581811115612d2e57600080fd5b8760208260051b8501011115612d4357600080fd5b6020830194508093505050509250925092565b600080600060608486031215612d6b57600080fd5b833567ffffffffffffffff80821115612d8357600080fd5b818601915086601f830112612d9757600080fd5b8135602082821115612dab57612dab612bbd565b8160051b9250612dbc818401612bd3565b828152928401810192818101908a851115612dd657600080fd5b948201945b84861015612dfb57612dec86612ada565b82529482019490820190612ddb565b9a918901359950506040909701359695505050505050565b80358015158114612af157600080fd5b60008060408385031215612e3657600080fd5b612e3f83612ada565b9150612e4d60208401612e13565b90509250929050565b60008060008060808587031215612e6c57600080fd5b612e7585612ada565b9350612e8360208601612ada565b925060408501359150606085013567ffffffffffffffff811115612ea657600080fd5b8501601f81018713612eb757600080fd5b612ec687823560208401612c04565b91505092959194509250565b60008060408385031215612ee557600080fd5b612eee83612ada565b9150612e4d60208401612ada565b60008060008060808587031215612f1257600080fd5b612f1b85612e13565b9350612f2960208601612e13565b9250612f3760408601612e13565b9150612f4560608601612e13565b905092959194509250565b600181811c90821680612f6457607f821691505b60208210811415612f8557634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b60008282101561303957613039613011565b500390565b600081600019048311821515161561305857613058613011565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826130825761308261305d565b500490565b6020808252600f908201526e10dbdb9d1c9858dd0819195b9a5959608a1b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000602082840312156130d857600080fd5b5051919050565b60006000198214156130f3576130f3613011565b5060010190565b602080825260139082015272139bdd08195b9bdd59da08195d1a081cd95b9d606a1b604082015260600190565b6000821982111561313a5761313a613011565b500190565b60208082526024908201527f417474656d7074696e6720746f206d696e7420746f6f206d616e792070656e6760408201526375696e7360e01b606082015260800190565b60208082526013908201527213585e081cdd5c1c1b1e48195e18d959591959606a1b604082015260600190565b6000816131bf576131bf613011565b506000190190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000835161322b818460208801612a6f565b83519083019061323f818360208801612a6f565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061327b90830184612a9b565b9695505050505050565b60006020828403121561329757600080fd5b81516124f781612a23565b6000826132b1576132b161305d565b50069056fea26469706673582212206b7626042996d1b4d1bf753b03d7fb2e5e7d6f06cf69be4b53d3022f46df86d764736f6c634300080c0033

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

00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000042697066733a2f2f6261666b7265696633616c746b7a70346d7662346a7676746b676c76727a6f727771796f336264717034357578643470356a737675366679706734000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : notRevealedURI_ (string): ipfs://bafkreif3altkzp4mvb4jvvtkglvrzorwqyo3bdqp45uxd4p5jsvu6fypg4

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000042
Arg [2] : 697066733a2f2f6261666b7265696633616c746b7a70346d7662346a7676746b
Arg [3] : 676c76727a6f727771796f336264717034357578643470356a73767536667970
Arg [4] : 6734000000000000000000000000000000000000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.