ETH Price: $3,469.76 (-0.34%)
Gas: 2 Gwei

Token

Metaleon Society Genesis (MS)
 

Overview

Max Total Supply

2,642 MS

Holders

306

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
4 MS
0x4046224953776a683a6b7defe42352bf0324764c
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Building the first Web3 Crowdfunding platform within an innovative environment. A high quality 3D collection of 5,000 unique Metaleons living within a playful ecosystem on Ethereum, introducing a double logic of rarity based on 5 skills and hundreds of attributes.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
MetaLeons

Compiler Version
v0.8.15+commit.e14f2714

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 17 : Metaleon.sol
//SPDX-License-Identifier: Unlicense
pragma solidity 0.8.15;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "erc721a/contracts/extensions/ERC721AQueryable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "./ERC2981.sol";

/// @title MetaLeons NFT
/// @author La Guilde
/// @notice This contract is used to mint and airdrop NFTs as well as freeze Metadata.
contract MetaLeons is ERC721AQueryable, Ownable, ERC2981 {

    using SafeMath for uint256;

    //////////////////////////
    //       Variables      //
    //////////////////////////

    /// @notice Define royalty rate (1/1000)
    uint96 public constant ROYALTY_RATE = 600 ;
    
    /// @notice Define required price for public sale mint.
    uint256 public mintPrice = 0.095 ether;

    /// @notice Define required price for presale mint.
    uint256 public presaleMintPrice = 0.09 ether;

    /// @notice Define required price for Investor mint.
    uint256 public investorMintPrice = 0.08 ether;

    /// @notice Define max mintable nfts for normal user.
    uint256 public maxPerUser = 5;

    /// @notice Define max mintable nfts for WL user.
    uint256 public maxPerWhitelisted = 8;

    /// @notice Define max mintable nfts for investor users.
    uint256 public maxPerInvestor = 22;

    /// @notice Define amount of NFTs at which a user gets gifted a free NFT.
    uint256 public giftThreshold = 10;

    /// @notice Defines max amount of figted NFTs
    uint256 public maxGifted = 2;

    /// @notice Define max mintable supply of NFTs.
    uint256 public maxSupply = 5000;

    /// @notice Define URI of metadata api.
    string public baseURI = "https://api.metaleonsociety.io/api/v1/nfts/";

    /// @notice Define address of wallet used for signature verification.
    address public signatureWallet;

    /// @notice Define address of wallet used to withdraw treasury funds.
    address payable public withdrawalWallet;

    /// @notice Define address of wallet used to secondary treasury funds.
    address payable public secondaryWallet;

    /// @notice Define address of wallet used for payouts/
    address payable public paymentSplitter;

    /// @dev Associate tokenID to whether it has been frozen.
    mapping (uint256 => bool) frozenTokens;

    /// @notice Associate tokenID to unique tokenURI (decentralised).
    mapping (uint256 => string) tokenURIs;

    /// @notice Define whether presale is active.
    bool public presaleActive;

    /// @notice Define whether public sale is active.
    bool public saleActive;

    //////////////////////////
    //        Events        //
    //////////////////////////
    /// @notice Is emitted when an NFT URI is frozen, returns tokenId and frozen URI.
    /// @return tokenId, a uint256.
    /// @return tokenURI, a string.
    event Frozen(uint256 tokenId, string tokenURI);

    /// @notice Is emitted when an NFT URI is unfrozen.
    /// @return tokenId, a uint256.
    event UnFrozen(uint256 tokenId);

    /// @notice Is emitted when the presale is Open
    event PresaleOpen();

    /// @notice Is emitted when the public sale is Open
    event PublicSaleOpen();

    //////////////////////////
    //       Modifiers      //
    //////////////////////////
    /// @dev Check whether tokenId belongs to msg.sender.
    /// @param _tokenId, the id of the NFT.
    modifier isOwnerOrApproved(uint256 _tokenId) {
        require(
            msg.sender == ownerOf(_tokenId) ||
            isApprovedForAll(ownerOf(_tokenId), msg.sender) ||
            getApproved(_tokenId) == msg.sender,
            "Not your NFT"
        );
        _;
    }

    /// @dev Check whether a user can mint a given quantity.
    /// Quantity + current supply must not exceed total supply.
    /// Quantity + amount minted by user must not exceed maxPerUser.
    /// @param _quantity, the amount of NFTs to mint.
    modifier canMint(uint256 _quantity, uint256 max) {
        require(
            _numberMinted(msg.sender) + _quantity <= max, 
            "exceeds per user limit"
        );
        require(
            totalSupply() + _quantity <= maxSupply, 
            "Exceeds supply"
        );
        _;
    }

    /// @dev Check whether the presale is active and public sale is inactive.
    ///       Applys to InvestorMint and presaleMint.
    modifier presaleOnly {
        require(presaleActive && !saleActive, 'Presale disabled');
        _;
    }

    /// @dev Ensure values for giftThreshold and maxGifted are coherent with maxPerInvestor.
    ///      The last gift threshold must be less or equal to the max per investor minus
    ///      the amount of tokens gifted.
    ///      For example for:
    ///      - maxPerInvestor = 10
    ///      - giftThreshold = 5
    ///      - maxGifted = 2
    ///      2 * 5 > 8: I can never reach the second gift threshold as it would exceed
    ///      maxPerInvestor.
    ///      But for:
    ///     - maxPerInvestor = 24
    ///     - giftThreshold = 5
    ///     - maxGifted = 4
    ///     4 * 5 <= 24: I can give a free gift every 5 and remain <= maxPerInvestor limit of
    ///     24
    modifier coherentValuesForInvestor (
        uint256 _maxPerInvestor, 
        uint256 _maxGifted, 
        uint256 _giftThreshold
    ) {
        require(
            _maxGifted * _giftThreshold <= _maxPerInvestor - _maxGifted,
            "Improper values for investor settings"
        );
        _;
    }

    //////////////////////////
    //     Constructor      //
    //////////////////////////
    /// @dev We could define more things in the constructor, remains to be defined.
    constructor(
        address _signatureWallet, 
        address payable _withdrawalWallet,
        address payable _paymentSplitter,
        address payable _secondaryWallet
    ) ERC721A("Metaleon Society Genesis", "MS") {
        signatureWallet = _signatureWallet;
        withdrawalWallet = _withdrawalWallet;
        paymentSplitter = _paymentSplitter;
        secondaryWallet = _secondaryWallet;

        _setDefaultRoyalty(secondaryWallet, ROYALTY_RATE);
    }

    //////////////////////////
    //        External      //
    //////////////////////////
    /// @notice View amount minted by user.
    /// @param _minter, the address of the minter.
    /// @return _minted, a uint256
    function numberMinted(address _minter) external view returns(uint256) {
        return _numberMinted(_minter);
    }

    /// @notice View amount gifted to user.
    /// @param _minter, the address of the minter.
    /// @return _gifted, a uint256
    function numberGifted(address _minter) external view returns(uint256) {
        return uint256(_getAux(_minter));
    }

    /// @notice Set the address of the withdrawal wallet.
    /// @param _withdrawalWallet, the payable address to withdraw treasury funds to.
    /// @dev   is only accessible to owner of contract.
    function setWithdrawalWallet(address payable _withdrawalWallet) external onlyOwner {
        withdrawalWallet = _withdrawalWallet;
    }

    /// @notice Set the address of the payout wallet.
    /// @param _paymentSplitter, the payable address to withdraw payout funds to.
    /// @dev   is only accessible to owner of contract.
    function setPaymentSplitter(address payable _paymentSplitter) external onlyOwner {
        paymentSplitter = _paymentSplitter;
    }

    /// @notice Set the address of the wallet used for signature verification.
    /// @param _signatureWallet, the address used for verification.
    /// @dev   is only accessible to owner of contract.
    function setSignatureWallet(address _signatureWallet) external onlyOwner {
        signatureWallet = _signatureWallet;
    }

    /// @notice Set the address of the wallet used for royalty payments
    /// @param _secondaryWallet, the address to which royalties are sent
    /// @dev   is only accessible to owner of contract.
    function setRoyaltyWallet(address payable _secondaryWallet) external onlyOwner {
        secondaryWallet = _secondaryWallet;
        _setDefaultRoyalty(_secondaryWallet, ROYALTY_RATE);
    }

    /// @notice Set active state of the public sale.
    /// @param _activeState, the bool state of the public sale.
    /// @dev   is only accessible to owner of contract.
    function setSaleActiveState(bool _activeState) external onlyOwner {
        saleActive = _activeState;
        if(saleActive) {
            emit PublicSaleOpen();
        }
    }
    
    /// @notice Set active state of the private sale.
    /// @param _presaleActiveState, the bool state of the private sale.
    /// @dev   is only accessible to owner of contract.
    function setPresaleActiveState(bool _presaleActiveState) external onlyOwner {
        presaleActive = _presaleActiveState;
        if(presaleActive) {
            emit PresaleOpen();
        }
    }

    /// @notice Set public sale mint price.
    /// @param _mintPrice, the price in ethers of an NFT for a regular user.
    /// @dev included as last resort, might need to be removed,
    ///      is only accessible to owner of contract.
    function setMintPrice(uint256 _mintPrice) external onlyOwner {
        mintPrice = _mintPrice;
    }

    /// @notice Set private sale mint price.
    /// @param _presaleMintPrice, the price in ethers of an NFT for a presale user.
    /// @dev refer to dev comment on setMintPrice,
    ///      is only accessible to owner of contract.
    function setPresaleMintPrice(uint256 _presaleMintPrice) external onlyOwner {
        presaleMintPrice = _presaleMintPrice;
    }

    /// @notice Set investor mint price.
    /// @param _investorMintPrice, the price in ethers of an NFT for an investor user.
    /// @dev refer to dev comment on setMintPrice,
    ///      is only accessible to owner of contract.
    function setInvestorMintPrice(uint256 _investorMintPrice) external onlyOwner {
        investorMintPrice = _investorMintPrice;
    }

    /// @notice Set max mintable NFTs per wallet address.
    /// @param _quantity, the quantity of NFTs that can be minted by a wallet.
    function setMaxPerUser(uint256 _quantity) external onlyOwner {
        maxPerUser = _quantity;
    }

    /// @notice Set max mintable NFTs per wallet address.
    /// @param _quantity, the quantity of NFTs that can be minted by a wallet.
    function setMaxPerWhitelisted(uint256 _quantity) external onlyOwner {
        maxPerWhitelisted = _quantity;
    }

    /// @notice Set max mintable NFTs per investor.
    /// @param _quantity, the quantity of NFTs that can be minted by an investor wallet.
    /// @dev must be coherent with max gifted and gift threshold,
    ///      is only accessible to owner of contract.
    function setMaxPerInvestor(
        uint256 _quantity
    ) external coherentValuesForInvestor(
        _quantity,
        maxGifted,
        giftThreshold
    ) onlyOwner {
        maxPerInvestor = _quantity;
    }

    /// @notice Set threshold at which free NFT is minted.
    /// @param _quantity, the threshold at which a free NFT is minted.
    /// @dev must be coherent with max gifted and gift threshold,
    ///      is only accessible to owner of contract.
    function setGiftThreshold(
        uint256 _quantity
    ) external coherentValuesForInvestor(
        maxPerInvestor,
        maxGifted,
        _quantity
    ) onlyOwner {
        giftThreshold = _quantity;
    }

    /// @notice Set max giftable NFTs.
    /// @param _quantity, the number of times NFTs will be minted when threshold is hit
    /// @dev must be coherent with max gifted and gift threshold,
    ///      is only accessible to owner of contract.
    function setMaxGifted(
        uint256 _quantity
    ) external coherentValuesForInvestor(
        maxPerInvestor,
        _quantity,
        giftThreshold
    ) onlyOwner {
        maxGifted = _quantity;
    }

    /// @notice Set the URI of the metadata api.
    /// @param _baseURI, the URI of the metadata api.
    /// @dev must end with '/' for proper concatenation,
    ///      is only accessible to owner of contract.
    function setBaseURI(string calldata _baseURI) external onlyOwner {
        baseURI = _baseURI;
    }

    /// @notice mint NFTs as a whitelisted presale user, only if presale active and sale inactive.
    /// @param _quantity, the amount of NFTs to mint
    /// @param _signature, the signature that proves user is whitelisted
    /// @dev can only be run during presale
    function presaleMint(
        uint256 _quantity, 
        bytes calldata _signature
    ) external payable canMint(_quantity, maxPerWhitelisted) presaleOnly {
        // check that sent value matches presale price
        require(msg.value >= presaleMintPrice * _quantity, "Not enough money");
        // verify whitelisted signature valid for presale user
        require(_verifySignature(_signature, 0) == signatureWallet, "Not whitelisted");
        // mint
        _mint(_quantity);   
    }

    /// @notice mint NFTs as a investor user, only if presale active and sale inactive,
    ///         gifts a free NFT if giftThreshold has been met,
    ///         saves that gifted NFT has been delivered to user
    /// @param _quantity, the amount of NFTs to mint
    /// @param _signature, the signature that proves user is investor
    /// @dev can only be run during presale,
    ///      the supply verifications are down after the NFT is gifted for better efficency
    function investorMint(
        uint256 _quantity,
        bytes calldata _signature
    ) external payable presaleOnly {
        // check that value matches investor price
        require(msg.value >= investorMintPrice * _quantity, "Not enough money");
        // verify that signature is valid for Investor user
        require(_verifySignature(_signature, 1) == signatureWallet, "Not investor");
        // how many minted by user
        uint256 _minted = _numberMinted(msg.sender);
         // get _userGifted
        uint256 _userGifted = uint256(_getAux(msg.sender));
        // how many actually paid by user
        uint256 _realMinted = _minted - _userGifted;
        // instantiate _toGift at 0
        uint256 _toGift;
        // gift free mints if thresholds exceeded
        for(uint i =_userGifted; i < maxGifted; i++) {
            if(_realMinted + _quantity >= (i + 1) * giftThreshold) {
                _toGift += 1;
            }
        }
        // add gifts to quantity
        _quantity += _toGift;
        // ensures _quantity does not exceed maxSupply and maxPerInvestor and max gifted
        require(_minted + _quantity <= maxPerInvestor, "exceeds per investor limit");
        require(totalSupply() + _quantity <= maxSupply, "Exceeds supply");
        require(_userGifted + _toGift <= maxGifted, "Exceeds max gifts");
        // gift free and trigger event
        _setAux(msg.sender, uint64(_userGifted + _toGift));
        // mint quantity
        _mint(_quantity);
    }

    /// @notice mint NFTs as a regular user, only when publicSale is active
    /// @param _quantity, the amount of NFTs to mint
    /// @dev can only be run during public sale
    function publicMint(uint256 _quantity) external payable canMint(_quantity, maxPerUser) {
        // check user minting and not CA
        require(tx.origin == msg.sender, "No bots alloweds");
        // check that public sale is active
        require(saleActive, "Sale disabled");
        // check that amount sent matches public price
        require(msg.value >= mintPrice * _quantity, "Not enough money");
        // mint quantity
        _mint(_quantity);
    }

    /// @notice airdrop NFTs to multiple recipients
    /// @param _recipients, the wallet address to mint NFTs to
    /// @param _quantities, the amount of NFTs to mint
    /// @dev is only accessible to owner of contract
    function airDropMultiple(
        address[] calldata _recipients, 
        uint256[] calldata _quantities
    ) external onlyOwner {
        require(_recipients.length == _quantities.length, "invalid array sizes");
        for(uint i = 0; i < _recipients.length; i++) {
            airDrop(_recipients[i], _quantities[i]);
        }
    }

    /// @notice Split funds 80/20 and transfer first to treasury wallet and second to
    ///         payout wallet.
    /// @dev is only accessible to owner of contract,
    ///      unsure whether it is necessary to make it nonReentrant.
    function withdrawAll() external onlyOwner {
        // treasury wallet receives 80% of funds
        uint256 commonTreasuryAmount = address(this).balance * 80 / 100;
        // payout wallet receives 20% of funds
        uint256 splitPaymentAmount = address(this).balance * 20 / 100;
        // call transfer function on both wallets
        (bool success, ) = withdrawalWallet.call{
            value: commonTreasuryAmount
        }("");
        (bool complete, ) = paymentSplitter.call{
            value: splitPaymentAmount
        }("");
        // revert if either transfer failed
        require(success && complete, 'Failed to send funds');
    }

    /// @notice Assign a unique URI to holders' NFT and define it as frozen
    /// @param _tokenId, the id of the token whose URI we want to freeze
    /// @param _tokenURI, the URI we wwant to assign to the NFT
    /// @param _signature, the signature that ensures validity of the URI for this token
    /// @dev Is only accessible to owner of token, URI must be valid as per checked 
    ///      with signature,
    ///      genTime is used to ensure signature only valid for URIValidFor
    function freezeMetadata(
        uint256 _tokenId, 
        string calldata _tokenURI,
        bytes calldata _signature,
        uint256 _validTime
    ) external isOwnerOrApproved(_tokenId) {
        require(
            _validTime >= block.timestamp,
            "URI expired"
        );
        require(
            _verifySignatureForURI(_signature, _tokenId, _tokenURI, _validTime) == signatureWallet,
            "Invalid URI"
        );
        // assign frozen true to NFT id in mapping of frozen NFTs.
        frozenTokens[_tokenId] = true;
        // assign URI to tokenId in mapping of URIs.
        tokenURIs[_tokenId] =  _tokenURI;
        // emit Frozen event
        emit Frozen(_tokenId, _tokenURI);
    }

    /// @notice Unfreeze the tokenURI of an NFT
    /// @dev Is only accessible to owner of token
    function unfreezeMetadata(uint256 _tokenId) external isOwnerOrApproved(_tokenId) {
        // assign frozen false to NFT in mapping of frozen NFTs.
        frozenTokens[_tokenId] = false;
        // meit UnFrozen event.
        emit UnFrozen(_tokenId);
    }

    //////////////////////////
    //        Public        //
    //////////////////////////
    /// @notice airdrop NFTs to a recipient
    /// @param _recipient, the wallet address to mint NFTs to
    /// @param _quantity, the amount of NFTs to mint
    /// @dev is only accessible to owner of contract
    function airDrop(address _recipient, uint256 _quantity) public onlyOwner {
        // check that will not exceed supply
        require(totalSupply() + _quantity <= maxSupply, "Exceeds supply");
        // call safemint as we don't need to keep track of how many were minted
        _safeMint(_recipient, _quantity);
    }

    /// @notice Return the URI of a token
    /// @param _tokenId, the id of the token whose URI we want 
    /// @return tokenURI, a string,
    ///         concatenated from baseURI and tokenID if metadata not frozen,
    ///         from tokenURIs mapping otherwise
    function tokenURI(uint256 _tokenId) public view override(ERC721A, IERC721Metadata) returns(string memory) {
        // Ensure token has been minted and not burnt.
        require(_exists(_tokenId), "token does not exist");
        // Return URI from mapping if token frozen.
        if (frozenTokens[_tokenId]) {
            return tokenURIs[_tokenId];
        }
        // Return concatenated from baseURI and tokenId otherwise.
        return string(abi.encodePacked(baseURI, Strings.toString(_tokenId)));
    }

    function supportsInterface(
        bytes4 interfaceId
    ) public view virtual override (
        ERC2981, ERC721A, IERC165
    ) returns (bool) {
        return 
            ERC2981.supportsInterface(interfaceId) || 
            ERC721A.supportsInterface(interfaceId);
    }

    //////////////////////////
    //        Internal      //
    //////////////////////////
    /// @param _quantity, the amount of NFTs to mint
    /// @dev SafeMint quantity to sender of transaction
    function _mint(uint256 _quantity) internal {
        _safeMint(msg.sender, _quantity);
    }

    /// @param _signature, the encoded byte that ensures wallet belongs to proper list
    /// @param _mintType, a uin256 that defines which list the wallet should belong to:
    ///        0 for a presale wallet,
    ///        1 for an investor wallet
    /// @return signatureAddress, the address that encrypted the signature, to be compared
    ///         with the signatureWallet.
    function _verifySignature(
        bytes memory _signature, 
        uint256 _mintType
    ) internal view returns(address) {
        return ECDSA.recover(
            ECDSA.toEthSignedMessageHash(
                keccak256(abi.encodePacked(
                    msg.sender,
                    address(this),
                    _mintType
                )
            )
        ), _signature);
    }

    /// @param _signature, the encoded byte that ensures wallet belongs to proper list
    /// @param _tokenId, the tokenID for which we want to assign a new URI
    /// @param _URI, the decentralised URI to be assigned to the NFT
    /// @param _validTime, the time of generation of the URI
    /// @return signatureAddress, the address that encrypted the signature, to be compared
    ///         with the signatureWallet.
    /// @dev We use the genTime to prevent reuse of signatures to backtrack metadata
    function _verifySignatureForURI(
        bytes memory _signature, 
        uint256 _tokenId,
        string memory _URI,
        uint256 _validTime
    ) internal view returns(address) {
        return ECDSA.recover(
            ECDSA.toEthSignedMessageHash(
                keccak256(abi.encodePacked(
                    address(this),
                    _tokenId,
                    _URI,
                    _validTime
                )
            )
        ), _signature);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 3 of 17 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (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) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

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

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = 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 4 of 17 : ERC721AQueryable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v3.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721AQueryable.sol';
import '../ERC721A.sol';

/**
 * @title ERC721A Queryable
 * @dev ERC721A subclass with convenience query functions.
 */
abstract contract ERC721AQueryable is ERC721A, IERC721AQueryable {
    /**
     * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting.
     *
     * If the `tokenId` is out of bounds:
     *   - `addr` = `address(0)`
     *   - `startTimestamp` = `0`
     *   - `burned` = `false`
     *
     * If the `tokenId` is burned:
     *   - `addr` = `<Address of owner before token was burned>`
     *   - `startTimestamp` = `<Timestamp when token was burned>`
     *   - `burned = `true`
     *
     * Otherwise:
     *   - `addr` = `<Address of owner>`
     *   - `startTimestamp` = `<Timestamp of start of ownership>`
     *   - `burned = `false`
     */
    function explicitOwnershipOf(uint256 tokenId) public view override returns (TokenOwnership memory) {
        TokenOwnership memory ownership;
        if (tokenId < _startTokenId() || tokenId >= _currentIndex) {
            return ownership;
        }
        ownership = _ownerships[tokenId];
        if (ownership.burned) {
            return ownership;
        }
        return _ownershipOf(tokenId);
    }

    /**
     * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order.
     * See {ERC721AQueryable-explicitOwnershipOf}
     */
    function explicitOwnershipsOf(uint256[] memory tokenIds) external view override returns (TokenOwnership[] memory) {
        unchecked {
            uint256 tokenIdsLength = tokenIds.length;
            TokenOwnership[] memory ownerships = new TokenOwnership[](tokenIdsLength);
            for (uint256 i; i != tokenIdsLength; ++i) {
                ownerships[i] = explicitOwnershipOf(tokenIds[i]);
            }
            return ownerships;
        }
    }

    /**
     * @dev Returns an array of token IDs owned by `owner`,
     * in the range [`start`, `stop`)
     * (i.e. `start <= tokenId < stop`).
     *
     * This function allows for tokens to be queried if the collection
     * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}.
     *
     * Requirements:
     *
     * - `start` < `stop`
     */
    function tokensOfOwnerIn(
        address owner,
        uint256 start,
        uint256 stop
    ) external view override returns (uint256[] memory) {
        unchecked {
            if (start >= stop) revert InvalidQueryRange();
            uint256 tokenIdsIdx;
            uint256 stopLimit = _currentIndex;
            // Set `start = max(start, _startTokenId())`.
            if (start < _startTokenId()) {
                start = _startTokenId();
            }
            // Set `stop = min(stop, _currentIndex)`.
            if (stop > stopLimit) {
                stop = stopLimit;
            }
            uint256 tokenIdsMaxLength = balanceOf(owner);
            // Set `tokenIdsMaxLength = min(balanceOf(owner), stop - start)`,
            // to cater for cases where `balanceOf(owner)` is too big.
            if (start < stop) {
                uint256 rangeLength = stop - start;
                if (rangeLength < tokenIdsMaxLength) {
                    tokenIdsMaxLength = rangeLength;
                }
            } else {
                tokenIdsMaxLength = 0;
            }
            uint256[] memory tokenIds = new uint256[](tokenIdsMaxLength);
            if (tokenIdsMaxLength == 0) {
                return tokenIds;
            }
            // We need to call `explicitOwnershipOf(start)`,
            // because the slot at `start` may not be initialized.
            TokenOwnership memory ownership = explicitOwnershipOf(start);
            address currOwnershipAddr;
            // If the starting slot exists (i.e. not burned), initialize `currOwnershipAddr`.
            // `ownership.address` will not be zero, as `start` is clamped to the valid token ID range.
            if (!ownership.burned) {
                currOwnershipAddr = ownership.addr;
            }
            for (uint256 i = start; i != stop && tokenIdsIdx != tokenIdsMaxLength; ++i) {
                ownership = _ownerships[i];
                if (ownership.burned) {
                    continue;
                }
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    tokenIds[tokenIdsIdx++] = i;
                }
            }
            // Downsize the array to fit.
            assembly {
                mstore(tokenIds, tokenIdsIdx)
            }
            return tokenIds;
        }
    }

    /**
     * @dev Returns an array of token IDs owned by `owner`.
     *
     * This function scans the ownership mapping and is O(totalSupply) in complexity.
     * It is meant to be called off-chain.
     *
     * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into
     * multiple smaller scans if the collection is large enough to cause
     * an out-of-gas error (10K pfp collections should be fine).
     */
    function tokensOfOwner(address owner) external view override returns (uint256[] memory) {
        unchecked {
            uint256 tokenIdsIdx;
            address currOwnershipAddr;
            uint256 tokenIdsLength = balanceOf(owner);
            uint256[] memory tokenIds = new uint256[](tokenIdsLength);
            TokenOwnership memory ownership;
            for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ++i) {
                ownership = _ownerships[i];
                if (ownership.burned) {
                    continue;
                }
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    tokenIds[tokenIdsIdx++] = i;
                }
            }
            return tokenIds;
        }
    }
}

