ETH Price: $3,456.17 (-0.78%)
Gas: 2 Gwei

Contract

0x99B4A4d833CccdD7Fa665F874e027978e3eFADBa
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Set Approval For...201804562024-06-27 3:52:115 days ago1719460331IN
0x99B4A4d8...8e3eFADBa
0 ETH0.000318046.81970028
Set Approval For...199041552024-05-19 13:03:1143 days ago1716123791IN
0x99B4A4d8...8e3eFADBa
0 ETH0.000088333.56070933
Set Approval For...197490012024-04-27 20:18:3565 days ago1714249115IN
0x99B4A4d8...8e3eFADBa
0 ETH0.00023535.03655663
Approve197310632024-04-25 8:02:5967 days ago1714032179IN
0x99B4A4d8...8e3eFADBa
0 ETH0.000565311.05907704
Set Approval For...197310472024-04-25 7:59:4767 days ago1714031987IN
0x99B4A4d8...8e3eFADBa
0 ETH0.000425469.10910755
Set Approval For...196889592024-04-19 10:42:3573 days ago1713523355IN
0x99B4A4d8...8e3eFADBa
0 ETH0.000206018.33266932
Transfer From195762532024-04-03 15:51:2389 days ago1712159483IN
0x99B4A4d8...8e3eFADBa
0 ETH0.0024175741.89908407
Safe Transfer Fr...195638172024-04-01 22:00:5991 days ago1712008859IN
0x99B4A4d8...8e3eFADBa
0 ETH0.0018024429.81215856
Safe Transfer Fr...195637772024-04-01 21:52:5991 days ago1712008379IN
0x99B4A4d8...8e3eFADBa
0 ETH0.0014694122.5163377
Transfer From194895142024-03-22 10:16:47101 days ago1711102607IN
0x99B4A4d8...8e3eFADBa
0 ETH0.0014938623.07774988
Set Approval For...193004042024-02-24 22:23:59128 days ago1708813439IN
0x99B4A4d8...8e3eFADBa
0 ETH0.0010821623.16280684
Transfer From192846952024-02-22 17:41:11130 days ago1708623671IN
0x99B4A4d8...8e3eFADBa
0 ETH0.0033344457.77733718
Set Approval For...192612542024-02-19 10:41:47133 days ago1708339307IN
0x99B4A4d8...8e3eFADBa
0 ETH0.0011704425.09743186
Set Approval For...192603312024-02-19 7:34:59133 days ago1708328099IN
0x99B4A4d8...8e3eFADBa
0 ETH0.0010688622.87816269
Set Approval For...192509012024-02-17 23:40:47135 days ago1708213247IN
0x99B4A4d8...8e3eFADBa
0 ETH0.0009310719.96466591
Set Approval For...192407532024-02-16 13:27:59136 days ago1708090079IN
0x99B4A4d8...8e3eFADBa
0 ETH0.0018111838.76683373
Set Approval For...192381702024-02-16 4:44:35137 days ago1708058675IN
0x99B4A4d8...8e3eFADBa
0 ETH0.0008897919.04521622
Set Approval For...192372952024-02-16 1:48:47137 days ago1708048127IN
0x99B4A4d8...8e3eFADBa
0 ETH0.0011484124.58087173
Set Approval For...192372322024-02-16 1:35:59137 days ago1708047359IN
0x99B4A4d8...8e3eFADBa
0 ETH0.0009425420.21068624
Set Approval For...192370552024-02-16 1:00:23137 days ago1708045223IN
0x99B4A4d8...8e3eFADBa
0 ETH0.0010848623.22061605
Set Approval For...192369382024-02-16 0:36:59137 days ago1708043819IN
0x99B4A4d8...8e3eFADBa
0 ETH0.001181825.29546935
Set Approval For...192369302024-02-16 0:35:23137 days ago1708043723IN
0x99B4A4d8...8e3eFADBa
0 ETH0.0011946225.61584671
Set Approval For...192354152024-02-15 19:28:23137 days ago1708025303IN
0x99B4A4d8...8e3eFADBa
0 ETH0.0037198479.51111465
Set Approval For...192330142024-02-15 11:25:11137 days ago1707996311IN
0x99B4A4d8...8e3eFADBa
0 ETH0.0011589924.80721735
Set Approval For...192330052024-02-15 11:23:11137 days ago1707996191IN
0x99B4A4d8...8e3eFADBa
0 ETH0.0011218124.054696
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block From To Value
159701622022-11-14 18:47:11595 days ago1668451631
0x99B4A4d8...8e3eFADBa
1.94 ETH
159701622022-11-14 18:47:11595 days ago1668451631
0x99B4A4d8...8e3eFADBa
0.06 ETH
159271582022-11-08 18:38:35601 days ago1667932715
0x99B4A4d8...8e3eFADBa
6.305 ETH
159271582022-11-08 18:38:35601 days ago1667932715
0x99B4A4d8...8e3eFADBa
0.195 ETH
159136392022-11-06 21:22:59603 days ago1667769779
0x99B4A4d8...8e3eFADBa
14.065 ETH
159136392022-11-06 21:22:59603 days ago1667769779
0x99B4A4d8...8e3eFADBa
0.435 ETH
158932452022-11-04 1:03:47606 days ago1667523827
0x99B4A4d8...8e3eFADBa
236.6674288 ETH
158932452022-11-04 1:03:47606 days ago1667523827
0x99B4A4d8...8e3eFADBa
7.3196112 ETH
158902112022-11-03 14:53:23606 days ago1667487203
0x99B4A4d8...8e3eFADBa
0.966144 ETH
158902112022-11-03 14:53:23606 days ago1667487203
0x99B4A4d8...8e3eFADBa
0.966144 ETH
158902112022-11-03 14:53:23606 days ago1667487203
0x99B4A4d8...8e3eFADBa
0.966144 ETH
158902112022-11-03 14:53:23606 days ago1667487203
0x99B4A4d8...8e3eFADBa
1.449216 ETH
158902112022-11-03 14:53:23606 days ago1667487203
0x99B4A4d8...8e3eFADBa
0.966144 ETH
158902112022-11-03 14:53:23606 days ago1667487203
0x99B4A4d8...8e3eFADBa
0.966144 ETH
158902112022-11-03 14:53:23606 days ago1667487203
0x99B4A4d8...8e3eFADBa
0.966144 ETH
158902112022-11-03 14:53:23606 days ago1667487203
0x99B4A4d8...8e3eFADBa
0.966144 ETH
158902112022-11-03 14:53:23606 days ago1667487203
0x99B4A4d8...8e3eFADBa
0.966144 ETH
158902112022-11-03 14:53:23606 days ago1667487203
0x99B4A4d8...8e3eFADBa
0.966144 ETH
158902112022-11-03 14:53:23606 days ago1667487203
0x99B4A4d8...8e3eFADBa
1.932288 ETH
158902112022-11-03 14:53:23606 days ago1667487203
0x99B4A4d8...8e3eFADBa
0.966144 ETH
158902112022-11-03 14:53:23606 days ago1667487203
0x99B4A4d8...8e3eFADBa
0.966144 ETH
158902112022-11-03 14:53:23606 days ago1667487203
0x99B4A4d8...8e3eFADBa
0.966144 ETH
158902112022-11-03 14:53:23606 days ago1667487203
0x99B4A4d8...8e3eFADBa
2.41536 ETH
158902112022-11-03 14:53:23606 days ago1667487203
0x99B4A4d8...8e3eFADBa
0.966144 ETH
158902112022-11-03 14:53:23606 days ago1667487203
0x99B4A4d8...8e3eFADBa
0.966144 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
VCXNFT

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 9 : VCXNFT.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import "erc721a/contracts/ERC721A.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";

