ETH Price: $3,130.66 (-0.19%)

Token

Hidden Kitten City (HKC)
 

Overview

Max Total Supply

3,334 HKC

Holders

651

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
steezenson.eth
Balance
1 HKC
0x608798e4360Fd6E27F5574A0422637026f1335e5
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Storytelling is at the core of Hidden Kitten City, a world created by Bitiocracy and David Silverman, director of "The Simpsons" movie and show for over 35 years.

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
HiddenKittenCity

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 13 : HiddenKittenCity.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

// Hidden Kitten City by Bitiocracy

import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol";
import "erc721a/contracts/extensions/ERC721AQueryable.sol";
import "./ERC721OperatorFilter.sol";
import "@openzeppelin/contracts/access/Ownable.sol";



error InsufficientPayment();

interface NftContract {
    function balanceOf(address) external view returns (uint256);
}



contract HiddenKittenCity is
    Ownable,
    EIP712, 
    ERC721OperatorFilter,
    ERC721AQueryable {
    // EIP712 Feature
    bytes32 public constant TYPEHASH =
        keccak256("PassReq(address receiver,uint256 amount)");
    struct PassReq {
        address receiver;
        uint256 amount;
    }

     

    // CockaDoodles Contract Addresss for Mint
    NftContract public cNft =
        NftContract(0xa86359c1aD8c0483A1A49b37ea3646dEaF6e342A);
   
            
//bitiocracy
    address private constant core1Address =
        0x3002E0E7Db1FB99072516033b8dc2BE9897178bA;
    uint256 private constant core1Shares = 75500;

    address private constant core2Address =
        0xCe335de9Adc23EB0F4C034ec3428b81D057F2316;
    uint256 private constant core2Shares = 19000;

    address private constant core3Address =
        0xA55c2F8Af10d603976dEcA0B61Cd87ba2F9C6492;
    uint256 private constant core3Shares = 3000;

    address private constant core4Address =
        0x71db1f8E62BB3D2B77b00077b434a477CE966f2b;
    uint256 private constant core4Shares = 2000;

    address private constant core5Address =
        0xc8b0D32bc09Fb11C12C82582825C1e6b624822b8;
    uint256 private constant core5Shares = 500;    



    // Merkle Tree Roots
    bytes32 public merkleRootTier1;
    bytes32 public merkleRootTier2;
    bytes32 public merkleRootPublic;

    string public baseURI;
    uint256 public MAX_SUPPLY = 8888;
    uint256 public MAX_SUPPLY_PLUS_ONE = 8889;
    uint256 public MAX_TX_PLUS_ONE = 3; //actual value 2 for public sale tx
    uint256 public price = 0.088 ether;
    address public store;

    uint256 public MAX_PRESALE_MINTS = 2;
    uint256 public MAX_PRESALE_MINTS_PLUS_ONE = 3;  //actual value 2 for public sale tx 
    uint256 public GENERAL_MEOWLIST_SUPPLY = 6000;
    uint256 public GENERAL_MEOWLIST_SUPPLY_PLUS_ONE = 6001;
    uint256 public TOTAL_MEOWLIST_SUPPLY = 8000;
    uint256 public TOTAL_MEOWLIST_SUPPLY_PLUS_ONE = 8001;
    
    uint256 public generalMeowMinted = 0;


    mapping(address => uint256) private premintedAmount; 
    mapping(address => uint256) private premintedAmountCD; 

    uint256 private constant baseMod = 100000;

    event SetStore(address store);
    event SetBaseURI(string baseURI);
    event MintMeowListReservedHash(address claimer, uint256 amount);
    event MintMeowListGeneralMerkle(address claimer, uint256 amount);
    event MintMeowListReservedMerkle(address claimer, uint256 amount);
    event MintPublicMerkle(address claimer, uint256 amount);
    event Mint(address claimer, uint256 amount);


    bool public presaleOn = false;
    bool public mainSaleOn = false;
    bool public openSaleOn = false;

    constructor(
        string memory __name,
        string memory __symbol,
        string memory __baseURI
    ) ERC721A(__name, __symbol) EIP712(__name, "1") {
        baseURI = __baseURI;
    }

    modifier onlyOwnerOrStore() {
        require(
            store == msg.sender || owner() == msg.sender,
            "caller is neither store nor owner"
        );
        _;
    }

    modifier onlyOwnerOrTeam() {
        require(
            core1Address == msg.sender || core2Address == msg.sender || core3Address == msg.sender ||  core5Address == msg.sender|| owner() == msg.sender,
            "caller is neither Team Wallet nor Owner"
        );
        _;
    }

    modifier callerIsUser() {
        require(tx.origin == msg.sender, "The caller is another contract");
        _;
    } 

    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 tokenId,
        uint256 quantity
    ) internal virtual override(ERC721A, ERC721OperatorFilter) {
        
        super._beforeTokenTransfers(from, to, tokenId, quantity);
    }

    /**
        Lowers the Max Supply
     */
    function lowerMaxSupply(uint256 _newmax) external onlyOwner {
        require(_newmax < MAX_SUPPLY,"Can only lower supply");
        require(_newmax > totalSupply(),"Can't set below current");
        MAX_SUPPLY = _newmax;
        MAX_SUPPLY_PLUS_ONE = _newmax + 1;
    }


    function setTotalMeowList (uint256 _newtotal) external onlyOwner {
        TOTAL_MEOWLIST_SUPPLY = _newtotal;
        TOTAL_MEOWLIST_SUPPLY_PLUS_ONE = _newtotal +1;
    }

    function setGeneralMeowList (uint256 _newgeneral) external onlyOwner {
        GENERAL_MEOWLIST_SUPPLY = _newgeneral;
        GENERAL_MEOWLIST_SUPPLY_PLUS_ONE = _newgeneral +1;
    }

    function setStore(address _store) external onlyOwner {
        store = _store;
        emit SetStore(_store);
    }

    function setBaseURI(string memory __baseURI) external onlyOwner {
        baseURI = __baseURI;
        emit SetBaseURI(__baseURI);
    }

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

    function setPrice(uint256 _newPrice) external onlyOwner {
        price = _newPrice;
    }

    function amountPreminted(address _address) external view returns (uint256) {
        return premintedAmount[_address];
    }

    function amountPremintedCD(address _address) external view returns (uint256) {
        return premintedAmountCD[_address];
    }

    // Sale Toggles

    function togglePresale() external onlyOwner {
        presaleOn = !presaleOn;
    }

    function toggleMainSale() external onlyOwner {
        mainSaleOn = !mainSaleOn;
    }    

    function toggleOpenSale() external onlyOwner {
        openSaleOn = !openSaleOn;
    }



    // Merkel Tree Functions

    function _generateMerkleLeaf(address account) internal pure returns (bytes32){
        return keccak256(abi.encodePacked(account) );
    }


    // Tier 1

    /**
        Merkle Tree for Reserved MeowList (Tier 1)
     */    
    function setMerkleRootReserved( bytes32 _merkleRoot ) external onlyOwner {
        merkleRootTier1 = _merkleRoot;
    }



    /**
        MeowList Sale with Merkle Tree
     */
    function mintMeowListReservedMerkle(
        uint256 amount, 
        bytes32[] calldata proof
    ) external payable {
        require(presaleOn, "Presale Not Live");

        //Just checking against total meowlist numbers.
        require(totalSupply() + amount < TOTAL_MEOWLIST_SUPPLY_PLUS_ONE, "Exceeds max supply");

        uint256 totalClaim = premintedAmount[msg.sender] + amount;
        require(totalClaim < MAX_PRESALE_MINTS_PLUS_ONE, "Over max presale allowed");

        uint256 generalAmount = 0;
        if (totalClaim > 1)
        {
            generalAmount = totalClaim - 1;
            if (generalAmount > amount) {
                generalAmount = amount;
            }
        } 
        require(generalMeowMinted + generalAmount < GENERAL_MEOWLIST_SUPPLY_PLUS_ONE, "Exceeds General Meowlist");

        uint256 cost = amount * price;
        if (msg.value < cost) revert InsufficientPayment();

        require( 
            MerkleProof.verify(proof, merkleRootTier1, _generateMerkleLeaf(msg.sender)), "User not in WL" 
        );

        premintedAmount[msg.sender] += amount;
        _safeMint(msg.sender, amount);

        generalMeowMinted += generalAmount;

        emit MintMeowListReservedMerkle(msg.sender, amount);
    }



    // Tier 2

    /**
        Merkle Tree for General MeowList (Tier2)
     */    
    function setMerkleRootGeneral( bytes32 _merkleRoot ) external onlyOwner {
        merkleRootTier2 = _merkleRoot;
    }



    /**
        MeowList Tier 2 Sale with Merkle Tree
     */
    function mintMeowListGeneralMerkle(
        uint256 amount, 
        bytes32[] calldata proof
    ) external payable {
        require(presaleOn, "Presale Not Live");
        require(totalSupply() + amount < TOTAL_MEOWLIST_SUPPLY_PLUS_ONE, "Exceeds max supply");

        require(premintedAmount[msg.sender] + amount < MAX_PRESALE_MINTS_PLUS_ONE, "Over max presale allowed");
        require(generalMeowMinted + amount < GENERAL_MEOWLIST_SUPPLY_PLUS_ONE, "Exceeds General Meowlist");

        uint256 cost = amount * price;
        if (msg.value < cost) revert InsufficientPayment();

        require( 
            MerkleProof.verify(proof, merkleRootTier2, _generateMerkleLeaf(msg.sender)), "User not in WL" 
        );

        premintedAmount[msg.sender] += amount;
        _safeMint(msg.sender, amount);

        generalMeowMinted += amount;

        emit MintMeowListGeneralMerkle(msg.sender, amount);
    }



    /**
        Mint Tier 1 CockaDoodle Mint - Abilty to set amount by wallet
     */
    function mintMeowListCockadoodleHash(
        uint256 amount,
        uint256 _passAmount,
        uint8 vSig,
        bytes32 rSig,
        bytes32 sSig
    ) external payable {

        require(presaleOn, "Presale Not Live");


        //Just checking against total meowlist numbers.
        require(totalSupply() + amount < TOTAL_MEOWLIST_SUPPLY_PLUS_ONE, "Exceeds max supply");

        uint256 totalPassAmount = (2 * _passAmount);
        uint256 totalClaim = premintedAmountCD[msg.sender] + amount;
        require(totalClaim <= totalPassAmount, "Claiming Too Many");

        // add up total amount, subtract tier1 amount to see how many are in tier 2
        uint256 generalAmount = 0;
        if (totalClaim > _passAmount)
        {
            generalAmount = totalClaim - _passAmount;
            if (generalAmount > amount) {
                generalAmount = amount;
            }
        } 
        require(generalMeowMinted + generalAmount < GENERAL_MEOWLIST_SUPPLY_PLUS_ONE );


        uint256 _balance = cNft.balanceOf(msg.sender);
        require( (totalClaim * 3) <= _balance, "Claiming Too Many");


        uint256 cost = amount * price;
        if (msg.value < cost) revert InsufficientPayment();

        
        // hash verification
        bytes32 digest = _hashTypedDataV4(
            keccak256(abi.encode(TYPEHASH, msg.sender, _passAmount))
        );
        address signer = ecrecover(digest, vSig, rSig, sSig);
        require(signer == owner(), "Signature is not from the owner");


        premintedAmountCD[msg.sender] += amount;

        _safeMint(msg.sender, amount);

        generalMeowMinted += generalAmount;

        emit MintMeowListReservedHash(msg.sender, amount);

    }


    /**
        Mint Tier 1 CockaDoodle Mint - No Wallet Check - set amount by wallet
     */
    function mintMeowListCockadoodleNoCheckHash(
        uint256 amount,
        uint256 _passAmount,
        uint8 vSig,
        bytes32 rSig,
        bytes32 sSig
    ) external payable {

        require(presaleOn, "Presale Not Live");


        //Just checking against total meowlist numbers.
        require(totalSupply() + amount < TOTAL_MEOWLIST_SUPPLY_PLUS_ONE, "Exceeds max supply");

        uint256 totalPassAmount = (2 * _passAmount);     
        uint256 totalClaim = premintedAmountCD[msg.sender] + amount;
        require(totalClaim <= totalPassAmount, "Claiming Too Many");

        // add up total amount, subtract tier1 amount to see how many are in tier 2
        uint256 generalAmount = 0;
        if (totalClaim > _passAmount)
        {
            generalAmount = totalClaim - _passAmount;
            if (generalAmount > amount) {
                generalAmount = amount;
            }
        } 
        require(generalMeowMinted + generalAmount < GENERAL_MEOWLIST_SUPPLY_PLUS_ONE );
        

        uint256 cost = amount * price;
        if (msg.value < cost) revert InsufficientPayment();


        // hash verification
        bytes32 digest = _hashTypedDataV4(
            keccak256(abi.encode(TYPEHASH, msg.sender, _passAmount))
        );
        address signer = ecrecover(digest, vSig, rSig, sSig);
        require(signer == owner(), "Signature is not from the owner");


        premintedAmountCD[msg.sender] += amount;

        _safeMint(msg.sender, amount);

        generalMeowMinted += generalAmount;

        emit MintMeowListReservedHash(msg.sender, amount);

    }

    // Merkel Tree Public
    function setMerkleRootPublic( bytes32 _merkleRoot ) external onlyOwner {
        merkleRootPublic = _merkleRoot;
    }



    /**
        Public Sale with Merkle Tree
     */
    function mintPublicMerkle(
        uint256 amount, 
        bytes32[] calldata proof
    ) external payable {
        require(mainSaleOn, "Main Sale Not Live");
        require(amount < MAX_TX_PLUS_ONE, "Over max public tx");
        require(totalSupply() + amount < MAX_SUPPLY_PLUS_ONE, "Exceeds Supply");

        uint256 cost = amount * price;
        if (msg.value < cost) revert InsufficientPayment();

        require( 
            MerkleProof.verify(proof, merkleRootPublic, _generateMerkleLeaf(msg.sender)), "User not in Merkle" 
        );


        _safeMint(msg.sender, amount);

  
        emit MintPublicMerkle(msg.sender, amount);
    }
 




    /**
        open mint
     */
    function mint(uint256 amount) external payable callerIsUser {
        require(openSaleOn, "Open Sale Not On");
        require(totalSupply() + amount < MAX_SUPPLY_PLUS_ONE, "Exceeds max supply");
        require(amount < MAX_TX_PLUS_ONE, "Over Max per Mint");

        uint256 cost = amount * price;
        if (msg.value < cost) revert InsufficientPayment();


        _safeMint(msg.sender, amount);

        emit Mint(msg.sender, amount);
    }

    // BACKUP STORE

    /**
        Mint with external store function (backup)
     */
    function mintStore(address to, uint256 amount) external onlyOwnerOrStore {
        require(totalSupply() + amount < MAX_SUPPLY_PLUS_ONE, "Exceeds max supply");

        _safeMint(to, amount);

        emit Mint(to, amount);
    }


    //  **** Withdraw Functions

    /**
        Main Withdraw
     */
    function withdrawCore() external onlyOwnerOrTeam {
        uint256 balance = address(this).balance;
        require(balance > 0);

        _splitAll(balance);

    }

    function _splitAll(uint256 _amount) private {
        uint256 singleShare = _amount / baseMod;
        _withdraw(core1Address, singleShare * core1Shares);
        _withdraw(core2Address, singleShare * core2Shares);
        _withdraw(core3Address, singleShare * core3Shares);
        _withdraw(core4Address, singleShare * core4Shares);
        _withdraw(core5Address, address(this).balance);
    }

    /**
        Backup Withdrawal
     */
    function withdrawBU() external onlyOwner {
        uint256 balance = address(this).balance;
        require(balance > 0);

        _withdraw(core1Address, balance);
    }

    function _withdraw(address _address, uint256 _amount) private {
        payable(_address).transfer(_amount);
    }    


}