File 5 of 17 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 6 of 17 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

File 7 of 17 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/common/ERC2981.sol)

pragma solidity 0.8.15;

/**
 * @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 {
    /**
     * @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 payed in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

/**
 * @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 {
    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 returns (bool) {
        return interfaceId == type(IERC2981).interfaceId;
    }

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice)
        external
        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:
     *
     * - `tokenId` must be already minted.
     * - `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 8 of 17 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

File 9 of 17 : IERC721AQueryable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v3.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '../IERC721A.sol';

/**
 * @dev Interface of an ERC721AQueryable compliant contract.
 */
interface IERC721AQueryable is IERC721A {
    /**
     * Invalid query range (`start` >= `stop`).
     */
    error InvalidQueryRange();

    /**
     * @dev Returns the `TokenOwnership` struct at `tokenId` without reverting.
     *
     * If the `tokenId` is out of bounds:
     *   - `addr` = `address(0)`
     *   - `startTimestamp` = `0`
     *   - `burned` = `false`
     *
     * If the `tokenId` is burned:
     *   - `addr` = `<Address of owner before token was burned>`
     *   - `startTimestamp` = `<Timestamp when token was burned>`
     *   - `burned = `true`
     *
     * Otherwise:
     *   - `addr` = `<Address of owner>`
     *   - `startTimestamp` = `<Timestamp of start of ownership>`
     *   - `burned = `false`
     */
    function explicitOwnershipOf(uint256 tokenId) external view returns (TokenOwnership memory);

