ETH Price: $3,719.95 (+6.88%)
Gas: 66 Gwei

Contract

0xBE216D8511D6eC707BC6aB24d814F63c68e4E83a
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Safe Transfer Fr...193028262024-02-25 6:32:119 days ago1708842731IN
0xBE216D85...c68e4E83a
0 ETH0.001128623.48951894
Safe Transfer Fr...193025722024-02-25 5:40:359 days ago1708839635IN
0xBE216D85...c68e4E83a
0 ETH0.0015393222.00695659
Set Approval For...188036312023-12-17 5:19:4779 days ago1702790387IN
0xBE216D85...c68e4E83a
0 ETH0.0006639327.43995889
Set Approval For...187435982023-12-08 19:23:4787 days ago1702063427IN
0xBE216D85...c68e4E83a
0 ETH0.0018458440.03297837
Set Approval For...186647692023-11-27 18:28:5998 days ago1701109739IN
0xBE216D85...c68e4E83a
0 ETH0.0018090539.1637945
Set Approval For...186331222023-11-23 8:05:23102 days ago1700726723IN
0xBE216D85...c68e4E83a
0 ETH0.0013823129.98001437
Set Approval For...186304202023-11-22 23:00:47103 days ago1700694047IN
0xBE216D85...c68e4E83a
0 ETH0.0024036552.03628283
Set Approval For...186196412023-11-21 10:47:59104 days ago1700563679IN
0xBE216D85...c68e4E83a
0 ETH0.0011796525.53812864
Set Approval For...185679962023-11-14 5:16:59112 days ago1699939019IN
0xBE216D85...c68e4E83a
0 ETH0.0009924121.51258877
Set Approval For...185602672023-11-13 3:20:59113 days ago1699845659IN
0xBE216D85...c68e4E83a
0 ETH0.0016497235.71455595
Transfer From184654162023-10-30 20:40:11126 days ago1698698411IN
0xBE216D85...c68e4E83a
0 ETH0.0014607629.39754148
Set Approval For...184576192023-10-29 18:27:11127 days ago1698604031IN
0xBE216D85...c68e4E83a
0 ETH0.0007697316.69408514
Set Approval For...184506352023-10-28 18:59:11128 days ago1698519551IN
0xBE216D85...c68e4E83a
0 ETH0.000803217.42008652
Set Approval For...182736192023-10-04 0:36:59153 days ago1696379819IN
0xBE216D85...c68e4E83a
0 ETH0.0006066113.13237484
Set Approval For...182075212023-09-24 18:44:11162 days ago1695581051IN
0xBE216D85...c68e4E83a
0 ETH0.000338817.33497649
Set Approval For...180616392023-09-04 7:31:47182 days ago1693812707IN
0xBE216D85...c68e4E83a
0 ETH0.00066414.37483174
Set Approval For...177463402023-07-22 4:39:23227 days ago1690000763IN
0xBE216D85...c68e4E83a
0 ETH0.0007996717.34354881
Set Approval For...176828482023-07-13 6:36:35236 days ago1689230195IN
0xBE216D85...c68e4E83a
0 ETH0.0008665218.79337371
Set Approval For...176370792023-07-06 20:08:47242 days ago1688674127IN
0xBE216D85...c68e4E83a
0 ETH0.0016021334.74747871
Withdraw176338042023-07-06 9:05:23242 days ago1688634323IN
0xBE216D85...c68e4E83a
0 ETH0.002056636.45744245
Safe Transfer Fr...176189462023-07-04 7:02:23245 days ago1688454143IN
0xBE216D85...c68e4E83a
0 ETH0.0006994313.12014729
Change Unreveale...176130162023-07-03 11:02:23245 days ago1688382143IN
0xBE216D85...c68e4E83a
0 ETH0.0009679717.27045533
Change Unreveale...176126952023-07-03 9:57:35245 days ago1688378255IN
0xBE216D85...c68e4E83a
0 ETH0.0011198419.98011393
Presale Mint175993722023-07-01 13:02:23247 days ago1688216543IN
0xBE216D85...c68e4E83a
0.075 ETH0.0030605723.94818322
Presale Mint175979632023-07-01 8:15:59247 days ago1688199359IN
0xBE216D85...c68e4E83a
0.075 ETH0.0015595716.66211911
View all transactions

Latest 19 internal transactions

Advanced mode:
Parent Txn Hash Block From To Value
176338042023-07-06 9:05:23242 days ago1688634323
0xBE216D85...c68e4E83a
0.09 ETH
176338042023-07-06 9:05:23242 days ago1688634323
0xBE216D85...c68e4E83a
0.51 ETH
169637432023-04-02 20:23:35337 days ago1680467015
0xBE216D85...c68e4E83a
0.0675 ETH
169637432023-04-02 20:23:35337 days ago1680467015
0xBE216D85...c68e4E83a
0.3825 ETH
168471392023-03-17 11:08:35353 days ago1679051315
0xBE216D85...c68e4E83a
0.2925 ETH
168471392023-03-17 11:08:35353 days ago1679051315
0xBE216D85...c68e4E83a
1.6575 ETH
166413752023-02-16 12:45:23382 days ago1676551523
0xBE216D85...c68e4E83a
0.61875 ETH
166413752023-02-16 12:45:23382 days ago1676551523
0xBE216D85...c68e4E83a
3.50625 ETH
165151192023-01-29 21:19:47400 days ago1675027187
0xBE216D85...c68e4E83a
0.70520505 ETH
165151192023-01-29 21:19:47400 days ago1675027187
0xBE216D85...c68e4E83a
2.82082021 ETH
164131472023-01-15 15:38:47414 days ago1673797127
0xBE216D85...c68e4E83a
0.27 ETH
164131472023-01-15 15:38:47414 days ago1673797127
0xBE216D85...c68e4E83a
1.08 ETH
162002392022-12-16 22:28:47444 days ago1671229727
0xBE216D85...c68e4E83a
0.045 ETH
162002392022-12-16 22:28:47444 days ago1671229727
0xBE216D85...c68e4E83a
0.18 ETH
161040152022-12-03 11:33:35457 days ago1670067215
0xBE216D85...c68e4E83a
0.105 ETH
161040152022-12-03 11:33:35457 days ago1670067215
0xBE216D85...c68e4E83a
0.42 ETH
160456212022-11-25 7:50:47465 days ago1669362647
0xBE216D85...c68e4E83a
0.2166 ETH
160456212022-11-25 7:50:47465 days ago1669362647
0xBE216D85...c68e4E83a
0.8664 ETH
160325742022-11-23 12:03:59467 days ago1669205039
0xBE216D85...c68e4E83a
0.108 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Emily

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 20 : Token.sol
// β–‘β–ˆβ–ˆβ•—β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–ˆβ–ˆβ•—β–ˆβ–ˆβ•—β–‘β–‘β–ˆβ–ˆβ•—β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–‘β€ƒβ€ƒβ–ˆβ–ˆβ•—β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β€ƒβ€ƒβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ•—β–‘β–‘β–‘β–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•—β–ˆβ–ˆβ•—β–‘β–‘β–‘β–‘β–‘β–ˆβ–ˆβ•—β–‘β–‘β–‘β–ˆβ–ˆβ•—β–‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–‘
// β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–ˆβ–ˆβ•—β–‘β–‘β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–‘β–‘β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β€ƒβ€ƒβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ•”β•β•β•β•β•β€ƒβ€ƒβ–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ–ˆβ–ˆβ•—β–‘β–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–‘β–‘β–‘β–‘β–‘β•šβ–ˆβ–ˆβ•—β–‘β–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—
// β–‘β•šβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–‘β–‘β–ˆβ–ˆβ•‘β€ƒβ€ƒβ–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–‘β€ƒβ€ƒβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–‘β–‘β–ˆβ–ˆβ•”β–ˆβ–ˆβ–ˆβ–ˆβ•”β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–‘β–‘β–‘β–‘β–‘β–‘β•šβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–‘β•šβ•β•β–ˆβ–ˆβ–ˆβ•”β•
// β–‘β–‘β–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ–ˆβ–ˆβ•‘β–‘β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–‘β–‘β–ˆβ–ˆβ•‘β€ƒβ€ƒβ–ˆβ–ˆβ•‘β–‘β•šβ•β•β•β–ˆβ–ˆβ•—β€ƒβ€ƒβ–ˆβ–ˆβ•”β•β•β•β–‘β–‘β–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β•šβ–ˆβ–ˆβ•”β•β–‘β–‘β–‘β–‘β–‘β•šβ•β•β•β–‘
// β–‘β–‘β•šβ–ˆβ–ˆβ•”β•β–‘β•šβ–ˆβ–ˆβ•”β•β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–ˆβ–ˆβ•‘β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β€ƒβ€ƒβ–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β€ƒβ€ƒβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•‘β–‘β•šβ•β•β–‘β–ˆβ–ˆβ•‘β–ˆβ–ˆβ•‘β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–‘β–‘β–‘β–ˆβ–ˆβ•‘β–‘β–‘β–‘β–‘β–‘β–‘β–ˆβ–ˆβ•—β–‘β–‘
// β–‘β–‘β–‘β•šβ•β•β–‘β–‘β–‘β•šβ•β•β–‘β–‘β•šβ•β•β–‘β–‘β•šβ•β•β–‘β•šβ•β•β•β•β•β–‘β€ƒβ€ƒβ•šβ•β•β•šβ•β•β•β•β•β•β–‘β€ƒβ€ƒβ•šβ•β•β•β•β•β•β•β•šβ•β•β–‘β–‘β–‘β–‘β–‘β•šβ•β•β•šβ•β•β•šβ•β•β•β•β•β•β•β–‘β–‘β–‘β•šβ•β•β–‘β–‘β–‘β–‘β–‘β–‘β•šβ•β•β–‘β–‘

// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.17;

import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@divergencetech/ethier/contracts/erc721/ERC721ACommon.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@promos/contracts/Promos.sol";
import {DefaultOperatorFilterer} from "./DefaultOperatorFilterer.sol";