contract VCXNFT is ERC721A, Ownable, ReentrancyGuard {
    using Strings for string;
    using EnumerableSet for EnumerableSet.AddressSet;

    constructor() ERC721A("Venture Capital X", "VCX") {}

    /// @notice Absolute maximum number of tokens that can be minted.
    uint public constant MAX_TOKENS = 2088;

    /// @notice Maximum number of reserved tokens that can be minted
    uint public constant MAX_RESERVED_TOKENS = 168;

    /// @notice Absolute maximum number of tokens that can be minted per wallet
    uint public constant MAX_TOKENS_PER_WALLET = 5;

    /// @notice Maximum number of tokens that can be minted for whale spots
    uint public constant MAX_WHALE_TOKENS = 500;

    /// @notice Number of reserved tokens that have been minted
    uint public reservedTokensMinted = 0;

    /// @notice Number of whale tokens that have been minted
    uint public whaleTokensMinted = 0;

    /// @notice Sale phase of the contract
    /// @dev 1 = Whale Spot Pledge, 2 = Whale Spot Mint, 3 = Platinum Presale, 4 = Gold Presale, 5 = Public Sale
    uint public salePhase = 1;

    /// @notice Move to the next sale phase
    function nextSalePhase() public onlyOwner {
        require(salePhase < 5, "Sale phase is already at the end");
        salePhase += 1;
    }

    /// @notice Change the sale phase manually
    /// @param phase The new sale phase
    /// @dev Only owner can call this function
    function setSalePhase(uint phase) public onlyOwner {
        require(phase >= 1 && phase <= 5, "Invalid sale phase");
        salePhase = phase;
    }

    /// @notice Number of tokens that have been minted for each wallet
    mapping(address => uint) public addressMintCount;

    /// @notice Price per token minted
    uint256 public price = 0.5 ether;

    /// @notice This function sets the price per token minted in wei
    /// @param newPrice The new price per token minted in wei
    function setPrice(uint256 newPrice) public onlyOwner {
        price = newPrice;
    }

    /// @notice Crossmint minter account (could be a contract)
    address public crossmintMinter;

    /// @notice Set the crossmint minter account
    /// @param minter The new crossmint minter account
    function setCrossmintMinter(address minter) public onlyOwner {
        crossmintMinter = minter;
    }

    /// @notice This mapping checks checks the address count for Platinum Presale
    mapping(address => uint) public addressPlatinumCount;

    /// @notice Mint tokens during Platinum, Gold, & public sales states
    /// @param to Address to mint to
    /// @param quantity Quantity to mint. should be only 2 for Platinum & Gold, and up to 5 wallet max in public
    /// @param merkleProof Merkle proof
    function crossMint(
        address to,
        uint quantity,
        bytes32[] calldata merkleProof
    ) public payable nonReentrant {
        require(crossmintMinter != address(0), "Crossmint minter not set");
        require(msg.sender == crossmintMinter, "Not crossmint minter");
        require(salePhase >= 3, "Wrong sale phase (should be 3 or higher)");

        if (salePhase == 3 || salePhase == 4) {
            require(
                addressPlatinumCount[to] + addressGoldCount[to] + quantity <= 2,
                "Address already purchased 2 Cards during platinum or gold presale"
            );

            require(
                verifyCrossmintWhitelist(merkleProof, to),
                "Invalid merkle proof for crossmint whitelist"
            );
        }

        require(
            addressMintCount[to] + quantity <= MAX_TOKENS_PER_WALLET,
            "Exceeds max tokens per wallet"
        );

        require(totalSupply() + quantity <= MAX_TOKENS, "Exceeds max tokens");

        require(msg.value >= quantity * price, "Not enough ETH sent");

        _mint(to, quantity);
        addressMintCount[to] += quantity;
        if (salePhase == 3) {
            addressPlatinumCount[to] += quantity;
        } else if (salePhase == 4) {
            addressGoldCount[to] += quantity;
        }
    }

    /// @notice Mint function for platinum group presale
    /// @param merkleProof Merkle proof
    /// @dev Only addresses on the platinum presale whitelist can mint
    function mintPlatinum(bytes32[] calldata merkleProof, uint quantity)
        public
        payable
        nonReentrant
    {
        require(salePhase == 3, "Wrong sale phase (should be 3)");
        require(
            addressMintCount[msg.sender] + quantity <= MAX_TOKENS_PER_WALLET,
            "Exceeds max tokens per wallet"
        );
        require(totalSupply() + quantity <= MAX_TOKENS, "Exceeds max tokens");
        require(msg.value >= quantity * price, "Not enough ETH sent");
        require(
            verifyPlatinumWhitelist(merkleProof, msg.sender),
            "Invalid merkle proof"
        );
        require(
            addressPlatinumCount[msg.sender] + quantity <= 2,
            "Already minted max limit of 2"
        );

        _mint(msg.sender, quantity);
        addressPlatinumCount[msg.sender] += quantity;
        addressMintCount[msg.sender] += quantity;
    }

    /// @notice This mapping checks checks the address count for Gold Presale
    mapping(address => uint) public addressGoldCount;

    /// @notice Mint function for gold group presale
    /// @param merkleProof Merkle proof
    /// @dev Only addresses on the platinum and gold presale whitelists can mint
    function mintGold(bytes32[] calldata merkleProof, uint quantity)
        public
        payable
        nonReentrant
    {
        require(salePhase == 4, "Wrong sale phase (should be 4)");
        require(
            addressMintCount[msg.sender] + quantity <= MAX_TOKENS_PER_WALLET,
            "Exceeds max tokens per wallet"
        );
        require(totalSupply() + quantity <= MAX_TOKENS, "Exceeds max tokens");
        require(msg.value >= quantity * price, "Not enough ETH sent");

        bool whitelistedOnPlatinum = verifyPlatinumWhitelist(
            merkleProof,
            msg.sender
        );
        bool whitelistedOnGold = verifyGoldWhitelist(merkleProof, msg.sender);

        require(
            whitelistedOnPlatinum || whitelistedOnGold,
            "Invalid merkle proof"
        );

        require(
            addressPlatinumCount[msg.sender] +
                addressGoldCount[msg.sender] +
                quantity <=
                2,
            "Address already purchased 2 Cards during platinum or gold presale"
        );

        _mint(msg.sender, quantity);
        addressGoldCount[msg.sender] += quantity;
        addressMintCount[msg.sender] += quantity;
    }

    /// @notice Mint function for public sale
    /// @param quantity Quantity to mint
    function mintPublic(uint quantity) public payable nonReentrant {
        require(salePhase == 5, "Wrong sale phase (should be 5)");
        require(
            addressMintCount[msg.sender] + quantity <= MAX_TOKENS_PER_WALLET,
            "Exceeds max tokens per wallet"
        );
        require(totalSupply() + quantity <= MAX_TOKENS, "Exceeds max tokens");
        require(msg.value >= quantity * price, "Not enough ETH sent");

        _mint(msg.sender, quantity);
        addressMintCount[msg.sender] += quantity;
    }

    /// @notice Mint reserved tokens
    /// @param to The address to mint the tokens to
    /// @param amount The number of tokens to mint
    /// @dev Only callable by owner, ignores max tokens per wallet
    function mintReservedTokens(address to, uint amount)
        public
        onlyOwner
        nonReentrant
    {
        require(totalSupply() + amount <= MAX_TOKENS, "Exceeds max supply");
        require(
            reservedTokensMinted + amount <= MAX_RESERVED_TOKENS,
            "Exceeds maximum reserved tokens"
        );

        _mint(to, amount);
        reservedTokensMinted += amount;
        addressMintCount[to] += amount;
    }

    /// @notice pledgemint.io contract address
    address public pledgeContractAddress = address(0);

    /// @notice This function sets the pledgemint contract address
    /// @param contractAddress The new pledgemint contract address
    function setPledgeContractAddress(address contractAddress)
        public
        onlyOwner
    {
        pledgeContractAddress = contractAddress;
    }

    /// @notice Mint function for pledgemint.io integration
    /// @param to The address to mint the tokens to
    /// @param quantity The number of tokens to mint
    function pledgeMint(address to, uint8 quantity)
        public
        payable
        nonReentrant
    {
        require(
            msg.sender == pledgeContractAddress || msg.sender == owner(),
            "Only pledgemint or owner can call this function"
        );
        require(totalSupply() + quantity <= MAX_TOKENS, "Exceeds max supply");
        require(
            whaleTokensMinted + quantity <= MAX_WHALE_TOKENS,
            "Exceeds max whale tokens"
        );
        require(
            addressMintCount[to] + quantity <= MAX_TOKENS_PER_WALLET,
            "Exceeds max tokens per wallet"
        );

        whaleTokensMinted += quantity;
        addressMintCount[to] += quantity;
        _mint(to, quantity);
    }

    /// @dev payment splitter (please double check this address)
    address payable private devguy =
        payable(0x7ea9114092eC4379FFdf51bA6B72C71265F33e96);

    /// @notice Withdraw funds from the contract
    /// @dev This function can only be called by either owner or devguy. The split is hard-coded at 97% to owner and 3% to devguy.
    function withdraw() external nonReentrant {
        require(
            msg.sender == devguy || msg.sender == owner(),
            "Invalid sender"
        );
        (bool success, ) = devguy.call{
            value: (address(this).balance / 100) * 3
        }("");
        (bool success2, ) = owner().call{value: address(this).balance}("");
        require(success, "Transfer 1 failed");
        require(success2, "Transfer 2 failed");
    }

    /// @dev Merkle tree roots (these are test values which should be replaced on deploy)
    bytes32 public crossmintRoot = bytes32(0);
    bytes32 private platinumRoot = bytes32(0);
    bytes32 private goldRoot = bytes32(0);

    /// @notice This function sets the crossmint merkle root (callable only by contract owner)
    /// @param root The new crossmint merkle root
    function setCrossmintRoot(bytes32 root) public onlyOwner {
        crossmintRoot = root;
    }

    /// @notice Verify a proof for the crossmint platinum group merkle tree
    /// @param proof The proof to verify
    /// @param addressToVerify The address to verify
    /// @return True if the proof is valid which means the address is on the crossmint platinum group whitelist, otherwise false
    function verifyCrossmintWhitelist(
        bytes32[] memory proof,
        address addressToVerify
    ) internal view returns (bool) {
        bytes32 leaf = keccak256(abi.encodePacked(addressToVerify));
        return MerkleProof.verify(proof, crossmintRoot, leaf);
    }

    /// @notice Set the platinum group merkle root (callable only by contract owner)
    /// @param root The new merkle root
    function setPlatinumRoot(bytes32 root) public onlyOwner {
        platinumRoot = root;
    }

    /// @notice Verify a proof for the platinum group merkle tree
    /// @param proof The proof to verify
    /// @param addressToVerify The address to verify
    /// @return True if the proof is valid which means the address is on the platinum group whitelist, otherwise false
    function verifyPlatinumWhitelist(
        bytes32[] memory proof,
        address addressToVerify
    ) internal view returns (bool) {
        bytes32 leaf = keccak256(abi.encodePacked(addressToVerify));
        return MerkleProof.verify(proof, platinumRoot, leaf);
    }

    /// @notice Set the gold group merkle root (callable only by contract owner)
    /// @param root The new merkle root
    function setGoldRoot(bytes32 root) public onlyOwner {
        goldRoot = root;
    }

    /// @notice Verify a proof for the gold group merkle tree
    /// @param proof The proof to verify
    /// @param addressToVerify The address to verify
    /// @return True if the proof is valid which means the address is on the gold group whitelist, otherwise false
    function verifyGoldWhitelist(
        bytes32[] memory proof,
        address addressToVerify
    ) internal view returns (bool) {
        bytes32 leaf = keccak256(abi.encodePacked(addressToVerify));
        return MerkleProof.verify(proof, goldRoot, leaf);
    }

    /// @dev The Base URI is the link copied from your IPFS Folder holding your collections json
    string private _baseTokenURI;

    /// @notice placeholder URI to add an image, gif, or video prior to reveal
    string public notRevealedUri;

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

    /// @notice Set the base URI (callable only by contract owner)
    /// @param baseURI The new base URI
    function setBaseURI(string calldata baseURI) public onlyOwner {
        _baseTokenURI = baseURI;
    }

    /// @notice Get the token URI for a given token ID
    /// @param tokenId The token ID
    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        require(
            _exists(tokenId),
            "ERC721Metadata: URI query for nonexistent token"
        );

        string memory _tokenURI = super.tokenURI(tokenId);
        return
            bytes(_tokenURI).length > 0
                ? string(abi.encodePacked(_tokenURI, ".json"))
                : "";
    }
}