    /**
     * @dev Returns an array of `TokenOwnership` structs at `tokenIds` in order.
     * See {ERC721AQueryable-explicitOwnershipOf}
     */
    function explicitOwnershipsOf(uint256[] memory tokenIds) external view returns (TokenOwnership[] memory);

    /**
     * @dev Returns an array of token IDs owned by `owner`,
     * in the range [`start`, `stop`)
     * (i.e. `start <= tokenId < stop`).
     *
     * This function allows for tokens to be queried if the collection
     * grows too big for a single call of {ERC721AQueryable-tokensOfOwner}.
     *
     * Requirements:
     *
     * - `start` < `stop`
     */
    function tokensOfOwnerIn(
        address owner,
        uint256 start,
        uint256 stop
    ) external view returns (uint256[] memory);

    /**
     * @dev Returns an array of token IDs owned by `owner`.
     *
     * This function scans the ownership mapping and is O(totalSupply) in complexity.
     * It is meant to be called off-chain.
     *
     * See {ERC721AQueryable-tokensOfOwnerIn} for splitting the scan into
     * multiple smaller scans if the collection is large enough to cause
     * an out-of-gas error (10K pfp collections should be fine).
     */
    function tokensOfOwner(address owner) external view returns (uint256[] memory);
}

File 10 of 17 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v3.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';
import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol';
import '@openzeppelin/contracts/utils/Address.sol';
import '@openzeppelin/contracts/utils/Context.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/utils/introspection/ERC165.sol';

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..).
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is Context, ERC165, IERC721A {
    using Address for address;
    using Strings for uint256;

    // The tokenId of the next token to be minted.
    uint256 internal _currentIndex;

    // The number of tokens burned.
    uint256 internal _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 _ownershipOf implementation for details.
    mapping(uint256 => TokenOwnership) internal _ownerships;

    // Mapping owner address to address data
    mapping(address => AddressData) private _addressData;

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

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

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

    /**
     * To change the starting tokenId, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens.
     */
    function totalSupply() public view override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex - _startTokenId() times
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

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

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return uint256(_addressData[owner].balance);
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return uint256(_addressData[owner].numberMinted);
    }

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

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

    /**
     * Sets the auxillary 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 {
        _addressData[owner].aux = aux;
    }

    /**
     * Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around in the collection over time.
     */
    function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr) if (curr < _currentIndex) {
                TokenOwnership memory ownership = _ownerships[curr];
                if (!ownership.burned) {
                    if (ownership.addr != address(0)) {
                        return ownership;
                    }
                    // Invariant:
                    // There will always be an ownership that has an address and is not burned
                    // before an ownership that does not have an address and is not burned.
                    // Hence, curr will not underflow.
                    while (true) {
                        curr--;
                        ownership = _ownerships[curr];
                        if (ownership.addr != address(0)) {
                            return ownership;
                        }
                    }
                }
            }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return _ownershipOf(tokenId).addr;
    }

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

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

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

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public override {
        address owner = ERC721A.ownerOf(tokenId);
        if (to == owner) revert ApprovalToCurrentOwner();

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

        _approve(to, tokenId, owner);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        if (operator == _msgSender()) revert ApproveToCaller();

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

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

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

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        _transfer(from, to, tokenId);
        if (to.isContract()) if(!_checkContractOnERC721Received(from, to, tokenId, _data)) {
            revert TransferToNonERC721ReceiverImplementer();
        }
    }

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

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    function _safeMint(address to, uint256 quantity) internal {
        _safeMint(to, 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.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

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

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].startTimestamp = uint64(block.timestamp);

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            if (to.isContract()) {
                do {
                    emit Transfer(address(0), to, updatedIndex);
                    if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (updatedIndex < end);
                // Reentrancy protection
                if (_currentIndex != startTokenId) revert();
            } else {
                do {
                    emit Transfer(address(0), to, updatedIndex++);
                } while (updatedIndex < end);
            }
            _currentIndex = updatedIndex;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @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.
     */
    function _mint(address to, uint256 quantity) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

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

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].startTimestamp = uint64(block.timestamp);

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            do {
                emit Transfer(address(0), to, updatedIndex++);
            } while (updatedIndex < end);

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

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) private {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();

        bool isApprovedOrOwner = (_msgSender() == from ||
            isApprovedForAll(from, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

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

        // 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 {
            _addressData[from].balance -= 1;
            _addressData[to].balance += 1;

            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = to;
            currSlot.startTimestamp = uint64(block.timestamp);

            // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

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

    /**
     * @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 {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        address from = prevOwnership.addr;

        if (approvalCheck) {
            bool isApprovedOrOwner = (_msgSender() == from ||
                isApprovedForAll(from, _msgSender()) ||
                getApproved(tokenId) == _msgSender());

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

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

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

        // 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 {
            AddressData storage addressData = _addressData[from];
            addressData.balance -= 1;
            addressData.numberBurned += 1;

            // Keep track of who burned the token, and the timestamp of burning.
            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = from;
            currSlot.startTimestamp = uint64(block.timestamp);
            currSlot.burned = true;

            // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

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

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

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

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

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

File 11 of 17 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v3.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '@openzeppelin/contracts/token/ERC721/IERC721.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol';

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

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

    /**
     * The caller cannot approve to their own address.
     */
    error ApproveToCaller();

    /**
     * The caller cannot approve to the current owner.
     */
    error ApprovalToCurrentOwner();

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

    // Compiler will pack this into a single 256bit word.
    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
    }

    // Compiler will pack this into a single 256bit word.
    struct AddressData {
        // Realistically, 2**64-1 is more than enough.
        uint64 balance;
        // Keeps track of mint count with minimal overhead for tokenomics.
        uint64 numberMinted;
        // Keeps track of burn count with minimal overhead for tokenomics.
        uint64 numberBurned;
        // For miscellaneous variable(s) pertaining to the address
        // (e.g. number of whitelist mint slots used).
        // If there are multiple variables, please pack them into a uint64.
        uint64 aux;
    }

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     * 
     * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens.
     */
    function totalSupply() external view returns (uint256);
}

File 12 of 17 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 14 of 17 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

File 16 of 17 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_signatureWallet","type":"address"},{"internalType":"address payable","name":"_withdrawalWallet","type":"address"},{"internalType":"address payable","name":"_paymentSplitter","type":"address"},{"internalType":"address payable","name":"_secondaryWallet","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","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":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"tokenURI","type":"string"}],"name":"Frozen","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":[],"name":"PresaleOpen","type":"event"},{"anonymous":false,"inputs":[],"name":"PublicSaleOpen","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"UnFrozen","type":"event"},{"inputs":[],"name":"ROYALTY_RATE","outputs":[{"internalType":"uint96","name":"","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_recipient","type":"address"},{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"airDrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"_recipients","type":"address[]"},{"internalType":"uint256[]","name":"_quantities","type":"uint256[]"}],"name":"airDropMultiple","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"explicitOwnershipOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"explicitOwnershipsOf","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"_tokenURI","type":"string"},{"internalType":"bytes","name":"_signature","type":"bytes"},{"internalType":"uint256","name":"_validTime","type":"uint256"}],"name":"freezeMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"giftThreshold","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"investorMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"investorMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"maxGifted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerInvestor","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerUser","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerWhitelisted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"}],"name":"numberGifted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_minter","type":"address"}],"name":"numberMinted","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":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paymentSplitter","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"presaleMintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","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":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"secondaryWallet","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"setGiftThreshold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_investorMintPrice","type":"uint256"}],"name":"setInvestorMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"setMaxGifted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"setMaxPerInvestor","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"setMaxPerUser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_quantity","type":"uint256"}],"name":"setMaxPerWhitelisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_paymentSplitter","type":"address"}],"name":"setPaymentSplitter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_presaleActiveState","type":"bool"}],"name":"setPresaleActiveState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_presaleMintPrice","type":"uint256"}],"name":"setPresaleMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_secondaryWallet","type":"address"}],"name":"setRoyaltyWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_activeState","type":"bool"}],"name":"setSaleActiveState","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signatureWallet","type":"address"}],"name":"setSignatureWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address payable","name":"_withdrawalWallet","type":"address"}],"name":"setWithdrawalWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"signatureWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"stop","type":"uint256"}],"name":"tokensOfOwnerIn","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"unfreezeMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawalWallet","outputs":[{"internalType":"address payable","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