contract Emily is ERC721ACommon, Promos, DefaultOperatorFilterer {
    using Strings for uint256;

    //amount of tokens that have been minted so far, in total and in presale
    uint256 public numberOfTotalTokens = 0;

    //declares the maximum amount of tokens that can be minted, total and in presale
    uint256 private maxTotalTokens;
    //limit of tokens to be sold in presale
    uint256 private maxTokensPresale;
    //limit of tokens in genesis sale
    uint256 private maxTokensGenesisSale;

    //initial part of the URI for the metadata
    string private _currentBaseURI;

    //cost of mints depending on state of sale
    uint256 private constant mintCostGenesisSale = 0.075 ether;
    uint256 private mintCostPresale = 0.099 ether;
    uint256 private mintCostPublicSale = 0.2 ether;
    uint256 private constant mintIncrement = 0.1 ether;

    uint8 devShare = 20;
    uint8 marketingShare = 10;

    function switchShares() public onlyOwner {
        devShare = 15;
        marketingShare = 15;
    }

    /**
     * @dev
     * After deployment use this function to set `promosProxyContract`.
     * Mainnet - 0xA7296e3239Db13ACa886Fb130aE5Fe8f5A315721
     * Goerli  - 0x90766204108309bf97b998E262D05aa1b00Bc35c
     */
    function setPromosProxyContract(address _promosProxyContract)
        external
        override
        onlyOwner
    {
        promosProxyContract = _promosProxyContract;
    }

    /**
     * @dev
     * Functions required by opensea's new policy
     */

    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable override onlyAllowedOperator(from) {
        super.transferFrom(from, to, tokenId);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable override onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, tokenId);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) public payable override onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, tokenId, data);
    }

    function setMintCostPresale(uint256 _cost) public onlyOwner {
        mintCostPresale = _cost;
    }

    function setMintCostPublicSale(uint256 _cost) public onlyOwner {
        mintCostPublicSale = _cost;
    }

    function getMintCostPresale() public view returns (uint256) {
        return mintCostPresale;
    }

    //maximum amount of mints allowed per person
    uint256 public maxMintPresale = 2;

    //maximum amount of mints allowed per person
    uint256 public maxMintPublicSale = 3;

    //maximum amount of mints allowed per person
    uint256 public maxMintGenesis = 1;

    //the amount of reserved mints that have currently been executed by creator and giveaways
    uint256 private _reservedMints = 0;

    //the maximum amount of reserved mints allowed for creator and giveaways
    uint256 private maxReservedMints = 500;

    //addresses of the different shareholders and owners
    address payable public daoWallet =
        payable(0x9801c97483fe6fEef931268dBD5E7c9c55393341);
    address payable public incubationWallet =
        payable(0xC7086517dEAd1157cBa2133288d68ABA7D5FD8Cc);
    address payable public marketingWallet =
        payable(0x76Ae9F430b82F8d0529d1fB22A9aFAfdc9268EfF);
    address payable public devWallet =
        payable(0x6C69B08b1cBDcA1051e481b35F2FF79D131d502b);
    address payable public teamWallet =
        payable(0xed9c25a67d3119F8c3240d97d3073d7531442Ba0);

    //dummy address that we use to sign the mint transaction to make sure it is valid
    address private signatureVerifier =
        0xFe8A2eFF1B555FF0d5C61A0c80eE68b4DFb45633;

    address private variable = 0x02d274Ad889bf84E5431293B9DCE985A6C12703c;

    //marks the timestamp of when the respective sales open
    uint256 internal genesisLaunchTime;
    uint256 internal presaleLaunchTime;
    uint256 internal publicSaleLaunchTime;
    uint256 internal revealTime;

    //amount of mints that each address has executed
    mapping(address => uint256) public mintsPerAddress;
    mapping(bytes => bool) public signatureUsed;

    //current state os sale
    enum State {
        NoSale,
        GenesisSale,
        Presale,
        PublicSale
    }

    //defines the uri for when the NFTs have not been yet revealed
    string public unrevealedURI;

    constructor(uint96 royaltyBasisPoints)
        ERC721ACommon("Who is Emily", "EMILY", teamWallet, royaltyBasisPoints)
        Promos(10, 0xf4Ac6561bCE3b841a354ee1eF827A3e48a78F152)
    {
        maxTotalTokens = 10000;
        maxTokensPresale = 1000;
        maxTokensGenesisSale = 100;
        _setDefaultRoyalty(teamWallet, royaltyBasisPoints);
        unrevealedURI = "ar://0wt6ZWanbUN4ajXy-fbQFeb4Tk2ak4KS6Js7eJk4j_I";
    }

    // //in case somebody accidentaly sends funds or transaction to contract
    // receive() override payable external {}
    fallback() external payable {
        revert();
    }

    //visualize baseURI
    function _baseURI() internal view virtual override returns (string memory) {
        return _currentBaseURI;
    }

    //change baseURI in case needed for IPFS
    function changeBaseURI(string memory baseURI_) public onlyOwner {
        _currentBaseURI = baseURI_;
    }

    function changeUnrevealedURI(string memory unrevealedURI_)
        public
        onlyOwner
    {
        unrevealedURI = unrevealedURI_;
        changeBaseURI(unrevealedURI_);
        revealTime = block.timestamp;
    }

    function changeMaxMintGenesis(uint256 _number) public onlyOwner {
        maxMintGenesis = _number;
    }

    function changeMaxMintPresale(uint256 _number) public onlyOwner {
        maxMintPresale = _number;
    }

    function changeMaxMintPublicSale(uint256 _number) public onlyOwner {
        maxMintPublicSale = _number;
    }

    function changeMintCostPublicSale(uint256 _cost) public onlyOwner {
        mintCostPublicSale = _cost;
    }

    function switchToGenesisSale() public onlyOwner {
        require(saleState() == State.NoSale, "Sale is already Open!");
        genesisLaunchTime = block.timestamp;
    }

    function switchToPresale() public onlyOwner {
        require(saleState() == State.GenesisSale, "Sale is already Open!");
        presaleLaunchTime = block.timestamp;
    }

    function switchToPublicSale() public onlyOwner {
        require(saleState() == State.Presale, "Sale is already Open!");
        publicSaleLaunchTime = block.timestamp;
    }

    function recoverSigner(bytes32 hash, bytes memory signature)
        public
        pure
        returns (address)
    {
        bytes32 messageDigest = keccak256(
            abi.encodePacked("\x19Ethereum Signed Message:\n32", hash)
        );
        return ECDSA.recover(messageDigest, signature);
    }

    function ownerMint(uint256 number) public onlyOwner {
        _safeMint(msg.sender, number);
        numberOfTotalTokens += number;
    }

    //mint a @param number of NFTs in presale
    function genesisMint(
        uint256 number,
        bytes32 hash,
        bytes memory signature
    ) public payable {
        require(saleState() == State.GenesisSale, "Not in Genesis Sale!");
        require(
            numberOfTotalTokens + number <= maxTokensGenesisSale,
            "Not enough NFTs left to mint.."
        );
        require(
            mintsPerAddress[msg.sender] + number <= maxMintGenesis,
            "Maximum 1 Mint per Address allowed!"
        );
        require(
            recoverSigner(hash, signature) == signatureVerifier,
            "Address is not allowlisted"
        );
        require(
            msg.value >= mintCost() * number,
            "Not sufficient Ether to mint this amount of NFTs (Cost = 0.075 ether each NFT)"
        );
        numberOfTotalTokens += number;
        _safeMint(msg.sender, number);
        mintsPerAddress[msg.sender] += number;
    }

    //mint a @param number of NFTs in presale
    function presaleMint(
        uint256 _number,
        bytes32 _hash,
        bytes memory _signature
    ) public payable {
        require(saleState() == State.Presale, "Not in Presale!");
        require(
            numberOfTotalTokens + _number <= maxTokensPresale,
            "Not enough NFTs left to mint.."
        );
        require(
            mintsPerAddress[msg.sender] + _number - maxMintGenesis <=
                maxMintPresale,
            "Maximum 3 Mints per Address allowed!"
        );
        require(
            recoverSigner(_hash, _signature) == signatureVerifier,
            "Address is not allowlisted"
        );
        require(
            msg.value >= mintCost() * _number,
            "Not sufficient Ether to mint this amount of NFTs (Cost = 0.1 ether each NFT)"
        );
        numberOfTotalTokens += _number;
        _safeMint(msg.sender, _number);
        mintsPerAddress[msg.sender] += _number;
    }

    // Promos mint function. Use `OnlyPromos` modifier to restrict to Promos contract
    function mintPromos(address _to, uint256 _amount)
        external
        payable
        override
        MintPromos(_to, _amount)
    {
        // Your custom logic here
        require(
            numberOfTotalTokens + _amount <= maxTotalTokens,
            "Not enough NFTs left to mint.."
        );
        if (saleState() == State.GenesisSale) {
            require(
                mintsPerAddress[_to] + _amount <= maxMintGenesis,
                "Maximum Mints per Address exceeded!"
            );
        } else if (saleState() == State.Presale) {
            require(
                mintsPerAddress[_to] + _amount - maxMintGenesis <=
                    maxMintPresale,
                "Maximum Mints per Address exceeded!"
            );
        } else {
            require(
                mintsPerAddress[_to] +
                    _amount -
                    maxMintGenesis -
                    maxMintPresale <=
                    maxMintPublicSale,
                "Maximum Public Sale Mint limit exceeded"
            );
        }
        numberOfTotalTokens += _amount;
        mintsPerAddress[_to] += _amount;

        // IMPORTANT!
        // Avoid using msg.sender and use _to argument instead
        _safeMint(_to, _amount);
    }

    //mint a @param number of NFTs in public sale
    function publicSaleMint(uint256 number) public payable {
        require(
            saleState() == State.PublicSale,
            "Public Sale is not open yet!"
        );
        require(
            numberOfTotalTokens + number <=
                maxTotalTokens - (maxReservedMints - _reservedMints),
            "Not enough NFTs left to mint.."
        );
        require(
            mintsPerAddress[msg.sender] +
                number -
                maxMintGenesis -
                maxMintPresale <=
                maxMintPublicSale,
            "Maximum Public Sale Mint limit exceeded"
        );
        require(
            msg.value >= mintCostPublicSale * number,
            "Not sufficient Ether to mint this amount of NFTs"
        );
        _safeMint(msg.sender, number);
        mintsPerAddress[msg.sender] += number;
        numberOfTotalTokens += number;
    }

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

        //check to see that 24 hours have passed since beginning of publicsale launch
        if (revealTime == 0) {
            return unrevealedURI;
        } else {
            string memory baseURI = _baseURI();
            return
                string(
                    abi.encodePacked(
                        baseURI,
                        "/",
                        Strings.toString(_tokenId),
                        ".json"
                    )
                );
        }
    }

    //reserved NFTs for creator
    function reservedMint(uint256 number, address recipient) public {
        require(
            msg.sender == teamWallet,
            "Only the Team Wallet can mint Reserved NFTs!"
        );
        require(
            _reservedMints + number <= maxReservedMints,
            "Not enough Reserved NFTs left to mint.."
        );
        _safeMint(recipient, number);
        mintsPerAddress[recipient] += 1;
        numberOfTotalTokens += 1;
        _reservedMints += 1;
    }

    //burn the tokens that have not been sold yet
    function burnAllUnmintedTokens() public onlyOwner {
        maxTotalTokens = numberOfTotalTokens;
    }

    //see the current account balance
    function accountBalance() public view onlyOwner returns (uint256) {
        return address(this).balance;
    }

    //retrieve all funds recieved from minting
    function withdraw() public onlyOwner {
        uint256 balance = accountBalance();
        require(balance > 0, "No Funds to withdraw, Balance is 0");

        if (saleState() == State.GenesisSale || saleState() == State.Presale) {
            _withdraw(
                payable(marketingWallet),
                (balance * (100 - devShare)) / 100
            );
            _withdraw(payable(devWallet), (balance * devShare) / 100);
        } else {
            _withdraw(payable(daoWallet), (balance * 25) / 100);
            _withdraw(payable(incubationWallet), (balance * 25) / 100);
            _withdraw(
                payable(marketingWallet),
                (balance * marketingShare) / 100
            );
            _withdraw(payable(devWallet), (balance * devShare) / 100);
            _withdraw(payable(teamWallet), (balance * 20) / 100);
        }
    }

    //send the percentage of funds to a shareholder´s wallet
    function _withdraw(address payable account, uint256 amount) internal {
        (bool sent, ) = account.call{value: amount}("");
        require(sent, "Failed to send Ether");
    }

    //to see the total amount of reserved mints left
    function reservedMintsLeft() public view onlyOwner returns (uint256) {
        return maxReservedMints - _reservedMints;
    }

    //see current state of sale
    //see the current state of the sale
    function saleState() public view returns (State) {
        if (genesisLaunchTime == 0) {
            return State.NoSale;
        } else if (presaleLaunchTime == 0) {
            return State.GenesisSale;
        } else if (publicSaleLaunchTime == 0) {
            return State.Presale;
        } else {
            return State.PublicSale;
        }
    }

    //gets the cost of current mint
    function mintCost() public view returns (uint256) {
        State saleState_ = saleState();
        if (saleState_ == State.NoSale || saleState_ == State.GenesisSale) {
            return mintCostGenesisSale;
        } else if (saleState_ == State.Presale) {
            return mintCostPresale;
        } else {
            return mintCostPublicSale;
        }
    }

    //see if the NFTs have been revealed
    function haveBeenRevealed() public view returns (bool) {
        if (revealTime == 0) {
            return false;
        } else {
            return true;
        }
    }

    //reveal the NFTs
    function reveal() public onlyOwner {
        require(revealTime == 0, "NFTs have already been revealed!");
        revealTime = block.timestamp;
    }

    function changeVariable(address newAddress) public onlyOwner {
        variable = newAddress;
    }

    function burn(uint256 tokenId_) public {
        _burn(tokenId_, true);
    }

    /**
    @dev tokenId to staking start time (0 = not staking).
     */
    mapping(uint256 => uint256) private stakingStarted;

    /**
    @dev Cumulative per-token staking, excluding the current period.
     */
    mapping(uint256 => uint256) private stakingTotal;

    /**
    @notice Returns the length of time, in seconds, that the Emily has
    been framed.
    @dev staking is tied to a specific Emily, not to the owner, so it doesn"t
    reset upon sale.
    @return staking Whether the Emily is currently staking. MAY be true with
    zero current staking if in the same block as staking began.
    @return current Zero if not currently staking, otherwise the length of time
    since the most recent staking began.
    @return total Total period of time for which the Emily has been framed across
    its life, including the current period.
     */
    function stakingPeriod(uint256 tokenId)
        external
        view
        returns (
            bool staking,
            uint256 current,
            uint256 total
        )
    {
        uint256 start = stakingStarted[tokenId];
        if (start != 0) {
            staking = true;
            current = block.timestamp - start;
        }
        total = current + stakingTotal[tokenId];
    }

    /**
    @dev MUST only be modified by safeTransferWhilestaking(); if set to 2 then
    the _beforeTokenTransfer() block while staking is disabled.
     */
    uint256 private stakingTransfer = 1;

    /**
    @notice Transfer a token between addresses while the Emily is minting,
    thus not resetting the staking period.
     */
    function safeTransferWhilestaking(
        address from,
        address to,
        uint256 tokenId
    ) external {
        require(ownerOf(tokenId) == _msgSender(), "Emily token: Only owner");
        stakingTransfer = 2;
        safeTransferFrom(from, to, tokenId);
        stakingTransfer = 1;
    }

    /**
    @dev Block transfers while staking.
     */
    function _beforeTokenTransfers(
        address,
        address,
        uint256 startTokenId,
        uint256 quantity
    ) internal view override {
        uint256 tokenId = startTokenId;
        for (uint256 end = tokenId + quantity; tokenId < end; ++tokenId) {
            require(
                stakingStarted[tokenId] == 0 || stakingTransfer == 2,
                "Emily tokens: staking"
            );
        }
    }

    /**
    @dev Emitted when an Emily begins staking.
     */
    event Staked(uint256 indexed tokenId);

    /**
    @dev Emitted when an Emily stops staking; either through standard means or
    by expulsion.
     */
    event UnStaked(uint256 indexed tokenId);

    /**
    @dev Emitted when an Emily is expelled from her frame.
     */
    event Expelled(uint256 indexed tokenId);

    /**
    @notice Whether staking is currently allowed.
    @dev If false then staking is blocked, but unstaking is always allowed.
     */
    bool public stakingOpen = false;

    /**
    @notice Toggles the `stakingOpen` flag.
     */
    function setStakingOpen(bool open) external onlyOwner {
        stakingOpen = open;
    }

    /**
    @notice Changes the Emily"s staking status.
    */
    function toggleStaking(uint256 tokenId)
        internal
        onlyApprovedOrOwner(tokenId)
    {
        uint256 start = stakingStarted[tokenId];
        if (start == 0) {
            require(stakingOpen, "Emily: staking closed");
            stakingStarted[tokenId] = block.timestamp;
            emit Staked(tokenId);
        } else {
            stakingTotal[tokenId] += block.timestamp - start;
            stakingStarted[tokenId] = 0;
            emit UnStaked(tokenId);
        }
    }

    /**
    @notice Changes the Emilys staking status.
    @dev Changes the Emilys" staking status (see @notice).
     */
    function toggleStaking(uint256[] calldata tokenIds) external {
        uint256 n = tokenIds.length;
        for (uint256 i = 0; i < n; ++i) {
            toggleStaking(tokenIds[i]);
        }
    }

    /**
    @notice Admin-only ability to expel an Emily from the frame.
    @dev As most sales listings use off-chain signatures it"s impossible to
    detect someone who has framed and then deliberately undercuts the floor
    price in the knowledge that the sale can"t proceed. This function allows for
    monitoring of such practices and expulsion if abuse is detected, allowing
    the undercutting Emily to be sold on the open market. Since OpenSea uses
    isApprovedForAll() in its pre-listing checks, we can"t block by that means
    because staking would then be all-or-nothing for all of a particular owner"s
    Emily tokens.
     */
    function expelFromStaking(uint256 tokenId) external onlyOwner {
        require(stakingStarted[tokenId] != 0, "Emily: not framed");
        stakingTotal[tokenId] += block.timestamp - stakingStarted[tokenId];
        stakingStarted[tokenId] = 0;
        emit Staked(tokenId);
        emit Expelled(tokenId);
    }

    // Required to support `IPromos.sol`
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC721ACommon, Promos)
        returns (bool)
    {
        return
            Promos.supportsInterface(interfaceId) ||
            super.supportsInterface(interfaceId);
    }
}

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

import {OperatorFilterer} from "./OperatorFilterer.sol";

abstract contract DefaultOperatorFilterer is OperatorFilterer {
    address constant DEFAULT_SUBSCRIPTION =
        address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6);

    constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {}
}

File 3 of 20 : Promos.sol
// SPDX-License-Identifier: MIT
// Promos v1.0.0
// Creator: promos.wtf

pragma solidity ^0.8.0;

import "./IPromos.sol";
import "./PromosProxy.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";

abstract contract Promos is IPromos, ERC165 {
    address public promosOwner;
    uint256 public promosSupply;
    address public promosProxyContract;

    /**
     * @dev 
     * IMPORTANT! Only use addresses you see below for `_promosProxyContract`
     * Mainnet - 0xA7296e3239Db13ACa886Fb130aE5Fe8f5A315721 
     * Goerli  - 0xf4Ac6561bCE3b841a354ee1eF827A3e48a78F152
     */
    constructor(uint256 _promosSupply, address _promosProxyContract) {
        promosOwner = msg.sender;
        promosSupply = _promosSupply;
        promosProxyContract = _promosProxyContract;
    }

    /**
     * @dev 
     * This operation will delete all the ongoing campaigns
     */
    function transferPromosOwnership(address _promosOwner) external {
        require(msg.sender == promosOwner, 'Promos: Caller is not the controller');
        require(_promosOwner != address(0), "Promos: new controller is the zero address");

        promosOwner = _promosOwner;
    }

    modifier MintPromos(address _to, uint256 _mintAmount) {
        address promosMintContract = PromosProxy(promosProxyContract)
            .promosMintAddress();
        require(_to != promosMintContract, "Not ERC721 reciever");
        require(msg.sender == promosMintContract, "Wrong msg.sender");
        require(_mintAmount <= promosSupply, "Exceeds Promos supply");
        promosSupply = promosSupply - _mintAmount;
        _;
    }

    function setPromosSupply(uint256 _promosSupply) external {
        require(msg.sender == promosOwner, 'Promos: Caller is not the controller');
        promosSupply = _promosSupply;
    }

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

    receive() external payable {}
}

File 4 of 20 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 5 of 20 : ERC721ACommon.sol
// SPDX-License-Identifier: MIT
// Copyright (c) 2022 the ethier authors (github.com/divergencetech/ethier)
pragma solidity >=0.8.0 <0.9.0;

import "erc721a/contracts/ERC721A.sol";
import "../utils/OwnerPausable.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";

/**
@notice An ERC721A contract with common functionality:
 - Pausable with toggling functions exposed to Owner only
 - ERC2981 royalties
 */
contract ERC721ACommon is ERC721A, OwnerPausable, ERC2981 {
    constructor(
        string memory name,
        string memory symbol,
        address payable royaltyReciever,
        uint96 royaltyBasisPoints
    ) ERC721A(name, symbol) {
        _setDefaultRoyalty(royaltyReciever, royaltyBasisPoints);
    }

    /// @notice Requires that the token exists.
    modifier tokenExists(uint256 tokenId) {
        require(ERC721A._exists(tokenId), "ERC721ACommon: Token doesn't exist");
        _;
    }

    /// @notice Requires that msg.sender owns or is approved for the token.
    modifier onlyApprovedOrOwner(uint256 tokenId) {
        require(
            _ownershipOf(tokenId).addr == _msgSender() ||
                getApproved(tokenId) == _msgSender(),
            "ERC721ACommon: Not approved nor owner"
        );
        _;
    }

    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual override {
        require(!paused(), "ERC721ACommon: paused");
        super._beforeTokenTransfers(from, to, startTokenId, quantity);
    }

    /// @notice Overrides supportsInterface as required by inheritance.
    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override(ERC721A, ERC2981)
        returns (bool)
    {
        return
            ERC721A.supportsInterface(interfaceId) ||
            ERC2981.supportsInterface(interfaceId);
    }

    /// @notice Sets the royalty receiver and percentage (in units of basis
    /// points = 0.01%).
    function setDefaultRoyalty(address receiver, uint96 basisPoints)
        public
        virtual
        onlyOwner
    {
        _setDefaultRoyalty(receiver, basisPoints);
    }
}