File 2 of 13 : ERC721OperatorFilter.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "erc721a/contracts/extensions/ERC721AQueryable.sol";

import "./IOperatorFilter.sol";

abstract contract ERC721OperatorFilter is ERC721A, Ownable {
    IOperatorFilter private operatorFilter_;

    function setOperatorFilter(IOperatorFilter filter) public onlyOwner {
        operatorFilter_ = filter;
    }

    function operatorFilter() public view returns (IOperatorFilter) {
        return operatorFilter_;
    }

    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 tokenId,
        uint256 quantity
    ) internal virtual override(ERC721A) {
        if (
            from != address(0) &&
            to != address(0) &&
            !_mayTransfer(msg.sender, tokenId)
        ) {
            revert("ERC721OperatorFilter: illegal operator");
        }
        super._beforeTokenTransfers(from, to, tokenId, quantity);
    }

    function _mayTransfer(address operator, uint256 tokenId)
        private
        view
        returns (bool)
    {
        IOperatorFilter filter = operatorFilter_;
        if (address(filter) == address(0)) return true;
        if (operator == ownerOf(tokenId)) return true;
        return filter.mayTransfer(msg.sender);
    }
}

File 3 of 13 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

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

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`,
     * consuming from one or the other at each step according to the instructions given by
     * `proofFlags`.
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 4 of 13 : draft-EIP712.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/draft-EIP712.sol)

pragma solidity ^0.8.0;

import "./ECDSA.sol";

/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,
 * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding
 * they need in their contracts using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * _Available since v3.4._
 */
abstract contract EIP712 {
    /* solhint-disable var-name-mixedcase */
    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
    // invalidate the cached domain separator if the chain id changes.
    bytes32 private immutable _CACHED_DOMAIN_SEPARATOR;
    uint256 private immutable _CACHED_CHAIN_ID;
    address private immutable _CACHED_THIS;

    bytes32 private immutable _HASHED_NAME;
    bytes32 private immutable _HASHED_VERSION;
    bytes32 private immutable _TYPE_HASH;

    /* solhint-enable var-name-mixedcase */

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    constructor(string memory name, string memory version) {
        bytes32 hashedName = keccak256(bytes(name));
        bytes32 hashedVersion = keccak256(bytes(version));
        bytes32 typeHash = keccak256(
            "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
        );
        _HASHED_NAME = hashedName;
        _HASHED_VERSION = hashedVersion;
        _CACHED_CHAIN_ID = block.chainid;
        _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion);
        _CACHED_THIS = address(this);
        _TYPE_HASH = typeHash;
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        if (address(this) == _CACHED_THIS && block.chainid == _CACHED_CHAIN_ID) {
            return _CACHED_DOMAIN_SEPARATOR;
        } else {
            return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION);
        }
    }

    function _buildDomainSeparator(
        bytes32 typeHash,
        bytes32 nameHash,
        bytes32 versionHash
    ) private view returns (bytes32) {
        return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this)));
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash);
    }
}

File 5 of 13 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

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

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

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

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

pragma solidity ^0.8.4;

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

/**
 * @title ERC721AQueryable.
 *
 * @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`
     * - `extraData = 0`
     *
     * If the `tokenId` is burned:
     *
     * - `addr = <Address of owner before token was burned>`
     * - `startTimestamp = <Timestamp when token was burned>`
     * - `burned = true`
     * - `extraData = <Extra data when token was burned>`
     *
     * Otherwise:
     *
     * - `addr = <Address of owner>`
     * - `startTimestamp = <Timestamp of start of ownership>`
     * - `burned = false`
     * - `extraData = <Extra data at start of ownership>`
     */
    function explicitOwnershipOf(uint256 tokenId) public view virtual override returns (TokenOwnership memory) {
        TokenOwnership memory ownership;
        if (tokenId < _startTokenId() || tokenId >= _nextTokenId()) {
            return ownership;
        }
        ownership = _ownershipAt(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[] calldata tokenIds)
        external
        view
        virtual
        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 virtual override returns (uint256[] memory) {
        unchecked {
            if (start >= stop) revert InvalidQueryRange();
            uint256 tokenIdsIdx;
            uint256 stopLimit = _nextTokenId();
            // Set `start = max(start, _startTokenId())`.
            if (start < _startTokenId()) {
                start = _startTokenId();
            }
            // Set `stop = min(stop, stopLimit)`.
            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 = _ownershipAt(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 collections should be fine).
     */
    function tokensOfOwner(address owner) external view virtual 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 = _ownershipAt(i);
                if (ownership.burned) {
                    continue;
                }
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    tokenIds[tokenIdsIdx++] = i;
                }
            }
            return tokenIds;
        }
    }
}

File 7 of 13 : IOperatorFilter.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.8;

interface IOperatorFilter {
    function mayTransfer(address operator) external view returns (bool);
}