67015181ff25a98000600b5567013fbe85edc90000600c5567011c37937e080000600d556005600e556008600f556016601055600a601155600260125561138860135560e0604052602b6080818152906200445e60a03960149062000065908262000375565b503480156200007357600080fd5b50604051620044893803806200448983398101604081905262000096916200045a565b6040518060400160405280601881526020017f4d6574616c656f6e20536f63696574792047656e657369730000000000000000815250604051806040016040528060028152602001614d5360f01b8152508160029081620000f8919062000375565b50600362000107828262000375565b50506000805550620001193362000179565b601580546001600160a01b038087166001600160a01b03199283161790925560168054868416908316179055601880548584169083161790556017805492841692909116821790556200016f90610258620001cb565b50505050620004c2565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106001600160601b03821611156200023f5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b038216620002975760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640162000236565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600955565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620002fb57607f821691505b6020821081036200031c57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200037057600081815260208120601f850160051c810160208610156200034b5750805b601f850160051c820191505b818110156200036c5782815560010162000357565b5050505b505050565b81516001600160401b03811115620003915762000391620002d0565b620003a981620003a28454620002e6565b8462000322565b602080601f831160018114620003e15760008415620003c85750858301515b600019600386901b1c1916600185901b1785556200036c565b600085815260208120601f198616915b828110156200041257888601518255948401946001909101908401620003f1565b5085821015620004315787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6001600160a01b03811681146200045757600080fd5b50565b600080600080608085870312156200047157600080fd5b84516200047e8162000441565b6020860151909450620004918162000441565b6040860151909350620004a48162000441565b6060860151909250620004b78162000441565b939692955090935050565b613f8c80620004d26000396000f3fe6080604052600436106103c35760003560e01c80636b29b79f116101f257806399a2557a1161010d578063d5abeb01116100a0578063f2fde38b1161006f578063f2fde38b14610b2b578063f4a0a52814610b4b578063f66a79a014610b6b578063fd24a85414610b8b57600080fd5b8063d5abeb0114610ab5578063dc33e68114610acb578063e985e9c514610aeb578063ed4a6b0c14610b0b57600080fd5b8063c23dc68f116100dc578063c23dc68f14610a28578063c87b56dd14610a55578063cc10acf014610a75578063cdeee63714610a9557600080fd5b806399a2557a146109b2578063a22cb465146109d2578063a9c68f34146109f2578063b88d4fde14610a0857600080fd5b8063813dcee711610185578063853828b611610154578063853828b6146109575780638da5cb5b1461096c57806395d89b411461098a57806397eab77d1461099f57600080fd5b8063813dcee7146108ca57806381e8a925146108ea5780638462151c1461090a57806384c678591461093757600080fd5b8063715018a6116101c1578063715018a61461085f57806375796f761461087457806378573e55146108945780637bc799c5146108b457600080fd5b80636b29b79f146107ea5780636c0360eb1461080a5780637046f3401461081f57806370a082311461083f57600080fd5b80633b6f5377116102e25780635be505211161027557806368428a1b1161024457806368428a1b1461076b57806368a680741461078a5780636adbdb7e146107aa5780636ae7bd56146107ca57600080fd5b80635be50521146106ff5780636352211e1461071557806365d3abcb146107355780636817c76c1461075557600080fd5b80634a7d80b3116102b15780634a7d80b31461067857806353135ca01461069857806355f804b3146106b25780635bbb2177146106d257600080fd5b80633b6f5377146105fe5780633d209f2a1461061457806340e37ff11461062a57806342842e0e1461065857600080fd5b8063119f3e3c1161035a57806323b872dd1161032957806323b872dd1461056c5780632a55205a1461058c5780632db11544146105cb57806337a13193146105de57600080fd5b8063119f3e3c146104fd57806318160ddd1461051357806320a16fae1461052c57806322f9f29b1461054c57600080fd5b806306d586bb1161039657806306d586bb1461045f57806306fdde0314610483578063081812fc146104a5578063095ea7b3146104dd57600080fd5b8063016fced4146103c857806301ffc9a7146103ea57806302b42f461461041f578063045f78501461043f575b600080fd5b3480156103d457600080fd5b506103e86103e3366004613478565b610b9e565b005b3480156103f657600080fd5b5061040a61040536600461350f565b610da8565b60405190151581526020015b60405180910390f35b34801561042b57600080fd5b506103e861043a366004613570565b610dd3565b34801561044b57600080fd5b506103e861045a3660046135f0565b610eae565b34801561046b57600080fd5b50610475600e5481565b604051908152602001610416565b34801561048f57600080fd5b50610498610f1f565b6040516104169190613674565b3480156104b157600080fd5b506104c56104c0366004613687565b610fb1565b6040516001600160a01b039091168152602001610416565b3480156104e957600080fd5b506103e86104f83660046135f0565b610ff5565b34801561050957600080fd5b5061047560115481565b34801561051f57600080fd5b5060015460005403610475565b34801561053857600080fd5b506103e86105473660046136b5565b61107b565b34801561055857600080fd5b506103e8610567366004613687565b6110eb565b34801561057857600080fd5b506103e86105873660046136d0565b611158565b34801561059857600080fd5b506105ac6105a7366004613711565b611163565b604080516001600160a01b039093168352602083019190915201610416565b6103e86105d9366004613687565b611211565b3480156105ea57600080fd5b506103e86105f9366004613687565b611369565b34801561060a57600080fd5b50610475600f5481565b34801561062057600080fd5b5061047560105481565b34801561063657600080fd5b5061064061025881565b6040516001600160601b039091168152602001610416565b34801561066457600080fd5b506103e86106733660046136d0565b611398565b34801561068457600080fd5b506016546104c5906001600160a01b031681565b3480156106a457600080fd5b50601b5461040a9060ff1681565b3480156106be57600080fd5b506103e86106cd366004613733565b6113b3565b3480156106de57600080fd5b506106f26106ed3660046137ba565b6113ea565b604051610416919061385f565b34801561070b57600080fd5b50610475600c5481565b34801561072157600080fd5b506104c5610730366004613687565b6114b0565b34801561074157600080fd5b506103e8610750366004613687565b6114c2565b34801561076157600080fd5b50610475600b5481565b34801561077757600080fd5b50601b5461040a90610100900460ff1681565b34801561079657600080fd5b506103e86107a5366004613687565b6114f1565b3480156107b657600080fd5b506103e86107c5366004613687565b61155c565b3480156107d657600080fd5b506103e86107e53660046138c9565b61158b565b3480156107f657600080fd5b506103e86108053660046138c9565b6115d7565b34801561081657600080fd5b50610498611623565b34801561082b57600080fd5b506103e861083a3660046136b5565b6116b1565b34801561084b57600080fd5b5061047561085a3660046138c9565b61172a565b34801561086b57600080fd5b506103e8611778565b34801561088057600080fd5b506103e861088f3660046138c9565b6117ae565b3480156108a057600080fd5b506104756108af3660046138c9565b6117fa565b3480156108c057600080fd5b50610475600d5481565b3480156108d657600080fd5b506103e86108e5366004613687565b611814565b3480156108f657600080fd5b506103e8610905366004613687565b611843565b34801561091657600080fd5b5061092a6109253660046138c9565b6118af565b60405161041691906138e6565b34801561094357600080fd5b506015546104c5906001600160a01b031681565b34801561096357600080fd5b506103e86119f4565b34801561097857600080fd5b506008546001600160a01b03166104c5565b34801561099657600080fd5b50610498611b59565b6103e86109ad36600461391e565b611b68565b3480156109be57600080fd5b5061092a6109cd366004613969565b611e58565b3480156109de57600080fd5b506103e86109ed36600461399e565b61200b565b3480156109fe57600080fd5b5061047560125481565b348015610a1457600080fd5b506103e8610a233660046139d3565b6120a0565b348015610a3457600080fd5b50610a48610a43366004613687565b6120e4565b6040516104169190613a96565b348015610a6157600080fd5b50610498610a70366004613687565b612192565b348015610a8157600080fd5b506103e8610a90366004613687565b6122c7565b348015610aa157600080fd5b506103e8610ab03660046138c9565b6123a1565b348015610ac157600080fd5b5061047560135481565b348015610ad757600080fd5b50610475610ae63660046138c9565b6123f2565b348015610af757600080fd5b5061040a610b06366004613acb565b6123fd565b348015610b1757600080fd5b506018546104c5906001600160a01b031681565b348015610b3757600080fd5b506103e8610b463660046138c9565b61242b565b348015610b5757600080fd5b506103e8610b66366004613687565b6124c3565b348015610b7757600080fd5b506017546104c5906001600160a01b031681565b6103e8610b9936600461391e565b6124f2565b85610ba8816114b0565b6001600160a01b0316336001600160a01b03161480610bd45750610bd4610bce826114b0565b336123fd565b80610bef575033610be482610fb1565b6001600160a01b0316145b610c2f5760405162461bcd60e51b815260206004820152600c60248201526b139bdd081e5bdd5c8813919560a21b60448201526064015b60405180910390fd5b42821015610c6d5760405162461bcd60e51b815260206004820152600b60248201526a15549248195e1c1a5c995960aa1b6044820152606401610c26565b601554604080516020601f87018190048102820181019092528581526001600160a01b0390921691610cf191879087908190840183828082843760009201919091525050604080516020601f8d018190048102820181019092528b81528d935091508b908b90819084018382808284376000920191909152508992506126ae915050565b6001600160a01b031614610d355760405162461bcd60e51b815260206004820152600b60248201526a496e76616c69642055524960a81b6044820152606401610c26565b6000878152601960209081526040808320805460ff19166001179055601a9091529020610d63868883613b8c565b507f78ddccb8dc871c5a280b3930ed57e63f56ac66f1dd6845976e1c585662ca411a878787604051610d9793929190613c4b565b60405180910390a150505050505050565b600063152a902d60e11b6001600160e01b031983161480610dcd5750610dcd8261273e565b92915050565b6008546001600160a01b03163314610dfd5760405162461bcd60e51b8152600401610c2690613c81565b828114610e425760405162461bcd60e51b8152602060048201526013602482015272696e76616c69642061727261792073697a657360681b6044820152606401610c26565b60005b83811015610ea757610e95858583818110610e6257610e62613cb6565b9050602002016020810190610e7791906138c9565b848484818110610e8957610e89613cb6565b90506020020135610eae565b80610e9f81613ce2565b915050610e45565b5050505050565b6008546001600160a01b03163314610ed85760405162461bcd60e51b8152600401610c2690613c81565b60135481610ee96001546000540390565b610ef39190613cfb565b1115610f115760405162461bcd60e51b8152600401610c2690613d13565b610f1b828261278e565b5050565b606060028054610f2e90613b04565b80601f0160208091040260200160405190810160405280929190818152602001828054610f5a90613b04565b8015610fa75780601f10610f7c57610100808354040283529160200191610fa7565b820191906000526020600020905b815481529060010190602001808311610f8a57829003601f168201915b5050505050905090565b6000610fbc826127a8565b610fd9576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000611000826114b0565b9050806001600160a01b0316836001600160a01b0316036110345760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b0382161461106b5761104e81336123fd565b61106b576040516367d9dca160e11b815260040160405180910390fd5b6110768383836127d3565b505050565b6008546001600160a01b031633146110a55760405162461bcd60e51b8152600401610c2690613c81565b601b805460ff191682151590811790915560ff16156110e8576040517f1741519d9f9e2ebf5bb3b3ad7373b725e2cf5c3fb7865d390203b3f60a510cf490600090a15b50565b8060125460115481836110fe9190613d3b565b6111088284613d52565b11156111265760405162461bcd60e51b8152600401610c2690613d71565b6008546001600160a01b031633146111505760405162461bcd60e51b8152600401610c2690613c81565b505050601055565b61107683838361282f565b6000828152600a602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916111d85750604080518082019091526009546001600160a01b0381168252600160a01b90046001600160601b031660208201525b6020810151600090612710906111f7906001600160601b031687613d52565b6112019190613dcc565b91519350909150505b9250929050565b80600e54808261122033612a1a565b61122a9190613cfb565b11156112715760405162461bcd60e51b8152602060048201526016602482015275195e18d959591cc81c195c881d5cd95c881b1a5b5a5d60521b6044820152606401610c26565b601354826112826001546000540390565b61128c9190613cfb565b11156112aa5760405162461bcd60e51b8152600401610c2690613d13565b3233146112ec5760405162461bcd60e51b815260206004820152601060248201526f4e6f20626f747320616c6c6f7765647360801b6044820152606401610c26565b601b54610100900460ff166113335760405162461bcd60e51b815260206004820152600d60248201526c14d85b1948191a5cd8589b1959609a1b6044820152606401610c26565b82600b546113419190613d52565b3410156113605760405162461bcd60e51b8152600401610c2690613de0565b61107683612a45565b6008546001600160a01b031633146113935760405162461bcd60e51b8152600401610c2690613c81565b600c55565b611076838383604051806020016040528060008152506120a0565b6008546001600160a01b031633146113dd5760405162461bcd60e51b8152600401610c2690613c81565b6014611076828483613b8c565b80516060906000816001600160401b0381111561140957611409613774565b60405190808252806020026020018201604052801561145457816020015b60408051606081018252600080825260208083018290529282015282526000199092019101816114275790505b50905060005b8281146114a85761148385828151811061147657611476613cb6565b60200260200101516120e4565b82828151811061149557611495613cb6565b602090810291909101015260010161145a565b509392505050565b60006114bb82612a4f565b5192915050565b6008546001600160a01b031633146114ec5760405162461bcd60e51b8152600401610c2690613c81565b600f55565b601054601254826115028284613d3b565b61150c8284613d52565b111561152a5760405162461bcd60e51b8152600401610c2690613d71565b6008546001600160a01b031633146115545760405162461bcd60e51b8152600401610c2690613c81565b505050601155565b6008546001600160a01b031633146115865760405162461bcd60e51b8152600401610c2690613c81565b600d55565b6008546001600160a01b031633146115b55760405162461bcd60e51b8152600401610c2690613c81565b601580546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b031633146116015760405162461bcd60e51b8152600401610c2690613c81565b601880546001600160a01b0319166001600160a01b0392909216919091179055565b6014805461163090613b04565b80601f016020809104026020016040519081016040528092919081815260200182805461165c90613b04565b80156116a95780601f1061167e576101008083540402835291602001916116a9565b820191906000526020600020905b81548152906001019060200180831161168c57829003601f168201915b505050505081565b6008546001600160a01b031633146116db5760405162461bcd60e51b8152600401610c2690613c81565b601b805461ff0019166101008315158102919091179182905560ff910416156110e8576040517fd205ec1b5e5c538c620f5d7b91c14891192d8739d26af9e82731fc857ccc099090600090a150565b60006001600160a01b038216611753576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b031633146117a25760405162461bcd60e51b8152600401610c2690613c81565b6117ac6000612b69565b565b6008546001600160a01b031633146117d85760405162461bcd60e51b8152600401610c2690613c81565b601680546001600160a01b0319166001600160a01b0392909216919091179055565b600061180582612bbb565b6001600160401b031692915050565b6008546001600160a01b0316331461183e5760405162461bcd60e51b8152600401610c2690613c81565b600e55565b60105460115482906118558284613d3b565b61185f8284613d52565b111561187d5760405162461bcd60e51b8152600401610c2690613d71565b6008546001600160a01b031633146118a75760405162461bcd60e51b8152600401610c2690613c81565b505050601255565b606060008060006118bf8561172a565b90506000816001600160401b038111156118db576118db613774565b604051908082528060200260200182016040528015611904578160200160208202803683370190505b50905061192a604080516060810182526000808252602082018190529181019190915290565b60005b8386146119e857600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905292506119e05781516001600160a01b0316156119a157815194505b876001600160a01b0316856001600160a01b0316036119e057808387806001019850815181106119d3576119d3613cb6565b6020026020010181815250505b60010161192d565b50909695505050505050565b6008546001600160a01b03163314611a1e5760405162461bcd60e51b8152600401610c2690613c81565b60006064611a2d476050613d52565b611a379190613dcc565b905060006064611a48476014613d52565b611a529190613dcc565b6016546040519192506000916001600160a01b039091169084908381818185875af1925050503d8060008114611aa4576040519150601f19603f3d011682016040523d82523d6000602084013e611aa9565b606091505b50506018546040519192506000916001600160a01b039091169084908381818185875af1925050503d8060008114611afd576040519150601f19603f3d011682016040523d82523d6000602084013e611b02565b606091505b50509050818015611b105750805b611b535760405162461bcd60e51b81526020600482015260146024820152734661696c656420746f2073656e642066756e647360601b6044820152606401610c26565b50505050565b606060038054610f2e90613b04565b601b5460ff168015611b825750601b54610100900460ff16155b611bc15760405162461bcd60e51b815260206004820152601060248201526f141c995cd85b1948191a5cd8589b195960821b6044820152606401610c26565b82600d54611bcf9190613d52565b341015611bee5760405162461bcd60e51b8152600401610c2690613de0565b601554604080516020601f85018190048102820181019092528381526001600160a01b0390921691611c3d91859085908190840183828082843760009201919091525060019250612be6915050565b6001600160a01b031614611c825760405162461bcd60e51b815260206004820152600c60248201526b2737ba1034b73b32b9ba37b960a11b6044820152606401610c26565b6000611c8d33612a1a565b90506000611c9a33612bbb565b6001600160401b031690506000611cb18284613d3b565b90506000825b601254811015611d0857601154611ccf826001613cfb565b611cd99190613d52565b611ce38985613cfb565b10611cf657611cf3600183613cfb565b91505b80611d0081613ce2565b915050611cb7565b50611d138188613cfb565b601054909750611d238886613cfb565b1115611d715760405162461bcd60e51b815260206004820152601a60248201527f657863656564732070657220696e766573746f72206c696d69740000000000006044820152606401610c26565b60135487611d826001546000540390565b611d8c9190613cfb565b1115611daa5760405162461bcd60e51b8152600401610c2690613d13565b601254611db78285613cfb565b1115611df95760405162461bcd60e51b815260206004820152601160248201527045786365656473206d617820676966747360781b6044820152606401610c26565b611e4633611e078386613cfb565b6001600160a01b03909116600090815260056020526040902080546001600160401b03909216600160c01b026001600160c01b03909216919091179055565b611e4f87612a45565b50505050505050565b6060818310611e7a57604051631960ccad60e11b815260040160405180910390fd5b6000805480841115611e8a578093505b6000611e958761172a565b905084861015611eb45785850381811015611eae578091505b50611eb8565b5060005b6000816001600160401b03811115611ed257611ed2613774565b604051908082528060200260200182016040528015611efb578160200160208202803683370190505b50905081600003611f1157935061200492505050565b6000611f1c886120e4565b905060008160400151611f2d575080515b885b888114158015611f3f5750848714155b15611ff857600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615159181018290529350611ff05782516001600160a01b031615611fb157825191505b8a6001600160a01b0316826001600160a01b031603611ff05780848880600101995081518110611fe357611fe3613cb6565b6020026020010181815250505b600101611f2f565b50505092835250909150505b9392505050565b336001600160a01b038316036120345760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6120ab84848461282f565b6001600160a01b0383163b15611b53576120c784848484612c2d565b611b53576040516368d2bf6b60e11b815260040160405180910390fd5b60408051606080820183526000808352602080840182905283850182905284519283018552818352820181905292810183905290915060005483106121295792915050565b50600082815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615801592820192909252906121895792915050565b61200483612a4f565b606061219d826127a8565b6121e05760405162461bcd60e51b81526020600482015260146024820152731d1bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b6044820152606401610c26565b60008281526019602052604090205460ff1615612295576000828152601a60205260409020805461221090613b04565b80601f016020809104026020016040519081016040528092919081815260200182805461223c90613b04565b80156122895780601f1061225e57610100808354040283529160200191612289565b820191906000526020600020905b81548152906001019060200180831161226c57829003601f168201915b50505050509050919050565b60146122a083612d15565b6040516020016122b1929190613e0a565b6040516020818303038152906040529050919050565b806122d1816114b0565b6001600160a01b0316336001600160a01b031614806122f757506122f7610bce826114b0565b8061231257503361230782610fb1565b6001600160a01b0316145b61234d5760405162461bcd60e51b815260206004820152600c60248201526b139bdd081e5bdd5c8813919560a21b6044820152606401610c26565b60008281526019602052604090819020805460ff19169055517fe9305bd5d22611ad00576810772c860a45c727a6ceb9121bb6a81277cbfabcdb906123959084815260200190565b60405180910390a15050565b6008546001600160a01b031633146123cb5760405162461bcd60e51b8152600401610c2690613c81565b601780546001600160a01b0319166001600160a01b0383161790556110e881610258612e15565b6000610dcd82612a1a565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6008546001600160a01b031633146124555760405162461bcd60e51b8152600401610c2690613c81565b6001600160a01b0381166124ba5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c26565b6110e881612b69565b6008546001600160a01b031633146124ed5760405162461bcd60e51b8152600401610c2690613c81565b600b55565b82600f54808261250133612a1a565b61250b9190613cfb565b11156125525760405162461bcd60e51b8152602060048201526016602482015275195e18d959591cc81c195c881d5cd95c881b1a5b5a5d60521b6044820152606401610c26565b601354826125636001546000540390565b61256d9190613cfb565b111561258b5760405162461bcd60e51b8152600401610c2690613d13565b601b5460ff1680156125a55750601b54610100900460ff16155b6125e45760405162461bcd60e51b815260206004820152601060248201526f141c995cd85b1948191a5cd8589b195960821b6044820152606401610c26565b84600c546125f29190613d52565b3410156126115760405162461bcd60e51b8152600401610c2690613de0565b601554604080516020601f87018190048102820181019092528581526001600160a01b039092169161265d91879087908190840183828082843760009201829052509250612be6915050565b6001600160a01b0316146126a55760405162461bcd60e51b815260206004820152600f60248201526e139bdd081dda1a5d195b1a5cdd1959608a1b6044820152606401610c26565b610ea785612a45565b600061273361272d308686866040516020016126cd9493929190613e91565b60408051601f1981840301815282825280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000084830152603c8085019190915282518085039091018152605c909301909152815191012090565b86612f12565b90505b949350505050565b60006001600160e01b031982166380ac58cd60e01b148061276f57506001600160e01b03198216635b5e139f60e01b145b80610dcd57506301ffc9a760e01b6001600160e01b0319831614610dcd565b610f1b828260405180602001604052806000815250612f2e565b6000805482108015610dcd575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061283a82612a4f565b9050836001600160a01b031681600001516001600160a01b0316146128715760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b038616148061288f575061288f85336123fd565b806128aa57503361289f84610fb1565b6001600160a01b0316145b9050806128ca57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0384166128f157604051633a954ecd60e21b815260040160405180910390fd5b6128fd600084876127d3565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b429092169190910217835587018084529220805491939091166129d15760005482146129d157805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610ea7565b6001600160a01b0316600090815260056020526040902054600160401b90046001600160401b031690565b6110e8338261278e565b604080516060810182526000808252602082018190529181019190915281600054811015612b5057600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290612b4e5780516001600160a01b031615612ae5579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215612b49579392505050565b612ae5565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0316600090815260056020526040902054600160c01b90046001600160401b031690565b6040516bffffffffffffffffffffffff1933606090811b8216602084015230901b1660348201526048810182905260009061200490612c27906068016126cd565b84612f12565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612c62903390899088908890600401613ed2565b6020604051808303816000875af1925050508015612c9d575060408051601f3d908101601f19168201909252612c9a91810190613f0f565b60015b612cfb573d808015612ccb576040519150601f19603f3d011682016040523d82523d6000602084013e612cd0565b606091505b508051600003612cf3576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612736565b606081600003612d3c5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612d665780612d5081613ce2565b9150612d5f9050600a83613dcc565b9150612d40565b6000816001600160401b03811115612d8057612d80613774565b6040519080825280601f01601f191660200182016040528015612daa576020820181803683370190505b5090505b841561273657612dbf600183613d3b565b9150612dcc600a86613f2c565b612dd7906030613cfb565b60f81b818381518110612dec57612dec613cb6565b60200101906001600160f81b031916908160001a905350612e0e600a86613dcc565b9450612dae565b6127106001600160601b0382161115612e835760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610c26565b6001600160a01b038216612ed95760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610c26565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600955565b6000806000612f2185856130f0565b915091506114a88161315b565b6000546001600160a01b038416612f5757604051622e076360e81b815260040160405180910390fd5b82600003612f785760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038416600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168b018116918217600160401b67ffffffffffffffff1990941690921783900481168b01811690920217909155858452600490925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b1561309b575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46130646000878480600101955087612c2d565b613081576040516368d2bf6b60e11b815260040160405180910390fd5b80821061301957826000541461309657600080fd5b6130e0565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821061309c575b506000908155611b539085838684565b60008082516041036131265760208301516040840151606085015160001a61311a87828585613311565b9450945050505061120a565b825160400361314f57602083015160408401516131448683836133fe565b93509350505061120a565b5060009050600261120a565b600081600481111561316f5761316f613f40565b036131775750565b600181600481111561318b5761318b613f40565b036131d85760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610c26565b60028160048111156131ec576131ec613f40565b036132395760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610c26565b600381600481111561324d5761324d613f40565b036132a55760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610c26565b60048160048111156132b9576132b9613f40565b036110e85760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610c26565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561334857506000905060036133f5565b8460ff16601b1415801561336057508460ff16601c14155b1561337157506000905060046133f5565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156133c5573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166133ee576000600192509250506133f5565b9150600090505b94509492505050565b6000806001600160ff1b0383168161341b60ff86901c601b613cfb565b905061342987828885613311565b935093505050935093915050565b60008083601f84011261344957600080fd5b5081356001600160401b0381111561346057600080fd5b60208301915083602082850101111561120a57600080fd5b6000806000806000806080878903121561349157600080fd5b8635955060208701356001600160401b03808211156134af57600080fd5b6134bb8a838b01613437565b909750955060408901359150808211156134d457600080fd5b506134e189828a01613437565b979a9699509497949695606090950135949350505050565b6001600160e01b0319811681146110e857600080fd5b60006020828403121561352157600080fd5b8135612004816134f9565b60008083601f84011261353e57600080fd5b5081356001600160401b0381111561355557600080fd5b6020830191508360208260051b850101111561120a57600080fd5b6000806000806040858703121561358657600080fd5b84356001600160401b038082111561359d57600080fd5b6135a98883890161352c565b909650945060208701359150808211156135c257600080fd5b506135cf8782880161352c565b95989497509550505050565b6001600160a01b03811681146110e857600080fd5b6000806040838503121561360357600080fd5b823561360e816135db565b946020939093013593505050565b60005b8381101561363757818101518382015260200161361f565b83811115611b535750506000910152565b6000815180845261366081602086016020860161361c565b601f01601f19169290920160200192915050565b6020815260006120046020830184613648565b60006020828403121561369957600080fd5b5035919050565b803580151581146136b057600080fd5b919050565b6000602082840312156136c757600080fd5b612004826136a0565b6000806000606084860312156136e557600080fd5b83356136f0816135db565b92506020840135613700816135db565b929592945050506040919091013590565b6000806040838503121561372457600080fd5b50508035926020909101359150565b6000806020838503121561374657600080fd5b82356001600160401b0381111561375c57600080fd5b61376885828601613437565b90969095509350505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156137b2576137b2613774565b604052919050565b600060208083850312156137cd57600080fd5b82356001600160401b03808211156137e457600080fd5b818501915085601f8301126137f857600080fd5b81358181111561380a5761380a613774565b8060051b915061381b84830161378a565b818152918301840191848101908884111561383557600080fd5b938501935b838510156138535784358252938501939085019061383a565b98975050505050505050565b6020808252825182820181905260009190848201906040850190845b818110156119e8576138b683855180516001600160a01b031682526020808201516001600160401b0316908301526040908101511515910152565b928401926060929092019160010161387b565b6000602082840312156138db57600080fd5b8135612004816135db565b6020808252825182820181905260009190848201906040850190845b818110156119e857835183529284019291840191600101613902565b60008060006040848603121561393357600080fd5b8335925060208401356001600160401b0381111561395057600080fd5b61395c86828701613437565b9497909650939450505050565b60008060006060848603121561397e57600080fd5b8335613989816135db565b95602085013595506040909401359392505050565b600080604083850312156139b157600080fd5b82356139bc816135db565b91506139ca602084016136a0565b90509250929050565b600080600080608085870312156139e957600080fd5b84356139f4816135db565b9350602085810135613a05816135db565b93506040860135925060608601356001600160401b0380821115613a2857600080fd5b818801915088601f830112613a3c57600080fd5b813581811115613a4e57613a4e613774565b613a60601f8201601f1916850161378a565b91508082528984828501011115613a7657600080fd5b808484018584013760008482840101525080935050505092959194509250565b81516001600160a01b031681526020808301516001600160401b03169082015260408083015115159082015260608101610dcd565b60008060408385031215613ade57600080fd5b8235613ae9816135db565b91506020830135613af9816135db565b809150509250929050565b600181811c90821680613b1857607f821691505b602082108103613b3857634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561107657600081815260208120601f850160051c81016020861015613b655750805b601f850160051c820191505b81811015613b8457828155600101613b71565b505050505050565b6001600160401b03831115613ba357613ba3613774565b613bb783613bb18354613b04565b83613b3e565b6000601f841160018114613beb5760008515613bd35750838201355b600019600387901b1c1916600186901b178355610ea7565b600083815260209020601f19861690835b82811015613c1c5786850135825560209485019460019092019101613bfc565b5086821015613c395760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b83815260406020820152816040820152818360608301376000818301606090810191909152601f909201601f1916010192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201613cf457613cf4613ccc565b5060010190565b60008219821115613d0e57613d0e613ccc565b500190565b6020808252600e908201526d4578636565647320737570706c7960901b604082015260600190565b600082821015613d4d57613d4d613ccc565b500390565b6000816000190483118215151615613d6c57613d6c613ccc565b500290565b60208082526025908201527f496d70726f7065722076616c75657320666f7220696e766573746f722073657460408201526474696e677360d81b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b600082613ddb57613ddb613db6565b500490565b60208082526010908201526f4e6f7420656e6f756768206d6f6e657960801b604082015260600190565b6000808454613e1881613b04565b60018281168015613e305760018114613e4557613e74565b60ff1984168752821515830287019450613e74565b8860005260208060002060005b85811015613e6b5781548a820152908401908201613e52565b50505082870194505b505050508351613e8881836020880161361c565b01949350505050565b6001600160601b03198560601b16815283601482015260008351613ebc81603485016020880161361c565b6034920191820192909252605401949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613f0590830184613648565b9695505050505050565b600060208284031215613f2157600080fd5b8151612004816134f9565b600082613f3b57613f3b613db6565b500690565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220f4429fb9ae295ac1bf2584bafc581fdd1e5b45c68f0011d30845bcf28532fdff64736f6c634300080f003368747470733a2f2f6170692e6d6574616c656f6e736f63696574792e696f2f6170692f76312f6e6674732f000000000000000000000000cb83a0e4635f4483f2eea00345496e11f633c0b1000000000000000000000000c5b301800424c80f73265ed51cd4d5b2c1c18252000000000000000000000000dca6c56daaf6f618422e526e06cd57fc08b6ee050000000000000000000000006cde8a29b8f02a6d4fff3d8786114d742f1f7f16