File 6 of 20 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.3) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

File 7 of 20 : OperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";

abstract contract OperatorFilterer {
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry constant operatorFilterRegistry =
        IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);

    constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
        // If an inheriting token contract is deployed to a network without the registry deployed, the modifier
        // will not revert, but the contract will need to be registered with the registry once it is deployed in
        // order for the modifier to filter addresses.
        if (address(operatorFilterRegistry).code.length > 0) {
            if (subscribe) {
                operatorFilterRegistry.registerAndSubscribe(
                    address(this),
                    subscriptionOrRegistrantToCopy
                );
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    operatorFilterRegistry.registerAndCopyEntries(
                        address(this),
                        subscriptionOrRegistrantToCopy
                    );
                } else {
                    operatorFilterRegistry.register(address(this));
                }
            }
        }
    }

    modifier onlyAllowedOperator(address from) virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(operatorFilterRegistry).code.length > 0) {
            // Allow spending tokens from addresses with balance
            // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
            // from an EOA.
            if (from == msg.sender) {
                _;
                return;
            }
            if (
                !(operatorFilterRegistry.isOperatorAllowed(
                    address(this),
                    msg.sender
                ) &&
                    operatorFilterRegistry.isOperatorAllowed(
                        address(this),
                        from
                    ))
            ) {
                revert OperatorNotAllowed(msg.sender);
            }
        }
        _;
    }
}

File 8 of 20 : 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 9 of 20 : PromosProxy.sol
// SPDX-License-Identifier: MIT
// Creator: promos.wtf

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";

contract PromosProxy is Ownable {
    address public promosMintAddress;

    function setPromosMintAddress(address _promosMintAddress)
        external
        onlyOwner
    {
        promosMintAddress = _promosMintAddress;
    }
}

File 10 of 20 : IPromos.sol
// SPDX-License-Identifier: MIT
// Promos v1.0.0
// Creator: promos.wtf

pragma solidity ^0.8.0;

interface IPromos {
    function mintPromos(address _to, uint256 _amount) external payable;


    /**
     * @dev 
     * After deployment use this function to set `promosProxyContract`. 
     * Mainnet - 0xA7296e3239Db13ACa886Fb130aE5Fe8f5A315721 
     * Goerli  - 0x90766204108309bf97b998E262D05aa1b00Bc35c
     */
    function setPromosProxyContract(address _promosProxyContract) external;
}

File 11 of 20 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

File 12 of 20 : OwnerPausable.sol
// SPDX-License-Identifier: MIT
// Copyright (c) 2021 the ethier authors (github.com/divergencetech/ethier)
pragma solidity >=0.8.0 <0.9.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";

/// @notice A Pausable contract that can only be toggled by the Owner.
contract OwnerPausable is Ownable, Pausable {
    /// @notice Pauses the contract.
    function pause() public onlyOwner {
        Pausable._pause();
    }

    /// @notice Unpauses the contract.
    function unpause() public onlyOwner {
        Pausable._unpause();
    }
}

File 13 of 20 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

/**
 * @dev Interface of ERC721 token receiver.
 */
interface ERC721A__IERC721Receiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

/**
 * @title ERC721A
 *
 * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721)
 * Non-Fungible Token Standard, including the Metadata extension.
 * Optimized for lower gas during batch mints.
 *
 * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...)
 * starting from `_startTokenId()`.
 *
 * Assumptions:
 *
 * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is IERC721A {
    // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364).
    struct TokenApprovalRef {
        address value;
    }

    // =============================================================
    //                           CONSTANTS
    // =============================================================

    // Mask of an entry in packed address data.
    uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1;

    // The bit position of `numberMinted` in packed address data.
    uint256 private constant _BITPOS_NUMBER_MINTED = 64;

    // The bit position of `numberBurned` in packed address data.
    uint256 private constant _BITPOS_NUMBER_BURNED = 128;

    // The bit position of `aux` in packed address data.
    uint256 private constant _BITPOS_AUX = 192;

    // Mask of all 256 bits in packed address data except the 64 bits for `aux`.
    uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1;

    // The bit position of `startTimestamp` in packed ownership.
    uint256 private constant _BITPOS_START_TIMESTAMP = 160;

    // The bit mask of the `burned` bit in packed ownership.
    uint256 private constant _BITMASK_BURNED = 1 << 224;

    // The bit position of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITPOS_NEXT_INITIALIZED = 225;

    // The bit mask of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITMASK_NEXT_INITIALIZED = 1 << 225;

    // The bit position of `extraData` in packed ownership.
    uint256 private constant _BITPOS_EXTRA_DATA = 232;

    // Mask of all 256 bits in a packed ownership except the 24 bits for `extraData`.
    uint256 private constant _BITMASK_EXTRA_DATA_COMPLEMENT = (1 << 232) - 1;

    // The mask of the lower 160 bits for addresses.
    uint256 private constant _BITMASK_ADDRESS = (1 << 160) - 1;

    // The maximum `quantity` that can be minted with {_mintERC2309}.
    // This limit is to prevent overflows on the address data entries.
    // For a limit of 5000, a total of 3.689e15 calls to {_mintERC2309}
    // is required to cause an overflow, which is unrealistic.
    uint256 private constant _MAX_MINT_ERC2309_QUANTITY_LIMIT = 5000;

    // The `Transfer` event signature is given by:
    // `keccak256(bytes("Transfer(address,address,uint256)"))`.
    bytes32 private constant _TRANSFER_EVENT_SIGNATURE =
        0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef;

    // =============================================================
    //                            STORAGE
    // =============================================================

    // The next token ID to be minted.
    uint256 private _currentIndex;

    // The number of tokens burned.
    uint256 private _burnCounter;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned.
    // See {_packedOwnershipOf} implementation for details.
    //
    // Bits Layout:
    // - [0..159]   `addr`
    // - [160..223] `startTimestamp`
    // - [224]      `burned`
    // - [225]      `nextInitialized`
    // - [232..255] `extraData`
    mapping(uint256 => uint256) private _packedOwnerships;

    // Mapping owner address to address data.
    //
    // Bits Layout:
    // - [0..63]    `balance`
    // - [64..127]  `numberMinted`
    // - [128..191] `numberBurned`
    // - [192..255] `aux`
    mapping(address => uint256) private _packedAddressData;

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

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

    // =============================================================
    //                          CONSTRUCTOR
    // =============================================================

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _currentIndex = _startTokenId();
    }

    // =============================================================
    //                   TOKEN COUNTING OPERATIONS
    // =============================================================

    /**
     * @dev Returns the starting token ID.
     * To change the starting token ID, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 1;
    }

    /**
     * @dev Returns the next token ID to be minted.
     */
    function _nextTokenId() internal view virtual returns (uint256) {
        return _currentIndex;
    }

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than `_currentIndex - _startTokenId()` times.
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * @dev Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view virtual returns (uint256) {
        // Counter underflow is impossible as `_currentIndex` does not decrement,
        // and it is initialized to `_startTokenId()`.
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

    /**
     * @dev Returns the total number of tokens burned.
     */
    function _totalBurned() internal view virtual returns (uint256) {
        return _burnCounter;
    }

    // =============================================================
    //                    ADDRESS DATA OPERATIONS
    // =============================================================

    /**
     * @dev Returns the number of tokens in `owner`'s account.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> _BITPOS_NUMBER_MINTED) & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        return (_packedAddressData[owner] >> _BITPOS_NUMBER_BURNED) & _BITMASK_ADDRESS_DATA_ENTRY;
    }

    /**
     * Returns the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return uint64(_packedAddressData[owner] >> _BITPOS_AUX);
    }

    /**
     * Sets the auxiliary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal virtual {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        // Cast `aux` with assembly to avoid redundant masking.
        assembly {
            auxCasted := aux
        }
        packed = (packed & _BITMASK_AUX_COMPLEMENT) | (auxCasted << _BITPOS_AUX);
        _packedAddressData[owner] = packed;
    }

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        // The interface IDs are constants representing the first 4 bytes
        // of the XOR of all function selectors in the interface.
        // See: [ERC165](https://eips.ethereum.org/EIPS/eip-165)
        // (e.g. `bytes4(i.functionA.selector ^ i.functionB.selector ^ ...)`)
        return
            interfaceId == 0x01ffc9a7 || // ERC165 interface ID for ERC165.
            interfaceId == 0x80ac58cd || // ERC165 interface ID for ERC721.
            interfaceId == 0x5b5e139f; // ERC165 interface ID for ERC721Metadata.
    }

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

    /**
     * @dev Returns the token collection name.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

        string memory baseURI = _baseURI();
        return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : '';
    }

    /**
     * @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, it can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return '';
    }

    // =============================================================
    //                     OWNERSHIPS OPERATIONS
    // =============================================================

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        return address(uint160(_packedOwnershipOf(tokenId)));
    }

    /**
     * @dev Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around over time.
     */
    function _ownershipOf(uint256 tokenId) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnershipOf(tokenId));
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct at `index`.
     */
    function _ownershipAt(uint256 index) internal view virtual returns (TokenOwnership memory) {
        return _unpackedOwnership(_packedOwnerships[index]);
    }

    /**
     * @dev Initializes the ownership slot minted at `index` for efficiency purposes.
     */
    function _initializeOwnershipAt(uint256 index) internal virtual {
        if (_packedOwnerships[index] == 0) {
            _packedOwnerships[index] = _packedOwnershipOf(index);
        }
    }

    /**
     * Returns the packed ownership data of `tokenId`.
     */
    function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr)
                if (curr < _currentIndex) {
                    uint256 packed = _packedOwnerships[curr];
                    // If not burned.
                    if (packed & _BITMASK_BURNED == 0) {
                        // Invariant:
                        // There will always be an initialized ownership slot
                        // (i.e. `ownership.addr != address(0) && ownership.burned == false`)
                        // before an unintialized ownership slot
                        // (i.e. `ownership.addr == address(0) && ownership.burned == false`)
                        // Hence, `curr` will not underflow.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed will be zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev Returns the unpacked `TokenOwnership` struct from `packed`.
     */
    function _unpackedOwnership(uint256 packed) private pure returns (TokenOwnership memory ownership) {
        ownership.addr = address(uint160(packed));
        ownership.startTimestamp = uint64(packed >> _BITPOS_START_TIMESTAMP);
        ownership.burned = packed & _BITMASK_BURNED != 0;
        ownership.extraData = uint24(packed >> _BITPOS_EXTRA_DATA);
    }

    /**
     * @dev Packs ownership data into a single uint256.
     */
    function _packOwnershipData(address owner, uint256 flags) private view returns (uint256 result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // `owner | (block.timestamp << _BITPOS_START_TIMESTAMP) | flags`.
            result := or(owner, or(shl(_BITPOS_START_TIMESTAMP, timestamp()), flags))
        }
    }

    /**
     * @dev Returns the `nextInitialized` flag set if `quantity` equals 1.
     */
    function _nextInitializedFlag(uint256 quantity) private pure returns (uint256 result) {
        // For branchless setting of the `nextInitialized` flag.
        assembly {
            // `(quantity == 1) << _BITPOS_NEXT_INITIALIZED`.
            result := shl(_BITPOS_NEXT_INITIALIZED, eq(quantity, 1))
        }
    }

    // =============================================================
    //                      APPROVAL OPERATIONS
    // =============================================================

    /**
     * @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) public payable virtual override {
        address owner = ownerOf(tokenId);

        if (_msgSenderERC721A() != owner)
            if (!isApprovedForAll(owner, _msgSenderERC721A())) {
                revert ApprovalCallerNotOwnerNorApproved();
            }

        _tokenApprovals[tokenId].value = to;
        emit Approval(owner, to, tokenId);
    }

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId].value;
    }

    /**
     * @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) public virtual override {
        _operatorApprovals[_msgSenderERC721A()][operator] = approved;
        emit ApprovalForAll(_msgSenderERC721A(), operator, approved);
    }

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

    /**
     * @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. See {_mint}.
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return
            _startTokenId() <= tokenId &&
            tokenId < _currentIndex && // If within bounds,
            _packedOwnerships[tokenId] & _BITMASK_BURNED == 0; // and not burned.
    }

    /**
     * @dev Returns whether `msgSender` is equal to `approvedAddress` or `owner`.
     */
    function _isSenderApprovedOrOwner(
        address approvedAddress,
        address owner,
        address msgSender
    ) private pure returns (bool result) {
        assembly {
            // Mask `owner` to the lower 160 bits, in case the upper bits somehow aren't clean.
            owner := and(owner, _BITMASK_ADDRESS)
            // Mask `msgSender` to the lower 160 bits, in case the upper bits somehow aren't clean.
            msgSender := and(msgSender, _BITMASK_ADDRESS)
            // `msgSender == owner || msgSender == approvedAddress`.
            result := or(eq(msgSender, owner), eq(msgSender, approvedAddress))
        }
    }

    /**
     * @dev Returns the storage slot and value for the approved address of `tokenId`.
     */
    function _getApprovedSlotAndAddress(uint256 tokenId)
        private
        view
        returns (uint256 approvedAddressSlot, address approvedAddress)
    {
        TokenApprovalRef storage tokenApproval = _tokenApprovals[tokenId];
        // The following is equivalent to `approvedAddress = _tokenApprovals[tokenId].value`.
        assembly {
            approvedAddressSlot := tokenApproval.slot
            approvedAddress := sload(approvedAddressSlot)
        }
    }

    // =============================================================
    //                      TRANSFER OPERATIONS
    // =============================================================

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * 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
    ) public payable virtual override {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

        if (address(uint160(prevOwnershipPacked)) != from) revert TransferFromIncorrectOwner();

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        // The nested ifs save around 20+ gas over a compound boolean condition.
        if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
            if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();

        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
        unchecked {
            // We can directly increment and decrement the balances.
            --_packedAddressData[from]; // Updates: `balance -= 1`.
            ++_packedAddressData[to]; // Updates: `balance += 1`.

            // Updates:
            // - `address` to the next owner.
            // - `startTimestamp` to the timestamp of transfering.
            // - `burned` to `false`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                to,
                _BITMASK_NEXT_INITIALIZED | _nextExtraData(from, to, prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        emit Transfer(from, to, tokenId);
        _afterTokenTransfers(from, to, tokenId, 1);
    }

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable virtual override {
        safeTransferFrom(from, to, tokenId, '');
    }

    /**
     * @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 memory _data
    ) public payable virtual override {
        transferFrom(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token IDs
     * are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * `startTokenId` - the first token ID to be transferred.
     * `quantity` - the amount to be transferred.
     *
     * 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, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token IDs
     * have been transferred. This includes minting.
     * And also called after one token has been burned.
     *
     * `startTokenId` - the first token ID to be transferred.
     * `quantity` - the amount to be transferred.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Private function to invoke {IERC721Receiver-onERC721Received} on a target contract.
     *
     * `from` - Previous owner of the given token ID.
     * `to` - Target address that will receive the token.
     * `tokenId` - Token ID to be transferred.
     * `_data` - Optional data to send along with the call.
     *
     * Returns whether the call correctly returned the expected magic value.
     */
    function _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try ERC721A__IERC721Receiver(to).onERC721Received(_msgSenderERC721A(), from, tokenId, _data) returns (
            bytes4 retval
        ) {
            return retval == ERC721A__IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    // =============================================================
    //                        MINT OPERATIONS
    // =============================================================

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _mint(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (quantity == 0) revert MintZeroQuantity();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // `balance` and `numberMinted` have a maximum limit of 2**64.
        // `tokenId` has a maximum limit of 2**256.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

            // Use assembly to loop and emit the `Transfer` event for gas savings.
            // The duplicated `log4` removes an extra check and reduces stack juggling.
            // The assembly, together with the surrounding Solidity code, have been
            // delicately arranged to nudge the compiler into producing optimized opcodes.
            assembly {
                // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
                toMasked := and(to, _BITMASK_ADDRESS)
                // Emit the `Transfer` event.
                log4(
                    0, // Start of data (0, since no data).
                    0, // End of data (0, since no data).
                    _TRANSFER_EVENT_SIGNATURE, // Signature.
                    0, // `address(0)`.
                    toMasked, // `to`.
                    startTokenId // `tokenId`.
                )

                // The `iszero(eq(,))` check ensures that large values of `quantity`
                // that overflows uint256 will make the loop run out of gas.
                // The compiler will optimize the `iszero` away for performance.
                for {
                    let tokenId := add(startTokenId, 1)
                } iszero(eq(tokenId, end)) {
                    tokenId := add(tokenId, 1)
                } {
                    // Emit the `Transfer` event. Similar to above.
                    log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId)
                }
            }
            if (toMasked == 0) revert MintToZeroAddress();

            _currentIndex = end;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * This function is intended for efficient minting only during contract creation.
     *
     * It emits only one {ConsecutiveTransfer} as defined in
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309),
     * instead of a sequence of {Transfer} event(s).
     *
     * Calling this function outside of contract creation WILL make your contract
     * non-compliant with the ERC721 standard.
     * For full ERC721 compliance, substituting ERC721 {Transfer} event(s) with the ERC2309
     * {ConsecutiveTransfer} event is only permissible during contract creation.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {ConsecutiveTransfer} event.
     */
    function _mintERC2309(address to, uint256 quantity) internal virtual {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();
        if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) revert MintERC2309QuantityExceedsLimit();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are unrealistic due to the above check for `quantity` to be below the limit.
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

            emit ConsecutiveTransfer(startTokenId, startTokenId + quantity - 1, address(0), to);

            _currentIndex = startTokenId + quantity;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement
     * {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * See {_mint}.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal virtual {
        _mint(to, quantity);

        unchecked {
            if (to.code.length != 0) {
                uint256 end = _currentIndex;
                uint256 index = end - quantity;
                do {
                    if (!_checkContractOnERC721Received(address(0), to, index++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (index < end);
                // Reentrancy protection.
                if (_currentIndex != end) revert();
            }
        }
    }

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    function _safeMint(address to, uint256 quantity) internal virtual {
        _safeMint(to, quantity, '');
    }

    // =============================================================
    //                        BURN OPERATIONS
    // =============================================================

    /**
     * @dev Equivalent to `_burn(tokenId, false)`.
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

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

        address from = address(uint160(prevOwnershipPacked));

        (uint256 approvedAddressSlot, address approvedAddress) = _getApprovedSlotAndAddress(tokenId);

        if (approvalCheck) {
            // The nested ifs save around 20+ gas over a compound boolean condition.
            if (!_isSenderApprovedOrOwner(approvedAddress, from, _msgSenderERC721A()))
                if (!isApprovedForAll(from, _msgSenderERC721A())) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

        // Clear approvals from the previous owner.
        assembly {
            if approvedAddress {
                // This is equivalent to `delete _tokenApprovals[tokenId]`.
                sstore(approvedAddressSlot, 0)
            }
        }

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as `tokenId` would have to be 2**256.
        unchecked {
            // Updates:
            // - `balance -= 1`.
            // - `numberBurned += 1`.
            //
            // We can directly decrement the balance, and increment the number burned.
            // This is equivalent to `packed -= 1; packed += 1 << _BITPOS_NUMBER_BURNED;`.
            _packedAddressData[from] += (1 << _BITPOS_NUMBER_BURNED) - 1;

            // Updates:
            // - `address` to the last owner.
            // - `startTimestamp` to the timestamp of burning.
            // - `burned` to `true`.
            // - `nextInitialized` to `true`.
            _packedOwnerships[tokenId] = _packOwnershipData(
                from,
                (_BITMASK_BURNED | _BITMASK_NEXT_INITIALIZED) | _nextExtraData(from, address(0), prevOwnershipPacked)
            );

            // If the next slot may not have been initialized (i.e. `nextInitialized == false`) .
            if (prevOwnershipPacked & _BITMASK_NEXT_INITIALIZED == 0) {
                uint256 nextTokenId = tokenId + 1;
                // If the next slot's address is zero and not burned (i.e. packed value is zero).
                if (_packedOwnerships[nextTokenId] == 0) {
                    // If the next slot is within bounds.
                    if (nextTokenId != _currentIndex) {
                        // Initialize the next slot to maintain correctness for `ownerOf(tokenId + 1)`.
                        _packedOwnerships[nextTokenId] = prevOwnershipPacked;
                    }
                }
            }
        }

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked {
            _burnCounter++;
        }
    }

    // =============================================================
    //                     EXTRA DATA OPERATIONS
    // =============================================================

    /**
     * @dev Directly sets the extra data for the ownership data `index`.
     */
    function _setExtraDataAt(uint256 index, uint24 extraData) internal virtual {
        uint256 packed = _packedOwnerships[index];
        if (packed == 0) revert OwnershipNotInitializedForExtraData();
        uint256 extraDataCasted;
        // Cast `extraData` with assembly to avoid redundant masking.
        assembly {
            extraDataCasted := extraData
        }
        packed = (packed & _BITMASK_EXTRA_DATA_COMPLEMENT) | (extraDataCasted << _BITPOS_EXTRA_DATA);
        _packedOwnerships[index] = packed;
    }

    /**
     * @dev Called during each token transfer to set the 24bit `extraData` field.
     * Intended to be overridden by the cosumer contract.
     *
     * `previousExtraData` - the value of `extraData` before transfer.
     *
     * 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, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _extraData(
        address from,
        address to,
        uint24 previousExtraData
    ) internal view virtual returns (uint24) {}

    /**
     * @dev Returns the next extra data for the packed ownership data.
     * The returned result is shifted into position.
     */
    function _nextExtraData(
        address from,
        address to,
        uint256 prevOwnershipPacked
    ) private view returns (uint256) {
        uint24 extraData = uint24(prevOwnershipPacked >> _BITPOS_EXTRA_DATA);
        return uint256(_extraData(from, to, extraData)) << _BITPOS_EXTRA_DATA;
    }

    // =============================================================
    //                       OTHER OPERATIONS
    // =============================================================

    /**
     * @dev Returns the message sender (defaults to `msg.sender`).
     *
     * If you are writing GSN compatible contracts, you need to override this function.
     */
    function _msgSenderERC721A() internal view virtual returns (address) {
        return msg.sender;
    }

    /**
     * @dev Converts a uint256 to its ASCII string decimal representation.
     */
    function _toString(uint256 value) internal pure virtual returns (string memory str) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit), but
            // we allocate 0xa0 bytes to keep the free memory pointer 32-byte word aligned.
            // We will need 1 word for the trailing zeros padding, 1 word for the length,
            // and 3 words for a maximum of 78 digits. Total: 5 * 0x20 = 0xa0.
            let m := add(mload(0x40), 0xa0)
            // Update the free memory pointer to allocate.
            mstore(0x40, m)
            // Assign the `str` to the end.
            str := sub(m, 0x20)
            // Zeroize the slot after the string.
            mstore(str, 0)

            // Cache the end of the memory to calculate the length later.
            let end := str

            // We write the string from rightmost digit to leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // prettier-ignore
            for { let temp := value } 1 {} {
                str := sub(str, 1)
                // Write the character to the pointer.
                // The ASCII index of the '0' character is 48.
                mstore8(str, add(48, mod(temp, 10)))
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
                // prettier-ignore
                if iszero(temp) { break }
            }

            let length := sub(end, str)
            // Move the pointer 32 bytes leftwards to make room for the length.
            str := sub(str, 0x20)
            // Store the length.
            mstore(str, length)
        }
    }
}

File 14 of 20 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

/**
 * @dev Interface of ERC721A.
 */
interface IERC721A {
    /**
     * The caller must own the token or be an approved operator.
     */
    error ApprovalCallerNotOwnerNorApproved();

    /**
     * The token does not exist.
     */
    error ApprovalQueryForNonexistentToken();

    /**
     * Cannot query the balance for the zero address.
     */
    error BalanceQueryForZeroAddress();

    /**
     * Cannot mint to the zero address.
     */
    error MintToZeroAddress();

    /**
     * The quantity of tokens minted must be more than zero.
     */
    error MintZeroQuantity();

    /**
     * The token does not exist.
     */
    error OwnerQueryForNonexistentToken();

    /**
     * The caller must own the token or be an approved operator.
     */
    error TransferCallerNotOwnerNorApproved();

    /**
     * The token must be owned by `from`.
     */
    error TransferFromIncorrectOwner();

    /**
     * Cannot safely transfer to a contract that does not implement the
     * ERC721Receiver interface.
     */
    error TransferToNonERC721ReceiverImplementer();

    /**
     * Cannot transfer to the zero address.
     */
    error TransferToZeroAddress();

    /**
     * The token does not exist.
     */
    error URIQueryForNonexistentToken();

    /**
     * The `quantity` minted with ERC2309 exceeds the safety limit.
     */
    error MintERC2309QuantityExceedsLimit();

    /**
     * The `extraData` cannot be set on an unintialized ownership slot.
     */
    error OwnershipNotInitializedForExtraData();

    // =============================================================
    //                            STRUCTS
    // =============================================================

    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Stores the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
        // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}.
        uint24 extraData;
    }

    // =============================================================
    //                         TOKEN COUNTERS
    // =============================================================

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() external view returns (uint256);

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);

    // =============================================================
    //                            IERC721
    // =============================================================

    /**
     * @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,
        bytes calldata data
    ) external payable;

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external payable;

    /**
     * @dev Transfers `tokenId` 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 payable;

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

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

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

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

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

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

    // =============================================================
    //                           IERC2309
    // =============================================================

    /**
     * @dev Emitted when tokens in `fromTokenId` to `toTokenId`
     * (inclusive) is transferred from `from` to `to`, as defined in the
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard.
     *
     * See {_mintERC2309} for more details.
     */
    event ConsecutiveTransfer(uint256 indexed fromTokenId, uint256 toTokenId, address indexed from, address indexed to);
}