File 2 of 9 : EnumerableSet.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/structs/EnumerableSet.sol)

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 *
 * [WARNING]
 * ====
 *  Trying to delete such a structure from storage will likely result in data corruption, rendering the structure unusable.
 *  See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.
 *
 *  In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an array of EnumerableSet.
 * ====
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;
        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping(bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) {
            // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            if (lastIndex != toDeleteIndex) {
                bytes32 lastValue = set._values[lastIndex];

                // Move the last value to the index where the value to delete is
                set._values[toDeleteIndex] = lastValue;
                // Update the index for the moved value
                set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex
            }

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        return set._values[index];
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function _values(Set storage set) private view returns (bytes32[] memory) {
        return set._values;
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {
        return _values(set._inner);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(AddressSet storage set) internal view returns (address[] memory) {
        bytes32[] memory store = _values(set._inner);
        address[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }

    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

    /**
     * @dev Returns the value stored at position `index` in the set. O(1).
     *
     * Note that there are no guarantees on the ordering of values inside the
     * array, and it may change when more values are added or removed.
     *
     * Requirements:
     *
     * - `index` must be strictly less than {length}.
     */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }

    /**
     * @dev Return the entire set in an array
     *
     * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed
     * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that
     * this function has an unbounded cost, and using it as part of a state-changing function may render the function
     * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.
     */
    function values(UintSet storage set) internal view returns (uint256[] memory) {
        bytes32[] memory store = _values(set._inner);
        uint256[] memory result;

        /// @solidity memory-safe-assembly
        assembly {
            result := store
        }

        return result;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

File 4 of 9 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 5 of 9 : 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 6 of 9 : 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 7 of 9 : 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 8 of 9 : 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 9 of 9 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_RESERVED_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOKENS_PER_WALLET","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_WHALE_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressGoldCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressMintCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressPlatinumCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"crossMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"crossmintMinter","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"crossmintRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"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":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mintGold","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mintPlatinum","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mintPublic","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mintReservedTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nextSalePhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"notRevealedUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pledgeContractAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint8","name":"quantity","type":"uint8"}],"name":"pledgeMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reservedTokensMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"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":[],"name":"salePhase","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"minter","type":"address"}],"name":"setCrossmintMinter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"setCrossmintRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"setGoldRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"root","type":"bytes32"}],"name":"setPlatinumRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"contractAddress","type":"address"}],"name":"setPledgeContractAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"phase","type":"uint256"}],"name":"setSalePhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whaleTokensMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526000600a556000600b556001600c556706f05b59d3b20000600e556000601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550737ea9114092ec4379ffdf51ba6b72c71265f33e96601360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506000801b6014556000801b6015556000801b601655348015620000d857600080fd5b506040518060400160405280601181526020017f56656e74757265204361706974616c20580000000000000000000000000000008152506040518060400160405280600381526020017f564358000000000000000000000000000000000000000000000000000000000081525081600290805190602001906200015d92919062000290565b5080600390805190602001906200017692919062000290565b5062000187620001bd60201b60201c565b6000819055505050620001af620001a3620001c260201b60201c565b620001ca60201b60201c565b6001600981905550620003a4565b600090565b600033905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8280546200029e906200036f565b90600052602060002090601f016020900481019282620002c257600085556200030e565b82601f10620002dd57805160ff19168380011785556200030e565b828001600101855582156200030e579182015b828111156200030d578251825591602001919060010190620002f0565b5b5090506200031d919062000321565b5090565b5b808211156200033c57600081600090555060010162000322565b5090565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806200038857607f821691505b6020821081036200039e576200039d62000340565b5b50919050565b6152d080620003b46000396000f3fe6080604052600436106102935760003560e01c806393872a591161015a578063c87b56dd116100c1578063e985e9c51161007a578063e985e9c51461097d578063efd0cbf9146109ba578063f2fde38b146109d6578063f3e38821146109ff578063f47c84c514610a2a578063fb0f4a7f14610a5557610293565b8063c87b56dd1461086d578063cf3df230146108aa578063d1bdb1d1146108d3578063d83b1e83146108fe578063e4f2487a14610929578063e8c2a72d1461095457610293565b8063a8d826c411610113578063a8d826c41461077b578063ae8dbc38146107a6578063b415c410146107cf578063b769c7a4146107eb578063b80b7fc914610814578063b88d4fde1461085157610293565b806393872a591461066b57806395d89b41146106a85780639c652cee146106d3578063a035b1fe146106fc578063a22cb46514610727578063a511ed0b1461075057610293565b80633ccfd60b116101fe57806370a08231116101b757806370a0823114610581578063715018a6146105be57806371fd3b45146105d55780638d5f66f0146105ec5780638da5cb5b1461061757806391b7f5ed1461064257610293565b80633ccfd60b1461049457806342842e0e146104ab57806355f804b3146104c757806357535c43146104f05780636352211e146105195780636b2545211461055657610293565b806318160ddd1161025057806318160ddd146103ad5780631ba4f67d146103d85780631c45517c146104155780631fba58ed1461043157806323b872dd1461045c57806331cb94801461047857610293565b806301ffc9a71461029857806304746a9b146102d557806306fdde03146102fe578063081812fc14610329578063081c8c4414610366578063095ea7b314610391575b600080fd5b3480156102a457600080fd5b506102bf60048036038101906102ba91906139f4565b610a71565b6040516102cc9190613a3c565b60405180910390f35b3480156102e157600080fd5b506102fc60048036038101906102f79190613a8d565b610b03565b005b34801561030a57600080fd5b50610313610b15565b6040516103209190613b53565b60405180910390f35b34801561033557600080fd5b50610350600480360381019061034b9190613bab565b610ba7565b60405161035d9190613c19565b60405180910390f35b34801561037257600080fd5b5061037b610c26565b6040516103889190613b53565b60405180910390f35b6103ab60048036038101906103a69190613c60565b610cb4565b005b3480156103b957600080fd5b506103c2610df8565b6040516103cf9190613caf565b60405180910390f35b3480156103e457600080fd5b506103ff60048036038101906103fa9190613cca565b610e0f565b60405161040c9190613caf565b60405180910390f35b61042f600480360381019061042a9190613d5c565b610e27565b005b34801561043d57600080fd5b50610446611271565b6040516104539190613c19565b60405180910390f35b61047660048036038101906104719190613dbc565b611297565b005b610492600480360381019061048d9190613d5c565b6115b9565b005b3480156104a057600080fd5b506104a961195b565b005b6104c560048036038101906104c09190613dbc565b611c1a565b005b3480156104d357600080fd5b506104ee60048036038101906104e99190613e65565b611c3a565b005b3480156104fc57600080fd5b5061051760048036038101906105129190613c60565b611c58565b005b34801561052557600080fd5b50610540600480360381019061053b9190613bab565b611dda565b60405161054d9190613c19565b60405180910390f35b34801561056257600080fd5b5061056b611dec565b6040516105789190613caf565b60405180910390f35b34801561058d57600080fd5b506105a860048036038101906105a39190613cca565b611df2565b6040516105b59190613caf565b60405180910390f35b3480156105ca57600080fd5b506105d3611eaa565b005b3480156105e157600080fd5b506105ea611ebe565b005b3480156105f857600080fd5b50610601611f27565b60405161060e9190613caf565b60405180910390f35b34801561062357600080fd5b5061062c611f2d565b6040516106399190613c19565b60405180910390f35b34801561064e57600080fd5b5061066960048036038101906106649190613bab565b611f57565b005b34801561067757600080fd5b50610692600480360381019061068d9190613cca565b611f69565b60405161069f9190613caf565b60405180910390f35b3480156106b457600080fd5b506106bd611f81565b6040516106ca9190613b53565b60405180910390f35b3480156106df57600080fd5b506106fa60048036038101906106f59190613cca565b612013565b005b34801561070857600080fd5b5061071161205f565b60405161071e9190613caf565b60405180910390f35b34801561073357600080fd5b5061074e60048036038101906107499190613ede565b612065565b005b34801561075c57600080fd5b50610765612170565b6040516107729190613f2d565b60405180910390f35b34801561078757600080fd5b50610790612176565b60405161079d9190613caf565b60405180910390f35b3480156107b257600080fd5b506107cd60048036038101906107c89190613a8d565b61217b565b005b6107e960048036038101906107e49190613f48565b61218d565b005b3480156107f757600080fd5b50610812600480360381019061080d9190613bab565b612726565b005b34801561082057600080fd5b5061083b60048036038101906108369190613cca565b612789565b6040516108489190613caf565b60405180910390f35b61086b600480360381019061086691906140ec565b6127a1565b005b34801561087957600080fd5b50610894600480360381019061088f9190613bab565b612814565b6040516108a19190613b53565b60405180910390f35b3480156108b657600080fd5b506108d160048036038101906108cc9190613cca565b6128b2565b005b3480156108df57600080fd5b506108e86128fe565b6040516108f59190613caf565b60405180910390f35b34801561090a57600080fd5b50610913612903565b6040516109209190613c19565b60405180910390f35b34801561093557600080fd5b5061093e612929565b60405161094b9190613caf565b60405180910390f35b34801561096057600080fd5b5061097b60048036038101906109769190613a8d565b61292f565b005b34801561098957600080fd5b506109a4600480360381019061099f919061416f565b612941565b6040516109b19190613a3c565b60405180910390f35b6109d460048036038101906109cf9190613bab565b6129d5565b005b3480156109e257600080fd5b506109fd60048036038101906109f89190613cca565b612c07565b005b348015610a0b57600080fd5b50610a14612c8a565b604051610a219190613caf565b60405180910390f35b348015610a3657600080fd5b50610a3f612c90565b604051610a4c9190613caf565b60405180910390f35b610a6f6004803603810190610a6a91906141e8565b612c96565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610acc57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610afc5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b610b0b612f7e565b8060148190555050565b606060028054610b2490614257565b80601f0160208091040260200160405190810160405280929190818152602001828054610b5090614257565b8015610b9d5780601f10610b7257610100808354040283529160200191610b9d565b820191906000526020600020905b815481529060010190602001808311610b8057829003601f168201915b5050505050905090565b6000610bb282612ffc565b610be8576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60188054610c3390614257565b80601f0160208091040260200160405190810160405280929190818152602001828054610c5f90614257565b8015610cac5780601f10610c8157610100808354040283529160200191610cac565b820191906000526020600020905b815481529060010190602001808311610c8f57829003601f168201915b505050505081565b6000610cbf82611dda565b90508073ffffffffffffffffffffffffffffffffffffffff16610ce061305b565b73ffffffffffffffffffffffffffffffffffffffff1614610d4357610d0c81610d0761305b565b612941565b610d42576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000610e02613063565b6001546000540303905090565b600d6020528060005260406000206000915090505481565b600260095403610e6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e63906142d4565b60405180910390fd5b60026009819055506004600c5414610eb9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb090614340565b60405180910390fd5b600581600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610f06919061438f565b1115610f47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3e90614431565b60405180910390fd5b61082881610f53610df8565b610f5d919061438f565b1115610f9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f959061449d565b60405180910390fd5b600e5481610fac91906144bd565b341015610fee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe590614563565b60405180910390fd5b600061103b848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505033613068565b9050600061108a858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050336130aa565b905081806110955750805b6110d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110cb906145cf565b60405180910390fd5b600283601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611161919061438f565b61116b919061438f565b11156111ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111a390614687565b60405180910390fd5b6111b633846130ec565b82601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611205919061438f565b9250508190555082600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461125b919061438f565b9250508190555050506001600981905550505050565b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006112a2826132a7565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611309576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061131584613373565b9150915061132b818761132661305b565b61339a565b611377576113408661133b61305b565b612941565b611376576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036113dd576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6113ea86868660016133de565b80156113f557600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506114c38561149f8888876133e4565b7c02000000000000000000000000000000000000000000000000000000001761340c565b600460008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008416036115495760006001850190506000600460008381526020019081526020016000205403611547576000548114611546578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46115b18686866001613437565b505050505050565b6002600954036115fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115f5906142d4565b60405180910390fd5b60026009819055506003600c541461164b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611642906146f3565b60405180910390fd5b600581600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611698919061438f565b11156116d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d090614431565b60405180910390fd5b610828816116e5610df8565b6116ef919061438f565b1115611730576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117279061449d565b60405180910390fd5b600e548161173e91906144bd565b341015611780576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177790614563565b60405180910390fd5b6117cb838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505033613068565b61180a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611801906145cf565b60405180910390fd5b600281601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611857919061438f565b1115611898576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188f9061475f565b60405180910390fd5b6118a233826130ec565b80601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546118f1919061438f565b9250508190555080600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611947919061438f565b925050819055506001600981905550505050565b6002600954036119a0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611997906142d4565b60405180910390fd5b6002600981905550601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480611a365750611a07611f2d565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611a75576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6c906147cb565b60405180910390fd5b6000601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166003606447611abf919061481a565b611ac991906144bd565b604051611ad59061487c565b60006040518083038185875af1925050503d8060008114611b12576040519150601f19603f3d011682016040523d82523d6000602084013e611b17565b606091505b505090506000611b25611f2d565b73ffffffffffffffffffffffffffffffffffffffff1647604051611b489061487c565b60006040518083038185875af1925050503d8060008114611b85576040519150601f19603f3d011682016040523d82523d6000602084013e611b8a565b606091505b5050905081611bce576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bc5906148dd565b60405180910390fd5b80611c0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c0590614949565b60405180910390fd5b50506001600981905550565b611c35838383604051806020016040528060008152506127a1565b505050565b611c42612f7e565b818160179190611c539291906138e5565b505050565b611c60612f7e565b600260095403611ca5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c9c906142d4565b60405180910390fd5b600260098190555061082881611cb9610df8565b611cc3919061438f565b1115611d04576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cfb906149b5565b60405180910390fd5b60a881600a54611d14919061438f565b1115611d55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4c90614a21565b60405180910390fd5b611d5f82826130ec565b80600a6000828254611d71919061438f565b9250508190555080600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611dc7919061438f565b9250508190555060016009819055505050565b6000611de5826132a7565b9050919050565b600b5481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611e59576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611eb2612f7e565b611ebc600061343d565b565b611ec6612f7e565b6005600c5410611f0b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f0290614a8d565b60405180910390fd5b6001600c6000828254611f1e919061438f565b92505081905550565b6101f481565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611f5f612f7e565b80600e8190555050565b60106020528060005260406000206000915090505481565b606060038054611f9090614257565b80601f0160208091040260200160405190810160405280929190818152602001828054611fbc90614257565b80156120095780601f10611fde57610100808354040283529160200191612009565b820191906000526020600020905b815481529060010190602001808311611fec57829003601f168201915b5050505050905090565b61201b612f7e565b80600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600e5481565b806007600061207261305b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661211f61305b565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516121649190613a3c565b60405180910390a35050565b60145481565b60a881565b612183612f7e565b8060168190555050565b6002600954036121d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121c9906142d4565b60405180910390fd5b6002600981905550600073ffffffffffffffffffffffffffffffffffffffff16600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff160361226b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161226290614af9565b60405180910390fd5b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146122fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122f290614b65565b60405180910390fd5b6003600c541015612341576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161233890614bf7565b60405180910390fd5b6003600c54148061235457506004600c54145b156124bc57600283601160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054601060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546123e6919061438f565b6123f0919061438f565b1115612431576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161242890614687565b60405180910390fd5b61247c828280806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505085613503565b6124bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124b290614c89565b60405180910390fd5b5b600583600d60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612509919061438f565b111561254a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161254190614431565b60405180910390fd5b61082883612556610df8565b612560919061438f565b11156125a1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125989061449d565b60405180910390fd5b600e54836125af91906144bd565b3410156125f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125e890614563565b60405180910390fd5b6125fb84846130ec565b82600d60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461264a919061438f565b925050819055506003600c54036126b65782601060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546126aa919061438f565b92505081905550612718565b6004600c54036127175782601160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461270f919061438f565b925050819055505b5b600160098190555050505050565b61272e612f7e565b60018110158015612740575060058111155b61277f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161277690614cf5565b60405180910390fd5b80600c8190555050565b60116020528060005260406000206000915090505481565b6127ac848484611297565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461280e576127d784848484613545565b61280d576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b606061281f82612ffc565b61285e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161285590614d87565b60405180910390fd5b600061286983613695565b9050600081511161288957604051806020016040528060008152506128aa565b8060405160200161289a9190614e2f565b6040516020818303038152906040525b915050919050565b6128ba612f7e565b80601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600581565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600c5481565b612937612f7e565b8060158190555050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600260095403612a1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a11906142d4565b60405180910390fd5b60026009819055506005600c5414612a67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a5e90614e9d565b60405180910390fd5b600581600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612ab4919061438f565b1115612af5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aec90614431565b60405180910390fd5b61082881612b01610df8565b612b0b919061438f565b1115612b4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b439061449d565b60405180910390fd5b600e5481612b5a91906144bd565b341015612b9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b9390614563565b60405180910390fd5b612ba633826130ec565b80600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612bf5919061438f565b92505081905550600160098190555050565b612c0f612f7e565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612c7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c7590614f2f565b60405180910390fd5b612c878161343d565b50565b600a5481565b61082881565b600260095403612cdb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cd2906142d4565b60405180910390fd5b6002600981905550601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480612d715750612d42611f2d565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b612db0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612da790614fc1565b60405180910390fd5b6108288160ff16612dbf610df8565b612dc9919061438f565b1115612e0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e01906149b5565b60405180910390fd5b6101f48160ff16600b54612e1e919061438f565b1115612e5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e569061502d565b60405180910390fd5b60058160ff16600d60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612eaf919061438f565b1115612ef0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ee790614431565b60405180910390fd5b8060ff16600b6000828254612f05919061438f565b925050819055508060ff16600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612f5e919061438f565b92505081905550612f72828260ff166130ec565b60016009819055505050565b612f86613733565b73ffffffffffffffffffffffffffffffffffffffff16612fa4611f2d565b73ffffffffffffffffffffffffffffffffffffffff1614612ffa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ff190615099565b60405180910390fd5b565b600081613007613063565b11158015613016575060005482105b8015613054575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b600090565b6000808260405160200161307c9190615101565b6040516020818303038152906040528051906020012090506130a1846015548361373b565b91505092915050565b600080826040516020016130be9190615101565b6040516020818303038152906040528051906020012090506130e3846016548361373b565b91505092915050565b6000805490506000820361312c576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61313960008483856133de565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506131b0836131a160008660006133e4565b6131aa85613752565b1761340c565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461325157808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050613216565b506000820361328c576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506132a26000848385613437565b505050565b600080829050806132b6613063565b1161333c5760005481101561333b5760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603613339575b6000810361332f576004600083600190039350838152602001908152602001600020549050613305565b809250505061336e565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e86133fb868684613762565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080826040516020016135179190615101565b60405160208183030381529060405280519060200120905061353c846014548361373b565b91505092915050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261356b61305b565b8786866040518563ffffffff1660e01b815260040161358d9493929190615171565b6020604051808303816000875af19250505080156135c957506040513d601f19601f820116820180604052508101906135c691906151d2565b60015b613642573d80600081146135f9576040519150601f19603f3d011682016040523d82523d6000602084013e6135fe565b606091505b50600081510361363a576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60606136a082612ffc565b6136d6576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006136e061376b565b90506000815103613700576040518060200160405280600081525061372b565b8061370a846137fd565b60405160200161371b9291906151ff565b6040516020818303038152906040525b915050919050565b600033905090565b600082613748858461384d565b1490509392505050565b60006001821460e11b9050919050565b60009392505050565b60606017805461377a90614257565b80601f01602080910402602001604051908101604052809291908181526020018280546137a690614257565b80156137f35780601f106137c8576101008083540402835291602001916137f3565b820191906000526020600020905b8154815290600101906020018083116137d657829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b60011561383857600184039350600a81066030018453600a8104905080613816575b50828103602084039350808452505050919050565b60008082905060005b8451811015613898576138838286838151811061387657613875615223565b5b60200260200101516138a3565b9150808061389090615252565b915050613856565b508091505092915050565b60008183106138bb576138b682846138ce565b6138c6565b6138c583836138ce565b5b905092915050565b600082600052816020526040600020905092915050565b8280546138f190614257565b90600052602060002090601f016020900481019282613913576000855561395a565b82601f1061392c57803560ff191683800117855561395a565b8280016001018555821561395a579182015b8281111561395957823582559160200191906001019061393e565b5b509050613967919061396b565b5090565b5b8082111561398457600081600090555060010161396c565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6139d18161399c565b81146139dc57600080fd5b50565b6000813590506139ee816139c8565b92915050565b600060208284031215613a0a57613a09613992565b5b6000613a18848285016139df565b91505092915050565b60008115159050919050565b613a3681613a21565b82525050565b6000602082019050613a516000830184613a2d565b92915050565b6000819050919050565b613a6a81613a57565b8114613a7557600080fd5b50565b600081359050613a8781613a61565b92915050565b600060208284031215613aa357613aa2613992565b5b6000613ab184828501613a78565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613af4578082015181840152602081019050613ad9565b83811115613b03576000848401525b50505050565b6000601f19601f8301169050919050565b6000613b2582613aba565b613b2f8185613ac5565b9350613b3f818560208601613ad6565b613b4881613b09565b840191505092915050565b60006020820190508181036000830152613b6d8184613b1a565b905092915050565b6000819050919050565b613b8881613b75565b8114613b9357600080fd5b50565b600081359050613ba581613b7f565b92915050565b600060208284031215613bc157613bc0613992565b5b6000613bcf84828501613b96565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613c0382613bd8565b9050919050565b613c1381613bf8565b82525050565b6000602082019050613c2e6000830184613c0a565b92915050565b613c3d81613bf8565b8114613c4857600080fd5b50565b600081359050613c5a81613c34565b92915050565b60008060408385031215613c7757613c76613992565b5b6000613c8585828601613c4b565b9250506020613c9685828601613b96565b9150509250929050565b613ca981613b75565b82525050565b6000602082019050613cc46000830184613ca0565b92915050565b600060208284031215613ce057613cdf613992565b5b6000613cee84828501613c4b565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f840112613d1c57613d1b613cf7565b5b8235905067ffffffffffffffff811115613d3957613d38613cfc565b5b602083019150836020820283011115613d5557613d54613d01565b5b9250929050565b600080600060408486031215613d7557613d74613992565b5b600084013567ffffffffffffffff811115613d9357613d92613997565b5b613d9f86828701613d06565b93509350506020613db286828701613b96565b9150509250925092565b600080600060608486031215613dd557613dd4613992565b5b6000613de386828701613c4b565b9350506020613df486828701613c4b565b9250506040613e0586828701613b96565b9150509250925092565b60008083601f840112613e2557613e24613cf7565b5b8235905067ffffffffffffffff811115613e4257613e41613cfc565b5b602083019150836001820283011115613e5e57613e5d613d01565b5b9250929050565b60008060208385031215613e7c57613e7b613992565b5b600083013567ffffffffffffffff811115613e9a57613e99613997565b5b613ea685828601613e0f565b92509250509250929050565b613ebb81613a21565b8114613ec657600080fd5b50565b600081359050613ed881613eb2565b92915050565b60008060408385031215613ef557613ef4613992565b5b6000613f0385828601613c4b565b9250506020613f1485828601613ec9565b9150509250929050565b613f2781613a57565b82525050565b6000602082019050613f426000830184613f1e565b92915050565b60008060008060608587031215613f6257613f61613992565b5b6000613f7087828801613c4b565b9450506020613f8187828801613b96565b935050604085013567ffffffffffffffff811115613fa257613fa1613997565b5b613fae87828801613d06565b925092505092959194509250565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613ff982613b09565b810181811067ffffffffffffffff8211171561401857614017613fc1565b5b80604052505050565b600061402b613988565b90506140378282613ff0565b919050565b600067ffffffffffffffff82111561405757614056613fc1565b5b61406082613b09565b9050602081019050919050565b82818337600083830152505050565b600061408f61408a8461403c565b614021565b9050828152602081018484840111156140ab576140aa613fbc565b5b6140b684828561406d565b509392505050565b600082601f8301126140d3576140d2613cf7565b5b81356140e384826020860161407c565b91505092915050565b6000806000806080858703121561410657614105613992565b5b600061411487828801613c4b565b945050602061412587828801613c4b565b935050604061413687828801613b96565b925050606085013567ffffffffffffffff81111561415757614156613997565b5b614163878288016140be565b91505092959194509250565b6000806040838503121561418657614185613992565b5b600061419485828601613c4b565b92505060206141a585828601613c4b565b9150509250929050565b600060ff82169050919050565b6141c5816141af565b81146141d057600080fd5b50565b6000813590506141e2816141bc565b92915050565b600080604083850312156141ff576141fe613992565b5b600061420d85828601613c4b565b925050602061421e858286016141d3565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061426f57607f821691505b60208210810361428257614281614228565b5b50919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006142be601f83613ac5565b91506142c982614288565b602082019050919050565b600060208201905081810360008301526142ed816142b1565b9050919050565b7f57726f6e672073616c65207068617365202873686f756c642062652034290000600082015250565b600061432a601e83613ac5565b9150614335826142f4565b602082019050919050565b600060208201905081810360008301526143598161431d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061439a82613b75565b91506143a583613b75565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156143da576143d9614360565b5b828201905092915050565b7f45786365656473206d617820746f6b656e73207065722077616c6c6574000000600082015250565b600061441b601d83613ac5565b9150614426826143e5565b602082019050919050565b6000602082019050818103600083015261444a8161440e565b9050919050565b7f45786365656473206d617820746f6b656e730000000000000000000000000000600082015250565b6000614487601283613ac5565b915061449282614451565b602082019050919050565b600060208201905081810360008301526144b68161447a565b9050919050565b60006144c882613b75565b91506144d383613b75565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561450c5761450b614360565b5b828202905092915050565b7f4e6f7420656e6f756768204554482073656e7400000000000000000000000000600082015250565b600061454d601383613ac5565b915061455882614517565b602082019050919050565b6000602082019050818103600083015261457c81614540565b9050919050565b7f496e76616c6964206d65726b6c652070726f6f66000000000000000000000000600082015250565b60006145b9601483613ac5565b91506145c482614583565b602082019050919050565b600060208201905081810360008301526145e8816145ac565b9050919050565b7f4164647265737320616c7265616479207075726368617365642032204361726460008201527f7320647572696e6720706c6174696e756d206f7220676f6c642070726573616c60208201527f6500000000000000000000000000000000000000000000000000000000000000604082015250565b6000614671604183613ac5565b915061467c826145ef565b606082019050919050565b600060208201905081810360008301526146a081614664565b9050919050565b7f57726f6e672073616c65207068617365202873686f756c642062652033290000600082015250565b60006146dd601e83613ac5565b91506146e8826146a7565b602082019050919050565b6000602082019050818103600083015261470c816146d0565b9050919050565b7f416c7265616479206d696e746564206d6178206c696d6974206f662032000000600082015250565b6000614749601d83613ac5565b915061475482614713565b602082019050919050565b600060208201905081810360008301526147788161473c565b9050919050565b7f496e76616c69642073656e646572000000000000000000000000000000000000600082015250565b60006147b5600e83613ac5565b91506147c08261477f565b602082019050919050565b600060208201905081810360008301526147e4816147a8565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061482582613b75565b915061483083613b75565b9250826148405761483f6147eb565b5b828204905092915050565b600081905092915050565b50565b600061486660008361484b565b915061487182614856565b600082019050919050565b600061488782614859565b9150819050919050565b7f5472616e736665722031206661696c6564000000000000000000000000000000600082015250565b60006148c7601183613ac5565b91506148d282614891565b602082019050919050565b600060208201905081810360008301526148f6816148ba565b9050919050565b7f5472616e736665722032206661696c6564000000000000000000000000000000600082015250565b6000614933601183613ac5565b915061493e826148fd565b602082019050919050565b6000602082019050818103600083015261496281614926565b9050919050565b7f45786365656473206d617820737570706c790000000000000000000000000000600082015250565b600061499f601283613ac5565b91506149aa82614969565b602082019050919050565b600060208201905081810360008301526149ce81614992565b9050919050565b7f45786365656473206d6178696d756d20726573657276656420746f6b656e7300600082015250565b6000614a0b601f83613ac5565b9150614a16826149d5565b602082019050919050565b60006020820190508181036000830152614a3a816149fe565b9050919050565b7f53616c6520706861736520697320616c72656164792061742074686520656e64600082015250565b6000614a77602083613ac5565b9150614a8282614a41565b602082019050919050565b60006020820190508181036000830152614aa681614a6a565b9050919050565b7f43726f73736d696e74206d696e746572206e6f74207365740000000000000000600082015250565b6000614ae3601883613ac5565b9150614aee82614aad565b602082019050919050565b60006020820190508181036000830152614b1281614ad6565b9050919050565b7f4e6f742063726f73736d696e74206d696e746572000000000000000000000000600082015250565b6000614b4f601483613ac5565b9150614b5a82614b19565b602082019050919050565b60006020820190508181036000830152614b7e81614b42565b9050919050565b7f57726f6e672073616c65207068617365202873686f756c642062652033206f7260008201527f2068696768657229000000000000000000000000000000000000000000000000602082015250565b6000614be1602883613ac5565b9150614bec82614b85565b604082019050919050565b60006020820190508181036000830152614c1081614bd4565b9050919050565b7f496e76616c6964206d65726b6c652070726f6f6620666f722063726f73736d6960008201527f6e742077686974656c6973740000000000000000000000000000000000000000602082015250565b6000614c73602c83613ac5565b9150614c7e82614c17565b604082019050919050565b60006020820190508181036000830152614ca281614c66565b9050919050565b7f496e76616c69642073616c652070686173650000000000000000000000000000600082015250565b6000614cdf601283613ac5565b9150614cea82614ca9565b602082019050919050565b60006020820190508181036000830152614d0e81614cd2565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000614d71602f83613ac5565b9150614d7c82614d15565b604082019050919050565b60006020820190508181036000830152614da081614d64565b9050919050565b600081905092915050565b6000614dbd82613aba565b614dc78185614da7565b9350614dd7818560208601613ad6565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000614e19600583614da7565b9150614e2482614de3565b600582019050919050565b6000614e3b8284614db2565b9150614e4682614e0c565b915081905092915050565b7f57726f6e672073616c65207068617365202873686f756c642062652035290000600082015250565b6000614e87601e83613ac5565b9150614e9282614e51565b602082019050919050565b60006020820190508181036000830152614eb681614e7a565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614f19602683613ac5565b9150614f2482614ebd565b604082019050919050565b60006020820190508181036000830152614f4881614f0c565b9050919050565b7f4f6e6c7920706c656467656d696e74206f72206f776e65722063616e2063616c60008201527f6c20746869732066756e6374696f6e0000000000000000000000000000000000602082015250565b6000614fab602f83613ac5565b9150614fb682614f4f565b604082019050919050565b60006020820190508181036000830152614fda81614f9e565b9050919050565b7f45786365656473206d6178207768616c6520746f6b656e730000000000000000600082015250565b6000615017601883613ac5565b915061502282614fe1565b602082019050919050565b600060208201905081810360008301526150468161500a565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000615083602083613ac5565b915061508e8261504d565b602082019050919050565b600060208201905081810360008301526150b281615076565b9050919050565b60008160601b9050919050565b60006150d1826150b9565b9050919050565b60006150e3826150c6565b9050919050565b6150fb6150f682613bf8565b6150d8565b82525050565b600061510d82846150ea565b60148201915081905092915050565b600081519050919050565b600082825260208201905092915050565b60006151438261511c565b61514d8185615127565b935061515d818560208601613ad6565b61516681613b09565b840191505092915050565b60006080820190506151866000830187613c0a565b6151936020830186613c0a565b6151a06040830185613ca0565b81810360608301526151b28184615138565b905095945050505050565b6000815190506151cc816139c8565b92915050565b6000602082840312156151e8576151e7613992565b5b60006151f6848285016151bd565b91505092915050565b600061520b8285614db2565b91506152178284614db2565b91508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061525d82613b75565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361528f5761528e614360565b5b60018201905091905056fea2646970667358221220c132cadc0a34d2f16c999dfaa4d9ce7948dbcc11e0db0b774e25d679d03a291e64736f6c634300080d0033