Deployed Bytecode

0x6080604052600436106103c35760003560e01c80636b29b79f116101f257806399a2557a1161010d578063d5abeb01116100a0578063f2fde38b1161006f578063f2fde38b14610b2b578063f4a0a52814610b4b578063f66a79a014610b6b578063fd24a85414610b8b57600080fd5b8063d5abeb0114610ab5578063dc33e68114610acb578063e985e9c514610aeb578063ed4a6b0c14610b0b57600080fd5b8063c23dc68f116100dc578063c23dc68f14610a28578063c87b56dd14610a55578063cc10acf014610a75578063cdeee63714610a9557600080fd5b806399a2557a146109b2578063a22cb465146109d2578063a9c68f34146109f2578063b88d4fde14610a0857600080fd5b8063813dcee711610185578063853828b611610154578063853828b6146109575780638da5cb5b1461096c57806395d89b411461098a57806397eab77d1461099f57600080fd5b8063813dcee7146108ca57806381e8a925146108ea5780638462151c1461090a57806384c678591461093757600080fd5b8063715018a6116101c1578063715018a61461085f57806375796f761461087457806378573e55146108945780637bc799c5146108b457600080fd5b80636b29b79f146107ea5780636c0360eb1461080a5780637046f3401461081f57806370a082311461083f57600080fd5b80633b6f5377116102e25780635be505211161027557806368428a1b1161024457806368428a1b1461076b57806368a680741461078a5780636adbdb7e146107aa5780636ae7bd56146107ca57600080fd5b80635be50521146106ff5780636352211e1461071557806365d3abcb146107355780636817c76c1461075557600080fd5b80634a7d80b3116102b15780634a7d80b31461067857806353135ca01461069857806355f804b3146106b25780635bbb2177146106d257600080fd5b80633b6f5377146105fe5780633d209f2a1461061457806340e37ff11461062a57806342842e0e1461065857600080fd5b8063119f3e3c1161035a57806323b872dd1161032957806323b872dd1461056c5780632a55205a1461058c5780632db11544146105cb57806337a13193146105de57600080fd5b8063119f3e3c146104fd57806318160ddd1461051357806320a16fae1461052c57806322f9f29b1461054c57600080fd5b806306d586bb1161039657806306d586bb1461045f57806306fdde0314610483578063081812fc146104a5578063095ea7b3146104dd57600080fd5b8063016fced4146103c857806301ffc9a7146103ea57806302b42f461461041f578063045f78501461043f575b600080fd5b3480156103d457600080fd5b506103e86103e3366004613478565b610b9e565b005b3480156103f657600080fd5b5061040a61040536600461350f565b610da8565b60405190151581526020015b60405180910390f35b34801561042b57600080fd5b506103e861043a366004613570565b610dd3565b34801561044b57600080fd5b506103e861045a3660046135f0565b610eae565b34801561046b57600080fd5b50610475600e5481565b604051908152602001610416565b34801561048f57600080fd5b50610498610f1f565b6040516104169190613674565b3480156104b157600080fd5b506104c56104c0366004613687565b610fb1565b6040516001600160a01b039091168152602001610416565b3480156104e957600080fd5b506103e86104f83660046135f0565b610ff5565b34801561050957600080fd5b5061047560115481565b34801561051f57600080fd5b5060015460005403610475565b34801561053857600080fd5b506103e86105473660046136b5565b61107b565b34801561055857600080fd5b506103e8610567366004613687565b6110eb565b34801561057857600080fd5b506103e86105873660046136d0565b611158565b34801561059857600080fd5b506105ac6105a7366004613711565b611163565b604080516001600160a01b039093168352602083019190915201610416565b6103e86105d9366004613687565b611211565b3480156105ea57600080fd5b506103e86105f9366004613687565b611369565b34801561060a57600080fd5b50610475600f5481565b34801561062057600080fd5b5061047560105481565b34801561063657600080fd5b5061064061025881565b6040516001600160601b039091168152602001610416565b34801561066457600080fd5b506103e86106733660046136d0565b611398565b34801561068457600080fd5b506016546104c5906001600160a01b031681565b3480156106a457600080fd5b50601b5461040a9060ff1681565b3480156106be57600080fd5b506103e86106cd366004613733565b6113b3565b3480156106de57600080fd5b506106f26106ed3660046137ba565b6113ea565b604051610416919061385f565b34801561070b57600080fd5b50610475600c5481565b34801561072157600080fd5b506104c5610730366004613687565b6114b0565b34801561074157600080fd5b506103e8610750366004613687565b6114c2565b34801561076157600080fd5b50610475600b5481565b34801561077757600080fd5b50601b5461040a90610100900460ff1681565b34801561079657600080fd5b506103e86107a5366004613687565b6114f1565b3480156107b657600080fd5b506103e86107c5366004613687565b61155c565b3480156107d657600080fd5b506103e86107e53660046138c9565b61158b565b3480156107f657600080fd5b506103e86108053660046138c9565b6115d7565b34801561081657600080fd5b50610498611623565b34801561082b57600080fd5b506103e861083a3660046136b5565b6116b1565b34801561084b57600080fd5b5061047561085a3660046138c9565b61172a565b34801561086b57600080fd5b506103e8611778565b34801561088057600080fd5b506103e861088f3660046138c9565b6117ae565b3480156108a057600080fd5b506104756108af3660046138c9565b6117fa565b3480156108c057600080fd5b50610475600d5481565b3480156108d657600080fd5b506103e86108e5366004613687565b611814565b3480156108f657600080fd5b506103e8610905366004613687565b611843565b34801561091657600080fd5b5061092a6109253660046138c9565b6118af565b60405161041691906138e6565b34801561094357600080fd5b506015546104c5906001600160a01b031681565b34801561096357600080fd5b506103e86119f4565b34801561097857600080fd5b506008546001600160a01b03166104c5565b34801561099657600080fd5b50610498611b59565b6103e86109ad36600461391e565b611b68565b3480156109be57600080fd5b5061092a6109cd366004613969565b611e58565b3480156109de57600080fd5b506103e86109ed36600461399e565b61200b565b3480156109fe57600080fd5b5061047560125481565b348015610a1457600080fd5b506103e8610a233660046139d3565b6120a0565b348015610a3457600080fd5b50610a48610a43366004613687565b6120e4565b6040516104169190613a96565b348015610a6157600080fd5b50610498610a70366004613687565b612192565b348015610a8157600080fd5b506103e8610a90366004613687565b6122c7565b348015610aa157600080fd5b506103e8610ab03660046138c9565b6123a1565b348015610ac157600080fd5b5061047560135481565b348015610ad757600080fd5b50610475610ae63660046138c9565b6123f2565b348015610af757600080fd5b5061040a610b06366004613acb565b6123fd565b348015610b1757600080fd5b506018546104c5906001600160a01b031681565b348015610b3757600080fd5b506103e8610b463660046138c9565b61242b565b348015610b5757600080fd5b506103e8610b66366004613687565b6124c3565b348015610b7757600080fd5b506017546104c5906001600160a01b031681565b6103e8610b9936600461391e565b6124f2565b85610ba8816114b0565b6001600160a01b0316336001600160a01b03161480610bd45750610bd4610bce826114b0565b336123fd565b80610bef575033610be482610fb1565b6001600160a01b0316145b610c2f5760405162461bcd60e51b815260206004820152600c60248201526b139bdd081e5bdd5c8813919560a21b60448201526064015b60405180910390fd5b42821015610c6d5760405162461bcd60e51b815260206004820152600b60248201526a15549248195e1c1a5c995960aa1b6044820152606401610c26565b601554604080516020601f87018190048102820181019092528581526001600160a01b0390921691610cf191879087908190840183828082843760009201919091525050604080516020601f8d018190048102820181019092528b81528d935091508b908b90819084018382808284376000920191909152508992506126ae915050565b6001600160a01b031614610d355760405162461bcd60e51b815260206004820152600b60248201526a496e76616c69642055524960a81b6044820152606401610c26565b6000878152601960209081526040808320805460ff19166001179055601a9091529020610d63868883613b8c565b507f78ddccb8dc871c5a280b3930ed57e63f56ac66f1dd6845976e1c585662ca411a878787604051610d9793929190613c4b565b60405180910390a150505050505050565b600063152a902d60e11b6001600160e01b031983161480610dcd5750610dcd8261273e565b92915050565b6008546001600160a01b03163314610dfd5760405162461bcd60e51b8152600401610c2690613c81565b828114610e425760405162461bcd60e51b8152602060048201526013602482015272696e76616c69642061727261792073697a657360681b6044820152606401610c26565b60005b83811015610ea757610e95858583818110610e6257610e62613cb6565b9050602002016020810190610e7791906138c9565b848484818110610e8957610e89613cb6565b90506020020135610eae565b80610e9f81613ce2565b915050610e45565b5050505050565b6008546001600160a01b03163314610ed85760405162461bcd60e51b8152600401610c2690613c81565b60135481610ee96001546000540390565b610ef39190613cfb565b1115610f115760405162461bcd60e51b8152600401610c2690613d13565b610f1b828261278e565b5050565b606060028054610f2e90613b04565b80601f0160208091040260200160405190810160405280929190818152602001828054610f5a90613b04565b8015610fa75780601f10610f7c57610100808354040283529160200191610fa7565b820191906000526020600020905b815481529060010190602001808311610f8a57829003601f168201915b5050505050905090565b6000610fbc826127a8565b610fd9576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000611000826114b0565b9050806001600160a01b0316836001600160a01b0316036110345760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b0382161461106b5761104e81336123fd565b61106b576040516367d9dca160e11b815260040160405180910390fd5b6110768383836127d3565b505050565b6008546001600160a01b031633146110a55760405162461bcd60e51b8152600401610c2690613c81565b601b805460ff191682151590811790915560ff16156110e8576040517f1741519d9f9e2ebf5bb3b3ad7373b725e2cf5c3fb7865d390203b3f60a510cf490600090a15b50565b8060125460115481836110fe9190613d3b565b6111088284613d52565b11156111265760405162461bcd60e51b8152600401610c2690613d71565b6008546001600160a01b031633146111505760405162461bcd60e51b8152600401610c2690613c81565b505050601055565b61107683838361282f565b6000828152600a602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916111d85750604080518082019091526009546001600160a01b0381168252600160a01b90046001600160601b031660208201525b6020810151600090612710906111f7906001600160601b031687613d52565b6112019190613dcc565b91519350909150505b9250929050565b80600e54808261122033612a1a565b61122a9190613cfb565b11156112715760405162461bcd60e51b8152602060048201526016602482015275195e18d959591cc81c195c881d5cd95c881b1a5b5a5d60521b6044820152606401610c26565b601354826112826001546000540390565b61128c9190613cfb565b11156112aa5760405162461bcd60e51b8152600401610c2690613d13565b3233146112ec5760405162461bcd60e51b815260206004820152601060248201526f4e6f20626f747320616c6c6f7765647360801b6044820152606401610c26565b601b54610100900460ff166113335760405162461bcd60e51b815260206004820152600d60248201526c14d85b1948191a5cd8589b1959609a1b6044820152606401610c26565b82600b546113419190613d52565b3410156113605760405162461bcd60e51b8152600401610c2690613de0565b61107683612a45565b6008546001600160a01b031633146113935760405162461bcd60e51b8152600401610c2690613c81565b600c55565b611076838383604051806020016040528060008152506120a0565b6008546001600160a01b031633146113dd5760405162461bcd60e51b8152600401610c2690613c81565b6014611076828483613b8c565b80516060906000816001600160401b0381111561140957611409613774565b60405190808252806020026020018201604052801561145457816020015b60408051606081018252600080825260208083018290529282015282526000199092019101816114275790505b50905060005b8281146114a85761148385828151811061147657611476613cb6565b60200260200101516120e4565b82828151811061149557611495613cb6565b602090810291909101015260010161145a565b509392505050565b60006114bb82612a4f565b5192915050565b6008546001600160a01b031633146114ec5760405162461bcd60e51b8152600401610c2690613c81565b600f55565b601054601254826115028284613d3b565b61150c8284613d52565b111561152a5760405162461bcd60e51b8152600401610c2690613d71565b6008546001600160a01b031633146115545760405162461bcd60e51b8152600401610c2690613c81565b505050601155565b6008546001600160a01b031633146115865760405162461bcd60e51b8152600401610c2690613c81565b600d55565b6008546001600160a01b031633146115b55760405162461bcd60e51b8152600401610c2690613c81565b601580546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b031633146116015760405162461bcd60e51b8152600401610c2690613c81565b601880546001600160a01b0319166001600160a01b0392909216919091179055565b6014805461163090613b04565b80601f016020809104026020016040519081016040528092919081815260200182805461165c90613b04565b80156116a95780601f1061167e576101008083540402835291602001916116a9565b820191906000526020600020905b81548152906001019060200180831161168c57829003601f168201915b505050505081565b6008546001600160a01b031633146116db5760405162461bcd60e51b8152600401610c2690613c81565b601b805461ff0019166101008315158102919091179182905560ff910416156110e8576040517fd205ec1b5e5c538c620f5d7b91c14891192d8739d26af9e82731fc857ccc099090600090a150565b60006001600160a01b038216611753576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b031633146117a25760405162461bcd60e51b8152600401610c2690613c81565b6117ac6000612b69565b565b6008546001600160a01b031633146117d85760405162461bcd60e51b8152600401610c2690613c81565b601680546001600160a01b0319166001600160a01b0392909216919091179055565b600061180582612bbb565b6001600160401b031692915050565b6008546001600160a01b0316331461183e5760405162461bcd60e51b8152600401610c2690613c81565b600e55565b60105460115482906118558284613d3b565b61185f8284613d52565b111561187d5760405162461bcd60e51b8152600401610c2690613d71565b6008546001600160a01b031633146118a75760405162461bcd60e51b8152600401610c2690613c81565b505050601255565b606060008060006118bf8561172a565b90506000816001600160401b038111156118db576118db613774565b604051908082528060200260200182016040528015611904578160200160208202803683370190505b50905061192a604080516060810182526000808252602082018190529181019190915290565b60005b8386146119e857600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905292506119e05781516001600160a01b0316156119a157815194505b876001600160a01b0316856001600160a01b0316036119e057808387806001019850815181106119d3576119d3613cb6565b6020026020010181815250505b60010161192d565b50909695505050505050565b6008546001600160a01b03163314611a1e5760405162461bcd60e51b8152600401610c2690613c81565b60006064611a2d476050613d52565b611a379190613dcc565b905060006064611a48476014613d52565b611a529190613dcc565b6016546040519192506000916001600160a01b039091169084908381818185875af1925050503d8060008114611aa4576040519150601f19603f3d011682016040523d82523d6000602084013e611aa9565b606091505b50506018546040519192506000916001600160a01b039091169084908381818185875af1925050503d8060008114611afd576040519150601f19603f3d011682016040523d82523d6000602084013e611b02565b606091505b50509050818015611b105750805b611b535760405162461bcd60e51b81526020600482015260146024820152734661696c656420746f2073656e642066756e647360601b6044820152606401610c26565b50505050565b606060038054610f2e90613b04565b601b5460ff168015611b825750601b54610100900460ff16155b611bc15760405162461bcd60e51b815260206004820152601060248201526f141c995cd85b1948191a5cd8589b195960821b6044820152606401610c26565b82600d54611bcf9190613d52565b341015611bee5760405162461bcd60e51b8152600401610c2690613de0565b601554604080516020601f85018190048102820181019092528381526001600160a01b0390921691611c3d91859085908190840183828082843760009201919091525060019250612be6915050565b6001600160a01b031614611c825760405162461bcd60e51b815260206004820152600c60248201526b2737ba1034b73b32b9ba37b960a11b6044820152606401610c26565b6000611c8d33612a1a565b90506000611c9a33612bbb565b6001600160401b031690506000611cb18284613d3b565b90506000825b601254811015611d0857601154611ccf826001613cfb565b611cd99190613d52565b611ce38985613cfb565b10611cf657611cf3600183613cfb565b91505b80611d0081613ce2565b915050611cb7565b50611d138188613cfb565b601054909750611d238886613cfb565b1115611d715760405162461bcd60e51b815260206004820152601a60248201527f657863656564732070657220696e766573746f72206c696d69740000000000006044820152606401610c26565b60135487611d826001546000540390565b611d8c9190613cfb565b1115611daa5760405162461bcd60e51b8152600401610c2690613d13565b601254611db78285613cfb565b1115611df95760405162461bcd60e51b815260206004820152601160248201527045786365656473206d617820676966747360781b6044820152606401610c26565b611e4633611e078386613cfb565b6001600160a01b03909116600090815260056020526040902080546001600160401b03909216600160c01b026001600160c01b03909216919091179055565b611e4f87612a45565b50505050505050565b6060818310611e7a57604051631960ccad60e11b815260040160405180910390fd5b6000805480841115611e8a578093505b6000611e958761172a565b905084861015611eb45785850381811015611eae578091505b50611eb8565b5060005b6000816001600160401b03811115611ed257611ed2613774565b604051908082528060200260200182016040528015611efb578160200160208202803683370190505b50905081600003611f1157935061200492505050565b6000611f1c886120e4565b905060008160400151611f2d575080515b885b888114158015611f3f5750848714155b15611ff857600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615159181018290529350611ff05782516001600160a01b031615611fb157825191505b8a6001600160a01b0316826001600160a01b031603611ff05780848880600101995081518110611fe357611fe3613cb6565b6020026020010181815250505b600101611f2f565b50505092835250909150505b9392505050565b336001600160a01b038316036120345760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6120ab84848461282f565b6001600160a01b0383163b15611b53576120c784848484612c2d565b611b53576040516368d2bf6b60e11b815260040160405180910390fd5b60408051606080820183526000808352602080840182905283850182905284519283018552818352820181905292810183905290915060005483106121295792915050565b50600082815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615801592820192909252906121895792915050565b61200483612a4f565b606061219d826127a8565b6121e05760405162461bcd60e51b81526020600482015260146024820152731d1bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b6044820152606401610c26565b60008281526019602052604090205460ff1615612295576000828152601a60205260409020805461221090613b04565b80601f016020809104026020016040519081016040528092919081815260200182805461223c90613b04565b80156122895780601f1061225e57610100808354040283529160200191612289565b820191906000526020600020905b81548152906001019060200180831161226c57829003601f168201915b50505050509050919050565b60146122a083612d15565b6040516020016122b1929190613e0a565b6040516020818303038152906040529050919050565b806122d1816114b0565b6001600160a01b0316336001600160a01b031614806122f757506122f7610bce826114b0565b8061231257503361230782610fb1565b6001600160a01b0316145b61234d5760405162461bcd60e51b815260206004820152600c60248201526b139bdd081e5bdd5c8813919560a21b6044820152606401610c26565b60008281526019602052604090819020805460ff19169055517fe9305bd5d22611ad00576810772c860a45c727a6ceb9121bb6a81277cbfabcdb906123959084815260200190565b60405180910390a15050565b6008546001600160a01b031633146123cb5760405162461bcd60e51b8152600401610c2690613c81565b601780546001600160a01b0319166001600160a01b0383161790556110e881610258612e15565b6000610dcd82612a1a565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6008546001600160a01b031633146124555760405162461bcd60e51b8152600401610c2690613c81565b6001600160a01b0381166124ba5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c26565b6110e881612b69565b6008546001600160a01b031633146124ed5760405162461bcd60e51b8152600401610c2690613c81565b600b55565b82600f54808261250133612a1a565b61250b9190613cfb565b11156125525760405162461bcd60e51b8152602060048201526016602482015275195e18d959591cc81c195c881d5cd95c881b1a5b5a5d60521b6044820152606401610c26565b601354826125636001546000540390565b61256d9190613cfb565b111561258b5760405162461bcd60e51b8152600401610c2690613d13565b601b5460ff1680156125a55750601b54610100900460ff16155b6125e45760405162461bcd60e51b815260206004820152601060248201526f141c995cd85b1948191a5cd8589b195960821b6044820152606401610c26565b84600c546125f29190613d52565b3410156126115760405162461bcd60e51b8152600401610c2690613de0565b601554604080516020601f87018190048102820181019092528581526001600160a01b039092169161265d91879087908190840183828082843760009201829052509250612be6915050565b6001600160a01b0316146126a55760405162461bcd60e51b815260206004820152600f60248201526e139bdd081dda1a5d195b1a5cdd1959608a1b6044820152606401610c26565b610ea785612a45565b600061273361272d308686866040516020016126cd9493929190613e91565b60408051601f1981840301815282825280516020918201207f19457468657265756d205369676e6564204d6573736167653a0a33320000000084830152603c8085019190915282518085039091018152605c909301909152815191012090565b86612f12565b90505b949350505050565b60006001600160e01b031982166380ac58cd60e01b148061276f57506001600160e01b03198216635b5e139f60e01b145b80610dcd57506301ffc9a760e01b6001600160e01b0319831614610dcd565b610f1b828260405180602001604052806000815250612f2e565b6000805482108015610dcd575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061283a82612a4f565b9050836001600160a01b031681600001516001600160a01b0316146128715760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b038616148061288f575061288f85336123fd565b806128aa57503361289f84610fb1565b6001600160a01b0316145b9050806128ca57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0384166128f157604051633a954ecd60e21b815260040160405180910390fd5b6128fd600084876127d3565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b429092169190910217835587018084529220805491939091166129d15760005482146129d157805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610ea7565b6001600160a01b0316600090815260056020526040902054600160401b90046001600160401b031690565b6110e8338261278e565b604080516060810182526000808252602082018190529181019190915281600054811015612b5057600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290612b4e5780516001600160a01b031615612ae5579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215612b49579392505050565b612ae5565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160a01b0316600090815260056020526040902054600160c01b90046001600160401b031690565b6040516bffffffffffffffffffffffff1933606090811b8216602084015230901b1660348201526048810182905260009061200490612c27906068016126cd565b84612f12565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612c62903390899088908890600401613ed2565b6020604051808303816000875af1925050508015612c9d575060408051601f3d908101601f19168201909252612c9a91810190613f0f565b60015b612cfb573d808015612ccb576040519150601f19603f3d011682016040523d82523d6000602084013e612cd0565b606091505b508051600003612cf3576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612736565b606081600003612d3c5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612d665780612d5081613ce2565b9150612d5f9050600a83613dcc565b9150612d40565b6000816001600160401b03811115612d8057612d80613774565b6040519080825280601f01601f191660200182016040528015612daa576020820181803683370190505b5090505b841561273657612dbf600183613d3b565b9150612dcc600a86613f2c565b612dd7906030613cfb565b60f81b818381518110612dec57612dec613cb6565b60200101906001600160f81b031916908160001a905350612e0e600a86613dcc565b9450612dae565b6127106001600160601b0382161115612e835760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610c26565b6001600160a01b038216612ed95760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610c26565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600955565b6000806000612f2185856130f0565b915091506114a88161315b565b6000546001600160a01b038416612f5757604051622e076360e81b815260040160405180910390fd5b82600003612f785760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038416600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168b018116918217600160401b67ffffffffffffffff1990941690921783900481168b01811690920217909155858452600490925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b1561309b575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46130646000878480600101955087612c2d565b613081576040516368d2bf6b60e11b815260040160405180910390fd5b80821061301957826000541461309657600080fd5b6130e0565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a480821061309c575b506000908155611b539085838684565b60008082516041036131265760208301516040840151606085015160001a61311a87828585613311565b9450945050505061120a565b825160400361314f57602083015160408401516131448683836133fe565b93509350505061120a565b5060009050600261120a565b600081600481111561316f5761316f613f40565b036131775750565b600181600481111561318b5761318b613f40565b036131d85760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610c26565b60028160048111156131ec576131ec613f40565b036132395760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610c26565b600381600481111561324d5761324d613f40565b036132a55760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610c26565b60048160048111156132b9576132b9613f40565b036110e85760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610c26565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561334857506000905060036133f5565b8460ff16601b1415801561336057508460ff16601c14155b1561337157506000905060046133f5565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156133c5573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166133ee576000600192509250506133f5565b9150600090505b94509492505050565b6000806001600160ff1b0383168161341b60ff86901c601b613cfb565b905061342987828885613311565b935093505050935093915050565b60008083601f84011261344957600080fd5b5081356001600160401b0381111561346057600080fd5b60208301915083602082850101111561120a57600080fd5b6000806000806000806080878903121561349157600080fd5b8635955060208701356001600160401b03808211156134af57600080fd5b6134bb8a838b01613437565b909750955060408901359150808211156134d457600080fd5b506134e189828a01613437565b979a9699509497949695606090950135949350505050565b6001600160e01b0319811681146110e857600080fd5b60006020828403121561352157600080fd5b8135612004816134f9565b60008083601f84011261353e57600080fd5b5081356001600160401b0381111561355557600080fd5b6020830191508360208260051b850101111561120a57600080fd5b6000806000806040858703121561358657600080fd5b84356001600160401b038082111561359d57600080fd5b6135a98883890161352c565b909650945060208701359150808211156135c257600080fd5b506135cf8782880161352c565b95989497509550505050565b6001600160a01b03811681146110e857600080fd5b6000806040838503121561360357600080fd5b823561360e816135db565b946020939093013593505050565b60005b8381101561363757818101518382015260200161361f565b83811115611b535750506000910152565b6000815180845261366081602086016020860161361c565b601f01601f19169290920160200192915050565b6020815260006120046020830184613648565b60006020828403121561369957600080fd5b5035919050565b803580151581146136b057600080fd5b919050565b6000602082840312156136c757600080fd5b612004826136a0565b6000806000606084860312156136e557600080fd5b83356136f0816135db565b92506020840135613700816135db565b929592945050506040919091013590565b6000806040838503121561372457600080fd5b50508035926020909101359150565b6000806020838503121561374657600080fd5b82356001600160401b0381111561375c57600080fd5b61376885828601613437565b90969095509350505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156137b2576137b2613774565b604052919050565b600060208083850312156137cd57600080fd5b82356001600160401b03808211156137e457600080fd5b818501915085601f8301126137f857600080fd5b81358181111561380a5761380a613774565b8060051b915061381b84830161378a565b818152918301840191848101908884111561383557600080fd5b938501935b838510156138535784358252938501939085019061383a565b98975050505050505050565b6020808252825182820181905260009190848201906040850190845b818110156119e8576138b683855180516001600160a01b031682526020808201516001600160401b0316908301526040908101511515910152565b928401926060929092019160010161387b565b6000602082840312156138db57600080fd5b8135612004816135db565b6020808252825182820181905260009190848201906040850190845b818110156119e857835183529284019291840191600101613902565b60008060006040848603121561393357600080fd5b8335925060208401356001600160401b0381111561395057600080fd5b61395c86828701613437565b9497909650939450505050565b60008060006060848603121561397e57600080fd5b8335613989816135db565b95602085013595506040909401359392505050565b600080604083850312156139b157600080fd5b82356139bc816135db565b91506139ca602084016136a0565b90509250929050565b600080600080608085870312156139e957600080fd5b84356139f4816135db565b9350602085810135613a05816135db565b93506040860135925060608601356001600160401b0380821115613a2857600080fd5b818801915088601f830112613a3c57600080fd5b813581811115613a4e57613a4e613774565b613a60601f8201601f1916850161378a565b91508082528984828501011115613a7657600080fd5b808484018584013760008482840101525080935050505092959194509250565b81516001600160a01b031681526020808301516001600160401b03169082015260408083015115159082015260608101610dcd565b60008060408385031215613ade57600080fd5b8235613ae9816135db565b91506020830135613af9816135db565b809150509250929050565b600181811c90821680613b1857607f821691505b602082108103613b3857634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561107657600081815260208120601f850160051c81016020861015613b655750805b601f850160051c820191505b81811015613b8457828155600101613b71565b505050505050565b6001600160401b03831115613ba357613ba3613774565b613bb783613bb18354613b04565b83613b3e565b6000601f841160018114613beb5760008515613bd35750838201355b600019600387901b1c1916600186901b178355610ea7565b600083815260209020601f19861690835b82811015613c1c5786850135825560209485019460019092019101613bfc565b5086821015613c395760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b83815260406020820152816040820152818360608301376000818301606090810191909152601f909201601f1916010192915050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201613cf457613cf4613ccc565b5060010190565b60008219821115613d0e57613d0e613ccc565b500190565b6020808252600e908201526d4578636565647320737570706c7960901b604082015260600190565b600082821015613d4d57613d4d613ccc565b500390565b6000816000190483118215151615613d6c57613d6c613ccc565b500290565b60208082526025908201527f496d70726f7065722076616c75657320666f7220696e766573746f722073657460408201526474696e677360d81b606082015260800190565b634e487b7160e01b600052601260045260246000fd5b600082613ddb57613ddb613db6565b500490565b60208082526010908201526f4e6f7420656e6f756768206d6f6e657960801b604082015260600190565b6000808454613e1881613b04565b60018281168015613e305760018114613e4557613e74565b60ff1984168752821515830287019450613e74565b8860005260208060002060005b85811015613e6b5781548a820152908401908201613e52565b50505082870194505b505050508351613e8881836020880161361c565b01949350505050565b6001600160601b03198560601b16815283601482015260008351613ebc81603485016020880161361c565b6034920191820192909252605401949350505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613f0590830184613648565b9695505050505050565b600060208284031215613f2157600080fd5b8151612004816134f9565b600082613f3b57613f3b613db6565b500690565b634e487b7160e01b600052602160045260246000fdfea2646970667358221220f4429fb9ae295ac1bf2584bafc581fdd1e5b45c68f0011d30845bcf28532fdff64736f6c634300080f0033

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