File 15 of 20 : IOperatorFilterRegistry.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

interface IOperatorFilterRegistry {
    function isOperatorAllowed(address registrant, address operator)
        external
        view
        returns (bool);

    function register(address registrant) external;

    function registerAndSubscribe(address registrant, address subscription)
        external;

    function registerAndCopyEntries(
        address registrant,
        address registrantToCopy
    ) external;

    function updateOperator(
        address registrant,
        address operator,
        bool filtered
    ) external;

    function updateOperators(
        address registrant,
        address[] calldata operators,
        bool filtered
    ) external;

    function updateCodeHash(
        address registrant,
        bytes32 codehash,
        bool filtered
    ) external;

    function updateCodeHashes(
        address registrant,
        bytes32[] calldata codeHashes,
        bool filtered
    ) external;

    function subscribe(address registrant, address registrantToSubscribe)
        external;

    function unsubscribe(address registrant, bool copyExistingEntries) external;

    function subscriptionOf(address addr) external returns (address registrant);

    function subscribers(address registrant)
        external
        returns (address[] memory);

    function subscriberAt(address registrant, uint256 index)
        external
        returns (address);

    function copyEntriesOf(address registrant, address registrantToCopy)
        external;

    function isOperatorFiltered(address registrant, address operator)
        external
        returns (bool);

    function isCodeHashOfFiltered(address registrant, address operatorWithCode)
        external
        returns (bool);

    function isCodeHashFiltered(address registrant, bytes32 codeHash)
        external
        returns (bool);

    function filteredOperators(address addr)
        external
        returns (address[] memory);

    function filteredCodeHashes(address addr)
        external
        returns (bytes32[] memory);

    function filteredOperatorAt(address registrant, uint256 index)
        external
        returns (address);

    function filteredCodeHashAt(address registrant, uint256 index)
        external
        returns (bytes32);

    function isRegistered(address addr) external returns (bool);

    function codeHashOf(address addr) external returns (bytes32);
}