File 8 of 13 : 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 13 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        return _tokenApprovals[tokenId].value;
    }

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom}
     * for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _operatorApprovals[_msgSenderERC721A()][operator] = approved;
        emit ApprovalForAll(_msgSenderERC721A(), operator, approved);
    }

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

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

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

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

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

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token
     * by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable virtual override {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

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

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token
     * by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement
     * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public payable virtual override {
        transferFrom(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

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

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

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

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

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

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

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

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

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        address from = address(uint160(prevOwnershipPacked));

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Called during each token transfer to set the 24bit `extraData` field.
     * Intended to be overridden by the cosumer contract.
     *
     * `previousExtraData` - the value of `extraData` before transfer.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _extraData(
        address from,
        address to,
        uint24 previousExtraData
    ) internal view virtual returns (uint24) {}

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

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

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

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

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

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

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

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

pragma solidity ^0.8.4;

import '../IERC721A.sol';

/**
 * @dev Interface of ERC721AQueryable.
 */
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`
     * - `extraData = 0`
     *
     * If the `tokenId` is burned:
     *
     * - `addr = <Address of owner before token was burned>`
     * - `startTimestamp = <Timestamp when token was burned>`
     * - `burned = true`
     * - `extraData = <Extra data when token was burned>`
     *
     * Otherwise:
     *
     * - `addr = <Address of owner>`
     * - `startTimestamp = <Timestamp of start of ownership>`
     * - `burned = false`
     * - `extraData = <Extra data at start of ownership>`
     */
    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 collections should be fine).
     */
    function tokensOfOwner(address owner) external view returns (uint256[] memory);
}

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

pragma solidity ^0.8.4;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../Strings.sol";

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"__name","type":"string"},{"internalType":"string","name":"__symbol","type":"string"},{"internalType":"string","name":"__baseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"InsufficientPayment","type":"error"},{"inputs":[],"name":"InvalidQueryRange","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"claimer","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Mint","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"claimer","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"MintMeowListGeneralMerkle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"claimer","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"MintMeowListReservedHash","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"claimer","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"MintMeowListReservedMerkle","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"claimer","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"MintPublicMerkle","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"string","name":"baseURI","type":"string"}],"name":"SetBaseURI","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"store","type":"address"}],"name":"SetStore","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"GENERAL_MEOWLIST_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"GENERAL_MEOWLIST_SUPPLY_PLUS_ONE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PRESALE_MINTS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_PRESALE_MINTS_PLUS_ONE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY_PLUS_ONE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TX_PLUS_ONE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_MEOWLIST_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TOTAL_MEOWLIST_SUPPLY_PLUS_ONE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"amountPreminted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"amountPremintedCD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cNft","outputs":[{"internalType":"contract NftContract","name":"","type":"address"}],"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":"uint24","name":"extraData","type":"uint24"}],"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":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"generalMeowMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newmax","type":"uint256"}],"name":"lowerMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mainSaleOn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRootPublic","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRootTier1","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRootTier2","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"_passAmount","type":"uint256"},{"internalType":"uint8","name":"vSig","type":"uint8"},{"internalType":"bytes32","name":"rSig","type":"bytes32"},{"internalType":"bytes32","name":"sSig","type":"bytes32"}],"name":"mintMeowListCockadoodleHash","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint256","name":"_passAmount","type":"uint256"},{"internalType":"uint8","name":"vSig","type":"uint8"},{"internalType":"bytes32","name":"rSig","type":"bytes32"},{"internalType":"bytes32","name":"sSig","type":"bytes32"}],"name":"mintMeowListCockadoodleNoCheckHash","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mintMeowListGeneralMerkle","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mintMeowListReservedMerkle","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"}],"name":"mintPublicMerkle","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintStore","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openSaleOn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operatorFilter","outputs":[{"internalType":"contract IOperatorFilter","name":"","type":"address"}],"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":"presaleOn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"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":"_newgeneral","type":"uint256"}],"name":"setGeneralMeowList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRootGeneral","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRootPublic","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRootReserved","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IOperatorFilter","name":"filter","type":"address"}],"name":"setOperatorFilter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_store","type":"address"}],"name":"setStore","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newtotal","type":"uint256"}],"name":"setTotalMeowList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"store","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":[],"name":"toggleMainSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"toggleOpenSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"togglePresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawBU","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawCore","outputs":[],"stateMutability":"nonpayable","type":"function"}]

610140604052600a80546001600160a01b03191673a86359c1ad8c0483a1a49b37ea3646deaf6e342a1790556122b8600f556122b960105560036011819055670138a388a43c00006012556002601455601555611770601655611771601755611f40601855611f416019556000601a55601d805462ffffff191690553480156200008857600080fd5b5060405162003f4338038062003f43833981016040819052620000ab916200037d565b82604051806040016040528060018152602001603160f81b81525084848160029080519060200190620000e09291906200020a565b508051620000f69060039060208401906200020a565b505060008055506200010833620001b8565b815160208084019190912082518383012060e08290526101008190524660a0818152604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81880181905281830187905260608201869052608082019490945230818401528151808203909301835260c00190528051940193909320919290916080523060c0526101205250508251620001ae9250600e915060208401906200020a565b505050506200044b565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805462000218906200040e565b90600052602060002090601f0160209004810192826200023c576000855562000287565b82601f106200025757805160ff191683800117855562000287565b8280016001018555821562000287579182015b82811115620002875782518255916020019190600101906200026a565b506200029592915062000299565b5090565b5b808211156200029557600081556001016200029a565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620002d857600080fd5b81516001600160401b0380821115620002f557620002f5620002b0565b604051601f8301601f19908116603f01168101908282118183101715620003205762000320620002b0565b816040528381526020925086838588010111156200033d57600080fd5b600091505b8382101562000361578582018301518183018401529082019062000342565b83821115620003735760008385830101525b9695505050505050565b6000806000606084860312156200039357600080fd5b83516001600160401b0380821115620003ab57600080fd5b620003b987838801620002c6565b94506020860151915080821115620003d057600080fd5b620003de87838801620002c6565b93506040860151915080821115620003f557600080fd5b506200040486828701620002c6565b9150509250925092565b600181811c908216806200042357607f821691505b602082108114156200044557634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e0516101005161012051613aa86200049b6000396000612e3801526000612e8701526000612e6201526000612dbb01526000612de501526000612e0f0152613aa86000f3fe6080604052600436106103e45760003560e01c80638462151c11610208578063b2d56c8011610118578063d783925b116100ab578063f6398c191161007a578063f6398c1914610b14578063f7288a3b14610b34578063f7a528dc14610b4a578063f952283514610b60578063fa03979514610b8057600080fd5b8063d783925b14610a55578063de1444c214610a75578063e985e9c514610aab578063f2fde38b14610af457600080fd5b8063c36554ce116100e7578063c36554ce146109eb578063c4e9374d14610a00578063c87b56dd14610a20578063c95853e114610a4057600080fd5b8063b2d56c801461096b578063b30d65971461098b578063b88d4fde146109ab578063c23dc68f146109be57600080fd5b806396fdbec21161019b5780639edede9f1161016a5780639edede9f146108d7578063a035b1fe146108ec578063a0712d6814610902578063a22cb46514610915578063a3a5bfb21461093557600080fd5b806396fdbec214610861578063975057e71461088157806399a2557a146108a15780639acaefe3146108c157600080fd5b80638da5cb5b116101d75780638da5cb5b146107f857806391b7f5ed146108165780639208383a1461083657806395d89b411461084c57600080fd5b80638462151c1461078057806386543be2146107ad5780638836581c146107cc5780638a938262146107e257600080fd5b806334393743116103035780636352211e11610296578063715018a611610265578063715018a61461070c5780637282ce3314610721578063805824321461074157806381f07c901461075457806382d5b2491461076a57600080fd5b80636352211e14610699578063689843e0146106b95780636c0360eb146106d757806370a08231146106ec57600080fd5b806342842e0e116102d257806342842e0e1461061957806352b944911461062c57806355f804b31461064c5780635bbb21771461066c57600080fd5b806334393743146105a757806337c5df90146105bc5780633b639e6f146105d25780634099a7ea1461060657600080fd5b806318160ddd1161037b57806323b872dd1161034a57806323b872dd146105555780632a3242ff1461056857806332cb6b0c1461057b578063337da94b1461059157600080fd5b806318160ddd146104f95780631872566c146105125780631ad874b4146105255780632233a45b1461053f57600080fd5b8063095ea7b3116103b7578063095ea7b31461049a578063128bd9f9146104ad57806312b69d47146104c257806317b03da4146104e657600080fd5b806301ffc9a7146103e957806306fdde031461041e578063081812fc14610440578063087cbd4014610478575b600080fd5b3480156103f557600080fd5b50610409610404366004613313565b610ba0565b60405190151581526020015b60405180910390f35b34801561042a57600080fd5b50610433610bf2565b6040516104159190613388565b34801561044c57600080fd5b5061046061045b36600461339b565b610c84565b6040516001600160a01b039091168152602001610415565b34801561048457600080fd5b506104986104933660046133c9565b610cc8565b005b6104986104a83660046133e6565b610d25565b3480156104b957600080fd5b50610498610dc5565b3480156104ce57600080fd5b506104d860195481565b604051908152602001610415565b6104986104f4366004613412565b610df9565b34801561050557600080fd5b50600154600054036104d8565b610498610520366004613412565b611183565b34801561053157600080fd5b50601d546104099060ff1681565b34801561054b57600080fd5b506104d860165481565b610498610563366004613461565b611444565b6104986105763660046134ee565b6115e2565b34801561058757600080fd5b506104d8600f5481565b34801561059d57600080fd5b506104d8600d5481565b3480156105b357600080fd5b5061049861183a565b3480156105c857600080fd5b506104d8601a5481565b3480156105de57600080fd5b506104d87f2e855bec69f33c0bd0e3370535173a0fcb2e4274ba23003d28c4fac002c908f081565b6104986106143660046134ee565b611856565b610498610627366004613461565b611a39565b34801561063857600080fd5b506104986106473660046133e6565b611a59565b34801561065857600080fd5b506104986106673660046135c6565b611b6a565b34801561067857600080fd5b5061068c61068736600461360f565b611bb5565b604051610415919061368e565b3480156106a557600080fd5b506104606106b436600461339b565b611c81565b3480156106c557600080fd5b506009546001600160a01b0316610460565b3480156106e357600080fd5b50610433611c8c565b3480156106f857600080fd5b506104d86107073660046133c9565b611d1a565b34801561071857600080fd5b50610498611d69565b34801561072d57600080fd5b5061049861073c36600461339b565b611d7d565b61049861074f3660046134ee565b611d9b565b34801561076057600080fd5b506104d8600b5481565b34801561077657600080fd5b506104d860105481565b34801561078c57600080fd5b506107a061079b3660046133c9565b612015565b60405161041591906136d0565b3480156107b957600080fd5b50601d5461040990610100900460ff1681565b3480156107d857600080fd5b506104d860115481565b3480156107ee57600080fd5b506104d860155481565b34801561080457600080fd5b506008546001600160a01b0316610460565b34801561082257600080fd5b5061049861083136600461339b565b612125565b34801561084257600080fd5b506104d860145481565b34801561085857600080fd5b50610433612132565b34801561086d57600080fd5b50601d546104099062010000900460ff1681565b34801561088d57600080fd5b50601354610460906001600160a01b031681565b3480156108ad57600080fd5b506107a06108bc366004613708565b612141565b3480156108cd57600080fd5b506104d8600c5481565b3480156108e357600080fd5b506104986122bf565b3480156108f857600080fd5b506104d860125481565b61049861091036600461339b565b6122e4565b34801561092157600080fd5b5061049861093036600461374b565b61246e565b34801561094157600080fd5b506104d86109503660046133c9565b6001600160a01b03166000908152601c602052604090205490565b34801561097757600080fd5b5061049861098636600461339b565b6124da565b34801561099757600080fd5b506104986109a636600461339b565b6124e7565b6104986109b9366004613784565b612505565b3480156109ca57600080fd5b506109de6109d936600461339b565b61254f565b6040516104159190613804565b3480156109f757600080fd5b506104986125c7565b348015610a0c57600080fd5b50610498610a1b36600461339b565b6126cc565b348015610a2c57600080fd5b50610433610a3b36600461339b565b612788565b348015610a4c57600080fd5b5061049861280c565b348015610a6157600080fd5b50610498610a703660046133c9565b612833565b348015610a8157600080fd5b506104d8610a903660046133c9565b6001600160a01b03166000908152601b602052604090205490565b348015610ab757600080fd5b50610409610ac6366004613812565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610b0057600080fd5b50610498610b0f3660046133c9565b61285d565b348015610b2057600080fd5b50600a54610460906001600160a01b031681565b348015610b4057600080fd5b506104d860175481565b348015610b5657600080fd5b506104d860185481565b348015610b6c57600080fd5b50610498610b7b36600461339b565b6128d3565b348015610b8c57600080fd5b50610498610b9b36600461339b565b6128e0565b60006301ffc9a760e01b6001600160e01b031983161480610bd157506380ac58cd60e01b6001600160e01b03198316145b80610bec5750635b5e139f60e01b6001600160e01b03198316145b92915050565b606060028054610c0190613840565b80601f0160208091040260200160405190810160405280929190818152602001828054610c2d90613840565b8015610c7a5780601f10610c4f57610100808354040283529160200191610c7a565b820191906000526020600020905b815481529060010190602001808311610c5d57829003601f168201915b5050505050905090565b6000610c8f826128ed565b610cac576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b610cd0612914565b601380546001600160a01b0319166001600160a01b0383169081179091556040519081527fec34dc6727fd40c7fd53fc86371efbd64041b901499e3acc929598ace9a87033906020015b60405180910390a150565b6000610d3082611c81565b9050336001600160a01b03821614610d6957610d4c8133610ac6565b610d69576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610dcd612914565b4780610dd857600080fd5b610df6733002e0e7db1fb99072516033b8dc2be9897178ba8261296e565b50565b601d5460ff16610e245760405162461bcd60e51b8152600401610e1b9061387b565b60405180910390fd5b60195485610e356001546000540390565b610e3f91906138bb565b10610e5c5760405162461bcd60e51b8152600401610e1b906138d3565b6000610e698560026138ff565b336000908152601c602052604081205491925090610e889088906138bb565b905081811115610eaa5760405162461bcd60e51b8152600401610e1b9061391e565b600086821115610ecb57610ebe8783613949565b905087811115610ecb5750865b60175481601a54610edc91906138bb565b10610ee657600080fd5b600a546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015610f2a57600080fd5b505afa158015610f3e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f629190613960565b905080610f708460036138ff565b1115610f8e5760405162461bcd60e51b8152600401610e1b9061391e565b60006012548a610f9e91906138ff565b905080341015610fc15760405163cd1c886760e01b815260040160405180910390fd5b604080517f2e855bec69f33c0bd0e3370535173a0fcb2e4274ba23003d28c4fac002c908f060208201523391810191909152606081018a9052600090611020906080015b604051602081830303815290604052805190602001206129a4565b6040805160008082526020820180845284905260ff8d1692820192909252606081018b9052608081018a90529192509060019060a0016020604051602081039080840390855afa158015611078573d6000803e3d6000fd5b5050506020604051035190506110966008546001600160a01b031690565b6001600160a01b0316816001600160a01b0316146110f65760405162461bcd60e51b815260206004820152601f60248201527f5369676e6174757265206973206e6f742066726f6d20746865206f776e6572006044820152606401610e1b565b336000908152601c6020526040812080548e92906111159084906138bb565b909155506111259050338d6129f2565b84601a600082825461113791906138bb565b909155505060408051338152602081018e90527fd4623214101b59e233aa1dbc43e3aab58ec2261725b5e67ecf4eb4b3ec7dd4b9910160405180910390a1505050505050505050505050565b601d5460ff166111a55760405162461bcd60e51b8152600401610e1b9061387b565b601954856111b66001546000540390565b6111c091906138bb565b106111dd5760405162461bcd60e51b8152600401610e1b906138d3565b60006111ea8560026138ff565b336000908152601c6020526040812054919250906112099088906138bb565b90508181111561122b5760405162461bcd60e51b8152600401610e1b9061391e565b60008682111561124c5761123f8783613949565b90508781111561124c5750865b60175481601a5461125d91906138bb565b1061126757600080fd5b60006012548961127791906138ff565b90508034101561129a5760405163cd1c886760e01b815260040160405180910390fd5b604080517f2e855bec69f33c0bd0e3370535173a0fcb2e4274ba23003d28c4fac002c908f060208201523391810191909152606081018990526000906112e290608001611005565b6040805160008082526020820180845284905260ff8c1692820192909252606081018a9052608081018990529192509060019060a0016020604051602081039080840390855afa15801561133a573d6000803e3d6000fd5b5050506020604051035190506113586008546001600160a01b031690565b6001600160a01b0316816001600160a01b0316146113b85760405162461bcd60e51b815260206004820152601f60248201527f5369676e6174757265206973206e6f742066726f6d20746865206f776e6572006044820152606401610e1b565b336000908152601c6020526040812080548d92906113d79084906138bb565b909155506113e79050338c6129f2565b83601a60008282546113f991906138bb565b909155505060408051338152602081018d90527fd4623214101b59e233aa1dbc43e3aab58ec2261725b5e67ecf4eb4b3ec7dd4b9910160405180910390a15050505050505050505050565b600061144f82612a10565b9050836001600160a01b0316816001600160a01b0316146114825760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b038816909114176114cf576114b28633610ac6565b6114cf57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0385166114f657604051633a954ecd60e21b815260040160405180910390fd5b6115038686866001612a71565b801561150e57600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040902055600160e11b831661159957600184016000818152600460205260409020546115975760005481146115975760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b601d5460ff166116045760405162461bcd60e51b8152600401610e1b9061387b565b601954836116156001546000540390565b61161f91906138bb565b1061163c5760405162461bcd60e51b8152600401610e1b906138d3565b601554336000908152601b602052604090205461165a9085906138bb565b106116a25760405162461bcd60e51b815260206004820152601860248201527713dd995c881b585e081c1c995cd85b1948185b1b1bddd95960421b6044820152606401610e1b565b60175483601a546116b391906138bb565b106116fb5760405162461bcd60e51b8152602060048201526018602482015277115e18d959591cc811d95b995c985b0813595bdddb1a5cdd60421b6044820152606401610e1b565b60006012548461170b91906138ff565b90508034101561172e5760405163cd1c886760e01b815260040160405180910390fd5b61177783838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600c549150611772905033612a7d565b612abc565b6117b45760405162461bcd60e51b815260206004820152600e60248201526d155cd95c881b9bdd081a5b8815d360921b6044820152606401610e1b565b336000908152601b6020526040812080548692906117d39084906138bb565b909155506117e3905033856129f2565b83601a60008282546117f591906138bb565b909155505060408051338152602081018690527fff4dacf79d2ec28fc4091f19eee8af812a3921403d261d3deaf2c28d45f649b791015b60405180910390a150505050565b611842612914565b601d805460ff19811660ff90911615179055565b601d54610100900460ff166118a25760405162461bcd60e51b81526020600482015260126024820152714d61696e2053616c65204e6f74204c69766560701b6044820152606401610e1b565b60115483106118e85760405162461bcd60e51b815260206004820152601260248201527109eeccae440dac2f040e0eac4d8d2c640e8f60731b6044820152606401610e1b565b601054836118f96001546000540390565b61190391906138bb565b106119415760405162461bcd60e51b815260206004820152600e60248201526d4578636565647320537570706c7960901b6044820152606401610e1b565b60006012548461195191906138ff565b9050803410156119745760405163cd1c886760e01b815260040160405180910390fd5b6119b883838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600d549150611772905033612a7d565b6119f95760405162461bcd60e51b815260206004820152601260248201527155736572206e6f7420696e204d65726b6c6560701b6044820152606401610e1b565b611a0333856129f2565b60408051338152602081018690527f71de28f449fba1c5668cf1ec3cbff971f73ef602a87bc3ba1bcaa8276dcb2137910161182c565b611a5483838360405180602001604052806000815250612505565b505050565b6013546001600160a01b0316331480611a8b575033611a806008546001600160a01b031690565b6001600160a01b0316145b611ae15760405162461bcd60e51b815260206004820152602160248201527f63616c6c6572206973206e6569746865722073746f7265206e6f72206f776e656044820152603960f91b6064820152608401610e1b565b60105481611af26001546000540390565b611afc91906138bb565b10611b195760405162461bcd60e51b8152600401610e1b906138d3565b611b2382826129f2565b604080516001600160a01b0384168152602081018390527f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d412139688591015b60405180910390a15050565b611b72612914565b8051611b8590600e906020840190613264565b507f23c8c9488efebfd474e85a7956de6f39b17c7ab88502d42a623db2d8e382bbaa81604051610d1a9190613388565b60608160008167ffffffffffffffff811115611bd357611bd361353a565b604051908082528060200260200182016040528015611c2557816020015b604080516080810182526000808252602080830182905292820181905260608201528252600019909201910181611bf15790505b50905060005b828114611c7857611c53868683818110611c4757611c47613979565b9050602002013561254f565b828281518110611c6557611c65613979565b6020908102919091010152600101611c2b565b50949350505050565b6000610bec82612a10565b600e8054611c9990613840565b80601f0160208091040260200160405190810160405280929190818152602001828054611cc590613840565b8015611d125780601f10611ce757610100808354040283529160200191611d12565b820191906000526020600020905b815481529060010190602001808311611cf557829003601f168201915b505050505081565b60006001600160a01b038216611d43576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b611d71612914565b611d7b6000612ad2565b565b611d85612914565b6016819055611d958160016138bb565b60175550565b601d5460ff16611dbd5760405162461bcd60e51b8152600401610e1b9061387b565b60195483611dce6001546000540390565b611dd891906138bb565b10611df55760405162461bcd60e51b8152600401610e1b906138d3565b336000908152601b6020526040812054611e109085906138bb565b90506015548110611e5e5760405162461bcd60e51b815260206004820152601860248201527713dd995c881b585e081c1c995cd85b1948185b1b1bddd95960421b6044820152606401610e1b565b60006001821115611e8157611e74600183613949565b905084811115611e815750835b60175481601a54611e9291906138bb565b10611eda5760405162461bcd60e51b8152602060048201526018602482015277115e18d959591cc811d95b995c985b0813595bdddb1a5cdd60421b6044820152606401610e1b565b600060125486611eea91906138ff565b905080341015611f0d5760405163cd1c886760e01b815260040160405180910390fd5b611f5185858080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600b549150611772905033612a7d565b611f8e5760405162461bcd60e51b815260206004820152600e60248201526d155cd95c881b9bdd081a5b8815d360921b6044820152606401610e1b565b336000908152601b602052604081208054889290611fad9084906138bb565b90915550611fbd905033876129f2565b81601a6000828254611fcf91906138bb565b909155505060408051338152602081018890527ffee7d23117549e2f868728b03be7cc0dd94bb22c9192b24105ec31fc8ca61676910160405180910390a1505050505050565b6060600080600061202585611d1a565b905060008167ffffffffffffffff8111156120425761204261353a565b60405190808252806020026020018201604052801561206b578160200160208202803683370190505b50905061209860408051608081018252600080825260208201819052918101829052606081019190915290565b60005b838614612119576120ab81612b24565b91508160400151156120bc57612111565b81516001600160a01b0316156120d157815194505b876001600160a01b0316856001600160a01b03161415612111578083878060010198508151811061210457612104613979565b6020026020010181815250505b60010161209b565b50909695505050505050565b61212d612914565b601255565b606060038054610c0190613840565b606081831061216357604051631960ccad60e11b815260040160405180910390fd5b60008061216f60005490565b90508084111561217d578093505b600061218887611d1a565b9050848610156121a757858503818110156121a1578091505b506121ab565b5060005b60008167ffffffffffffffff8111156121c6576121c661353a565b6040519080825280602002602001820160405280156121ef578160200160208202803683370190505b509050816122025793506122b892505050565b600061220d8861254f565b90506000816040015161221e575080515b885b8881141580156122305750848714155b156122ac5761223e81612b24565b925082604001511561224f576122a4565b82516001600160a01b03161561226457825191505b8a6001600160a01b0316826001600160a01b031614156122a4578084888060010199508151811061229757612297613979565b6020026020010181815250505b600101612220565b50505092835250909150505b9392505050565b6122c7612914565b601d805461ff001981166101009182900460ff1615909102179055565b3233146123335760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e747261637400006044820152606401610e1b565b601d5462010000900460ff1661237e5760405162461bcd60e51b815260206004820152601060248201526f27b832b71029b0b632902737ba1027b760811b6044820152606401610e1b565b6010548161238f6001546000540390565b61239991906138bb565b106123b65760405162461bcd60e51b8152600401610e1b906138d3565b60115481106123fb5760405162461bcd60e51b815260206004820152601160248201527013dd995c8813585e081c195c88135a5b9d607a1b6044820152606401610e1b565b60006012548261240b91906138ff565b90508034101561242e5760405163cd1c886760e01b815260040160405180910390fd5b61243833836129f2565b60408051338152602081018490527f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968859101611b5e565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6124e2612914565b600d55565b6124ef612914565b60188190556124ff8160016138bb565b60195550565b612510848484611444565b6001600160a01b0383163b156125495761252c84848484612b60565b612549576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60408051608080820183526000808352602080840182905283850182905260608085018390528551938401865282845290830182905293820181905292810183905290915060005483106125a35792915050565b6125ac83612b24565b90508060400151156125be5792915050565b6122b883612c57565b733002e0e7db1fb99072516033b8dc2be9897178ba3314806125fc575073ce335de9adc23eb0f4c034ec3428b81d057f231633145b8061261a575073a55c2f8af10d603976deca0b61cd87ba2f9c649233145b80612638575073c8b0d32bc09fb11c12c82582825c1e6b624822b833145b8061265c5750336126516008546001600160a01b031690565b6001600160a01b0316145b6126b85760405162461bcd60e51b815260206004820152602760248201527f63616c6c6572206973206e656974686572205465616d2057616c6c6574206e6f604482015266391027bbb732b960c91b6064820152608401610e1b565b47806126c357600080fd5b610df681612c8c565b6126d4612914565b600f54811061271d5760405162461bcd60e51b815260206004820152601560248201527443616e206f6e6c79206c6f77657220737570706c7960581b6044820152606401610e1b565b6001546000540381116127725760405162461bcd60e51b815260206004820152601760248201527f43616e2774207365742062656c6f772063757272656e740000000000000000006044820152606401610e1b565b600f8190556127828160016138bb565b60105550565b6060612793826128ed565b6127b057604051630a14c4b560e41b815260040160405180910390fd5b60006127ba612d51565b90508051600014156127db57604051806020016040528060008152506122b8565b806127e584612d60565b6040516020016127f692919061398f565b6040516020818303038152906040529392505050565b612814612914565b601d805462ff0000198116620100009182900460ff1615909102179055565b61283b612914565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b612865612914565b6001600160a01b0381166128ca5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610e1b565b610df681612ad2565b6128db612914565b600b55565b6128e8612914565b600c55565b6000805482108015610bec575050600090815260046020526040902054600160e01b161590565b6008546001600160a01b03163314611d7b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e1b565b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015611a54573d6000803e3d6000fd5b6000610bec6129b1612dae565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b612a0c828260405180602001604052806000815250612ed5565b5050565b600081600054811015612a5857600081815260046020526040902054600160e01b8116612a56575b806122b8575060001901600081815260046020526040902054612a38565b505b604051636f96cda160e11b815260040160405180910390fd5b61254984848484612f42565b6040516bffffffffffffffffffffffff19606083901b166020820152600090603401604051602081830303815290604052805190602001209050919050565b600082612ac98584612fd6565b14949350505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604080516080810182526000808252602082018190529181018290526060810191909152600082815260046020526040902054610bec90613023565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612b959033908990889088906004016139be565b602060405180830381600087803b158015612baf57600080fd5b505af1925050508015612bdf575060408051601f3d908101601f19168201909252612bdc918101906139fb565b60015b612c3a573d808015612c0d576040519150601f19603f3d011682016040523d82523d6000602084013e612c12565b606091505b508051612c32576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b604080516080810182526000808252602082018190529181018290526060810191909152610bec612c8783612a10565b613023565b6000612c9b620186a083613a18565b9050612cc7733002e0e7db1fb99072516033b8dc2be9897178ba612cc2620126ec846138ff565b61296e565b612ceb73ce335de9adc23eb0f4c034ec3428b81d057f2316612cc2614a38846138ff565b612d0f73a55c2f8af10d603976deca0b61cd87ba2f9c6492612cc2610bb8846138ff565b612d337371db1f8e62bb3d2b77b00077b434a477ce966f2b612cc26107d0846138ff565b612a0c73c8b0d32bc09fb11c12c82582825c1e6b624822b84761296e565b6060600e8054610c0190613840565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a900480612d9757612d9c565b612d7a565b50819003601f19909101908152919050565b6000306001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016148015612e0757507f000000000000000000000000000000000000000000000000000000000000000046145b15612e3157507f000000000000000000000000000000000000000000000000000000000000000090565b50604080517f00000000000000000000000000000000000000000000000000000000000000006020808301919091527f0000000000000000000000000000000000000000000000000000000000000000828401527f000000000000000000000000000000000000000000000000000000000000000060608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b612edf838361306b565b6001600160a01b0383163b15611a54576000548281035b612f096000868380600101945086612b60565b612f26576040516368d2bf6b60e11b815260040160405180910390fd5b818110612ef6578160005414612f3b57600080fd5b5050505050565b6001600160a01b03841615801590612f6257506001600160a01b03831615155b8015612f755750612f73338361316f565b155b15612fd15760405162461bcd60e51b815260206004820152602660248201527f4552433732314f70657261746f7246696c7465723a20696c6c6567616c206f7060448201526532b930ba37b960d11b6064820152608401610e1b565b612549565b600081815b845181101561301b5761300782868381518110612ffa57612ffa613979565b6020026020010151613238565b91508061301381613a3a565b915050612fdb565b509392505050565b604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b6000548161308c5760405163b562e8dd60e01b815260040160405180910390fd5b6130996000848385612a71565b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461314857808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101613110565b508161316657604051622e076360e81b815260040160405180910390fd5b60005550505050565b6009546000906001600160a01b03168061318d576001915050610bec565b61319683611c81565b6001600160a01b0316846001600160a01b031614156131b9576001915050610bec565b604051630c962cb760e11b81523360048201526001600160a01b0382169063192c596e9060240160206040518083038186803b1580156131f857600080fd5b505afa15801561320c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132309190613a55565b949350505050565b60008183106132545760008281526020849052604090206122b8565b5060009182526020526040902090565b82805461327090613840565b90600052602060002090601f01602090048101928261329257600085556132d8565b82601f106132ab57805160ff19168380011785556132d8565b828001600101855582156132d8579182015b828111156132d85782518255916020019190600101906132bd565b506132e49291506132e8565b5090565b5b808211156132e457600081556001016132e9565b6001600160e01b031981168114610df657600080fd5b60006020828403121561332557600080fd5b81356122b8816132fd565b60005b8381101561334b578181015183820152602001613333565b838111156125495750506000910152565b60008151808452613374816020860160208601613330565b601f01601f19169290920160200192915050565b6020815260006122b8602083018461335c565b6000602082840312156133ad57600080fd5b5035919050565b6001600160a01b0381168114610df657600080fd5b6000602082840312156133db57600080fd5b81356122b8816133b4565b600080604083850312156133f957600080fd5b8235613404816133b4565b946020939093013593505050565b600080600080600060a0868803121561342a57600080fd5b8535945060208601359350604086013560ff8116811461344957600080fd5b94979396509394606081013594506080013592915050565b60008060006060848603121561347657600080fd5b8335613481816133b4565b92506020840135613491816133b4565b929592945050506040919091013590565b60008083601f8401126134b457600080fd5b50813567ffffffffffffffff8111156134cc57600080fd5b6020830191508360208260051b85010111156134e757600080fd5b9250929050565b60008060006040848603121561350357600080fd5b83359250602084013567ffffffffffffffff81111561352157600080fd5b61352d868287016134a2565b9497909650939450505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561356b5761356b61353a565b604051601f8501601f19908116603f011681019082821181831017156135935761359361353a565b816040528093508581528686860111156135ac57600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156135d857600080fd5b813567ffffffffffffffff8111156135ef57600080fd5b8201601f8101841361360057600080fd5b61323084823560208401613550565b6000806020838503121561362257600080fd5b823567ffffffffffffffff81111561363957600080fd5b613645858286016134a2565b90969095509350505050565b80516001600160a01b0316825260208082015167ffffffffffffffff169083015260408082015115159083015260609081015162ffffff16910152565b6020808252825182820181905260009190848201906040850190845b81811015612119576136bd838551613651565b92840192608092909201916001016136aa565b6020808252825182820181905260009190848201906040850190845b81811015612119578351835292840192918401916001016136ec565b60008060006060848603121561371d57600080fd5b8335613728816133b4565b95602085013595506040909401359392505050565b8015158114610df657600080fd5b6000806040838503121561375e57600080fd5b8235613769816133b4565b915060208301356137798161373d565b809150509250929050565b6000806000806080858703121561379a57600080fd5b84356137a5816133b4565b935060208501356137b5816133b4565b925060408501359150606085013567ffffffffffffffff8111156137d857600080fd5b8501601f810187136137e957600080fd5b6137f887823560208401613550565b91505092959194509250565b60808101610bec8284613651565b6000806040838503121561382557600080fd5b8235613830816133b4565b91506020830135613779816133b4565b600181811c9082168061385457607f821691505b6020821081141561387557634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526010908201526f50726573616c65204e6f74204c69766560801b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082198211156138ce576138ce6138a5565b500190565b60208082526012908201527145786365656473206d617820737570706c7960701b604082015260600190565b6000816000190483118215151615613919576139196138a5565b500290565b602080825260119082015270436c61696d696e6720546f6f204d616e7960781b604082015260600190565b60008282101561395b5761395b6138a5565b500390565b60006020828403121561397257600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b600083516139a1818460208801613330565b8351908301906139b5818360208801613330565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906139f19083018461335c565b9695505050505050565b600060208284031215613a0d57600080fd5b81516122b8816132fd565b600082613a3557634e487b7160e01b600052601260045260246000fd5b500490565b6000600019821415613a4e57613a4e6138a5565b5060010190565b600060208284031215613a6757600080fd5b81516122b88161373d56fea2646970667358221220a59e28f3740b82f9133986b412879047b2a73c954dcf748abe5e8b65f2d12aa864736f6c63430008090033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000001248696464656e204b697474656e204369747900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003484b430000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002168747470733a2f2f68696464656e6b697474656e636974792e636f6d2f6170692f00000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106103e45760003560e01c80638462151c11610208578063b2d56c8011610118578063d783925b116100ab578063f6398c191161007a578063f6398c1914610b14578063f7288a3b14610b34578063f7a528dc14610b4a578063f952283514610b60578063fa03979514610b8057600080fd5b8063d783925b14610a55578063de1444c214610a75578063e985e9c514610aab578063f2fde38b14610af457600080fd5b8063c36554ce116100e7578063c36554ce146109eb578063c4e9374d14610a00578063c87b56dd14610a20578063c95853e114610a4057600080fd5b8063b2d56c801461096b578063b30d65971461098b578063b88d4fde146109ab578063c23dc68f146109be57600080fd5b806396fdbec21161019b5780639edede9f1161016a5780639edede9f146108d7578063a035b1fe146108ec578063a0712d6814610902578063a22cb46514610915578063a3a5bfb21461093557600080fd5b806396fdbec214610861578063975057e71461088157806399a2557a146108a15780639acaefe3146108c157600080fd5b80638da5cb5b116101d75780638da5cb5b146107f857806391b7f5ed146108165780639208383a1461083657806395d89b411461084c57600080fd5b80638462151c1461078057806386543be2146107ad5780638836581c146107cc5780638a938262146107e257600080fd5b806334393743116103035780636352211e11610296578063715018a611610265578063715018a61461070c5780637282ce3314610721578063805824321461074157806381f07c901461075457806382d5b2491461076a57600080fd5b80636352211e14610699578063689843e0146106b95780636c0360eb146106d757806370a08231146106ec57600080fd5b806342842e0e116102d257806342842e0e1461061957806352b944911461062c57806355f804b31461064c5780635bbb21771461066c57600080fd5b806334393743146105a757806337c5df90146105bc5780633b639e6f146105d25780634099a7ea1461060657600080fd5b806318160ddd1161037b57806323b872dd1161034a57806323b872dd146105555780632a3242ff1461056857806332cb6b0c1461057b578063337da94b1461059157600080fd5b806318160ddd146104f95780631872566c146105125780631ad874b4146105255780632233a45b1461053f57600080fd5b8063095ea7b3116103b7578063095ea7b31461049a578063128bd9f9146104ad57806312b69d47146104c257806317b03da4146104e657600080fd5b806301ffc9a7146103e957806306fdde031461041e578063081812fc14610440578063087cbd4014610478575b600080fd5b3480156103f557600080fd5b50610409610404366004613313565b610ba0565b60405190151581526020015b60405180910390f35b34801561042a57600080fd5b50610433610bf2565b6040516104159190613388565b34801561044c57600080fd5b5061046061045b36600461339b565b610c84565b6040516001600160a01b039091168152602001610415565b34801561048457600080fd5b506104986104933660046133c9565b610cc8565b005b6104986104a83660046133e6565b610d25565b3480156104b957600080fd5b50610498610dc5565b3480156104ce57600080fd5b506104d860195481565b604051908152602001610415565b6104986104f4366004613412565b610df9565b34801561050557600080fd5b50600154600054036104d8565b610498610520366004613412565b611183565b34801561053157600080fd5b50601d546104099060ff1681565b34801561054b57600080fd5b506104d860165481565b610498610563366004613461565b611444565b6104986105763660046134ee565b6115e2565b34801561058757600080fd5b506104d8600f5481565b34801561059d57600080fd5b506104d8600d5481565b3480156105b357600080fd5b5061049861183a565b3480156105c857600080fd5b506104d8601a5481565b3480156105de57600080fd5b506104d87f2e855bec69f33c0bd0e3370535173a0fcb2e4274ba23003d28c4fac002c908f081565b6104986106143660046134ee565b611856565b610498610627366004613461565b611a39565b34801561063857600080fd5b506104986106473660046133e6565b611a59565b34801561065857600080fd5b506104986106673660046135c6565b611b6a565b34801561067857600080fd5b5061068c61068736600461360f565b611bb5565b604051610415919061368e565b3480156106a557600080fd5b506104606106b436600461339b565b611c81565b3480156106c557600080fd5b506009546001600160a01b0316610460565b3480156106e357600080fd5b50610433611c8c565b3480156106f857600080fd5b506104d86107073660046133c9565b611d1a565b34801561071857600080fd5b50610498611d69565b34801561072d57600080fd5b5061049861073c36600461339b565b611d7d565b61049861074f3660046134ee565b611d9b565b34801561076057600080fd5b506104d8600b5481565b34801561077657600080fd5b506104d860105481565b34801561078c57600080fd5b506107a061079b3660046133c9565b612015565b60405161041591906136d0565b3480156107b957600080fd5b50601d5461040990610100900460ff1681565b3480156107d857600080fd5b506104d860115481565b3480156107ee57600080fd5b506104d860155481565b34801561080457600080fd5b506008546001600160a01b0316610460565b34801561082257600080fd5b5061049861083136600461339b565b612125565b34801561084257600080fd5b506104d860145481565b34801561085857600080fd5b50610433612132565b34801561086d57600080fd5b50601d546104099062010000900460ff1681565b34801561088d57600080fd5b50601354610460906001600160a01b031681565b3480156108ad57600080fd5b506107a06108bc366004613708565b612141565b3480156108cd57600080fd5b506104d8600c5481565b3480156108e357600080fd5b506104986122bf565b3480156108f857600080fd5b506104d860125481565b61049861091036600461339b565b6122e4565b34801561092157600080fd5b5061049861093036600461374b565b61246e565b34801561094157600080fd5b506104d86109503660046133c9565b6001600160a01b03166000908152601c602052604090205490565b34801561097757600080fd5b5061049861098636600461339b565b6124da565b34801561099757600080fd5b506104986109a636600461339b565b6124e7565b6104986109b9366004613784565b612505565b3480156109ca57600080fd5b506109de6109d936600461339b565b61254f565b6040516104159190613804565b3480156109f757600080fd5b506104986125c7565b348015610a0c57600080fd5b50610498610a1b36600461339b565b6126cc565b348015610a2c57600080fd5b50610433610a3b36600461339b565b612788565b348015610a4c57600080fd5b5061049861280c565b348015610a6157600080fd5b50610498610a703660046133c9565b612833565b348015610a8157600080fd5b506104d8610a903660046133c9565b6001600160a01b03166000908152601b602052604090205490565b348015610ab757600080fd5b50610409610ac6366004613812565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610b0057600080fd5b50610498610b0f3660046133c9565b61285d565b348015610b2057600080fd5b50600a54610460906001600160a01b031681565b348015610b4057600080fd5b506104d860175481565b348015610b5657600080fd5b506104d860185481565b348015610b6c57600080fd5b50610498610b7b36600461339b565b6128d3565b348015610b8c57600080fd5b50610498610b9b36600461339b565b6128e0565b60006301ffc9a760e01b6001600160e01b031983161480610bd157506380ac58cd60e01b6001600160e01b03198316145b80610bec5750635b5e139f60e01b6001600160e01b03198316145b92915050565b606060028054610c0190613840565b80601f0160208091040260200160405190810160405280929190818152602001828054610c2d90613840565b8015610c7a5780601f10610c4f57610100808354040283529160200191610c7a565b820191906000526020600020905b815481529060010190602001808311610c5d57829003601f168201915b5050505050905090565b6000610c8f826128ed565b610cac576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b610cd0612914565b601380546001600160a01b0319166001600160a01b0383169081179091556040519081527fec34dc6727fd40c7fd53fc86371efbd64041b901499e3acc929598ace9a87033906020015b60405180910390a150565b6000610d3082611c81565b9050336001600160a01b03821614610d6957610d4c8133610ac6565b610d69576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610dcd612914565b4780610dd857600080fd5b610df6733002e0e7db1fb99072516033b8dc2be9897178ba8261296e565b50565b601d5460ff16610e245760405162461bcd60e51b8152600401610e1b9061387b565b60405180910390fd5b60195485610e356001546000540390565b610e3f91906138bb565b10610e5c5760405162461bcd60e51b8152600401610e1b906138d3565b6000610e698560026138ff565b336000908152601c602052604081205491925090610e889088906138bb565b905081811115610eaa5760405162461bcd60e51b8152600401610e1b9061391e565b600086821115610ecb57610ebe8783613949565b905087811115610ecb5750865b60175481601a54610edc91906138bb565b10610ee657600080fd5b600a546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a082319060240160206040518083038186803b158015610f2a57600080fd5b505afa158015610f3e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f629190613960565b905080610f708460036138ff565b1115610f8e5760405162461bcd60e51b8152600401610e1b9061391e565b60006012548a610f9e91906138ff565b905080341015610fc15760405163cd1c886760e01b815260040160405180910390fd5b604080517f2e855bec69f33c0bd0e3370535173a0fcb2e4274ba23003d28c4fac002c908f060208201523391810191909152606081018a9052600090611020906080015b604051602081830303815290604052805190602001206129a4565b6040805160008082526020820180845284905260ff8d1692820192909252606081018b9052608081018a90529192509060019060a0016020604051602081039080840390855afa158015611078573d6000803e3d6000fd5b5050506020604051035190506110966008546001600160a01b031690565b6001600160a01b0316816001600160a01b0316146110f65760405162461bcd60e51b815260206004820152601f60248201527f5369676e6174757265206973206e6f742066726f6d20746865206f776e6572006044820152606401610e1b565b336000908152601c6020526040812080548e92906111159084906138bb565b909155506111259050338d6129f2565b84601a600082825461113791906138bb565b909155505060408051338152602081018e90527fd4623214101b59e233aa1dbc43e3aab58ec2261725b5e67ecf4eb4b3ec7dd4b9910160405180910390a1505050505050505050505050565b601d5460ff166111a55760405162461bcd60e51b8152600401610e1b9061387b565b601954856111b66001546000540390565b6111c091906138bb565b106111dd5760405162461bcd60e51b8152600401610e1b906138d3565b60006111ea8560026138ff565b336000908152601c6020526040812054919250906112099088906138bb565b90508181111561122b5760405162461bcd60e51b8152600401610e1b9061391e565b60008682111561124c5761123f8783613949565b90508781111561124c5750865b60175481601a5461125d91906138bb565b1061126757600080fd5b60006012548961127791906138ff565b90508034101561129a5760405163cd1c886760e01b815260040160405180910390fd5b604080517f2e855bec69f33c0bd0e3370535173a0fcb2e4274ba23003d28c4fac002c908f060208201523391810191909152606081018990526000906112e290608001611005565b6040805160008082526020820180845284905260ff8c1692820192909252606081018a9052608081018990529192509060019060a0016020604051602081039080840390855afa15801561133a573d6000803e3d6000fd5b5050506020604051035190506113586008546001600160a01b031690565b6001600160a01b0316816001600160a01b0316146113b85760405162461bcd60e51b815260206004820152601f60248201527f5369676e6174757265206973206e6f742066726f6d20746865206f776e6572006044820152606401610e1b565b336000908152601c6020526040812080548d92906113d79084906138bb565b909155506113e79050338c6129f2565b83601a60008282546113f991906138bb565b909155505060408051338152602081018d90527fd4623214101b59e233aa1dbc43e3aab58ec2261725b5e67ecf4eb4b3ec7dd4b9910160405180910390a15050505050505050505050565b600061144f82612a10565b9050836001600160a01b0316816001600160a01b0316146114825760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b038816909114176114cf576114b28633610ac6565b6114cf57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0385166114f657604051633a954ecd60e21b815260040160405180910390fd5b6115038686866001612a71565b801561150e57600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040902055600160e11b831661159957600184016000818152600460205260409020546115975760005481146115975760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b601d5460ff166116045760405162461bcd60e51b8152600401610e1b9061387b565b601954836116156001546000540390565b61161f91906138bb565b1061163c5760405162461bcd60e51b8152600401610e1b906138d3565b601554336000908152601b602052604090205461165a9085906138bb565b106116a25760405162461bcd60e51b815260206004820152601860248201527713dd995c881b585e081c1c995cd85b1948185b1b1bddd95960421b6044820152606401610e1b565b60175483601a546116b391906138bb565b106116fb5760405162461bcd60e51b8152602060048201526018602482015277115e18d959591cc811d95b995c985b0813595bdddb1a5cdd60421b6044820152606401610e1b565b60006012548461170b91906138ff565b90508034101561172e5760405163cd1c886760e01b815260040160405180910390fd5b61177783838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600c549150611772905033612a7d565b612abc565b6117b45760405162461bcd60e51b815260206004820152600e60248201526d155cd95c881b9bdd081a5b8815d360921b6044820152606401610e1b565b336000908152601b6020526040812080548692906117d39084906138bb565b909155506117e3905033856129f2565b83601a60008282546117f591906138bb565b909155505060408051338152602081018690527fff4dacf79d2ec28fc4091f19eee8af812a3921403d261d3deaf2c28d45f649b791015b60405180910390a150505050565b611842612914565b601d805460ff19811660ff90911615179055565b601d54610100900460ff166118a25760405162461bcd60e51b81526020600482015260126024820152714d61696e2053616c65204e6f74204c69766560701b6044820152606401610e1b565b60115483106118e85760405162461bcd60e51b815260206004820152601260248201527109eeccae440dac2f040e0eac4d8d2c640e8f60731b6044820152606401610e1b565b601054836118f96001546000540390565b61190391906138bb565b106119415760405162461bcd60e51b815260206004820152600e60248201526d4578636565647320537570706c7960901b6044820152606401610e1b565b60006012548461195191906138ff565b9050803410156119745760405163cd1c886760e01b815260040160405180910390fd5b6119b883838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600d549150611772905033612a7d565b6119f95760405162461bcd60e51b815260206004820152601260248201527155736572206e6f7420696e204d65726b6c6560701b6044820152606401610e1b565b611a0333856129f2565b60408051338152602081018690527f71de28f449fba1c5668cf1ec3cbff971f73ef602a87bc3ba1bcaa8276dcb2137910161182c565b611a5483838360405180602001604052806000815250612505565b505050565b6013546001600160a01b0316331480611a8b575033611a806008546001600160a01b031690565b6001600160a01b0316145b611ae15760405162461bcd60e51b815260206004820152602160248201527f63616c6c6572206973206e6569746865722073746f7265206e6f72206f776e656044820152603960f91b6064820152608401610e1b565b60105481611af26001546000540390565b611afc91906138bb565b10611b195760405162461bcd60e51b8152600401610e1b906138d3565b611b2382826129f2565b604080516001600160a01b0384168152602081018390527f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d412139688591015b60405180910390a15050565b611b72612914565b8051611b8590600e906020840190613264565b507f23c8c9488efebfd474e85a7956de6f39b17c7ab88502d42a623db2d8e382bbaa81604051610d1a9190613388565b60608160008167ffffffffffffffff811115611bd357611bd361353a565b604051908082528060200260200182016040528015611c2557816020015b604080516080810182526000808252602080830182905292820181905260608201528252600019909201910181611bf15790505b50905060005b828114611c7857611c53868683818110611c4757611c47613979565b9050602002013561254f565b828281518110611c6557611c65613979565b6020908102919091010152600101611c2b565b50949350505050565b6000610bec82612a10565b600e8054611c9990613840565b80601f0160208091040260200160405190810160405280929190818152602001828054611cc590613840565b8015611d125780601f10611ce757610100808354040283529160200191611d12565b820191906000526020600020905b815481529060010190602001808311611cf557829003601f168201915b505050505081565b60006001600160a01b038216611d43576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b611d71612914565b611d7b6000612ad2565b565b611d85612914565b6016819055611d958160016138bb565b60175550565b601d5460ff16611dbd5760405162461bcd60e51b8152600401610e1b9061387b565b60195483611dce6001546000540390565b611dd891906138bb565b10611df55760405162461bcd60e51b8152600401610e1b906138d3565b336000908152601b6020526040812054611e109085906138bb565b90506015548110611e5e5760405162461bcd60e51b815260206004820152601860248201527713dd995c881b585e081c1c995cd85b1948185b1b1bddd95960421b6044820152606401610e1b565b60006001821115611e8157611e74600183613949565b905084811115611e815750835b60175481601a54611e9291906138bb565b10611eda5760405162461bcd60e51b8152602060048201526018602482015277115e18d959591cc811d95b995c985b0813595bdddb1a5cdd60421b6044820152606401610e1b565b600060125486611eea91906138ff565b905080341015611f0d5760405163cd1c886760e01b815260040160405180910390fd5b611f5185858080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600b549150611772905033612a7d565b611f8e5760405162461bcd60e51b815260206004820152600e60248201526d155cd95c881b9bdd081a5b8815d360921b6044820152606401610e1b565b336000908152601b602052604081208054889290611fad9084906138bb565b90915550611fbd905033876129f2565b81601a6000828254611fcf91906138bb565b909155505060408051338152602081018890527ffee7d23117549e2f868728b03be7cc0dd94bb22c9192b24105ec31fc8ca61676910160405180910390a1505050505050565b6060600080600061202585611d1a565b905060008167ffffffffffffffff8111156120425761204261353a565b60405190808252806020026020018201604052801561206b578160200160208202803683370190505b50905061209860408051608081018252600080825260208201819052918101829052606081019190915290565b60005b838614612119576120ab81612b24565b91508160400151156120bc57612111565b81516001600160a01b0316156120d157815194505b876001600160a01b0316856001600160a01b03161415612111578083878060010198508151811061210457612104613979565b6020026020010181815250505b60010161209b565b50909695505050505050565b61212d612914565b601255565b606060038054610c0190613840565b606081831061216357604051631960ccad60e11b815260040160405180910390fd5b60008061216f60005490565b90508084111561217d578093505b600061218887611d1a565b9050848610156121a757858503818110156121a1578091505b506121ab565b5060005b60008167ffffffffffffffff8111156121c6576121c661353a565b6040519080825280602002602001820160405280156121ef578160200160208202803683370190505b509050816122025793506122b892505050565b600061220d8861254f565b90506000816040015161221e575080515b885b8881141580156122305750848714155b156122ac5761223e81612b24565b925082604001511561224f576122a4565b82516001600160a01b03161561226457825191505b8a6001600160a01b0316826001600160a01b031614156122a4578084888060010199508151811061229757612297613979565b6020026020010181815250505b600101612220565b50505092835250909150505b9392505050565b6122c7612914565b601d805461ff001981166101009182900460ff1615909102179055565b3233146123335760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e747261637400006044820152606401610e1b565b601d5462010000900460ff1661237e5760405162461bcd60e51b815260206004820152601060248201526f27b832b71029b0b632902737ba1027b760811b6044820152606401610e1b565b6010548161238f6001546000540390565b61239991906138bb565b106123b65760405162461bcd60e51b8152600401610e1b906138d3565b60115481106123fb5760405162461bcd60e51b815260206004820152601160248201527013dd995c8813585e081c195c88135a5b9d607a1b6044820152606401610e1b565b60006012548261240b91906138ff565b90508034101561242e5760405163cd1c886760e01b815260040160405180910390fd5b61243833836129f2565b60408051338152602081018490527f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968859101611b5e565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6124e2612914565b600d55565b6124ef612914565b60188190556124ff8160016138bb565b60195550565b612510848484611444565b6001600160a01b0383163b156125495761252c84848484612b60565b612549576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b60408051608080820183526000808352602080840182905283850182905260608085018390528551938401865282845290830182905293820181905292810183905290915060005483106125a35792915050565b6125ac83612b24565b90508060400151156125be5792915050565b6122b883612c57565b733002e0e7db1fb99072516033b8dc2be9897178ba3314806125fc575073ce335de9adc23eb0f4c034ec3428b81d057f231633145b8061261a575073a55c2f8af10d603976deca0b61cd87ba2f9c649233145b80612638575073c8b0d32bc09fb11c12c82582825c1e6b624822b833145b8061265c5750336126516008546001600160a01b031690565b6001600160a01b0316145b6126b85760405162461bcd60e51b815260206004820152602760248201527f63616c6c6572206973206e656974686572205465616d2057616c6c6574206e6f604482015266391027bbb732b960c91b6064820152608401610e1b565b47806126c357600080fd5b610df681612c8c565b6126d4612914565b600f54811061271d5760405162461bcd60e51b815260206004820152601560248201527443616e206f6e6c79206c6f77657220737570706c7960581b6044820152606401610e1b565b6001546000540381116127725760405162461bcd60e51b815260206004820152601760248201527f43616e2774207365742062656c6f772063757272656e740000000000000000006044820152606401610e1b565b600f8190556127828160016138bb565b60105550565b6060612793826128ed565b6127b057604051630a14c4b560e41b815260040160405180910390fd5b60006127ba612d51565b90508051600014156127db57604051806020016040528060008152506122b8565b806127e584612d60565b6040516020016127f692919061398f565b6040516020818303038152906040529392505050565b612814612914565b601d805462ff0000198116620100009182900460ff1615909102179055565b61283b612914565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b612865612914565b6001600160a01b0381166128ca5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610e1b565b610df681612ad2565b6128db612914565b600b55565b6128e8612914565b600c55565b6000805482108015610bec575050600090815260046020526040902054600160e01b161590565b6008546001600160a01b03163314611d7b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e1b565b6040516001600160a01b0383169082156108fc029083906000818181858888f19350505050158015611a54573d6000803e3d6000fd5b6000610bec6129b1612dae565b8360405161190160f01b6020820152602281018390526042810182905260009060620160405160208183030381529060405280519060200120905092915050565b612a0c828260405180602001604052806000815250612ed5565b5050565b600081600054811015612a5857600081815260046020526040902054600160e01b8116612a56575b806122b8575060001901600081815260046020526040902054612a38565b505b604051636f96cda160e11b815260040160405180910390fd5b61254984848484612f42565b6040516bffffffffffffffffffffffff19606083901b166020820152600090603401604051602081830303815290604052805190602001209050919050565b600082612ac98584612fd6565b14949350505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604080516080810182526000808252602082018190529181018290526060810191909152600082815260046020526040902054610bec90613023565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612b959033908990889088906004016139be565b602060405180830381600087803b158015612baf57600080fd5b505af1925050508015612bdf575060408051601f3d908101601f19168201909252612bdc918101906139fb565b60015b612c3a573d808015612c0d576040519150601f19603f3d011682016040523d82523d6000602084013e612c12565b606091505b508051612c32576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b604080516080810182526000808252602082018190529181018290526060810191909152610bec612c8783612a10565b613023565b6000612c9b620186a083613a18565b9050612cc7733002e0e7db1fb99072516033b8dc2be9897178ba612cc2620126ec846138ff565b61296e565b612ceb73ce335de9adc23eb0f4c034ec3428b81d057f2316612cc2614a38846138ff565b612d0f73a55c2f8af10d603976deca0b61cd87ba2f9c6492612cc2610bb8846138ff565b612d337371db1f8e62bb3d2b77b00077b434a477ce966f2b612cc26107d0846138ff565b612a0c73c8b0d32bc09fb11c12c82582825c1e6b624822b84761296e565b6060600e8054610c0190613840565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a900480612d9757612d9c565b612d7a565b50819003601f19909101908152919050565b6000306001600160a01b037f000000000000000000000000592f6585dcaaf7524a7c5b17e9c1c80a917ac94c16148015612e0757507f000000000000000000000000000000000000000000000000000000000000000146145b15612e3157507f0e18294bde9ba7f71fa60634c5dd0c13a356ce5740f1eebe51c075cf201da5e690565b50604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6020808301919091527f10dce1c67b770217d17ae19d434011526db7e5acb6fd2b11bac600188d85fa58828401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b612edf838361306b565b6001600160a01b0383163b15611a54576000548281035b612f096000868380600101945086612b60565b612f26576040516368d2bf6b60e11b815260040160405180910390fd5b818110612ef6578160005414612f3b57600080fd5b5050505050565b6001600160a01b03841615801590612f6257506001600160a01b03831615155b8015612f755750612f73338361316f565b155b15612fd15760405162461bcd60e51b815260206004820152602660248201527f4552433732314f70657261746f7246696c7465723a20696c6c6567616c206f7060448201526532b930ba37b960d11b6064820152608401610e1b565b612549565b600081815b845181101561301b5761300782868381518110612ffa57612ffa613979565b6020026020010151613238565b91508061301381613a3a565b915050612fdb565b509392505050565b604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b6000548161308c5760405163b562e8dd60e01b815260040160405180910390fd5b6130996000848385612a71565b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461314857808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101613110565b508161316657604051622e076360e81b815260040160405180910390fd5b60005550505050565b6009546000906001600160a01b03168061318d576001915050610bec565b61319683611c81565b6001600160a01b0316846001600160a01b031614156131b9576001915050610bec565b604051630c962cb760e11b81523360048201526001600160a01b0382169063192c596e9060240160206040518083038186803b1580156131f857600080fd5b505afa15801561320c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132309190613a55565b949350505050565b60008183106132545760008281526020849052604090206122b8565b5060009182526020526040902090565b82805461327090613840565b90600052602060002090601f01602090048101928261329257600085556132d8565b82601f106132ab57805160ff19168380011785556132d8565b828001600101855582156132d8579182015b828111156132d85782518255916020019190600101906132bd565b506132e49291506132e8565b5090565b5b808211156132e457600081556001016132e9565b6001600160e01b031981168114610df657600080fd5b60006020828403121561332557600080fd5b81356122b8816132fd565b60005b8381101561334b578181015183820152602001613333565b838111156125495750506000910152565b60008151808452613374816020860160208601613330565b601f01601f19169290920160200192915050565b6020815260006122b8602083018461335c565b6000602082840312156133ad57600080fd5b5035919050565b6001600160a01b0381168114610df657600080fd5b6000602082840312156133db57600080fd5b81356122b8816133b4565b600080604083850312156133f957600080fd5b8235613404816133b4565b946020939093013593505050565b600080600080600060a0868803121561342a57600080fd5b8535945060208601359350604086013560ff8116811461344957600080fd5b94979396509394606081013594506080013592915050565b60008060006060848603121561347657600080fd5b8335613481816133b4565b92506020840135613491816133b4565b929592945050506040919091013590565b60008083601f8401126134b457600080fd5b50813567ffffffffffffffff8111156134cc57600080fd5b6020830191508360208260051b85010111156134e757600080fd5b9250929050565b60008060006040848603121561350357600080fd5b83359250602084013567ffffffffffffffff81111561352157600080fd5b61352d868287016134a2565b9497909650939450505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561356b5761356b61353a565b604051601f8501601f19908116603f011681019082821181831017156135935761359361353a565b816040528093508581528686860111156135ac57600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156135d857600080fd5b813567ffffffffffffffff8111156135ef57600080fd5b8201601f8101841361360057600080fd5b61323084823560208401613550565b6000806020838503121561362257600080fd5b823567ffffffffffffffff81111561363957600080fd5b613645858286016134a2565b90969095509350505050565b80516001600160a01b0316825260208082015167ffffffffffffffff169083015260408082015115159083015260609081015162ffffff16910152565b6020808252825182820181905260009190848201906040850190845b81811015612119576136bd838551613651565b92840192608092909201916001016136aa565b6020808252825182820181905260009190848201906040850190845b81811015612119578351835292840192918401916001016136ec565b60008060006060848603121561371d57600080fd5b8335613728816133b4565b95602085013595506040909401359392505050565b8015158114610df657600080fd5b6000806040838503121561375e57600080fd5b8235613769816133b4565b915060208301356137798161373d565b809150509250929050565b6000806000806080858703121561379a57600080fd5b84356137a5816133b4565b935060208501356137b5816133b4565b925060408501359150606085013567ffffffffffffffff8111156137d857600080fd5b8501601f810187136137e957600080fd5b6137f887823560208401613550565b91505092959194509250565b60808101610bec8284613651565b6000806040838503121561382557600080fd5b8235613830816133b4565b91506020830135613779816133b4565b600181811c9082168061385457607f821691505b6020821081141561387557634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526010908201526f50726573616c65204e6f74204c69766560801b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082198211156138ce576138ce6138a5565b500190565b60208082526012908201527145786365656473206d617820737570706c7960701b604082015260600190565b6000816000190483118215151615613919576139196138a5565b500290565b602080825260119082015270436c61696d696e6720546f6f204d616e7960781b604082015260600190565b60008282101561395b5761395b6138a5565b500390565b60006020828403121561397257600080fd5b5051919050565b634e487b7160e01b600052603260045260246000fd5b600083516139a1818460208801613330565b8351908301906139b5818360208801613330565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906139f19083018461335c565b9695505050505050565b600060208284031215613a0d57600080fd5b81516122b8816132fd565b600082613a3557634e487b7160e01b600052601260045260246000fd5b500490565b6000600019821415613a4e57613a4e6138a5565b5060010190565b600060208284031215613a6757600080fd5b81516122b88161373d56fea2646970667358221220a59e28f3740b82f9133986b412879047b2a73c954dcf748abe5e8b65f2d12aa864736f6c63430008090033

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

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000001248696464656e204b697474656e204369747900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003484b430000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002168747470733a2f2f68696464656e6b697474656e636974792e636f6d2f6170692f00000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : __name (string): Hidden Kitten City
Arg [1] : __symbol (string): HKC
Arg [2] : __baseURI (string): https://hiddenkittencity.com/api/

-----Encoded View---------------
10 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000012
Arg [4] : 48696464656e204b697474656e20436974790000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [6] : 484b430000000000000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000021
Arg [8] : 68747470733a2f2f68696464656e6b697474656e636974792e636f6d2f617069
Arg [9] : 2f00000000000000000000000000000000000000000000000000000000000000


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.