000000000000000000000000cb83a0e4635f4483f2eea00345496e11f633c0b1000000000000000000000000c5b301800424c80f73265ed51cd4d5b2c1c18252000000000000000000000000dca6c56daaf6f618422e526e06cd57fc08b6ee050000000000000000000000006cde8a29b8f02a6d4fff3d8786114d742f1f7f16

-----Decoded View---------------
Arg [0] : _signatureWallet (address): 0xcb83a0e4635F4483F2Eea00345496E11F633c0B1
Arg [1] : _withdrawalWallet (address): 0xC5B301800424C80f73265eD51cD4d5b2c1c18252
Arg [2] : _paymentSplitter (address): 0xdCa6C56dAaF6f618422E526E06Cd57fC08B6ee05
Arg [3] : _secondaryWallet (address): 0x6Cde8A29b8f02a6d4fFF3D8786114D742f1f7F16

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 000000000000000000000000cb83a0e4635f4483f2eea00345496e11f633c0b1
Arg [1] : 000000000000000000000000c5b301800424c80f73265ed51cd4d5b2c1c18252
Arg [2] : 000000000000000000000000dca6c56daaf6f618422e526e06cd57fc08b6ee05
Arg [3] : 0000000000000000000000006cde8a29b8f02a6d4fff3d8786114d742f1f7f16


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

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