File 16 of 20 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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 Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        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 17 of 20 : 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 18 of 20 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 19 of 20 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        _requireNotPaused();
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        _requirePaused();
        _;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Throws if the contract is paused.
     */
    function _requireNotPaused() internal view virtual {
        require(!paused(), "Pausable: paused");
    }

    /**
     * @dev Throws if the contract is not paused.
     */
    function _requirePaused() internal view virtual {
        require(paused(), "Pausable: not paused");
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 20 of 20 : 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;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint96","name":"royaltyBasisPoints","type":"uint96"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"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":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Expelled","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Staked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"UnStaked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"stateMutability":"payable","type":"fallback"},{"inputs":[],"name":"accountBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId_","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"burnAllUnmintedTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"changeBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_number","type":"uint256"}],"name":"changeMaxMintGenesis","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_number","type":"uint256"}],"name":"changeMaxMintPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_number","type":"uint256"}],"name":"changeMaxMintPublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cost","type":"uint256"}],"name":"changeMintCostPublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"unrevealedURI_","type":"string"}],"name":"changeUnrevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddress","type":"address"}],"name":"changeVariable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"daoWallet","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"devWallet","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"expelFromStaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"number","type":"uint256"},{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"genesisMint","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":[],"name":"getMintCostPresale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"haveBeenRevealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"incubationWallet","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"marketingWallet","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintGenesis","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintPresale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintPublicSale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mintPromos","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintsPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"numberOfTotalTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"number","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_number","type":"uint256"},{"internalType":"bytes32","name":"_hash","type":"bytes32"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"promosOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"promosProxyContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"promosSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"number","type":"uint256"}],"name":"publicSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"hash","type":"bytes32"},{"internalType":"bytes","name":"signature","type":"bytes"}],"name":"recoverSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"number","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"reservedMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reservedMintsLeft","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"payable","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferWhilestaking","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleState","outputs":[{"internalType":"enum Emily.State","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"basisPoints","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cost","type":"uint256"}],"name":"setMintCostPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cost","type":"uint256"}],"name":"setMintCostPublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_promosProxyContract","type":"address"}],"name":"setPromosProxyContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_promosSupply","type":"uint256"}],"name":"setPromosSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"open","type":"bool"}],"name":"setStakingOpen","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"","type":"bytes"}],"name":"signatureUsed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"stakingOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"stakingPeriod","outputs":[{"internalType":"bool","name":"staking","type":"bool"},{"internalType":"uint256","name":"current","type":"uint256"},{"internalType":"uint256","name":"total","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"switchShares","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"switchToGenesisSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"switchToPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"switchToPublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"teamWallet","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"toggleStaking","outputs":[],"stateMutability":"nonpayable","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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_promosOwner","type":"address"}],"name":"transferPromosOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unrevealedURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60806040526000600e81905567015fb7f9b8c380006013556702c68af0bb14000060145560158054610a1461ffff1990911617905560026016556003601755600160188190556019919091556101f4601a55601b80546001600160a01b0319908116739801c97483fe6feef931268dbd5e7c9c5539334117909155601c8054821673c7086517dead1157cba2133288d68aba7d5fd8cc179055601d805482167376ae9f430b82f8d0529d1fb22a9afafdc9268eff179055601e80548216736c69b08b1cbdca1051e481b35f2ff79d131d502b179055601f8054821673ed9c25a67d3119f8c3240d97d3073d7531442ba017905560208054821673fe8a2eff1b555ff0d5c61a0c80ee68b4dfb45633179055602180549091167302d274ad889bf84e5431293b9dce985a6c12703c179055602b55602c805460ff191690553480156200014957600080fd5b5060405162004c1b38038062004c1b8339810160408190526200016c9162000563565b604080518082018252600c81526b57686f20697320456d696c7960a01b60208083019190915282518084019093526005835264454d494c5960d81b90830152601f54733cc6cdda760b79bafa08df41ecfa224f810dceb692600192600a9273f4ac6561bce3b841a354ee1ef827a3e48a78f15292906001600160a01b03168783836002620001fb83826200063a565b5060036200020a82826200063a565b50506001600055506200021d336200040c565b6008805460ff60a01b191690556200023682826200045e565b5050600b8054336001600160a01b031991821617909155600c949094555050600d80549092166001600160a01b03919091161790556daaeb6d7670e522a718067333cd4e3b15620003b0578015620002fe57604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b158015620002df57600080fd5b505af1158015620002f4573d6000803e3d6000fd5b50505050620003b0565b6001600160a01b038216156200034f5760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af290390604401620002c4565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200039657600080fd5b505af1158015620003ab573d6000803e3d6000fd5b505050505b5050612710600f556103e86010556064601155601f54620003db906001600160a01b0316826200045e565b60405180606001604052806030815260200162004beb603091396028906200040490826200063a565b505062000706565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106001600160601b0382161115620004d25760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b0382166200052a5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401620004c9565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600955565b6000602082840312156200057657600080fd5b81516001600160601b03811681146200058e57600080fd5b9392505050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620005c057607f821691505b602082108103620005e157634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200063557600081815260208120601f850160051c81016020861015620006105750805b601f850160051c820191505b8181101562000631578281556001016200061c565b5050505b505050565b81516001600160401b0381111562000656576200065662000595565b6200066e81620006678454620005ab565b84620005e7565b602080601f831160018114620006a657600084156200068d5750858301515b600019600386901b1c1916600185901b17855562000631565b600085815260208120601f198616915b82811015620006d757888601518255948401946001909101908401620006b6565b5085821015620006f65787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6144d580620007166000396000f3fe60806040526004361061044b5760003560e01c8063715018a611610234578063bdb286951161012e578063e4ecdd68116100b6578063f2fde38b1161007a578063f2fde38b14610c95578063fce0ac8d14610cb5578063fedc3c3514610cd5578063ff98499414610cf5578063ffcd55a814610d0a57600080fd5b8063e4ecdd6814610bd7578063e985e9c514610bf7578063eab4178214610c40578063f0f247a114610c55578063f19e75d414610c7557600080fd5b8063c28bc5a9116100fd578063c28bc5a914610a52578063c4d8b9df14610b6d578063c87b56dd14610b8d578063de28985714610bad578063e36272c014610bc257600080fd5b8063bdb2869514610ae8578063bdb4b84814610b08578063bf9b7c8d14610b1d578063c1027c9814610b3057600080fd5b8063a00f8018116101bc578063a8a5627b11610180578063a8a5627b14610a52578063b0a1c1c414610a72578063b3ab66b014610a87578063b88d4fde14610a9a578063bb10c82914610aad57600080fd5b8063a00f8018146109c8578063a10855f7146109dd578063a22cb465146109fd578063a475b5dd14610a1d578063a4a6d57b14610a3257600080fd5b806389b18b241161020357806389b18b241461093f5780638da5cb5b146109555780638ea5220f1461097357806395d89b411461099357806397aba7f9146109a857600080fd5b8063715018a6146108e257806375f0a874146108f75780637e5131b2146109175780638456cb591461092a57600080fd5b80634520e916116103455780635ece7770116102cd578063698a589711610291578063698a58971461084d5780636c702cc91461086d5780636ef4f9b51461088d5780637035bf18146108ad57806370a08231146108c257600080fd5b80635ece7770146107b5578063603f4d52146107d55780636352211e146107f7578063638280611461081757806363a117291461083757600080fd5b80635865540211610314578063586554021461072057806359927044146107365780635b1ed7cf146107565780635c2af13e146107765780635c975abb1461079657600080fd5b80634520e916146106b65780634e7d89f7146106cb5780635622b20d146106eb578063564892dc1461070057600080fd5b80632974a21d116103d357806339a0c6f91161039757806339a0c6f9146106395780633ccfd60b146106595780633f4ba83a1461066e57806342842e0e1461068357806342966c681461069657600080fd5b80632974a21d1461058b5780632a55205a146105a05780633023eba6146105df578063387602981461060c5780633927318b1461062657600080fd5b8063095ea7b31161041a578063095ea7b31461050857806318160ddd1461051b57806318df64031461054257806319734c8b1461056257806323b872dd1461057857600080fd5b806301ffc9a71461045757806304634d8d1461048c57806306fdde03146104ae578063081812fc146104d057600080fd5b3661045257005b600080fd5b34801561046357600080fd5b50610477610472366004613b68565b610d20565b60405190151581526020015b60405180910390f35b34801561049857600080fd5b506104ac6104a7366004613b9a565b610d40565b005b3480156104ba57600080fd5b506104c3610d56565b6040516104839190613c2f565b3480156104dc57600080fd5b506104f06104eb366004613c42565b610de8565b6040516001600160a01b039091168152602001610483565b6104ac610516366004613c5b565b610e2c565b34801561052757600080fd5b5060015460005403600019015b604051908152602001610483565b34801561054e57600080fd5b506104ac61055d366004613c87565b610ecc565b34801561056e57600080fd5b5061053460175481565b6104ac610586366004613cac565b61101f565b34801561059757600080fd5b506104ac61117b565b3480156105ac57600080fd5b506105c06105bb366004613ced565b6111c1565b604080516001600160a01b039093168352602083019190915201610483565b3480156105eb57600080fd5b506105346105fa366004613d0f565b60266020526000908152604090205481565b34801561061857600080fd5b50602c546104779060ff1681565b6104ac610634366004613c5b565b61126f565b34801561064557600080fd5b506104ac610654366004613db8565b6115c7565b34801561066557600080fd5b506104ac6115db565b34801561067a57600080fd5b506104ac611799565b6104ac610691366004613cac565b6117ab565b3480156106a257600080fd5b506104ac6106b1366004613c42565b6118fc565b3480156106c257600080fd5b50610534611907565b3480156106d757600080fd5b506104ac6106e6366004613d0f565b611926565b3480156106f757600080fd5b50601354610534565b34801561070c57600080fd5b506104ac61071b366004613e0f565b611950565b34801561072c57600080fd5b50610534600e5481565b34801561074257600080fd5b50601f546104f0906001600160a01b031681565b34801561076257600080fd5b506104ac610771366004613d0f565b61196b565b34801561078257600080fd5b50600b546104f0906001600160a01b031681565b3480156107a257600080fd5b50600854600160a01b900460ff16610477565b3480156107c157600080fd5b506104ac6107d0366004613c42565b611995565b3480156107e157600080fd5b506107ea6119c4565b6040516104839190613e42565b34801561080357600080fd5b506104f0610812366004613c42565b6119fc565b34801561082357600080fd5b506104ac610832366004613c42565b611a07565b34801561084357600080fd5b5061053460185481565b34801561085957600080fd5b50601b546104f0906001600160a01b031681565b34801561087957600080fd5b506104ac610888366004613d0f565b611a14565b34801561089957600080fd5b506104ac6108a8366004613e6a565b611ac9565b3480156108b957600080fd5b506104c3611b06565b3480156108ce57600080fd5b506105346108dd366004613d0f565b611b94565b3480156108ee57600080fd5b506104ac611be3565b34801561090357600080fd5b50601d546104f0906001600160a01b031681565b6104ac610925366004613eff565b611bf5565b34801561093657600080fd5b506104ac611e51565b34801561094b57600080fd5b50610534600c5481565b34801561096157600080fd5b506008546001600160a01b03166104f0565b34801561097f57600080fd5b50601e546104f0906001600160a01b031681565b34801561099f57600080fd5b506104c3611e61565b3480156109b457600080fd5b506104f06109c3366004613f4f565b611e70565b3480156109d457600080fd5b50610477611ed2565b3480156109e957600080fd5b50601c546104f0906001600160a01b031681565b348015610a0957600080fd5b506104ac610a18366004613f96565b611eea565b348015610a2957600080fd5b506104ac611f56565b348015610a3e57600080fd5b506104ac610a4d366004613c42565b611fb4565b348015610a5e57600080fd5b506104ac610a6d366004613c42565b611fc1565b348015610a7e57600080fd5b50610534611fce565b6104ac610a95366004613c42565b611fdd565b6104ac610aa8366004613fc4565b6121a4565b348015610ab957600080fd5b50610477610ac8366004614030565b805160208183018101805160278252928201919093012091525460ff1681565b348015610af457600080fd5b506104ac610b03366004613c42565b6122fc565b348015610b1457600080fd5b506105346123f7565b6104ac610b2b366004613eff565b612472565b348015610b3c57600080fd5b50610b50610b4b366004613c42565b612689565b604080519315158452602084019290925290820152606001610483565b348015610b7957600080fd5b506104ac610b88366004613db8565b6126d5565b348015610b9957600080fd5b506104c3610ba8366004613c42565b6126fa565b348015610bb957600080fd5b506104ac612843565b348015610bce57600080fd5b506104ac612853565b348015610be357600080fd5b506104ac610bf2366004613c42565b61286c565b348015610c0357600080fd5b50610477610c12366004614065565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610c4c57600080fd5b506104ac612879565b348015610c6157600080fd5b506104ac610c70366004613c42565b6128bf565b348015610c8157600080fd5b506104ac610c90366004613c42565b6128cc565b348015610ca157600080fd5b506104ac610cb0366004613d0f565b6128f0565b348015610cc157600080fd5b50600d546104f0906001600160a01b031681565b348015610ce157600080fd5b506104ac610cf0366004613cac565b612966565b348015610d0157600080fd5b506104ac6129e0565b348015610d1657600080fd5b5061053460165481565b6000610d2b82612a26565b80610d3a5750610d3a82612a26565b92915050565b610d48612a4b565b610d528282612aa5565b5050565b606060028054610d6590614093565b80601f0160208091040260200160405190810160405280929190818152602001828054610d9190614093565b8015610dde5780601f10610db357610100808354040283529160200191610dde565b820191906000526020600020905b815481529060010190602001808311610dc157829003601f168201915b5050505050905090565b6000610df382612ba2565b610e10576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610e37826119fc565b9050336001600160a01b03821614610e7057610e538133610c12565b610e70576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b601f546001600160a01b03163314610f405760405162461bcd60e51b815260206004820152602c60248201527f4f6e6c7920746865205465616d2057616c6c65742063616e206d696e7420526560448201526b736572766564204e4654732160a01b60648201526084015b60405180910390fd5b601a5482601954610f5191906140e3565b1115610faf5760405162461bcd60e51b815260206004820152602760248201527f4e6f7420656e6f756768205265736572766564204e465473206c65667420746f6044820152661036b4b73a171760c91b6064820152608401610f37565b610fb98183612bd7565b6001600160a01b0381166000908152602660205260408120805460019290610fe29084906140e3565b925050819055506001600e6000828254610ffc91906140e3565b9250508190555060016019600082825461101691906140e3565b90915550505050565b826daaeb6d7670e522a718067333cd4e3b1561116a57336001600160a01b0382160361105557611050848484612bf1565b611175565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156110a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110c891906140f6565b801561114b5750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611127573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061114b91906140f6565b61116a57604051633b79c77360e21b8152336004820152602401610f37565b611175848484612bf1565b50505050565b611183612a4b565b600061118d6119c4565b600381111561119e5761119e613e2c565b146111bb5760405162461bcd60e51b8152600401610f3790614113565b42602255565b6000828152600a602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916112365750604080518082019091526009546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090611255906001600160601b031687614142565b61125f919061416f565b91519350909150505b9250929050565b81816000600d60009054906101000a90046001600160a01b03166001600160a01b0316636ba7b18f6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156112c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112ea9190614183565b9050806001600160a01b0316836001600160a01b0316036113435760405162461bcd60e51b81526020600482015260136024820152722737ba1022a9219b9918903932b1b4b2bb32b960691b6044820152606401610f37565b336001600160a01b0382161461138e5760405162461bcd60e51b815260206004820152601060248201526f2bb937b7339036b9b39739b2b73232b960811b6044820152606401610f37565b600c548211156113d85760405162461bcd60e51b8152602060048201526015602482015274457863656564732050726f6d6f7320737570706c7960581b6044820152606401610f37565b81600c546113e691906141a0565b600c55600f54600e546113fa9086906140e3565b11156114185760405162461bcd60e51b8152600401610f37906141b3565b60016114226119c4565b600381111561143357611433613e2c565b036114be576018546001600160a01b03861660009081526026602052604090205461145f9086906140e3565b11156114b95760405162461bcd60e51b815260206004820152602360248201527f4d6178696d756d204d696e74732070657220416464726573732065786365656460448201526265642160e81b6064820152608401610f37565b611571565b60026114c86119c4565b60038111156114d9576114d9613e2c565b03611512576016546018546001600160a01b0387166000908152602660205260409020546115089087906140e3565b61145f91906141a0565b6017546016546018546001600160a01b03881660009081526026602052604090205461153f9088906140e3565b61154991906141a0565b61155391906141a0565b11156115715760405162461bcd60e51b8152600401610f37906141ea565b83600e600082825461158391906140e3565b90915550506001600160a01b038516600090815260266020526040812080548692906115b09084906140e3565b909155506115c090508585612bd7565b5050505050565b6115cf612a4b565b6012610d528282614277565b6115e3612a4b565b60006115ed611fce565b90506000811161164a5760405162461bcd60e51b815260206004820152602260248201527f4e6f2046756e647320746f2077697468647261772c2042616c616e6365206973604482015261020360f41b6064820152608401610f37565b60016116546119c4565b600381111561166557611665613e2c565b1480611689575060026116766119c4565b600381111561168757611687613e2c565b145b156116f557601d546015546116ce916001600160a01b0316906064906116b29060ff1682614337565b6116bf9060ff1685614142565b6116c9919061416f565b612d8f565b601e546015546116f2916001600160a01b0316906064906116bf9060ff1685614142565b50565b601b54611712906001600160a01b031660646116bf846019614142565b601c5461172f906001600160a01b031660646116bf846019614142565b601d54601554611758916001600160a01b0316906064906116bf90610100900460ff1685614142565b601e5460155461177c916001600160a01b0316906064906116bf9060ff1685614142565b601f546116f2906001600160a01b031660646116bf846014614142565b6117a1612a4b565b6117a9612e2e565b565b826daaeb6d7670e522a718067333cd4e3b156118f157336001600160a01b038216036117dc57611050848484612e83565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561182b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061184f91906140f6565b80156118d25750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156118ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118d291906140f6565b6118f157604051633b79c77360e21b8152336004820152602401610f37565b611175848484612e83565b6116f2816001612e9e565b6000611911612a4b565b601954601a5461192191906141a0565b905090565b61192e612a4b565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b611958612a4b565b602c805460ff1916911515919091179055565b611973612a4b565b602180546001600160a01b0319166001600160a01b0392909216919091179055565b600b546001600160a01b031633146119bf5760405162461bcd60e51b8152600401610f3790614350565b600c55565b60006022546000036119d65750600090565b6023546000036119e65750600190565b6024546000036119f65750600290565b50600390565b6000610d3a82612fe4565b611a0f612a4b565b601355565b600b546001600160a01b03163314611a3e5760405162461bcd60e51b8152600401610f3790614350565b6001600160a01b038116611aa75760405162461bcd60e51b815260206004820152602a60248201527f50726f6d6f733a206e657720636f6e74726f6c6c657220697320746865207a65604482015269726f206164647265737360b01b6064820152608401610f37565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b8060005b8181101561117557611af6848483818110611aea57611aea614394565b9050602002013561305a565b611aff816143aa565b9050611acd565b60288054611b1390614093565b80601f0160208091040260200160405190810160405280929190818152602001828054611b3f90614093565b8015611b8c5780601f10611b6157610100808354040283529160200191611b8c565b820191906000526020600020905b815481529060010190602001808311611b6f57829003601f168201915b505050505081565b60006001600160a01b038216611bbd576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b611beb612a4b565b6117a960006131ed565b6001611bff6119c4565b6003811115611c1057611c10613e2c565b14611c545760405162461bcd60e51b81526020600482015260146024820152734e6f7420696e2047656e657369732053616c652160601b6044820152606401610f37565b60115483600e54611c6591906140e3565b1115611c835760405162461bcd60e51b8152600401610f37906141b3565b60185433600090815260266020526040902054611ca19085906140e3565b1115611cfb5760405162461bcd60e51b815260206004820152602360248201527f4d6178696d756d2031204d696e7420706572204164647265737320616c6c6f7760448201526265642160e81b6064820152608401610f37565b6020546001600160a01b0316611d118383611e70565b6001600160a01b031614611d675760405162461bcd60e51b815260206004820152601a60248201527f41646472657373206973206e6f7420616c6c6f776c69737465640000000000006044820152606401610f37565b82611d706123f7565b611d7a9190614142565b341015611e065760405162461bcd60e51b815260206004820152604e60248201527f4e6f742073756666696369656e7420457468657220746f206d696e742074686960448201527f7320616d6f756e74206f66204e4654732028436f7374203d20302e303735206560648201526d746865722065616368204e46542960901b608482015260a401610f37565b82600e6000828254611e1891906140e3565b90915550611e2890503384612bd7565b3360009081526026602052604081208054859290611e479084906140e3565b9091555050505050565b611e59612a4b565b6117a961323f565b606060038054610d6590614093565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c81018390526000908190605c01604051602081830303815290604052805190602001209050611eca8184613282565b949350505050565b6000602554600003611ee45750600090565b50600190565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611f5e612a4b565b60255415611fae5760405162461bcd60e51b815260206004820181905260248201527f4e465473206861766520616c7265616479206265656e2072657665616c6564216044820152606401610f37565b42602555565b611fbc612a4b565b601655565b611fc9612a4b565b601455565b6000611fd8612a4b565b504790565b6003611fe76119c4565b6003811115611ff857611ff8613e2c565b146120455760405162461bcd60e51b815260206004820152601c60248201527f5075626c69632053616c65206973206e6f74206f70656e2079657421000000006044820152606401610f37565b601954601a5461205591906141a0565b600f5461206291906141a0565b81600e5461207091906140e3565b111561208e5760405162461bcd60e51b8152600401610f37906141b3565b601754601654601854336000908152602660205260409020546120b29085906140e3565b6120bc91906141a0565b6120c691906141a0565b11156120e45760405162461bcd60e51b8152600401610f37906141ea565b806014546120f29190614142565b34101561215a5760405162461bcd60e51b815260206004820152603060248201527f4e6f742073756666696369656e7420457468657220746f206d696e742074686960448201526f7320616d6f756e74206f66204e46547360801b6064820152608401610f37565b6121643382612bd7565b33600090815260266020526040812080548392906121839084906140e3565b9250508190555080600e600082825461219c91906140e3565b909155505050565b836daaeb6d7670e522a718067333cd4e3b156122f057336001600160a01b038216036121db576121d6858585856132a6565b6115c0565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561222a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061224e91906140f6565b80156122d15750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156122ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122d191906140f6565b6122f057604051633b79c77360e21b8152336004820152602401610f37565b6115c0858585856132a6565b612304612a4b565b60008181526029602052604081205490036123555760405162461bcd60e51b8152602060048201526011602482015270115b5a5b1e4e881b9bdd08199c985b5959607a1b6044820152606401610f37565b60008181526029602052604090205461236e90426141a0565b6000828152602a60205260408120805490919061238c9084906140e3565b90915550506000818152602960205260408082208290555182917feebbaa86c348cb664e392b180fd0ff2e1998af9fa833ef69a778cb0b42d3ca2791a260405181907f3ebee94e74ea24f711b5876dca724062e18b7b37b6883e686a92f093248a4fcf90600090a250565b6000806124026119c4565b9050600081600381111561241857612418613e2c565b14806124355750600181600381111561243357612433613e2c565b145b156124495767010a741a4627800091505090565b600281600381111561245d5761245d613e2c565b0361246a57505060135490565b505060145490565b600261247c6119c4565b600381111561248d5761248d613e2c565b146124cc5760405162461bcd60e51b815260206004820152600f60248201526e4e6f7420696e2050726573616c652160881b6044820152606401610f37565b60105483600e546124dd91906140e3565b11156124fb5760405162461bcd60e51b8152600401610f37906141b3565b6016546018543360009081526026602052604090205461251c9086906140e3565b61252691906141a0565b11156125805760405162461bcd60e51b8152602060048201526024808201527f4d6178696d756d2033204d696e747320706572204164647265737320616c6c6f6044820152637765642160e01b6064820152608401610f37565b6020546001600160a01b03166125968383611e70565b6001600160a01b0316146125ec5760405162461bcd60e51b815260206004820152601a60248201527f41646472657373206973206e6f7420616c6c6f776c69737465640000000000006044820152606401610f37565b826125f56123f7565b6125ff9190614142565b341015611e065760405162461bcd60e51b815260206004820152604c60248201527f4e6f742073756666696369656e7420457468657220746f206d696e742074686960448201527f7320616d6f756e74206f66204e4654732028436f7374203d20302e312065746860648201526b65722065616368204e46542960a01b608482015260a401610f37565b6000818152602960205260408120548190819080156126b357600193506126b081426141a0565b92505b6000858152602a60205260409020546126cc90846140e3565b93959294505050565b6126dd612a4b565b60286126e98282614277565b506126f3816115c7565b5042602555565b606061270582612ba2565b6127695760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610f37565b602554600003612805576028805461278090614093565b80601f01602080910402602001604051908101604052809291908181526020018280546127ac90614093565b80156127f95780601f106127ce576101008083540402835291602001916127f9565b820191906000526020600020905b8154815290600101906020018083116127dc57829003601f168201915b50505050509050919050565b600061280f6132ea565b90508061281b846132f9565b60405160200161282c9291906143c3565b604051602081830303815290604052915050919050565b61284b612a4b565b600e54600f55565b61285b612a4b565b6015805461ffff1916610f0f179055565b612874612a4b565b601755565b612881612a4b565b600161288b6119c4565b600381111561289c5761289c613e2c565b146128b95760405162461bcd60e51b8152600401610f3790614113565b42602355565b6128c7612a4b565b601855565b6128d4612a4b565b6128de3382612bd7565b80600e600082825461219c91906140e3565b6128f8612a4b565b6001600160a01b03811661295d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610f37565b6116f2816131ed565b33612970826119fc565b6001600160a01b0316146129c65760405162461bcd60e51b815260206004820152601760248201527f456d696c7920746f6b656e3a204f6e6c79206f776e65720000000000000000006044820152606401610f37565b6002602b556129d68383836117ab565b50506001602b5550565b6129e8612a4b565b60026129f26119c4565b6003811115612a0357612a03613e2c565b14612a205760405162461bcd60e51b8152600401610f3790614113565b42602455565b60006001600160e01b03198216631dd6ae1f60e21b1480610d3a5750610d3a826133fa565b6008546001600160a01b031633146117a95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610f37565b6127106001600160601b0382161115612b135760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610f37565b6001600160a01b038216612b695760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610f37565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600955565b600081600111158015612bb6575060005482105b8015610d3a575050600090815260046020526040902054600160e01b161590565b610d52828260405180602001604052806000815250613414565b6000612bfc82612fe4565b9050836001600160a01b0316816001600160a01b031614612c2f5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054612c5b8187335b6001600160a01b039081169116811491141790565b612c8657612c698633610c12565b612c8657604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516612cad57604051633a954ecd60e21b815260040160405180910390fd5b612cba868686600161347a565b8015612cc557600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003612d5757600184016000818152600460205260408120549003612d55576000548114612d555760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b031660008051602061448083398151915260405160405180910390a45b505050505050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612ddc576040519150601f19603f3d011682016040523d82523d6000602084013e612de1565b606091505b5050905080612e295760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b6044820152606401610f37565b505050565b612e36613503565b6008805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b612e29838383604051806020016040528060008152506121a4565b6000612ea983612fe4565b905080600080612ec786600090815260066020526040902080549091565b915091508415612f0757612edc818433612c46565b612f0757612eea8333610c12565b612f0757604051632ce44b5f60e11b815260040160405180910390fd5b612f1583600088600161347a565b8015612f2057600082555b6001600160a01b038316600081815260056020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b17600360e01b17600087815260046020526040812091909155600160e11b85169003612fae57600186016000818152600460205260408120549003612fac576000548114612fac5760008181526004602052604090208590555b505b60405186906000906001600160a01b03861690600080516020614480833981519152908390a45050600180548101905550505050565b60008180600111613041576000548110156130415760008181526004602052604081205490600160e01b8216900361303f575b80600003613038575060001901600081815260046020526040902054613017565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b803361306582613553565b516001600160a01b0316148061308b57503361308082610de8565b6001600160a01b0316145b6130e55760405162461bcd60e51b815260206004820152602560248201527f45524337323141436f6d6d6f6e3a204e6f7420617070726f766564206e6f722060448201526437bbb732b960d91b6064820152608401610f37565b6000828152602960205260408120549081900361318357602c5460ff166131465760405162461bcd60e51b8152602060048201526015602482015274115b5a5b1e4e881cdd185ada5b99c818db1bdcd959605a1b6044820152606401610f37565b6000838152602960205260408082204290555184917feebbaa86c348cb664e392b180fd0ff2e1998af9fa833ef69a778cb0b42d3ca2791a2505050565b61318d81426141a0565b6000848152602a6020526040812080549091906131ab9084906140e3565b90915550506000838152602960205260408082208290555184917ff7b101ea815d3ce5cd9e52e5821a2c9aabc306cef287120092a9f719cd73bb1f91a2505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6132476135cb565b6008805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612e663390565b60008060006132918585613618565b9150915061329e8161365a565b509392505050565b6132b184848461101f565b6001600160a01b0383163b15611175576132cd84848484613810565b611175576040516368d2bf6b60e11b815260040160405180910390fd5b606060128054610d6590614093565b6060816000036133205750506040805180820190915260018152600360fc1b602082015290565b8160005b811561334a5780613334816143aa565b91506133439050600a8361416f565b9150613324565b60008167ffffffffffffffff81111561336557613365613d2c565b6040519080825280601f01601f19166020018201604052801561338f576020820181803683370190505b5090505b8415611eca576133a46001836141a0565b91506133b1600a86614411565b6133bc9060306140e3565b60f81b8183815181106133d1576133d1614394565b60200101906001600160f81b031916908160001a9053506133f3600a8661416f565b9450613393565b6000613405826138fb565b80610d3a5750610d3a82613949565b61341e838361397e565b6001600160a01b0383163b15612e29576000548281035b6134486000868380600101945086613810565b613465576040516368d2bf6b60e11b815260040160405180910390fd5b8181106134355781600054146115c057600080fd5b81600061348783836140e3565b90505b80821015612d875760008281526029602052604090205415806134af5750602b546002145b6134f35760405162461bcd60e51b8152602060048201526015602482015274456d696c7920746f6b656e733a207374616b696e6760581b6044820152606401610f37565b6134fc826143aa565b915061348a565b600854600160a01b900460ff166117a95760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610f37565b604080516080810182526000808252602082018190529181018290526060810191909152610d3a61358383612fe4565b604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b600854600160a01b900460ff16156117a95760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610f37565b600080825160410361364e5760208301516040840151606085015160001a61364287828585613a65565b94509450505050611268565b50600090506002611268565b600081600481111561366e5761366e613e2c565b036136765750565b600181600481111561368a5761368a613e2c565b036136d75760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610f37565b60028160048111156136eb576136eb613e2c565b036137385760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610f37565b600381600481111561374c5761374c613e2c565b036137a45760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610f37565b60048160048111156137b8576137b8613e2c565b036116f25760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610f37565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290613845903390899088908890600401614425565b6020604051808303816000875af1925050508015613880575060408051601f3d908101601f1916820190925261387d91810190614462565b60015b6138de573d8080156138ae576040519150601f19603f3d011682016040523d82523d6000602084013e6138b3565b606091505b5080516000036138d6576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b60006301ffc9a760e01b6001600160e01b03198316148061392c57506380ac58cd60e01b6001600160e01b03198316145b80610d3a5750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b0319821663152a902d60e11b1480610d3a57506301ffc9a760e01b6001600160e01b0319831614610d3a565b60008054908290036139a35760405163b562e8dd60e01b815260040160405180910390fd5b6139b0600084838561347a565b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083906000805160206144808339815191528180a4600183015b818114613a3b5780836000600080516020614480833981519152600080a4600101613a15565b5081600003613a5c57604051622e076360e81b815260040160405180910390fd5b60005550505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115613a9c5750600090506003613b49565b8460ff16601b14158015613ab457508460ff16601c14155b15613ac55750600090506004613b49565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613b19573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116613b4257600060019250925050613b49565b9150600090505b94509492505050565b6001600160e01b0319811681146116f257600080fd5b600060208284031215613b7a57600080fd5b813561303881613b52565b6001600160a01b03811681146116f257600080fd5b60008060408385031215613bad57600080fd5b8235613bb881613b85565b915060208301356001600160601b0381168114613bd457600080fd5b809150509250929050565b60005b83811015613bfa578181015183820152602001613be2565b50506000910152565b60008151808452613c1b816020860160208601613bdf565b601f01601f19169290920160200192915050565b6020815260006130386020830184613c03565b600060208284031215613c5457600080fd5b5035919050565b60008060408385031215613c6e57600080fd5b8235613c7981613b85565b946020939093013593505050565b60008060408385031215613c9a57600080fd5b823591506020830135613bd481613b85565b600080600060608486031215613cc157600080fd5b8335613ccc81613b85565b92506020840135613cdc81613b85565b929592945050506040919091013590565b60008060408385031215613d0057600080fd5b50508035926020909101359150565b600060208284031215613d2157600080fd5b813561303881613b85565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115613d5d57613d5d613d2c565b604051601f8501601f19908116603f01168101908282118183101715613d8557613d85613d2c565b81604052809350858152868686011115613d9e57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215613dca57600080fd5b813567ffffffffffffffff811115613de157600080fd5b8201601f81018413613df257600080fd5b611eca84823560208401613d42565b80151581146116f257600080fd5b600060208284031215613e2157600080fd5b813561303881613e01565b634e487b7160e01b600052602160045260246000fd5b6020810160048310613e6457634e487b7160e01b600052602160045260246000fd5b91905290565b60008060208385031215613e7d57600080fd5b823567ffffffffffffffff80821115613e9557600080fd5b818501915085601f830112613ea957600080fd5b813581811115613eb857600080fd5b8660208260051b8501011115613ecd57600080fd5b60209290920196919550909350505050565b600082601f830112613ef057600080fd5b61303883833560208501613d42565b600080600060608486031215613f1457600080fd5b8335925060208401359150604084013567ffffffffffffffff811115613f3957600080fd5b613f4586828701613edf565b9150509250925092565b60008060408385031215613f6257600080fd5b82359150602083013567ffffffffffffffff811115613f8057600080fd5b613f8c85828601613edf565b9150509250929050565b60008060408385031215613fa957600080fd5b8235613fb481613b85565b91506020830135613bd481613e01565b60008060008060808587031215613fda57600080fd5b8435613fe581613b85565b93506020850135613ff581613b85565b925060408501359150606085013567ffffffffffffffff81111561401857600080fd5b61402487828801613edf565b91505092959194509250565b60006020828403121561404257600080fd5b813567ffffffffffffffff81111561405957600080fd5b611eca84828501613edf565b6000806040838503121561407857600080fd5b823561408381613b85565b91506020830135613bd481613b85565b600181811c908216806140a757607f821691505b6020821081036140c757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610d3a57610d3a6140cd565b60006020828403121561410857600080fd5b815161303881613e01565b60208082526015908201527453616c6520697320616c7265616479204f70656e2160581b604082015260600190565b8082028115828204841417610d3a57610d3a6140cd565b634e487b7160e01b600052601260045260246000fd5b60008261417e5761417e614159565b500490565b60006020828403121561419557600080fd5b815161303881613b85565b81810381811115610d3a57610d3a6140cd565b6020808252601e908201527f4e6f7420656e6f756768204e465473206c65667420746f206d696e742e2e0000604082015260600190565b60208082526027908201527f4d6178696d756d205075626c69632053616c65204d696e74206c696d697420656040820152661e18d95959195960ca1b606082015260800190565b601f821115612e2957600081815260208120601f850160051c810160208610156142585750805b601f850160051c820191505b81811015612d8757828155600101614264565b815167ffffffffffffffff81111561429157614291613d2c565b6142a58161429f8454614093565b84614231565b602080601f8311600181146142da57600084156142c25750858301515b600019600386901b1c1916600185901b178555612d87565b600085815260208120601f198616915b82811015614309578886015182559484019460019091019084016142ea565b50858210156143275787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60ff8281168282160390811115610d3a57610d3a6140cd565b60208082526024908201527f50726f6d6f733a2043616c6c6572206973206e6f742074686520636f6e74726f604082015263363632b960e11b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b6000600182016143bc576143bc6140cd565b5060010190565b600083516143d5818460208801613bdf565b602f60f81b90830190815283516143f3816001840160208801613bdf565b64173539b7b760d91b60019290910191820152600601949350505050565b60008261442057614420614159565b500690565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061445890830184613c03565b9695505050505050565b60006020828403121561447457600080fd5b815161303881613b5256feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122010ee0c1283d85c22b5ef23423cf2ffcaae7d23b953048ce112760d1a26743d9a64736f6c6343000811003361723a2f2f307774365a57616e62554e34616a58792d66625146656234546b32616b344b53364a7337654a6b346a5f4900000000000000000000000000000000000000000000000000000000000001f4