Deployed Bytecode

0x6080604052600436106102935760003560e01c806393872a591161015a578063c87b56dd116100c1578063e985e9c51161007a578063e985e9c51461097d578063efd0cbf9146109ba578063f2fde38b146109d6578063f3e38821146109ff578063f47c84c514610a2a578063fb0f4a7f14610a5557610293565b8063c87b56dd1461086d578063cf3df230146108aa578063d1bdb1d1146108d3578063d83b1e83146108fe578063e4f2487a14610929578063e8c2a72d1461095457610293565b8063a8d826c411610113578063a8d826c41461077b578063ae8dbc38146107a6578063b415c410146107cf578063b769c7a4146107eb578063b80b7fc914610814578063b88d4fde1461085157610293565b806393872a591461066b57806395d89b41146106a85780639c652cee146106d3578063a035b1fe146106fc578063a22cb46514610727578063a511ed0b1461075057610293565b80633ccfd60b116101fe57806370a08231116101b757806370a0823114610581578063715018a6146105be57806371fd3b45146105d55780638d5f66f0146105ec5780638da5cb5b1461061757806391b7f5ed1461064257610293565b80633ccfd60b1461049457806342842e0e146104ab57806355f804b3146104c757806357535c43146104f05780636352211e146105195780636b2545211461055657610293565b806318160ddd1161025057806318160ddd146103ad5780631ba4f67d146103d85780631c45517c146104155780631fba58ed1461043157806323b872dd1461045c57806331cb94801461047857610293565b806301ffc9a71461029857806304746a9b146102d557806306fdde03146102fe578063081812fc14610329578063081c8c4414610366578063095ea7b314610391575b600080fd5b3480156102a457600080fd5b506102bf60048036038101906102ba91906139f4565b610a71565b6040516102cc9190613a3c565b60405180910390f35b3480156102e157600080fd5b506102fc60048036038101906102f79190613a8d565b610b03565b005b34801561030a57600080fd5b50610313610b15565b6040516103209190613b53565b60405180910390f35b34801561033557600080fd5b50610350600480360381019061034b9190613bab565b610ba7565b60405161035d9190613c19565b60405180910390f35b34801561037257600080fd5b5061037b610c26565b6040516103889190613b53565b60405180910390f35b6103ab60048036038101906103a69190613c60565b610cb4565b005b3480156103b957600080fd5b506103c2610df8565b6040516103cf9190613caf565b60405180910390f35b3480156103e457600080fd5b506103ff60048036038101906103fa9190613cca565b610e0f565b60405161040c9190613caf565b60405180910390f35b61042f600480360381019061042a9190613d5c565b610e27565b005b34801561043d57600080fd5b50610446611271565b6040516104539190613c19565b60405180910390f35b61047660048036038101906104719190613dbc565b611297565b005b610492600480360381019061048d9190613d5c565b6115b9565b005b3480156104a057600080fd5b506104a961195b565b005b6104c560048036038101906104c09190613dbc565b611c1a565b005b3480156104d357600080fd5b506104ee60048036038101906104e99190613e65565b611c3a565b005b3480156104fc57600080fd5b5061051760048036038101906105129190613c60565b611c58565b005b34801561052557600080fd5b50610540600480360381019061053b9190613bab565b611dda565b60405161054d9190613c19565b60405180910390f35b34801561056257600080fd5b5061056b611dec565b6040516105789190613caf565b60405180910390f35b34801561058d57600080fd5b506105a860048036038101906105a39190613cca565b611df2565b6040516105b59190613caf565b60405180910390f35b3480156105ca57600080fd5b506105d3611eaa565b005b3480156105e157600080fd5b506105ea611ebe565b005b3480156105f857600080fd5b50610601611f27565b60405161060e9190613caf565b60405180910390f35b34801561062357600080fd5b5061062c611f2d565b6040516106399190613c19565b60405180910390f35b34801561064e57600080fd5b5061066960048036038101906106649190613bab565b611f57565b005b34801561067757600080fd5b50610692600480360381019061068d9190613cca565b611f69565b60405161069f9190613caf565b60405180910390f35b3480156106b457600080fd5b506106bd611f81565b6040516106ca9190613b53565b60405180910390f35b3480156106df57600080fd5b506106fa60048036038101906106f59190613cca565b612013565b005b34801561070857600080fd5b5061071161205f565b60405161071e9190613caf565b60405180910390f35b34801561073357600080fd5b5061074e60048036038101906107499190613ede565b612065565b005b34801561075c57600080fd5b50610765612170565b6040516107729190613f2d565b60405180910390f35b34801561078757600080fd5b50610790612176565b60405161079d9190613caf565b60405180910390f35b3480156107b257600080fd5b506107cd60048036038101906107c89190613a8d565b61217b565b005b6107e960048036038101906107e49190613f48565b61218d565b005b3480156107f757600080fd5b50610812600480360381019061080d9190613bab565b612726565b005b34801561082057600080fd5b5061083b60048036038101906108369190613cca565b612789565b6040516108489190613caf565b60405180910390f35b61086b600480360381019061086691906140ec565b6127a1565b005b34801561087957600080fd5b50610894600480360381019061088f9190613bab565b612814565b6040516108a19190613b53565b60405180910390f35b3480156108b657600080fd5b506108d160048036038101906108cc9190613cca565b6128b2565b005b3480156108df57600080fd5b506108e86128fe565b6040516108f59190613caf565b60405180910390f35b34801561090a57600080fd5b50610913612903565b6040516109209190613c19565b60405180910390f35b34801561093557600080fd5b5061093e612929565b60405161094b9190613caf565b60405180910390f35b34801561096057600080fd5b5061097b60048036038101906109769190613a8d565b61292f565b005b34801561098957600080fd5b506109a4600480360381019061099f919061416f565b612941565b6040516109b19190613a3c565b60405180910390f35b6109d460048036038101906109cf9190613bab565b6129d5565b005b3480156109e257600080fd5b506109fd60048036038101906109f89190613cca565b612c07565b005b348015610a0b57600080fd5b50610a14612c8a565b604051610a219190613caf565b60405180910390f35b348015610a3657600080fd5b50610a3f612c90565b604051610a4c9190613caf565b60405180910390f35b610a6f6004803603810190610a6a91906141e8565b612c96565b005b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610acc57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610afc5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b610b0b612f7e565b8060148190555050565b606060028054610b2490614257565b80601f0160208091040260200160405190810160405280929190818152602001828054610b5090614257565b8015610b9d5780601f10610b7257610100808354040283529160200191610b9d565b820191906000526020600020905b815481529060010190602001808311610b8057829003601f168201915b5050505050905090565b6000610bb282612ffc565b610be8576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60188054610c3390614257565b80601f0160208091040260200160405190810160405280929190818152602001828054610c5f90614257565b8015610cac5780601f10610c8157610100808354040283529160200191610cac565b820191906000526020600020905b815481529060010190602001808311610c8f57829003601f168201915b505050505081565b6000610cbf82611dda565b90508073ffffffffffffffffffffffffffffffffffffffff16610ce061305b565b73ffffffffffffffffffffffffffffffffffffffff1614610d4357610d0c81610d0761305b565b612941565b610d42576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000610e02613063565b6001546000540303905090565b600d6020528060005260406000206000915090505481565b600260095403610e6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e63906142d4565b60405180910390fd5b60026009819055506004600c5414610eb9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eb090614340565b60405180910390fd5b600581600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054610f06919061438f565b1115610f47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3e90614431565b60405180910390fd5b61082881610f53610df8565b610f5d919061438f565b1115610f9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f959061449d565b60405180910390fd5b600e5481610fac91906144bd565b341015610fee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fe590614563565b60405180910390fd5b600061103b848480806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505033613068565b9050600061108a858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050336130aa565b905081806110955750805b6110d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110cb906145cf565b60405180910390fd5b600283601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611161919061438f565b61116b919061438f565b11156111ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111a390614687565b60405180910390fd5b6111b633846130ec565b82601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611205919061438f565b9250508190555082600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461125b919061438f565b9250508190555050506001600981905550505050565b601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006112a2826132a7565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611309576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008061131584613373565b9150915061132b818761132661305b565b61339a565b611377576113408661133b61305b565b612941565b611376576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036113dd576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6113ea86868660016133de565b80156113f557600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154600101919050819055506114c38561149f8888876133e4565b7c02000000000000000000000000000000000000000000000000000000001761340c565b600460008681526020019081526020016000208190555060007c02000000000000000000000000000000000000000000000000000000008416036115495760006001850190506000600460008381526020019081526020016000205403611547576000548114611546578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46115b18686866001613437565b505050505050565b6002600954036115fe576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115f5906142d4565b60405180910390fd5b60026009819055506003600c541461164b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611642906146f3565b60405180910390fd5b600581600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611698919061438f565b11156116d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d090614431565b60405180910390fd5b610828816116e5610df8565b6116ef919061438f565b1115611730576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117279061449d565b60405180910390fd5b600e548161173e91906144bd565b341015611780576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177790614563565b60405180910390fd5b6117cb838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505033613068565b61180a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611801906145cf565b60405180910390fd5b600281601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611857919061438f565b1115611898576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188f9061475f565b60405180910390fd5b6118a233826130ec565b80601060003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546118f1919061438f565b9250508190555080600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611947919061438f565b925050819055506001600981905550505050565b6002600954036119a0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611997906142d4565b60405180910390fd5b6002600981905550601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480611a365750611a07611f2d565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611a75576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6c906147cb565b60405180910390fd5b6000601360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166003606447611abf919061481a565b611ac991906144bd565b604051611ad59061487c565b60006040518083038185875af1925050503d8060008114611b12576040519150601f19603f3d011682016040523d82523d6000602084013e611b17565b606091505b505090506000611b25611f2d565b73ffffffffffffffffffffffffffffffffffffffff1647604051611b489061487c565b60006040518083038185875af1925050503d8060008114611b85576040519150601f19603f3d011682016040523d82523d6000602084013e611b8a565b606091505b5050905081611bce576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bc5906148dd565b60405180910390fd5b80611c0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c0590614949565b60405180910390fd5b50506001600981905550565b611c35838383604051806020016040528060008152506127a1565b505050565b611c42612f7e565b818160179190611c539291906138e5565b505050565b611c60612f7e565b600260095403611ca5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c9c906142d4565b60405180910390fd5b600260098190555061082881611cb9610df8565b611cc3919061438f565b1115611d04576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cfb906149b5565b60405180910390fd5b60a881600a54611d14919061438f565b1115611d55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4c90614a21565b60405180910390fd5b611d5f82826130ec565b80600a6000828254611d71919061438f565b9250508190555080600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611dc7919061438f565b9250508190555060016009819055505050565b6000611de5826132a7565b9050919050565b600b5481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611e59576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611eb2612f7e565b611ebc600061343d565b565b611ec6612f7e565b6005600c5410611f0b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f0290614a8d565b60405180910390fd5b6001600c6000828254611f1e919061438f565b92505081905550565b6101f481565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611f5f612f7e565b80600e8190555050565b60106020528060005260406000206000915090505481565b606060038054611f9090614257565b80601f0160208091040260200160405190810160405280929190818152602001828054611fbc90614257565b80156120095780601f10611fde57610100808354040283529160200191612009565b820191906000526020600020905b815481529060010190602001808311611fec57829003601f168201915b5050505050905090565b61201b612f7e565b80600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600e5481565b806007600061207261305b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661211f61305b565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516121649190613a3c565b60405180910390a35050565b60145481565b60a881565b612183612f7e565b8060168190555050565b6002600954036121d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121c9906142d4565b60405180910390fd5b6002600981905550600073ffffffffffffffffffffffffffffffffffffffff16600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff160361226b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161226290614af9565b60405180910390fd5b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146122fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122f290614b65565b60405180910390fd5b6003600c541015612341576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161233890614bf7565b60405180910390fd5b6003600c54148061235457506004600c54145b156124bc57600283601160008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054601060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546123e6919061438f565b6123f0919061438f565b1115612431576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161242890614687565b60405180910390fd5b61247c828280806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505085613503565b6124bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124b290614c89565b60405180910390fd5b5b600583600d60008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612509919061438f565b111561254a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161254190614431565b60405180910390fd5b61082883612556610df8565b612560919061438f565b11156125a1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125989061449d565b60405180910390fd5b600e54836125af91906144bd565b3410156125f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125e890614563565b60405180910390fd5b6125fb84846130ec565b82600d60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461264a919061438f565b925050819055506003600c54036126b65782601060008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546126aa919061438f565b92505081905550612718565b6004600c54036127175782601160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461270f919061438f565b925050819055505b5b600160098190555050505050565b61272e612f7e565b60018110158015612740575060058111155b61277f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161277690614cf5565b60405180910390fd5b80600c8190555050565b60116020528060005260406000206000915090505481565b6127ac848484611297565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461280e576127d784848484613545565b61280d576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b606061281f82612ffc565b61285e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161285590614d87565b60405180910390fd5b600061286983613695565b9050600081511161288957604051806020016040528060008152506128aa565b8060405160200161289a9190614e2f565b6040516020818303038152906040525b915050919050565b6128ba612f7e565b80601260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600581565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600c5481565b612937612f7e565b8060158190555050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600260095403612a1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a11906142d4565b60405180910390fd5b60026009819055506005600c5414612a67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a5e90614e9d565b60405180910390fd5b600581600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612ab4919061438f565b1115612af5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612aec90614431565b60405180910390fd5b61082881612b01610df8565b612b0b919061438f565b1115612b4c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b439061449d565b60405180910390fd5b600e5481612b5a91906144bd565b341015612b9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b9390614563565b60405180910390fd5b612ba633826130ec565b80600d60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612bf5919061438f565b92505081905550600160098190555050565b612c0f612f7e565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612c7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c7590614f2f565b60405180910390fd5b612c878161343d565b50565b600a5481565b61082881565b600260095403612cdb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cd2906142d4565b60405180910390fd5b6002600981905550601260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161480612d715750612d42611f2d565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b612db0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612da790614fc1565b60405180910390fd5b6108288160ff16612dbf610df8565b612dc9919061438f565b1115612e0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e01906149b5565b60405180910390fd5b6101f48160ff16600b54612e1e919061438f565b1115612e5f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e569061502d565b60405180910390fd5b60058160ff16600d60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612eaf919061438f565b1115612ef0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ee790614431565b60405180910390fd5b8060ff16600b6000828254612f05919061438f565b925050819055508060ff16600d60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612f5e919061438f565b92505081905550612f72828260ff166130ec565b60016009819055505050565b612f86613733565b73ffffffffffffffffffffffffffffffffffffffff16612fa4611f2d565b73ffffffffffffffffffffffffffffffffffffffff1614612ffa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ff190615099565b60405180910390fd5b565b600081613007613063565b11158015613016575060005482105b8015613054575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b600090565b6000808260405160200161307c9190615101565b6040516020818303038152906040528051906020012090506130a1846015548361373b565b91505092915050565b600080826040516020016130be9190615101565b6040516020818303038152906040528051906020012090506130e3846016548361373b565b91505092915050565b6000805490506000820361312c576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61313960008483856133de565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506131b0836131a160008660006133e4565b6131aa85613752565b1761340c565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461325157808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050613216565b506000820361328c576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506132a26000848385613437565b505050565b600080829050806132b6613063565b1161333c5760005481101561333b5760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603613339575b6000810361332f576004600083600190039350838152602001908152602001600020549050613305565b809250505061336e565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e86133fb868684613762565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080826040516020016135179190615101565b60405160208183030381529060405280519060200120905061353c846014548361373b565b91505092915050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261356b61305b565b8786866040518563ffffffff1660e01b815260040161358d9493929190615171565b6020604051808303816000875af19250505080156135c957506040513d601f19601f820116820180604052508101906135c691906151d2565b60015b613642573d80600081146135f9576040519150601f19603f3d011682016040523d82523d6000602084013e6135fe565b606091505b50600081510361363a576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b60606136a082612ffc565b6136d6576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60006136e061376b565b90506000815103613700576040518060200160405280600081525061372b565b8061370a846137fd565b60405160200161371b9291906151ff565b6040516020818303038152906040525b915050919050565b600033905090565b600082613748858461384d565b1490509392505050565b60006001821460e11b9050919050565b60009392505050565b60606017805461377a90614257565b80601f01602080910402602001604051908101604052809291908181526020018280546137a690614257565b80156137f35780601f106137c8576101008083540402835291602001916137f3565b820191906000526020600020905b8154815290600101906020018083116137d657829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b60011561383857600184039350600a81066030018453600a8104905080613816575b50828103602084039350808452505050919050565b60008082905060005b8451811015613898576138838286838151811061387657613875615223565b5b60200260200101516138a3565b9150808061389090615252565b915050613856565b508091505092915050565b60008183106138bb576138b682846138ce565b6138c6565b6138c583836138ce565b5b905092915050565b600082600052816020526040600020905092915050565b8280546138f190614257565b90600052602060002090601f016020900481019282613913576000855561395a565b82601f1061392c57803560ff191683800117855561395a565b8280016001018555821561395a579182015b8281111561395957823582559160200191906001019061393e565b5b509050613967919061396b565b5090565b5b8082111561398457600081600090555060010161396c565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6139d18161399c565b81146139dc57600080fd5b50565b6000813590506139ee816139c8565b92915050565b600060208284031215613a0a57613a09613992565b5b6000613a18848285016139df565b91505092915050565b60008115159050919050565b613a3681613a21565b82525050565b6000602082019050613a516000830184613a2d565b92915050565b6000819050919050565b613a6a81613a57565b8114613a7557600080fd5b50565b600081359050613a8781613a61565b92915050565b600060208284031215613aa357613aa2613992565b5b6000613ab184828501613a78565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613af4578082015181840152602081019050613ad9565b83811115613b03576000848401525b50505050565b6000601f19601f8301169050919050565b6000613b2582613aba565b613b2f8185613ac5565b9350613b3f818560208601613ad6565b613b4881613b09565b840191505092915050565b60006020820190508181036000830152613b6d8184613b1a565b905092915050565b6000819050919050565b613b8881613b75565b8114613b9357600080fd5b50565b600081359050613ba581613b7f565b92915050565b600060208284031215613bc157613bc0613992565b5b6000613bcf84828501613b96565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613c0382613bd8565b9050919050565b613c1381613bf8565b82525050565b6000602082019050613c2e6000830184613c0a565b92915050565b613c3d81613bf8565b8114613c4857600080fd5b50565b600081359050613c5a81613c34565b92915050565b60008060408385031215613c7757613c76613992565b5b6000613c8585828601613c4b565b9250506020613c9685828601613b96565b9150509250929050565b613ca981613b75565b82525050565b6000602082019050613cc46000830184613ca0565b92915050565b600060208284031215613ce057613cdf613992565b5b6000613cee84828501613c4b565b91505092915050565b600080fd5b600080fd5b600080fd5b60008083601f840112613d1c57613d1b613cf7565b5b8235905067ffffffffffffffff811115613d3957613d38613cfc565b5b602083019150836020820283011115613d5557613d54613d01565b5b9250929050565b600080600060408486031215613d7557613d74613992565b5b600084013567ffffffffffffffff811115613d9357613d92613997565b5b613d9f86828701613d06565b93509350506020613db286828701613b96565b9150509250925092565b600080600060608486031215613dd557613dd4613992565b5b6000613de386828701613c4b565b9350506020613df486828701613c4b565b9250506040613e0586828701613b96565b9150509250925092565b60008083601f840112613e2557613e24613cf7565b5b8235905067ffffffffffffffff811115613e4257613e41613cfc565b5b602083019150836001820283011115613e5e57613e5d613d01565b5b9250929050565b60008060208385031215613e7c57613e7b613992565b5b600083013567ffffffffffffffff811115613e9a57613e99613997565b5b613ea685828601613e0f565b92509250509250929050565b613ebb81613a21565b8114613ec657600080fd5b50565b600081359050613ed881613eb2565b92915050565b60008060408385031215613ef557613ef4613992565b5b6000613f0385828601613c4b565b9250506020613f1485828601613ec9565b9150509250929050565b613f2781613a57565b82525050565b6000602082019050613f426000830184613f1e565b92915050565b60008060008060608587031215613f6257613f61613992565b5b6000613f7087828801613c4b565b9450506020613f8187828801613b96565b935050604085013567ffffffffffffffff811115613fa257613fa1613997565b5b613fae87828801613d06565b925092505092959194509250565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b613ff982613b09565b810181811067ffffffffffffffff8211171561401857614017613fc1565b5b80604052505050565b600061402b613988565b90506140378282613ff0565b919050565b600067ffffffffffffffff82111561405757614056613fc1565b5b61406082613b09565b9050602081019050919050565b82818337600083830152505050565b600061408f61408a8461403c565b614021565b9050828152602081018484840111156140ab576140aa613fbc565b5b6140b684828561406d565b509392505050565b600082601f8301126140d3576140d2613cf7565b5b81356140e384826020860161407c565b91505092915050565b6000806000806080858703121561410657614105613992565b5b600061411487828801613c4b565b945050602061412587828801613c4b565b935050604061413687828801613b96565b925050606085013567ffffffffffffffff81111561415757614156613997565b5b614163878288016140be565b91505092959194509250565b6000806040838503121561418657614185613992565b5b600061419485828601613c4b565b92505060206141a585828601613c4b565b9150509250929050565b600060ff82169050919050565b6141c5816141af565b81146141d057600080fd5b50565b6000813590506141e2816141bc565b92915050565b600080604083850312156141ff576141fe613992565b5b600061420d85828601613c4b565b925050602061421e858286016141d3565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061426f57607f821691505b60208210810361428257614281614228565b5b50919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b60006142be601f83613ac5565b91506142c982614288565b602082019050919050565b600060208201905081810360008301526142ed816142b1565b9050919050565b7f57726f6e672073616c65207068617365202873686f756c642062652034290000600082015250565b600061432a601e83613ac5565b9150614335826142f4565b602082019050919050565b600060208201905081810360008301526143598161431d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600061439a82613b75565b91506143a583613b75565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156143da576143d9614360565b5b828201905092915050565b7f45786365656473206d617820746f6b656e73207065722077616c6c6574000000600082015250565b600061441b601d83613ac5565b9150614426826143e5565b602082019050919050565b6000602082019050818103600083015261444a8161440e565b9050919050565b7f45786365656473206d617820746f6b656e730000000000000000000000000000600082015250565b6000614487601283613ac5565b915061449282614451565b602082019050919050565b600060208201905081810360008301526144b68161447a565b9050919050565b60006144c882613b75565b91506144d383613b75565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561450c5761450b614360565b5b828202905092915050565b7f4e6f7420656e6f756768204554482073656e7400000000000000000000000000600082015250565b600061454d601383613ac5565b915061455882614517565b602082019050919050565b6000602082019050818103600083015261457c81614540565b9050919050565b7f496e76616c6964206d65726b6c652070726f6f66000000000000000000000000600082015250565b60006145b9601483613ac5565b91506145c482614583565b602082019050919050565b600060208201905081810360008301526145e8816145ac565b9050919050565b7f4164647265737320616c7265616479207075726368617365642032204361726460008201527f7320647572696e6720706c6174696e756d206f7220676f6c642070726573616c60208201527f6500000000000000000000000000000000000000000000000000000000000000604082015250565b6000614671604183613ac5565b915061467c826145ef565b606082019050919050565b600060208201905081810360008301526146a081614664565b9050919050565b7f57726f6e672073616c65207068617365202873686f756c642062652033290000600082015250565b60006146dd601e83613ac5565b91506146e8826146a7565b602082019050919050565b6000602082019050818103600083015261470c816146d0565b9050919050565b7f416c7265616479206d696e746564206d6178206c696d6974206f662032000000600082015250565b6000614749601d83613ac5565b915061475482614713565b602082019050919050565b600060208201905081810360008301526147788161473c565b9050919050565b7f496e76616c69642073656e646572000000000000000000000000000000000000600082015250565b60006147b5600e83613ac5565b91506147c08261477f565b602082019050919050565b600060208201905081810360008301526147e4816147a8565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061482582613b75565b915061483083613b75565b9250826148405761483f6147eb565b5b828204905092915050565b600081905092915050565b50565b600061486660008361484b565b915061487182614856565b600082019050919050565b600061488782614859565b9150819050919050565b7f5472616e736665722031206661696c6564000000000000000000000000000000600082015250565b60006148c7601183613ac5565b91506148d282614891565b602082019050919050565b600060208201905081810360008301526148f6816148ba565b9050919050565b7f5472616e736665722032206661696c6564000000000000000000000000000000600082015250565b6000614933601183613ac5565b915061493e826148fd565b602082019050919050565b6000602082019050818103600083015261496281614926565b9050919050565b7f45786365656473206d617820737570706c790000000000000000000000000000600082015250565b600061499f601283613ac5565b91506149aa82614969565b602082019050919050565b600060208201905081810360008301526149ce81614992565b9050919050565b7f45786365656473206d6178696d756d20726573657276656420746f6b656e7300600082015250565b6000614a0b601f83613ac5565b9150614a16826149d5565b602082019050919050565b60006020820190508181036000830152614a3a816149fe565b9050919050565b7f53616c6520706861736520697320616c72656164792061742074686520656e64600082015250565b6000614a77602083613ac5565b9150614a8282614a41565b602082019050919050565b60006020820190508181036000830152614aa681614a6a565b9050919050565b7f43726f73736d696e74206d696e746572206e6f74207365740000000000000000600082015250565b6000614ae3601883613ac5565b9150614aee82614aad565b602082019050919050565b60006020820190508181036000830152614b1281614ad6565b9050919050565b7f4e6f742063726f73736d696e74206d696e746572000000000000000000000000600082015250565b6000614b4f601483613ac5565b9150614b5a82614b19565b602082019050919050565b60006020820190508181036000830152614b7e81614b42565b9050919050565b7f57726f6e672073616c65207068617365202873686f756c642062652033206f7260008201527f2068696768657229000000000000000000000000000000000000000000000000602082015250565b6000614be1602883613ac5565b9150614bec82614b85565b604082019050919050565b60006020820190508181036000830152614c1081614bd4565b9050919050565b7f496e76616c6964206d65726b6c652070726f6f6620666f722063726f73736d6960008201527f6e742077686974656c6973740000000000000000000000000000000000000000602082015250565b6000614c73602c83613ac5565b9150614c7e82614c17565b604082019050919050565b60006020820190508181036000830152614ca281614c66565b9050919050565b7f496e76616c69642073616c652070686173650000000000000000000000000000600082015250565b6000614cdf601283613ac5565b9150614cea82614ca9565b602082019050919050565b60006020820190508181036000830152614d0e81614cd2565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000614d71602f83613ac5565b9150614d7c82614d15565b604082019050919050565b60006020820190508181036000830152614da081614d64565b9050919050565b600081905092915050565b6000614dbd82613aba565b614dc78185614da7565b9350614dd7818560208601613ad6565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b6000614e19600583614da7565b9150614e2482614de3565b600582019050919050565b6000614e3b8284614db2565b9150614e4682614e0c565b915081905092915050565b7f57726f6e672073616c65207068617365202873686f756c642062652035290000600082015250565b6000614e87601e83613ac5565b9150614e9282614e51565b602082019050919050565b60006020820190508181036000830152614eb681614e7a565b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000614f19602683613ac5565b9150614f2482614ebd565b604082019050919050565b60006020820190508181036000830152614f4881614f0c565b9050919050565b7f4f6e6c7920706c656467656d696e74206f72206f776e65722063616e2063616c60008201527f6c20746869732066756e6374696f6e0000000000000000000000000000000000602082015250565b6000614fab602f83613ac5565b9150614fb682614f4f565b604082019050919050565b60006020820190508181036000830152614fda81614f9e565b9050919050565b7f45786365656473206d6178207768616c6520746f6b656e730000000000000000600082015250565b6000615017601883613ac5565b915061502282614fe1565b602082019050919050565b600060208201905081810360008301526150468161500a565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000615083602083613ac5565b915061508e8261504d565b602082019050919050565b600060208201905081810360008301526150b281615076565b9050919050565b60008160601b9050919050565b60006150d1826150b9565b9050919050565b60006150e3826150c6565b9050919050565b6150fb6150f682613bf8565b6150d8565b82525050565b600061510d82846150ea565b60148201915081905092915050565b600081519050919050565b600082825260208201905092915050565b60006151438261511c565b61514d8185615127565b935061515d818560208601613ad6565b61516681613b09565b840191505092915050565b60006080820190506151866000830187613c0a565b6151936020830186613c0a565b6151a06040830185613ca0565b81810360608301526151b28184615138565b905095945050505050565b6000815190506151cc816139c8565b92915050565b6000602082840312156151e8576151e7613992565b5b60006151f6848285016151bd565b91505092915050565b600061520b8285614db2565b91506152178284614db2565b91508190509392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600061525d82613b75565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361528f5761528e614360565b5b60018201905091905056fea2646970667358221220c132cadc0a34d2f16c999dfaa4d9ce7948dbcc11e0db0b774e25d679d03a291e64736f6c634300080d0033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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