Deployed Bytecode

0x60806040526004361061044b5760003560e01c8063715018a611610234578063bdb286951161012e578063e4ecdd68116100b6578063f2fde38b1161007a578063f2fde38b14610c95578063fce0ac8d14610cb5578063fedc3c3514610cd5578063ff98499414610cf5578063ffcd55a814610d0a57600080fd5b8063e4ecdd6814610bd7578063e985e9c514610bf7578063eab4178214610c40578063f0f247a114610c55578063f19e75d414610c7557600080fd5b8063c28bc5a9116100fd578063c28bc5a914610a52578063c4d8b9df14610b6d578063c87b56dd14610b8d578063de28985714610bad578063e36272c014610bc257600080fd5b8063bdb2869514610ae8578063bdb4b84814610b08578063bf9b7c8d14610b1d578063c1027c9814610b3057600080fd5b8063a00f8018116101bc578063a8a5627b11610180578063a8a5627b14610a52578063b0a1c1c414610a72578063b3ab66b014610a87578063b88d4fde14610a9a578063bb10c82914610aad57600080fd5b8063a00f8018146109c8578063a10855f7146109dd578063a22cb465146109fd578063a475b5dd14610a1d578063a4a6d57b14610a3257600080fd5b806389b18b241161020357806389b18b241461093f5780638da5cb5b146109555780638ea5220f1461097357806395d89b411461099357806397aba7f9146109a857600080fd5b8063715018a6146108e257806375f0a874146108f75780637e5131b2146109175780638456cb591461092a57600080fd5b80634520e916116103455780635ece7770116102cd578063698a589711610291578063698a58971461084d5780636c702cc91461086d5780636ef4f9b51461088d5780637035bf18146108ad57806370a08231146108c257600080fd5b80635ece7770146107b5578063603f4d52146107d55780636352211e146107f7578063638280611461081757806363a117291461083757600080fd5b80635865540211610314578063586554021461072057806359927044146107365780635b1ed7cf146107565780635c2af13e146107765780635c975abb1461079657600080fd5b80634520e916146106b65780634e7d89f7146106cb5780635622b20d146106eb578063564892dc1461070057600080fd5b80632974a21d116103d357806339a0c6f91161039757806339a0c6f9146106395780633ccfd60b146106595780633f4ba83a1461066e57806342842e0e1461068357806342966c681461069657600080fd5b80632974a21d1461058b5780632a55205a146105a05780633023eba6146105df578063387602981461060c5780633927318b1461062657600080fd5b8063095ea7b31161041a578063095ea7b31461050857806318160ddd1461051b57806318df64031461054257806319734c8b1461056257806323b872dd1461057857600080fd5b806301ffc9a71461045757806304634d8d1461048c57806306fdde03146104ae578063081812fc146104d057600080fd5b3661045257005b600080fd5b34801561046357600080fd5b50610477610472366004613b68565b610d20565b60405190151581526020015b60405180910390f35b34801561049857600080fd5b506104ac6104a7366004613b9a565b610d40565b005b3480156104ba57600080fd5b506104c3610d56565b6040516104839190613c2f565b3480156104dc57600080fd5b506104f06104eb366004613c42565b610de8565b6040516001600160a01b039091168152602001610483565b6104ac610516366004613c5b565b610e2c565b34801561052757600080fd5b5060015460005403600019015b604051908152602001610483565b34801561054e57600080fd5b506104ac61055d366004613c87565b610ecc565b34801561056e57600080fd5b5061053460175481565b6104ac610586366004613cac565b61101f565b34801561059757600080fd5b506104ac61117b565b3480156105ac57600080fd5b506105c06105bb366004613ced565b6111c1565b604080516001600160a01b039093168352602083019190915201610483565b3480156105eb57600080fd5b506105346105fa366004613d0f565b60266020526000908152604090205481565b34801561061857600080fd5b50602c546104779060ff1681565b6104ac610634366004613c5b565b61126f565b34801561064557600080fd5b506104ac610654366004613db8565b6115c7565b34801561066557600080fd5b506104ac6115db565b34801561067a57600080fd5b506104ac611799565b6104ac610691366004613cac565b6117ab565b3480156106a257600080fd5b506104ac6106b1366004613c42565b6118fc565b3480156106c257600080fd5b50610534611907565b3480156106d757600080fd5b506104ac6106e6366004613d0f565b611926565b3480156106f757600080fd5b50601354610534565b34801561070c57600080fd5b506104ac61071b366004613e0f565b611950565b34801561072c57600080fd5b50610534600e5481565b34801561074257600080fd5b50601f546104f0906001600160a01b031681565b34801561076257600080fd5b506104ac610771366004613d0f565b61196b565b34801561078257600080fd5b50600b546104f0906001600160a01b031681565b3480156107a257600080fd5b50600854600160a01b900460ff16610477565b3480156107c157600080fd5b506104ac6107d0366004613c42565b611995565b3480156107e157600080fd5b506107ea6119c4565b6040516104839190613e42565b34801561080357600080fd5b506104f0610812366004613c42565b6119fc565b34801561082357600080fd5b506104ac610832366004613c42565b611a07565b34801561084357600080fd5b5061053460185481565b34801561085957600080fd5b50601b546104f0906001600160a01b031681565b34801561087957600080fd5b506104ac610888366004613d0f565b611a14565b34801561089957600080fd5b506104ac6108a8366004613e6a565b611ac9565b3480156108b957600080fd5b506104c3611b06565b3480156108ce57600080fd5b506105346108dd366004613d0f565b611b94565b3480156108ee57600080fd5b506104ac611be3565b34801561090357600080fd5b50601d546104f0906001600160a01b031681565b6104ac610925366004613eff565b611bf5565b34801561093657600080fd5b506104ac611e51565b34801561094b57600080fd5b50610534600c5481565b34801561096157600080fd5b506008546001600160a01b03166104f0565b34801561097f57600080fd5b50601e546104f0906001600160a01b031681565b34801561099f57600080fd5b506104c3611e61565b3480156109b457600080fd5b506104f06109c3366004613f4f565b611e70565b3480156109d457600080fd5b50610477611ed2565b3480156109e957600080fd5b50601c546104f0906001600160a01b031681565b348015610a0957600080fd5b506104ac610a18366004613f96565b611eea565b348015610a2957600080fd5b506104ac611f56565b348015610a3e57600080fd5b506104ac610a4d366004613c42565b611fb4565b348015610a5e57600080fd5b506104ac610a6d366004613c42565b611fc1565b348015610a7e57600080fd5b50610534611fce565b6104ac610a95366004613c42565b611fdd565b6104ac610aa8366004613fc4565b6121a4565b348015610ab957600080fd5b50610477610ac8366004614030565b805160208183018101805160278252928201919093012091525460ff1681565b348015610af457600080fd5b506104ac610b03366004613c42565b6122fc565b348015610b1457600080fd5b506105346123f7565b6104ac610b2b366004613eff565b612472565b348015610b3c57600080fd5b50610b50610b4b366004613c42565b612689565b604080519315158452602084019290925290820152606001610483565b348015610b7957600080fd5b506104ac610b88366004613db8565b6126d5565b348015610b9957600080fd5b506104c3610ba8366004613c42565b6126fa565b348015610bb957600080fd5b506104ac612843565b348015610bce57600080fd5b506104ac612853565b348015610be357600080fd5b506104ac610bf2366004613c42565b61286c565b348015610c0357600080fd5b50610477610c12366004614065565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610c4c57600080fd5b506104ac612879565b348015610c6157600080fd5b506104ac610c70366004613c42565b6128bf565b348015610c8157600080fd5b506104ac610c90366004613c42565b6128cc565b348015610ca157600080fd5b506104ac610cb0366004613d0f565b6128f0565b348015610cc157600080fd5b50600d546104f0906001600160a01b031681565b348015610ce157600080fd5b506104ac610cf0366004613cac565b612966565b348015610d0157600080fd5b506104ac6129e0565b348015610d1657600080fd5b5061053460165481565b6000610d2b82612a26565b80610d3a5750610d3a82612a26565b92915050565b610d48612a4b565b610d528282612aa5565b5050565b606060028054610d6590614093565b80601f0160208091040260200160405190810160405280929190818152602001828054610d9190614093565b8015610dde5780601f10610db357610100808354040283529160200191610dde565b820191906000526020600020905b815481529060010190602001808311610dc157829003601f168201915b5050505050905090565b6000610df382612ba2565b610e10576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610e37826119fc565b9050336001600160a01b03821614610e7057610e538133610c12565b610e70576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b601f546001600160a01b03163314610f405760405162461bcd60e51b815260206004820152602c60248201527f4f6e6c7920746865205465616d2057616c6c65742063616e206d696e7420526560448201526b736572766564204e4654732160a01b60648201526084015b60405180910390fd5b601a5482601954610f5191906140e3565b1115610faf5760405162461bcd60e51b815260206004820152602760248201527f4e6f7420656e6f756768205265736572766564204e465473206c65667420746f6044820152661036b4b73a171760c91b6064820152608401610f37565b610fb98183612bd7565b6001600160a01b0381166000908152602660205260408120805460019290610fe29084906140e3565b925050819055506001600e6000828254610ffc91906140e3565b9250508190555060016019600082825461101691906140e3565b90915550505050565b826daaeb6d7670e522a718067333cd4e3b1561116a57336001600160a01b0382160361105557611050848484612bf1565b611175565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156110a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110c891906140f6565b801561114b5750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611127573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061114b91906140f6565b61116a57604051633b79c77360e21b8152336004820152602401610f37565b611175848484612bf1565b50505050565b611183612a4b565b600061118d6119c4565b600381111561119e5761119e613e2c565b146111bb5760405162461bcd60e51b8152600401610f3790614113565b42602255565b6000828152600a602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916112365750604080518082019091526009546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090611255906001600160601b031687614142565b61125f919061416f565b91519350909150505b9250929050565b81816000600d60009054906101000a90046001600160a01b03166001600160a01b0316636ba7b18f6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156112c6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112ea9190614183565b9050806001600160a01b0316836001600160a01b0316036113435760405162461bcd60e51b81526020600482015260136024820152722737ba1022a9219b9918903932b1b4b2bb32b960691b6044820152606401610f37565b336001600160a01b0382161461138e5760405162461bcd60e51b815260206004820152601060248201526f2bb937b7339036b9b39739b2b73232b960811b6044820152606401610f37565b600c548211156113d85760405162461bcd60e51b8152602060048201526015602482015274457863656564732050726f6d6f7320737570706c7960581b6044820152606401610f37565b81600c546113e691906141a0565b600c55600f54600e546113fa9086906140e3565b11156114185760405162461bcd60e51b8152600401610f37906141b3565b60016114226119c4565b600381111561143357611433613e2c565b036114be576018546001600160a01b03861660009081526026602052604090205461145f9086906140e3565b11156114b95760405162461bcd60e51b815260206004820152602360248201527f4d6178696d756d204d696e74732070657220416464726573732065786365656460448201526265642160e81b6064820152608401610f37565b611571565b60026114c86119c4565b60038111156114d9576114d9613e2c565b03611512576016546018546001600160a01b0387166000908152602660205260409020546115089087906140e3565b61145f91906141a0565b6017546016546018546001600160a01b03881660009081526026602052604090205461153f9088906140e3565b61154991906141a0565b61155391906141a0565b11156115715760405162461bcd60e51b8152600401610f37906141ea565b83600e600082825461158391906140e3565b90915550506001600160a01b038516600090815260266020526040812080548692906115b09084906140e3565b909155506115c090508585612bd7565b5050505050565b6115cf612a4b565b6012610d528282614277565b6115e3612a4b565b60006115ed611fce565b90506000811161164a5760405162461bcd60e51b815260206004820152602260248201527f4e6f2046756e647320746f2077697468647261772c2042616c616e6365206973604482015261020360f41b6064820152608401610f37565b60016116546119c4565b600381111561166557611665613e2c565b1480611689575060026116766119c4565b600381111561168757611687613e2c565b145b156116f557601d546015546116ce916001600160a01b0316906064906116b29060ff1682614337565b6116bf9060ff1685614142565b6116c9919061416f565b612d8f565b601e546015546116f2916001600160a01b0316906064906116bf9060ff1685614142565b50565b601b54611712906001600160a01b031660646116bf846019614142565b601c5461172f906001600160a01b031660646116bf846019614142565b601d54601554611758916001600160a01b0316906064906116bf90610100900460ff1685614142565b601e5460155461177c916001600160a01b0316906064906116bf9060ff1685614142565b601f546116f2906001600160a01b031660646116bf846014614142565b6117a1612a4b565b6117a9612e2e565b565b826daaeb6d7670e522a718067333cd4e3b156118f157336001600160a01b038216036117dc57611050848484612e83565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561182b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061184f91906140f6565b80156118d25750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156118ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118d291906140f6565b6118f157604051633b79c77360e21b8152336004820152602401610f37565b611175848484612e83565b6116f2816001612e9e565b6000611911612a4b565b601954601a5461192191906141a0565b905090565b61192e612a4b565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b611958612a4b565b602c805460ff1916911515919091179055565b611973612a4b565b602180546001600160a01b0319166001600160a01b0392909216919091179055565b600b546001600160a01b031633146119bf5760405162461bcd60e51b8152600401610f3790614350565b600c55565b60006022546000036119d65750600090565b6023546000036119e65750600190565b6024546000036119f65750600290565b50600390565b6000610d3a82612fe4565b611a0f612a4b565b601355565b600b546001600160a01b03163314611a3e5760405162461bcd60e51b8152600401610f3790614350565b6001600160a01b038116611aa75760405162461bcd60e51b815260206004820152602a60248201527f50726f6d6f733a206e657720636f6e74726f6c6c657220697320746865207a65604482015269726f206164647265737360b01b6064820152608401610f37565b600b80546001600160a01b0319166001600160a01b0392909216919091179055565b8060005b8181101561117557611af6848483818110611aea57611aea614394565b9050602002013561305a565b611aff816143aa565b9050611acd565b60288054611b1390614093565b80601f0160208091040260200160405190810160405280929190818152602001828054611b3f90614093565b8015611b8c5780601f10611b6157610100808354040283529160200191611b8c565b820191906000526020600020905b815481529060010190602001808311611b6f57829003601f168201915b505050505081565b60006001600160a01b038216611bbd576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b611beb612a4b565b6117a960006131ed565b6001611bff6119c4565b6003811115611c1057611c10613e2c565b14611c545760405162461bcd60e51b81526020600482015260146024820152734e6f7420696e2047656e657369732053616c652160601b6044820152606401610f37565b60115483600e54611c6591906140e3565b1115611c835760405162461bcd60e51b8152600401610f37906141b3565b60185433600090815260266020526040902054611ca19085906140e3565b1115611cfb5760405162461bcd60e51b815260206004820152602360248201527f4d6178696d756d2031204d696e7420706572204164647265737320616c6c6f7760448201526265642160e81b6064820152608401610f37565b6020546001600160a01b0316611d118383611e70565b6001600160a01b031614611d675760405162461bcd60e51b815260206004820152601a60248201527f41646472657373206973206e6f7420616c6c6f776c69737465640000000000006044820152606401610f37565b82611d706123f7565b611d7a9190614142565b341015611e065760405162461bcd60e51b815260206004820152604e60248201527f4e6f742073756666696369656e7420457468657220746f206d696e742074686960448201527f7320616d6f756e74206f66204e4654732028436f7374203d20302e303735206560648201526d746865722065616368204e46542960901b608482015260a401610f37565b82600e6000828254611e1891906140e3565b90915550611e2890503384612bd7565b3360009081526026602052604081208054859290611e479084906140e3565b9091555050505050565b611e59612a4b565b6117a961323f565b606060038054610d6590614093565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c81018390526000908190605c01604051602081830303815290604052805190602001209050611eca8184613282565b949350505050565b6000602554600003611ee45750600090565b50600190565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611f5e612a4b565b60255415611fae5760405162461bcd60e51b815260206004820181905260248201527f4e465473206861766520616c7265616479206265656e2072657665616c6564216044820152606401610f37565b42602555565b611fbc612a4b565b601655565b611fc9612a4b565b601455565b6000611fd8612a4b565b504790565b6003611fe76119c4565b6003811115611ff857611ff8613e2c565b146120455760405162461bcd60e51b815260206004820152601c60248201527f5075626c69632053616c65206973206e6f74206f70656e2079657421000000006044820152606401610f37565b601954601a5461205591906141a0565b600f5461206291906141a0565b81600e5461207091906140e3565b111561208e5760405162461bcd60e51b8152600401610f37906141b3565b601754601654601854336000908152602660205260409020546120b29085906140e3565b6120bc91906141a0565b6120c691906141a0565b11156120e45760405162461bcd60e51b8152600401610f37906141ea565b806014546120f29190614142565b34101561215a5760405162461bcd60e51b815260206004820152603060248201527f4e6f742073756666696369656e7420457468657220746f206d696e742074686960448201526f7320616d6f756e74206f66204e46547360801b6064820152608401610f37565b6121643382612bd7565b33600090815260266020526040812080548392906121839084906140e3565b9250508190555080600e600082825461219c91906140e3565b909155505050565b836daaeb6d7670e522a718067333cd4e3b156122f057336001600160a01b038216036121db576121d6858585856132a6565b6115c0565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561222a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061224e91906140f6565b80156122d15750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156122ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122d191906140f6565b6122f057604051633b79c77360e21b8152336004820152602401610f37565b6115c0858585856132a6565b612304612a4b565b60008181526029602052604081205490036123555760405162461bcd60e51b8152602060048201526011602482015270115b5a5b1e4e881b9bdd08199c985b5959607a1b6044820152606401610f37565b60008181526029602052604090205461236e90426141a0565b6000828152602a60205260408120805490919061238c9084906140e3565b90915550506000818152602960205260408082208290555182917feebbaa86c348cb664e392b180fd0ff2e1998af9fa833ef69a778cb0b42d3ca2791a260405181907f3ebee94e74ea24f711b5876dca724062e18b7b37b6883e686a92f093248a4fcf90600090a250565b6000806124026119c4565b9050600081600381111561241857612418613e2c565b14806124355750600181600381111561243357612433613e2c565b145b156124495767010a741a4627800091505090565b600281600381111561245d5761245d613e2c565b0361246a57505060135490565b505060145490565b600261247c6119c4565b600381111561248d5761248d613e2c565b146124cc5760405162461bcd60e51b815260206004820152600f60248201526e4e6f7420696e2050726573616c652160881b6044820152606401610f37565b60105483600e546124dd91906140e3565b11156124fb5760405162461bcd60e51b8152600401610f37906141b3565b6016546018543360009081526026602052604090205461251c9086906140e3565b61252691906141a0565b11156125805760405162461bcd60e51b8152602060048201526024808201527f4d6178696d756d2033204d696e747320706572204164647265737320616c6c6f6044820152637765642160e01b6064820152608401610f37565b6020546001600160a01b03166125968383611e70565b6001600160a01b0316146125ec5760405162461bcd60e51b815260206004820152601a60248201527f41646472657373206973206e6f7420616c6c6f776c69737465640000000000006044820152606401610f37565b826125f56123f7565b6125ff9190614142565b341015611e065760405162461bcd60e51b815260206004820152604c60248201527f4e6f742073756666696369656e7420457468657220746f206d696e742074686960448201527f7320616d6f756e74206f66204e4654732028436f7374203d20302e312065746860648201526b65722065616368204e46542960a01b608482015260a401610f37565b6000818152602960205260408120548190819080156126b357600193506126b081426141a0565b92505b6000858152602a60205260409020546126cc90846140e3565b93959294505050565b6126dd612a4b565b60286126e98282614277565b506126f3816115c7565b5042602555565b606061270582612ba2565b6127695760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610f37565b602554600003612805576028805461278090614093565b80601f01602080910402602001604051908101604052809291908181526020018280546127ac90614093565b80156127f95780601f106127ce576101008083540402835291602001916127f9565b820191906000526020600020905b8154815290600101906020018083116127dc57829003601f168201915b50505050509050919050565b600061280f6132ea565b90508061281b846132f9565b60405160200161282c9291906143c3565b604051602081830303815290604052915050919050565b61284b612a4b565b600e54600f55565b61285b612a4b565b6015805461ffff1916610f0f179055565b612874612a4b565b601755565b612881612a4b565b600161288b6119c4565b600381111561289c5761289c613e2c565b146128b95760405162461bcd60e51b8152600401610f3790614113565b42602355565b6128c7612a4b565b601855565b6128d4612a4b565b6128de3382612bd7565b80600e600082825461219c91906140e3565b6128f8612a4b565b6001600160a01b03811661295d5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610f37565b6116f2816131ed565b33612970826119fc565b6001600160a01b0316146129c65760405162461bcd60e51b815260206004820152601760248201527f456d696c7920746f6b656e3a204f6e6c79206f776e65720000000000000000006044820152606401610f37565b6002602b556129d68383836117ab565b50506001602b5550565b6129e8612a4b565b60026129f26119c4565b6003811115612a0357612a03613e2c565b14612a205760405162461bcd60e51b8152600401610f3790614113565b42602455565b60006001600160e01b03198216631dd6ae1f60e21b1480610d3a5750610d3a826133fa565b6008546001600160a01b031633146117a95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610f37565b6127106001600160601b0382161115612b135760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610f37565b6001600160a01b038216612b695760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610f37565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600955565b600081600111158015612bb6575060005482105b8015610d3a575050600090815260046020526040902054600160e01b161590565b610d52828260405180602001604052806000815250613414565b6000612bfc82612fe4565b9050836001600160a01b0316816001600160a01b031614612c2f5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054612c5b8187335b6001600160a01b039081169116811491141790565b612c8657612c698633610c12565b612c8657604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516612cad57604051633a954ecd60e21b815260040160405180910390fd5b612cba868686600161347a565b8015612cc557600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003612d5757600184016000818152600460205260408120549003612d55576000548114612d555760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b031660008051602061448083398151915260405160405180910390a45b505050505050565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612ddc576040519150601f19603f3d011682016040523d82523d6000602084013e612de1565b606091505b5050905080612e295760405162461bcd60e51b81526020600482015260146024820152732330b4b632b2103a379039b2b7321022ba3432b960611b6044820152606401610f37565b505050565b612e36613503565b6008805460ff60a01b191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b612e29838383604051806020016040528060008152506121a4565b6000612ea983612fe4565b905080600080612ec786600090815260066020526040902080549091565b915091508415612f0757612edc818433612c46565b612f0757612eea8333610c12565b612f0757604051632ce44b5f60e11b815260040160405180910390fd5b612f1583600088600161347a565b8015612f2057600082555b6001600160a01b038316600081815260056020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b17600360e01b17600087815260046020526040812091909155600160e11b85169003612fae57600186016000818152600460205260408120549003612fac576000548114612fac5760008181526004602052604090208590555b505b60405186906000906001600160a01b03861690600080516020614480833981519152908390a45050600180548101905550505050565b60008180600111613041576000548110156130415760008181526004602052604081205490600160e01b8216900361303f575b80600003613038575060001901600081815260046020526040902054613017565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b803361306582613553565b516001600160a01b0316148061308b57503361308082610de8565b6001600160a01b0316145b6130e55760405162461bcd60e51b815260206004820152602560248201527f45524337323141436f6d6d6f6e3a204e6f7420617070726f766564206e6f722060448201526437bbb732b960d91b6064820152608401610f37565b6000828152602960205260408120549081900361318357602c5460ff166131465760405162461bcd60e51b8152602060048201526015602482015274115b5a5b1e4e881cdd185ada5b99c818db1bdcd959605a1b6044820152606401610f37565b6000838152602960205260408082204290555184917feebbaa86c348cb664e392b180fd0ff2e1998af9fa833ef69a778cb0b42d3ca2791a2505050565b61318d81426141a0565b6000848152602a6020526040812080549091906131ab9084906140e3565b90915550506000838152602960205260408082208290555184917ff7b101ea815d3ce5cd9e52e5821a2c9aabc306cef287120092a9f719cd73bb1f91a2505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6132476135cb565b6008805460ff60a01b1916600160a01b1790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612e663390565b60008060006132918585613618565b9150915061329e8161365a565b509392505050565b6132b184848461101f565b6001600160a01b0383163b15611175576132cd84848484613810565b611175576040516368d2bf6b60e11b815260040160405180910390fd5b606060128054610d6590614093565b6060816000036133205750506040805180820190915260018152600360fc1b602082015290565b8160005b811561334a5780613334816143aa565b91506133439050600a8361416f565b9150613324565b60008167ffffffffffffffff81111561336557613365613d2c565b6040519080825280601f01601f19166020018201604052801561338f576020820181803683370190505b5090505b8415611eca576133a46001836141a0565b91506133b1600a86614411565b6133bc9060306140e3565b60f81b8183815181106133d1576133d1614394565b60200101906001600160f81b031916908160001a9053506133f3600a8661416f565b9450613393565b6000613405826138fb565b80610d3a5750610d3a82613949565b61341e838361397e565b6001600160a01b0383163b15612e29576000548281035b6134486000868380600101945086613810565b613465576040516368d2bf6b60e11b815260040160405180910390fd5b8181106134355781600054146115c057600080fd5b81600061348783836140e3565b90505b80821015612d875760008281526029602052604090205415806134af5750602b546002145b6134f35760405162461bcd60e51b8152602060048201526015602482015274456d696c7920746f6b656e733a207374616b696e6760581b6044820152606401610f37565b6134fc826143aa565b915061348a565b600854600160a01b900460ff166117a95760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610f37565b604080516080810182526000808252602082018190529181018290526060810191909152610d3a61358383612fe4565b604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b600854600160a01b900460ff16156117a95760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610f37565b600080825160410361364e5760208301516040840151606085015160001a61364287828585613a65565b94509450505050611268565b50600090506002611268565b600081600481111561366e5761366e613e2c565b036136765750565b600181600481111561368a5761368a613e2c565b036136d75760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610f37565b60028160048111156136eb576136eb613e2c565b036137385760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610f37565b600381600481111561374c5761374c613e2c565b036137a45760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610f37565b60048160048111156137b8576137b8613e2c565b036116f25760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610f37565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290613845903390899088908890600401614425565b6020604051808303816000875af1925050508015613880575060408051601f3d908101601f1916820190925261387d91810190614462565b60015b6138de573d8080156138ae576040519150601f19603f3d011682016040523d82523d6000602084013e6138b3565b606091505b5080516000036138d6576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b60006301ffc9a760e01b6001600160e01b03198316148061392c57506380ac58cd60e01b6001600160e01b03198316145b80610d3a5750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b0319821663152a902d60e11b1480610d3a57506301ffc9a760e01b6001600160e01b0319831614610d3a565b60008054908290036139a35760405163b562e8dd60e01b815260040160405180910390fd5b6139b0600084838561347a565b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083906000805160206144808339815191528180a4600183015b818114613a3b5780836000600080516020614480833981519152600080a4600101613a15565b5081600003613a5c57604051622e076360e81b815260040160405180910390fd5b60005550505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115613a9c5750600090506003613b49565b8460ff16601b14158015613ab457508460ff16601c14155b15613ac55750600090506004613b49565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015613b19573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116613b4257600060019250925050613b49565b9150600090505b94509492505050565b6001600160e01b0319811681146116f257600080fd5b600060208284031215613b7a57600080fd5b813561303881613b52565b6001600160a01b03811681146116f257600080fd5b60008060408385031215613bad57600080fd5b8235613bb881613b85565b915060208301356001600160601b0381168114613bd457600080fd5b809150509250929050565b60005b83811015613bfa578181015183820152602001613be2565b50506000910152565b60008151808452613c1b816020860160208601613bdf565b601f01601f19169290920160200192915050565b6020815260006130386020830184613c03565b600060208284031215613c5457600080fd5b5035919050565b60008060408385031215613c6e57600080fd5b8235613c7981613b85565b946020939093013593505050565b60008060408385031215613c9a57600080fd5b823591506020830135613bd481613b85565b600080600060608486031215613cc157600080fd5b8335613ccc81613b85565b92506020840135613cdc81613b85565b929592945050506040919091013590565b60008060408385031215613d0057600080fd5b50508035926020909101359150565b600060208284031215613d2157600080fd5b813561303881613b85565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115613d5d57613d5d613d2c565b604051601f8501601f19908116603f01168101908282118183101715613d8557613d85613d2c565b81604052809350858152868686011115613d9e57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215613dca57600080fd5b813567ffffffffffffffff811115613de157600080fd5b8201601f81018413613df257600080fd5b611eca84823560208401613d42565b80151581146116f257600080fd5b600060208284031215613e2157600080fd5b813561303881613e01565b634e487b7160e01b600052602160045260246000fd5b6020810160048310613e6457634e487b7160e01b600052602160045260246000fd5b91905290565b60008060208385031215613e7d57600080fd5b823567ffffffffffffffff80821115613e9557600080fd5b818501915085601f830112613ea957600080fd5b813581811115613eb857600080fd5b8660208260051b8501011115613ecd57600080fd5b60209290920196919550909350505050565b600082601f830112613ef057600080fd5b61303883833560208501613d42565b600080600060608486031215613f1457600080fd5b8335925060208401359150604084013567ffffffffffffffff811115613f3957600080fd5b613f4586828701613edf565b9150509250925092565b60008060408385031215613f6257600080fd5b82359150602083013567ffffffffffffffff811115613f8057600080fd5b613f8c85828601613edf565b9150509250929050565b60008060408385031215613fa957600080fd5b8235613fb481613b85565b91506020830135613bd481613e01565b60008060008060808587031215613fda57600080fd5b8435613fe581613b85565b93506020850135613ff581613b85565b925060408501359150606085013567ffffffffffffffff81111561401857600080fd5b61402487828801613edf565b91505092959194509250565b60006020828403121561404257600080fd5b813567ffffffffffffffff81111561405957600080fd5b611eca84828501613edf565b6000806040838503121561407857600080fd5b823561408381613b85565b91506020830135613bd481613b85565b600181811c908216806140a757607f821691505b6020821081036140c757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610d3a57610d3a6140cd565b60006020828403121561410857600080fd5b815161303881613e01565b60208082526015908201527453616c6520697320616c7265616479204f70656e2160581b604082015260600190565b8082028115828204841417610d3a57610d3a6140cd565b634e487b7160e01b600052601260045260246000fd5b60008261417e5761417e614159565b500490565b60006020828403121561419557600080fd5b815161303881613b85565b81810381811115610d3a57610d3a6140cd565b6020808252601e908201527f4e6f7420656e6f756768204e465473206c65667420746f206d696e742e2e0000604082015260600190565b60208082526027908201527f4d6178696d756d205075626c69632053616c65204d696e74206c696d697420656040820152661e18d95959195960ca1b606082015260800190565b601f821115612e2957600081815260208120601f850160051c810160208610156142585750805b601f850160051c820191505b81811015612d8757828155600101614264565b815167ffffffffffffffff81111561429157614291613d2c565b6142a58161429f8454614093565b84614231565b602080601f8311600181146142da57600084156142c25750858301515b600019600386901b1c1916600185901b178555612d87565b600085815260208120601f198616915b82811015614309578886015182559484019460019091019084016142ea565b50858210156143275787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60ff8281168282160390811115610d3a57610d3a6140cd565b60208082526024908201527f50726f6d6f733a2043616c6c6572206973206e6f742074686520636f6e74726f604082015263363632b960e11b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b6000600182016143bc576143bc6140cd565b5060010190565b600083516143d5818460208801613bdf565b602f60f81b90830190815283516143f3816001840160208801613bdf565b64173539b7b760d91b60019290910191820152600601949350505050565b60008261442057614420614159565b500690565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061445890830184613c03565b9695505050505050565b60006020828403121561447457600080fd5b815161303881613b5256feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa264697066735822122010ee0c1283d85c22b5ef23423cf2ffcaae7d23b953048ce112760d1a26743d9a64736f6c63430008110033

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

00000000000000000000000000000000000000000000000000000000000001f4

-----Decoded View---------------
Arg [0] : royaltyBasisPoints (uint96): 500

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000001f4


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Txn Hash Block Value Eth2 PubKey Valid
View All Deposits
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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