ETH Price: $2,312.43 (-0.15%)
Gas: 2.35 Gwei

Token

Bored Yachts Club (BYC)
 

Overview

Max Total Supply

167 BYC

Holders

36

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
1 BYC
0x5906cda31044af301b7e98cd8fea6039650d94dc
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
BoredYachtsClub

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
No with 200 runs

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

import "erc721a/contracts/ERC721A.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

/// @custom:security-contact [email protected]
contract BoredYachtsClub is ERC721A, ReentrancyGuard, Ownable {
    using SafeMath for uint256;

    string public baseURI = "ipfs://QmP6ZjG2o3LfRNHgnU4xk5gwC5cM2YomtH5hf1D86N48Vq/metadata/";

    /* 
        Active Tier
            Code - Name
            0 - Closed
            1 - Tier 1
            2 - Tier 2
            3 - Tier 3
            4 - Public
    */
    uint256 public activeTier = 0;
    bytes32 public merkleRoot;

    // public Access
    uint256 public maxPublicMintPerWallet = 2;
    uint256 public publicPrice = 0.1 ether;
    uint256 public presalePrice = 0.1 ether;

    uint256 public maxSupply = 1000;

    constructor(bytes32 _merkleRoot) ERC721A("Bored Yachts Club", "BYC") {
        merkleRoot = _merkleRoot;
    }

    event MintEvent(
        address indexed reciever,
        uint256 quantity,
        uint256 latest_token_id
    );
    event BaseURI(
        string baseURI
    );

    function setBaseURI(string calldata _baseUri) external onlyOwner {
        baseURI = _baseUri;
        emit BaseURI(_baseUri);
    }

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

    function updateActiveTier(uint256 _activeTier) external onlyOwner {
        activeTier = _activeTier;
    }

    function setMerkleRoot(bytes32 _merkleRoot) external onlyOwner {
        merkleRoot = _merkleRoot;
    }
    function setPublicSalePrice(uint256 _publicPrice) external onlyOwner {
        publicPrice = _publicPrice;
    }
    function setPresalePrice(uint256 _presalePrice) external onlyOwner {
        presalePrice = _presalePrice;
    }
    function setMaxSupply(uint256 _maxSupply) external onlyOwner {
        maxSupply = _maxSupply;
    }
    function setMaxPublicMintPerWallet(uint256 _maxPublicMintPerWallet) external onlyOwner {
        maxPublicMintPerWallet = _maxPublicMintPerWallet;
    }

    /// @notice Allows addresses in whitelist to participate
    /// @param proof the merkle proof that the given user with the provided allocation is in the merke tree
    /// @param quantity the quantity of NFTs to mint
    /// @param allocation of NFT mentioned in whitelist for individual address
    /// @param tier in which the user address is listed
    function presaleMint(
        bytes32[] memory proof,
        uint256 quantity,
        uint256 allocation,
        uint256 tier
    ) external payable nonReentrant {

        require(isWhitelisted(_msgSender(), merkleRoot, proof, allocation, tier), "NON_WHITELIST: Not whitelisted");
        require(activeTier == 1 || activeTier == 2 || activeTier == 3, "PRESALE_INACTIVE: Presale not active!");
        require(tier == activeTier, "PRESALE_TIER_NOT_STARTED: Presale active, but not for your Tier!");
        require(_numberMinted(_msgSender()) + quantity <= allocation, "WALLET_LIMIT_REACHED: Wallet limit reached!");
        require(totalSupply() + quantity <= maxSupply, "SOLD_OUT: All NFTs sold out!");
        require(msg.value >= presalePrice * quantity, "LOW_BALANCE: Not enough funds supplied!");

        _safeMint(_msgSender(), quantity);
        emit MintEvent(_msgSender(), quantity, totalSupply());
    } 


    function isWhitelisted(
        address account,
        bytes32 _merkleRoot,
        bytes32[] memory proof,
        uint256 allocation,
        uint256 tier
    ) public pure returns (bool) {
        return MerkleProof.verify(
                    proof,
                    _merkleRoot,
                    keccak256(abi.encodePacked(account, allocation, tier))
                );
    }

    function mint(uint quantity) external payable nonReentrant {
        require(activeTier == 4, "PUBLIC_SALE_INACTIVE: Public sale not active!");
        require(_numberMinted(_msgSender()) + quantity <= maxPublicMintPerWallet, "WALLET_LIMIT_REACHED: Wallet limit reached!");
        require(totalSupply() + quantity <= maxSupply, "SOLD_OUT: Max supply reached!");
        require(msg.value >= publicPrice * quantity, "LOW_BALANCE: Not enough funds supplied!");

        _safeMint(_msgSender(), quantity);
    }

    function crossmint(address recipient, uint256 quantity) external payable nonReentrant {
        require(activeTier == 4, "PUBLIC_SALE_INACTIVE: Public sale not active!");
        require(_numberMinted(_msgSender()) + quantity <= maxPublicMintPerWallet, "WALLET_LIMIT_REACHED: Wallet limit reached!");
        require(totalSupply() + quantity <= maxSupply, "SOLD_OUT: Max supply reached!");
        require(msg.value >= publicPrice * quantity, "LOW_BALANCE: Not enough funds supplied!");

        _safeMint(recipient, quantity);
    }

    function airdrop(address[] calldata recipients, uint256[] calldata quantity) external onlyOwner {
        require(recipients.length == quantity.length, "UNEQUAL_ARRAY: length of recipients and quantity not equal!");

        uint256 cumulativeQuantity = 0;
        for( uint256 i = 0; i < recipients.length; ++i ){
            cumulativeQuantity += quantity[i];
        }
        require(totalSupply() + cumulativeQuantity <= maxSupply, "SOLD_OUT: Max supply reached!");

        for( uint256 i = 0; i < recipients.length; ++i ){
            _safeMint(recipients[i], quantity[i]);
        }
    }

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

File 2 of 9 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The tree and the proofs can be generated using our
 * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].
 * You will find a quickstart guide in the readme.
 *
 * 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.
 * OpenZeppelin's JavaScript library generates merkle trees that are safe
 * against this attack out of the box.
 */
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 simultaneously proven to be a part of a merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _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}
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _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 sibling nodes in `proof`. The reconstruction
     * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another
     * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false
     * respectively.
     *
     * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree
     * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the
     * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).
     *
     * _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}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _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 3 of 9 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (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() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

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

File 4 of 9 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 5 of 9 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

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

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

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":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"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":false,"internalType":"string","name":"baseURI","type":"string"}],"name":"BaseURI","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":"reciever","type":"address"},{"indexed":false,"internalType":"uint256","name":"quantity","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"latest_token_id","type":"uint256"}],"name":"MintEvent","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":"activeTier","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"recipients","type":"address[]"},{"internalType":"uint256[]","name":"quantity","type":"uint256[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"crossmint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"uint256","name":"allocation","type":"uint256"},{"internalType":"uint256","name":"tier","type":"uint256"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"maxPublicMintPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"uint256","name":"allocation","type":"uint256"},{"internalType":"uint256","name":"tier","type":"uint256"}],"name":"presaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"presalePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_baseUri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxPublicMintPerWallet","type":"uint256"}],"name":"setMaxPublicMintPerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxSupply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_presalePrice","type":"uint256"}],"name":"setPresalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_publicPrice","type":"uint256"}],"name":"setPublicSalePrice","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":[{"internalType":"uint256","name":"_activeTier","type":"uint256"}],"name":"updateActiveTier","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526040518060600160405280603f815260200162004444603f9139600a90816200002e9190620004b5565b506000600b556002600d5567016345785d8a0000600e5567016345785d8a0000600f556103e86010553480156200006457600080fd5b50604051620044833803806200448383398181016040528101906200008a9190620005dc565b6040518060400160405280601181526020017f426f7265642059616368747320436c75620000000000000000000000000000008152506040518060400160405280600381526020017f42594300000000000000000000000000000000000000000000000000000000008152508160029081620001079190620004b5565b508060039081620001199190620004b5565b506200012a6200016860201b60201c565b600081905550505060016008819055506200015a6200014e6200016d60201b60201c565b6200017560201b60201c565b80600c81905550506200060e565b600090565b600033905090565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081519050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680620002bd57607f821691505b602082108103620002d357620002d262000275565b5b50919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026200033d7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82620002fe565b620003498683620002fe565b95508019841693508086168417925050509392505050565b6000819050919050565b6000819050919050565b600062000396620003906200038a8462000361565b6200036b565b62000361565b9050919050565b6000819050919050565b620003b28362000375565b620003ca620003c1826200039d565b8484546200030b565b825550505050565b600090565b620003e1620003d2565b620003ee818484620003a7565b505050565b5b8181101562000416576200040a600082620003d7565b600181019050620003f4565b5050565b601f82111562000465576200042f81620002d9565b6200043a84620002ee565b810160208510156200044a578190505b620004626200045985620002ee565b830182620003f3565b50505b505050565b600082821c905092915050565b60006200048a600019846008026200046a565b1980831691505092915050565b6000620004a5838362000477565b9150826002028217905092915050565b620004c0826200023b565b67ffffffffffffffff811115620004dc57620004db62000246565b5b620004e88254620002a4565b620004f58282856200041a565b600060209050601f8311600181146200052d576000841562000518578287015190505b62000524858262000497565b86555062000594565b601f1984166200053d86620002d9565b60005b82811015620005675784890151825560018201915060208501945060208101905062000540565b8683101562000587578489015162000583601f89168262000477565b8355505b6001600288020188555050505b505050505050565b600080fd5b6000819050919050565b620005b681620005a1565b8114620005c257600080fd5b50565b600081519050620005d681620005ab565b92915050565b600060208284031215620005f557620005f46200059c565b5b60006200060584828501620005c5565b91505092915050565b613e26806200061e6000396000f3fe6080604052600436106102195760003560e01c80636352211e116101235780638da5cb5b116100ab578063b88d4fde1161006f578063b88d4fde14610744578063c87b56dd14610760578063d5abeb011461079d578063e985e9c5146107c8578063f2fde38b1461080557610219565b80638da5cb5b1461067e57806395d89b41146106a9578063a0712d68146106d4578063a22cb465146106f0578063a945bf801461071957610219565b806370a08231116100f257806370a08231146105ad578063715018a6146105ea578063791a2519146106015780637cb647591461062a578063857c4b621461065357610219565b80636352211e146104f357806367243482146105305780636c0360eb146105595780636f8b44b01461058457610219565b80633549345e116101a65780634b6ad47b116101755780634b6ad47b1461042c57806355f804b31461044857806358891a37146104715780635c7e05c01461048d5780635f1ccedf146104b657610219565b80633549345e146103a55780633ccfd60b146103ce5780634001261e146103e557806342842e0e1461041057610219565b8063095ea7b3116101ed578063095ea7b3146102ee57806318160ddd1461030a57806323b872dd146103355780632eb4a7ab146103515780633267838f1461037c57610219565b80620e7fa81461021e57806301ffc9a71461024957806306fdde0314610286578063081812fc146102b1575b600080fd5b34801561022a57600080fd5b5061023361082e565b6040516102409190612647565b60405180910390f35b34801561025557600080fd5b50610270600480360381019061026b91906126ce565b610834565b60405161027d9190612716565b60405180910390f35b34801561029257600080fd5b5061029b6108c6565b6040516102a891906127c1565b60405180910390f35b3480156102bd57600080fd5b506102d860048036038101906102d3919061280f565b610958565b6040516102e5919061287d565b60405180910390f35b610308600480360381019061030391906128c4565b6109d7565b005b34801561031657600080fd5b5061031f610b1b565b60405161032c9190612647565b60405180910390f35b61034f600480360381019061034a9190612904565b610b32565b005b34801561035d57600080fd5b50610366610e54565b6040516103739190612970565b60405180910390f35b34801561038857600080fd5b506103a3600480360381019061039e919061280f565b610e5a565b005b3480156103b157600080fd5b506103cc60048036038101906103c7919061280f565b610e6c565b005b3480156103da57600080fd5b506103e3610e7e565b005b3480156103f157600080fd5b506103fa610e9f565b6040516104079190612647565b60405180910390f35b61042a60048036038101906104259190612904565b610ea5565b005b61044660048036038101906104419190612aff565b610ec5565b005b34801561045457600080fd5b5061046f600480360381019061046a9190612bdd565b611146565b005b61048b600480360381019061048691906128c4565b61119d565b005b34801561049957600080fd5b506104b460048036038101906104af919061280f565b611306565b005b3480156104c257600080fd5b506104dd60048036038101906104d89190612c2a565b611318565b6040516104ea9190612716565b60405180910390f35b3480156104ff57600080fd5b5061051a6004803603810190610515919061280f565b61135a565b604051610527919061287d565b60405180910390f35b34801561053c57600080fd5b5061055760048036038101906105529190612d6d565b61136c565b005b34801561056557600080fd5b5061056e6114cc565b60405161057b91906127c1565b60405180910390f35b34801561059057600080fd5b506105ab60048036038101906105a6919061280f565b61155a565b005b3480156105b957600080fd5b506105d460048036038101906105cf9190612dee565b61156c565b6040516105e19190612647565b60405180910390f35b3480156105f657600080fd5b506105ff611624565b005b34801561060d57600080fd5b506106286004803603810190610623919061280f565b611638565b005b34801561063657600080fd5b50610651600480360381019061064c9190612e1b565b61164a565b005b34801561065f57600080fd5b5061066861165c565b6040516106759190612647565b60405180910390f35b34801561068a57600080fd5b50610693611662565b6040516106a0919061287d565b60405180910390f35b3480156106b557600080fd5b506106be61168c565b6040516106cb91906127c1565b60405180910390f35b6106ee60048036038101906106e9919061280f565b61171e565b005b3480156106fc57600080fd5b5061071760048036038101906107129190612e74565b61188d565b005b34801561072557600080fd5b5061072e611998565b60405161073b9190612647565b60405180910390f35b61075e60048036038101906107599190612f69565b61199e565b005b34801561076c57600080fd5b506107876004803603810190610782919061280f565b611a11565b60405161079491906127c1565b60405180910390f35b3480156107a957600080fd5b506107b2611aaf565b6040516107bf9190612647565b60405180910390f35b3480156107d457600080fd5b506107ef60048036038101906107ea9190612fec565b611ab5565b6040516107fc9190612716565b60405180910390f35b34801561081157600080fd5b5061082c60048036038101906108279190612dee565b611b49565b005b600f5481565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061088f57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108bf5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6060600280546108d59061305b565b80601f01602080910402602001604051908101604052809291908181526020018280546109019061305b565b801561094e5780601f106109235761010080835404028352916020019161094e565b820191906000526020600020905b81548152906001019060200180831161093157829003601f168201915b5050505050905090565b600061096382611bcc565b610999576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109e28261135a565b90508073ffffffffffffffffffffffffffffffffffffffff16610a03611c2b565b73ffffffffffffffffffffffffffffffffffffffff1614610a6657610a2f81610a2a611c2b565b611ab5565b610a65576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000610b25611c33565b6001546000540303905090565b6000610b3d82611c38565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ba4576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610bb084611d04565b91509150610bc68187610bc1611c2b565b611d2b565b610c1257610bdb86610bd6611c2b565b611ab5565b610c11576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610c78576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c858686866001611d6f565b8015610c9057600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610d5e85610d3a888887611d75565b7c020000000000000000000000000000000000000000000000000000000017611d9d565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610de45760006001850190506000600460008381526020019081526020016000205403610de2576000548114610de1578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610e4c8686866001611dc8565b505050505050565b600c5481565b610e62611dce565b80600d8190555050565b610e74611dce565b80600f8190555050565b610e86611dce565b6000479050610e9c610e96611e4c565b82611e54565b50565b600b5481565b610ec08383836040518060200160405280600081525061199e565b505050565b610ecd611f48565b610ee3610ed8611e4c565b600c54868585611318565b610f22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f19906130d8565b60405180910390fd5b6001600b541480610f3557506002600b54145b80610f4257506003600b54145b610f81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f789061316a565b60405180910390fd5b600b548114610fc5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fbc906131fc565b60405180910390fd5b8183610fd7610fd2611e4c565b611f97565b610fe1919061324b565b1115611022576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611019906132f1565b60405180910390fd5b6010548361102e610b1b565b611038919061324b565b1115611079576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110709061335d565b60405180910390fd5b82600f54611087919061337d565b3410156110c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110c090613431565b60405180910390fd5b6110da6110d4611e4c565b84611fee565b6110e2611e4c565b73ffffffffffffffffffffffffffffffffffffffff167f8069ef4945469d029cc32e222031bccdc99b2eaaf4ee374cd268012f7ddee90784611122610b1b565b604051611130929190613451565b60405180910390a261114061200c565b50505050565b61114e611dce565b8181600a918261115f929190613631565b507f01e56a02aca7f26a28165a040851ba78f30282b55ca81c63a804cdc1e2dcea72828260405161119192919061372e565b60405180910390a15050565b6111a5611f48565b6004600b54146111ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111e1906137c4565b60405180910390fd5b600d54816111fe6111f9611e4c565b611f97565b611208919061324b565b1115611249576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611240906132f1565b60405180910390fd5b60105481611255610b1b565b61125f919061324b565b11156112a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161129790613830565b60405180910390fd5b80600e546112ae919061337d565b3410156112f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e790613431565b60405180910390fd5b6112fa8282611fee565b61130261200c565b5050565b61130e611dce565b80600b8190555050565b600061134f8486888686604051602001611334939291906138b9565b60405160208183030381529060405280519060200120612016565b905095945050505050565b600061136582611c38565b9050919050565b611374611dce565b8181905084849050146113bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113b390613968565b60405180910390fd5b6000805b85859050811015611403578383828181106113de576113dd613988565b5b90506020020135826113f0919061324b565b9150806113fc906139b7565b90506113c0565b5060105481611410610b1b565b61141a919061324b565b111561145b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145290613830565b60405180910390fd5b60005b858590508110156114c4576114b386868381811061147f5761147e613988565b5b90506020020160208101906114949190612dee565b8585848181106114a7576114a6613988565b5b90506020020135611fee565b806114bd906139b7565b905061145e565b505050505050565b600a80546114d99061305b565b80601f01602080910402602001604051908101604052809291908181526020018280546115059061305b565b80156115525780601f1061152757610100808354040283529160200191611552565b820191906000526020600020905b81548152906001019060200180831161153557829003601f168201915b505050505081565b611562611dce565b8060108190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036115d3576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b61162c611dce565b611636600061202d565b565b611640611dce565b80600e8190555050565b611652611dce565b80600c8190555050565b600d5481565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606003805461169b9061305b565b80601f01602080910402602001604051908101604052809291908181526020018280546116c79061305b565b80156117145780601f106116e957610100808354040283529160200191611714565b820191906000526020600020905b8154815290600101906020018083116116f757829003601f168201915b5050505050905090565b611726611f48565b6004600b541461176b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611762906137c4565b60405180910390fd5b600d548161177f61177a611e4c565b611f97565b611789919061324b565b11156117ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117c1906132f1565b60405180910390fd5b601054816117d6610b1b565b6117e0919061324b565b1115611821576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181890613830565b60405180910390fd5b80600e5461182f919061337d565b341015611871576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186890613431565b60405180910390fd5b61188261187c611e4c565b82611fee565b61188a61200c565b50565b806007600061189a611c2b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611947611c2b565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161198c9190612716565b60405180910390a35050565b600e5481565b6119a9848484610b32565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611a0b576119d4848484846120f3565b611a0a576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6060611a1c82611bcc565b611a52576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611a5c612243565b90506000815103611a7c5760405180602001604052806000815250611aa7565b80611a86846122d5565b604051602001611a97929190613a3b565b6040516020818303038152906040525b915050919050565b60105481565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611b51611dce565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611bc0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bb790613ad1565b60405180910390fd5b611bc98161202d565b50565b600081611bd7611c33565b11158015611be6575060005482105b8015611c24575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b600090565b60008082905080611c47611c33565b11611ccd57600054811015611ccc5760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603611cca575b60008103611cc0576004600083600190039350838152602001908152602001600020549050611c96565b8092505050611cff565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8611d8c868684612325565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b611dd6611e4c565b73ffffffffffffffffffffffffffffffffffffffff16611df4611662565b73ffffffffffffffffffffffffffffffffffffffff1614611e4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e4190613b3d565b60405180910390fd5b565b600033905090565b80471015611e97576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e8e90613ba9565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff1682604051611ebd90613bfa565b60006040518083038185875af1925050503d8060008114611efa576040519150601f19603f3d011682016040523d82523d6000602084013e611eff565b606091505b5050905080611f43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f3a90613c81565b60405180910390fd5b505050565b600260085403611f8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f8490613ced565b60405180910390fd5b6002600881905550565b600067ffffffffffffffff6040600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b61200882826040518060200160405280600081525061232e565b5050565b6001600881905550565b60008261202385846123cb565b1490509392505050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612119611c2b565b8786866040518563ffffffff1660e01b815260040161213b9493929190613d62565b6020604051808303816000875af192505050801561217757506040513d601f19601f820116820180604052508101906121749190613dc3565b60015b6121f0573d80600081146121a7576040519150601f19603f3d011682016040523d82523d6000602084013e6121ac565b606091505b5060008151036121e8576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600a80546122529061305b565b80601f016020809104026020016040519081016040528092919081815260200182805461227e9061305b565b80156122cb5780601f106122a0576101008083540402835291602001916122cb565b820191906000526020600020905b8154815290600101906020018083116122ae57829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b60011561231057600184039350600a81066030018453600a81049050806122ee575b50828103602084039350808452505050919050565b60009392505050565b6123388383612421565b60008373ffffffffffffffffffffffffffffffffffffffff163b146123c657600080549050600083820390505b61237860008683806001019450866120f3565b6123ae576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106123655781600054146123c357600080fd5b50505b505050565b60008082905060005b845181101561241657612401828683815181106123f4576123f3613988565b5b60200260200101516125dc565b9150808061240e906139b7565b9150506123d4565b508091505092915050565b60008054905060008203612461576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61246e6000848385611d6f565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506124e5836124d66000866000611d75565b6124df85612607565b17611d9d565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461258657808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460018101905061254b565b50600082036125c1576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506125d76000848385611dc8565b505050565b60008183106125f4576125ef8284612617565b6125ff565b6125fe8383612617565b5b905092915050565b60006001821460e11b9050919050565b600082600052816020526040600020905092915050565b6000819050919050565b6126418161262e565b82525050565b600060208201905061265c6000830184612638565b92915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6126ab81612676565b81146126b657600080fd5b50565b6000813590506126c8816126a2565b92915050565b6000602082840312156126e4576126e361266c565b5b60006126f2848285016126b9565b91505092915050565b60008115159050919050565b612710816126fb565b82525050565b600060208201905061272b6000830184612707565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561276b578082015181840152602081019050612750565b60008484015250505050565b6000601f19601f8301169050919050565b600061279382612731565b61279d818561273c565b93506127ad81856020860161274d565b6127b681612777565b840191505092915050565b600060208201905081810360008301526127db8184612788565b905092915050565b6127ec8161262e565b81146127f757600080fd5b50565b600081359050612809816127e3565b92915050565b6000602082840312156128255761282461266c565b5b6000612833848285016127fa565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006128678261283c565b9050919050565b6128778161285c565b82525050565b6000602082019050612892600083018461286e565b92915050565b6128a18161285c565b81146128ac57600080fd5b50565b6000813590506128be81612898565b92915050565b600080604083850312156128db576128da61266c565b5b60006128e9858286016128af565b92505060206128fa858286016127fa565b9150509250929050565b60008060006060848603121561291d5761291c61266c565b5b600061292b868287016128af565b935050602061293c868287016128af565b925050604061294d868287016127fa565b9150509250925092565b6000819050919050565b61296a81612957565b82525050565b60006020820190506129856000830184612961565b92915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6129c882612777565b810181811067ffffffffffffffff821117156129e7576129e6612990565b5b80604052505050565b60006129fa612662565b9050612a0682826129bf565b919050565b600067ffffffffffffffff821115612a2657612a25612990565b5b602082029050602081019050919050565b600080fd5b612a4581612957565b8114612a5057600080fd5b50565b600081359050612a6281612a3c565b92915050565b6000612a7b612a7684612a0b565b6129f0565b90508083825260208201905060208402830185811115612a9e57612a9d612a37565b5b835b81811015612ac75780612ab38882612a53565b845260208401935050602081019050612aa0565b5050509392505050565b600082601f830112612ae657612ae561298b565b5b8135612af6848260208601612a68565b91505092915050565b60008060008060808587031215612b1957612b1861266c565b5b600085013567ffffffffffffffff811115612b3757612b36612671565b5b612b4387828801612ad1565b9450506020612b54878288016127fa565b9350506040612b65878288016127fa565b9250506060612b76878288016127fa565b91505092959194509250565b600080fd5b60008083601f840112612b9d57612b9c61298b565b5b8235905067ffffffffffffffff811115612bba57612bb9612b82565b5b602083019150836001820283011115612bd657612bd5612a37565b5b9250929050565b60008060208385031215612bf457612bf361266c565b5b600083013567ffffffffffffffff811115612c1257612c11612671565b5b612c1e85828601612b87565b92509250509250929050565b600080600080600060a08688031215612c4657612c4561266c565b5b6000612c54888289016128af565b9550506020612c6588828901612a53565b945050604086013567ffffffffffffffff811115612c8657612c85612671565b5b612c9288828901612ad1565b9350506060612ca3888289016127fa565b9250506080612cb4888289016127fa565b9150509295509295909350565b60008083601f840112612cd757612cd661298b565b5b8235905067ffffffffffffffff811115612cf457612cf3612b82565b5b602083019150836020820283011115612d1057612d0f612a37565b5b9250929050565b60008083601f840112612d2d57612d2c61298b565b5b8235905067ffffffffffffffff811115612d4a57612d49612b82565b5b602083019150836020820283011115612d6657612d65612a37565b5b9250929050565b60008060008060408587031215612d8757612d8661266c565b5b600085013567ffffffffffffffff811115612da557612da4612671565b5b612db187828801612cc1565b9450945050602085013567ffffffffffffffff811115612dd457612dd3612671565b5b612de087828801612d17565b925092505092959194509250565b600060208284031215612e0457612e0361266c565b5b6000612e12848285016128af565b91505092915050565b600060208284031215612e3157612e3061266c565b5b6000612e3f84828501612a53565b91505092915050565b612e51816126fb565b8114612e5c57600080fd5b50565b600081359050612e6e81612e48565b92915050565b60008060408385031215612e8b57612e8a61266c565b5b6000612e99858286016128af565b9250506020612eaa85828601612e5f565b9150509250929050565b600080fd5b600067ffffffffffffffff821115612ed457612ed3612990565b5b612edd82612777565b9050602081019050919050565b82818337600083830152505050565b6000612f0c612f0784612eb9565b6129f0565b905082815260208101848484011115612f2857612f27612eb4565b5b612f33848285612eea565b509392505050565b600082601f830112612f5057612f4f61298b565b5b8135612f60848260208601612ef9565b91505092915050565b60008060008060808587031215612f8357612f8261266c565b5b6000612f91878288016128af565b9450506020612fa2878288016128af565b9350506040612fb3878288016127fa565b925050606085013567ffffffffffffffff811115612fd457612fd3612671565b5b612fe087828801612f3b565b91505092959194509250565b600080604083850312156130035761300261266c565b5b6000613011858286016128af565b9250506020613022858286016128af565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061307357607f821691505b6020821081036130865761308561302c565b5b50919050565b7f4e4f4e5f57484954454c4953543a204e6f742077686974656c69737465640000600082015250565b60006130c2601e8361273c565b91506130cd8261308c565b602082019050919050565b600060208201905081810360008301526130f1816130b5565b9050919050565b7f50524553414c455f494e4143544956453a2050726573616c65206e6f7420616360008201527f7469766521000000000000000000000000000000000000000000000000000000602082015250565b600061315460258361273c565b915061315f826130f8565b604082019050919050565b6000602082019050818103600083015261318381613147565b9050919050565b7f50524553414c455f544945525f4e4f545f535441525445443a2050726573616c60008201527f65206163746976652c20627574206e6f7420666f7220796f7572205469657221602082015250565b60006131e660408361273c565b91506131f18261318a565b604082019050919050565b60006020820190508181036000830152613215816131d9565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006132568261262e565b91506132618361262e565b92508282019050808211156132795761327861321c565b5b92915050565b7f57414c4c45545f4c494d49545f524541434845443a2057616c6c6574206c696d60008201527f6974207265616368656421000000000000000000000000000000000000000000602082015250565b60006132db602b8361273c565b91506132e68261327f565b604082019050919050565b6000602082019050818103600083015261330a816132ce565b9050919050565b7f534f4c445f4f55543a20416c6c204e46547320736f6c64206f75742100000000600082015250565b6000613347601c8361273c565b915061335282613311565b602082019050919050565b600060208201905081810360008301526133768161333a565b9050919050565b60006133888261262e565b91506133938361262e565b92508282026133a18161262e565b915082820484148315176133b8576133b761321c565b5b5092915050565b7f4c4f575f42414c414e43453a204e6f7420656e6f7567682066756e647320737560008201527f70706c6965642100000000000000000000000000000000000000000000000000602082015250565b600061341b60278361273c565b9150613426826133bf565b604082019050919050565b6000602082019050818103600083015261344a8161340e565b9050919050565b60006040820190506134666000830185612638565b6134736020830184612638565b9392505050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026134e77fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826134aa565b6134f186836134aa565b95508019841693508086168417925050509392505050565b6000819050919050565b600061352e6135296135248461262e565b613509565b61262e565b9050919050565b6000819050919050565b61354883613513565b61355c61355482613535565b8484546134b7565b825550505050565b600090565b613571613564565b61357c81848461353f565b505050565b5b818110156135a057613595600082613569565b600181019050613582565b5050565b601f8211156135e5576135b681613485565b6135bf8461349a565b810160208510156135ce578190505b6135e26135da8561349a565b830182613581565b50505b505050565b600082821c905092915050565b6000613608600019846008026135ea565b1980831691505092915050565b600061362183836135f7565b9150826002028217905092915050565b61363b838361347a565b67ffffffffffffffff81111561365457613653612990565b5b61365e825461305b565b6136698282856135a4565b6000601f8311600181146136985760008415613686578287013590505b6136908582613615565b8655506136f8565b601f1984166136a686613485565b60005b828110156136ce578489013582556001820191506020850194506020810190506136a9565b868310156136eb57848901356136e7601f8916826135f7565b8355505b6001600288020188555050505b50505050505050565b600061370d838561273c565b935061371a838584612eea565b61372383612777565b840190509392505050565b60006020820190508181036000830152613749818486613701565b90509392505050565b7f5055424c49435f53414c455f494e4143544956453a205075626c69632073616c60008201527f65206e6f74206163746976652100000000000000000000000000000000000000602082015250565b60006137ae602d8361273c565b91506137b982613752565b604082019050919050565b600060208201905081810360008301526137dd816137a1565b9050919050565b7f534f4c445f4f55543a204d617820737570706c79207265616368656421000000600082015250565b600061381a601d8361273c565b9150613825826137e4565b602082019050919050565b600060208201905081810360008301526138498161380d565b9050919050565b60008160601b9050919050565b600061386882613850565b9050919050565b600061387a8261385d565b9050919050565b61389261388d8261285c565b61386f565b82525050565b6000819050919050565b6138b36138ae8261262e565b613898565b82525050565b60006138c58286613881565b6014820191506138d582856138a2565b6020820191506138e582846138a2565b602082019150819050949350505050565b7f554e455155414c5f41525241593a206c656e677468206f66207265636970696560008201527f6e747320616e64207175616e74697479206e6f7420657175616c210000000000602082015250565b6000613952603b8361273c565b915061395d826138f6565b604082019050919050565b6000602082019050818103600083015261398181613945565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006139c28261262e565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036139f4576139f361321c565b5b600182019050919050565b600081905092915050565b6000613a1582612731565b613a1f81856139ff565b9350613a2f81856020860161274d565b80840191505092915050565b6000613a478285613a0a565b9150613a538284613a0a565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613abb60268361273c565b9150613ac682613a5f565b604082019050919050565b60006020820190508181036000830152613aea81613aae565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613b2760208361273c565b9150613b3282613af1565b602082019050919050565b60006020820190508181036000830152613b5681613b1a565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000613b93601d8361273c565b9150613b9e82613b5d565b602082019050919050565b60006020820190508181036000830152613bc281613b86565b9050919050565b600081905092915050565b50565b6000613be4600083613bc9565b9150613bef82613bd4565b600082019050919050565b6000613c0582613bd7565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b6000613c6b603a8361273c565b9150613c7682613c0f565b604082019050919050565b60006020820190508181036000830152613c9a81613c5e565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000613cd7601f8361273c565b9150613ce282613ca1565b602082019050919050565b60006020820190508181036000830152613d0681613cca565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000613d3482613d0d565b613d3e8185613d18565b9350613d4e81856020860161274d565b613d5781612777565b840191505092915050565b6000608082019050613d77600083018761286e565b613d84602083018661286e565b613d916040830185612638565b8181036060830152613da38184613d29565b905095945050505050565b600081519050613dbd816126a2565b92915050565b600060208284031215613dd957613dd861266c565b5b6000613de784828501613dae565b9150509291505056fea2646970667358221220ce1cc56393ffebaece02bc8d694843a49fd494d2d9e97c1174cd0bab0c2536b564736f6c63430008120033697066733a2f2f516d50365a6a47326f334c66524e48676e5534786b3567774335634d32596f6d7448356866314438364e343856712f6d657461646174612fc99425f635cc49f5212358c77d747c2b62491dc595f7e8f2ce7174afa4a8366f

Deployed Bytecode

0x6080604052600436106102195760003560e01c80636352211e116101235780638da5cb5b116100ab578063b88d4fde1161006f578063b88d4fde14610744578063c87b56dd14610760578063d5abeb011461079d578063e985e9c5146107c8578063f2fde38b1461080557610219565b80638da5cb5b1461067e57806395d89b41146106a9578063a0712d68146106d4578063a22cb465146106f0578063a945bf801461071957610219565b806370a08231116100f257806370a08231146105ad578063715018a6146105ea578063791a2519146106015780637cb647591461062a578063857c4b621461065357610219565b80636352211e146104f357806367243482146105305780636c0360eb146105595780636f8b44b01461058457610219565b80633549345e116101a65780634b6ad47b116101755780634b6ad47b1461042c57806355f804b31461044857806358891a37146104715780635c7e05c01461048d5780635f1ccedf146104b657610219565b80633549345e146103a55780633ccfd60b146103ce5780634001261e146103e557806342842e0e1461041057610219565b8063095ea7b3116101ed578063095ea7b3146102ee57806318160ddd1461030a57806323b872dd146103355780632eb4a7ab146103515780633267838f1461037c57610219565b80620e7fa81461021e57806301ffc9a71461024957806306fdde0314610286578063081812fc146102b1575b600080fd5b34801561022a57600080fd5b5061023361082e565b6040516102409190612647565b60405180910390f35b34801561025557600080fd5b50610270600480360381019061026b91906126ce565b610834565b60405161027d9190612716565b60405180910390f35b34801561029257600080fd5b5061029b6108c6565b6040516102a891906127c1565b60405180910390f35b3480156102bd57600080fd5b506102d860048036038101906102d3919061280f565b610958565b6040516102e5919061287d565b60405180910390f35b610308600480360381019061030391906128c4565b6109d7565b005b34801561031657600080fd5b5061031f610b1b565b60405161032c9190612647565b60405180910390f35b61034f600480360381019061034a9190612904565b610b32565b005b34801561035d57600080fd5b50610366610e54565b6040516103739190612970565b60405180910390f35b34801561038857600080fd5b506103a3600480360381019061039e919061280f565b610e5a565b005b3480156103b157600080fd5b506103cc60048036038101906103c7919061280f565b610e6c565b005b3480156103da57600080fd5b506103e3610e7e565b005b3480156103f157600080fd5b506103fa610e9f565b6040516104079190612647565b60405180910390f35b61042a60048036038101906104259190612904565b610ea5565b005b61044660048036038101906104419190612aff565b610ec5565b005b34801561045457600080fd5b5061046f600480360381019061046a9190612bdd565b611146565b005b61048b600480360381019061048691906128c4565b61119d565b005b34801561049957600080fd5b506104b460048036038101906104af919061280f565b611306565b005b3480156104c257600080fd5b506104dd60048036038101906104d89190612c2a565b611318565b6040516104ea9190612716565b60405180910390f35b3480156104ff57600080fd5b5061051a6004803603810190610515919061280f565b61135a565b604051610527919061287d565b60405180910390f35b34801561053c57600080fd5b5061055760048036038101906105529190612d6d565b61136c565b005b34801561056557600080fd5b5061056e6114cc565b60405161057b91906127c1565b60405180910390f35b34801561059057600080fd5b506105ab60048036038101906105a6919061280f565b61155a565b005b3480156105b957600080fd5b506105d460048036038101906105cf9190612dee565b61156c565b6040516105e19190612647565b60405180910390f35b3480156105f657600080fd5b506105ff611624565b005b34801561060d57600080fd5b506106286004803603810190610623919061280f565b611638565b005b34801561063657600080fd5b50610651600480360381019061064c9190612e1b565b61164a565b005b34801561065f57600080fd5b5061066861165c565b6040516106759190612647565b60405180910390f35b34801561068a57600080fd5b50610693611662565b6040516106a0919061287d565b60405180910390f35b3480156106b557600080fd5b506106be61168c565b6040516106cb91906127c1565b60405180910390f35b6106ee60048036038101906106e9919061280f565b61171e565b005b3480156106fc57600080fd5b5061071760048036038101906107129190612e74565b61188d565b005b34801561072557600080fd5b5061072e611998565b60405161073b9190612647565b60405180910390f35b61075e60048036038101906107599190612f69565b61199e565b005b34801561076c57600080fd5b506107876004803603810190610782919061280f565b611a11565b60405161079491906127c1565b60405180910390f35b3480156107a957600080fd5b506107b2611aaf565b6040516107bf9190612647565b60405180910390f35b3480156107d457600080fd5b506107ef60048036038101906107ea9190612fec565b611ab5565b6040516107fc9190612716565b60405180910390f35b34801561081157600080fd5b5061082c60048036038101906108279190612dee565b611b49565b005b600f5481565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061088f57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806108bf5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b6060600280546108d59061305b565b80601f01602080910402602001604051908101604052809291908181526020018280546109019061305b565b801561094e5780601f106109235761010080835404028352916020019161094e565b820191906000526020600020905b81548152906001019060200180831161093157829003601f168201915b5050505050905090565b600061096382611bcc565b610999576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b60006109e28261135a565b90508073ffffffffffffffffffffffffffffffffffffffff16610a03611c2b565b73ffffffffffffffffffffffffffffffffffffffff1614610a6657610a2f81610a2a611c2b565b611ab5565b610a65576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b6000610b25611c33565b6001546000540303905090565b6000610b3d82611c38565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610ba4576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080610bb084611d04565b91509150610bc68187610bc1611c2b565b611d2b565b610c1257610bdb86610bd6611c2b565b611ab5565b610c11576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603610c78576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c858686866001611d6f565b8015610c9057600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550610d5e85610d3a888887611d75565b7c020000000000000000000000000000000000000000000000000000000017611d9d565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603610de45760006001850190506000600460008381526020019081526020016000205403610de2576000548114610de1578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610e4c8686866001611dc8565b505050505050565b600c5481565b610e62611dce565b80600d8190555050565b610e74611dce565b80600f8190555050565b610e86611dce565b6000479050610e9c610e96611e4c565b82611e54565b50565b600b5481565b610ec08383836040518060200160405280600081525061199e565b505050565b610ecd611f48565b610ee3610ed8611e4c565b600c54868585611318565b610f22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f19906130d8565b60405180910390fd5b6001600b541480610f3557506002600b54145b80610f4257506003600b54145b610f81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f789061316a565b60405180910390fd5b600b548114610fc5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fbc906131fc565b60405180910390fd5b8183610fd7610fd2611e4c565b611f97565b610fe1919061324b565b1115611022576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611019906132f1565b60405180910390fd5b6010548361102e610b1b565b611038919061324b565b1115611079576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110709061335d565b60405180910390fd5b82600f54611087919061337d565b3410156110c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110c090613431565b60405180910390fd5b6110da6110d4611e4c565b84611fee565b6110e2611e4c565b73ffffffffffffffffffffffffffffffffffffffff167f8069ef4945469d029cc32e222031bccdc99b2eaaf4ee374cd268012f7ddee90784611122610b1b565b604051611130929190613451565b60405180910390a261114061200c565b50505050565b61114e611dce565b8181600a918261115f929190613631565b507f01e56a02aca7f26a28165a040851ba78f30282b55ca81c63a804cdc1e2dcea72828260405161119192919061372e565b60405180910390a15050565b6111a5611f48565b6004600b54146111ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111e1906137c4565b60405180910390fd5b600d54816111fe6111f9611e4c565b611f97565b611208919061324b565b1115611249576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611240906132f1565b60405180910390fd5b60105481611255610b1b565b61125f919061324b565b11156112a0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161129790613830565b60405180910390fd5b80600e546112ae919061337d565b3410156112f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112e790613431565b60405180910390fd5b6112fa8282611fee565b61130261200c565b5050565b61130e611dce565b80600b8190555050565b600061134f8486888686604051602001611334939291906138b9565b60405160208183030381529060405280519060200120612016565b905095945050505050565b600061136582611c38565b9050919050565b611374611dce565b8181905084849050146113bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113b390613968565b60405180910390fd5b6000805b85859050811015611403578383828181106113de576113dd613988565b5b90506020020135826113f0919061324b565b9150806113fc906139b7565b90506113c0565b5060105481611410610b1b565b61141a919061324b565b111561145b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145290613830565b60405180910390fd5b60005b858590508110156114c4576114b386868381811061147f5761147e613988565b5b90506020020160208101906114949190612dee565b8585848181106114a7576114a6613988565b5b90506020020135611fee565b806114bd906139b7565b905061145e565b505050505050565b600a80546114d99061305b565b80601f01602080910402602001604051908101604052809291908181526020018280546115059061305b565b80156115525780601f1061152757610100808354040283529160200191611552565b820191906000526020600020905b81548152906001019060200180831161153557829003601f168201915b505050505081565b611562611dce565b8060108190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036115d3576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b61162c611dce565b611636600061202d565b565b611640611dce565b80600e8190555050565b611652611dce565b80600c8190555050565b600d5481565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606003805461169b9061305b565b80601f01602080910402602001604051908101604052809291908181526020018280546116c79061305b565b80156117145780601f106116e957610100808354040283529160200191611714565b820191906000526020600020905b8154815290600101906020018083116116f757829003601f168201915b5050505050905090565b611726611f48565b6004600b541461176b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611762906137c4565b60405180910390fd5b600d548161177f61177a611e4c565b611f97565b611789919061324b565b11156117ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117c1906132f1565b60405180910390fd5b601054816117d6610b1b565b6117e0919061324b565b1115611821576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181890613830565b60405180910390fd5b80600e5461182f919061337d565b341015611871576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186890613431565b60405180910390fd5b61188261187c611e4c565b82611fee565b61188a61200c565b50565b806007600061189a611c2b565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611947611c2b565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161198c9190612716565b60405180910390a35050565b600e5481565b6119a9848484610b32565b60008373ffffffffffffffffffffffffffffffffffffffff163b14611a0b576119d4848484846120f3565b611a0a576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b6060611a1c82611bcc565b611a52576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611a5c612243565b90506000815103611a7c5760405180602001604052806000815250611aa7565b80611a86846122d5565b604051602001611a97929190613a3b565b6040516020818303038152906040525b915050919050565b60105481565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611b51611dce565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603611bc0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bb790613ad1565b60405180910390fd5b611bc98161202d565b50565b600081611bd7611c33565b11158015611be6575060005482105b8015611c24575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b600033905090565b600090565b60008082905080611c47611c33565b11611ccd57600054811015611ccc5760006004600083815260200190815260200160002054905060007c0100000000000000000000000000000000000000000000000000000000821603611cca575b60008103611cc0576004600083600190039350838152602001908152602001600020549050611c96565b8092505050611cff565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8611d8c868684612325565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b611dd6611e4c565b73ffffffffffffffffffffffffffffffffffffffff16611df4611662565b73ffffffffffffffffffffffffffffffffffffffff1614611e4a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e4190613b3d565b60405180910390fd5b565b600033905090565b80471015611e97576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e8e90613ba9565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff1682604051611ebd90613bfa565b60006040518083038185875af1925050503d8060008114611efa576040519150601f19603f3d011682016040523d82523d6000602084013e611eff565b606091505b5050905080611f43576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f3a90613c81565b60405180910390fd5b505050565b600260085403611f8d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f8490613ced565b60405180910390fd5b6002600881905550565b600067ffffffffffffffff6040600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b61200882826040518060200160405280600081525061232e565b5050565b6001600881905550565b60008261202385846123cb565b1490509392505050565b6000600960009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600960006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612119611c2b565b8786866040518563ffffffff1660e01b815260040161213b9493929190613d62565b6020604051808303816000875af192505050801561217757506040513d601f19601f820116820180604052508101906121749190613dc3565b60015b6121f0573d80600081146121a7576040519150601f19603f3d011682016040523d82523d6000602084013e6121ac565b606091505b5060008151036121e8576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b6060600a80546122529061305b565b80601f016020809104026020016040519081016040528092919081815260200182805461227e9061305b565b80156122cb5780601f106122a0576101008083540402835291602001916122cb565b820191906000526020600020905b8154815290600101906020018083116122ae57829003601f168201915b5050505050905090565b606060a060405101806040526020810391506000825281835b60011561231057600184039350600a81066030018453600a81049050806122ee575b50828103602084039350808452505050919050565b60009392505050565b6123388383612421565b60008373ffffffffffffffffffffffffffffffffffffffff163b146123c657600080549050600083820390505b61237860008683806001019450866120f3565b6123ae576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8181106123655781600054146123c357600080fd5b50505b505050565b60008082905060005b845181101561241657612401828683815181106123f4576123f3613988565b5b60200260200101516125dc565b9150808061240e906139b7565b9150506123d4565b508091505092915050565b60008054905060008203612461576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61246e6000848385611d6f565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055506124e5836124d66000866000611d75565b6124df85612607565b17611d9d565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b81811461258657808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460018101905061254b565b50600082036125c1576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060008190555050506125d76000848385611dc8565b505050565b60008183106125f4576125ef8284612617565b6125ff565b6125fe8383612617565b5b905092915050565b60006001821460e11b9050919050565b600082600052816020526040600020905092915050565b6000819050919050565b6126418161262e565b82525050565b600060208201905061265c6000830184612638565b92915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6126ab81612676565b81146126b657600080fd5b50565b6000813590506126c8816126a2565b92915050565b6000602082840312156126e4576126e361266c565b5b60006126f2848285016126b9565b91505092915050565b60008115159050919050565b612710816126fb565b82525050565b600060208201905061272b6000830184612707565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b8381101561276b578082015181840152602081019050612750565b60008484015250505050565b6000601f19601f8301169050919050565b600061279382612731565b61279d818561273c565b93506127ad81856020860161274d565b6127b681612777565b840191505092915050565b600060208201905081810360008301526127db8184612788565b905092915050565b6127ec8161262e565b81146127f757600080fd5b50565b600081359050612809816127e3565b92915050565b6000602082840312156128255761282461266c565b5b6000612833848285016127fa565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006128678261283c565b9050919050565b6128778161285c565b82525050565b6000602082019050612892600083018461286e565b92915050565b6128a18161285c565b81146128ac57600080fd5b50565b6000813590506128be81612898565b92915050565b600080604083850312156128db576128da61266c565b5b60006128e9858286016128af565b92505060206128fa858286016127fa565b9150509250929050565b60008060006060848603121561291d5761291c61266c565b5b600061292b868287016128af565b935050602061293c868287016128af565b925050604061294d868287016127fa565b9150509250925092565b6000819050919050565b61296a81612957565b82525050565b60006020820190506129856000830184612961565b92915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6129c882612777565b810181811067ffffffffffffffff821117156129e7576129e6612990565b5b80604052505050565b60006129fa612662565b9050612a0682826129bf565b919050565b600067ffffffffffffffff821115612a2657612a25612990565b5b602082029050602081019050919050565b600080fd5b612a4581612957565b8114612a5057600080fd5b50565b600081359050612a6281612a3c565b92915050565b6000612a7b612a7684612a0b565b6129f0565b90508083825260208201905060208402830185811115612a9e57612a9d612a37565b5b835b81811015612ac75780612ab38882612a53565b845260208401935050602081019050612aa0565b5050509392505050565b600082601f830112612ae657612ae561298b565b5b8135612af6848260208601612a68565b91505092915050565b60008060008060808587031215612b1957612b1861266c565b5b600085013567ffffffffffffffff811115612b3757612b36612671565b5b612b4387828801612ad1565b9450506020612b54878288016127fa565b9350506040612b65878288016127fa565b9250506060612b76878288016127fa565b91505092959194509250565b600080fd5b60008083601f840112612b9d57612b9c61298b565b5b8235905067ffffffffffffffff811115612bba57612bb9612b82565b5b602083019150836001820283011115612bd657612bd5612a37565b5b9250929050565b60008060208385031215612bf457612bf361266c565b5b600083013567ffffffffffffffff811115612c1257612c11612671565b5b612c1e85828601612b87565b92509250509250929050565b600080600080600060a08688031215612c4657612c4561266c565b5b6000612c54888289016128af565b9550506020612c6588828901612a53565b945050604086013567ffffffffffffffff811115612c8657612c85612671565b5b612c9288828901612ad1565b9350506060612ca3888289016127fa565b9250506080612cb4888289016127fa565b9150509295509295909350565b60008083601f840112612cd757612cd661298b565b5b8235905067ffffffffffffffff811115612cf457612cf3612b82565b5b602083019150836020820283011115612d1057612d0f612a37565b5b9250929050565b60008083601f840112612d2d57612d2c61298b565b5b8235905067ffffffffffffffff811115612d4a57612d49612b82565b5b602083019150836020820283011115612d6657612d65612a37565b5b9250929050565b60008060008060408587031215612d8757612d8661266c565b5b600085013567ffffffffffffffff811115612da557612da4612671565b5b612db187828801612cc1565b9450945050602085013567ffffffffffffffff811115612dd457612dd3612671565b5b612de087828801612d17565b925092505092959194509250565b600060208284031215612e0457612e0361266c565b5b6000612e12848285016128af565b91505092915050565b600060208284031215612e3157612e3061266c565b5b6000612e3f84828501612a53565b91505092915050565b612e51816126fb565b8114612e5c57600080fd5b50565b600081359050612e6e81612e48565b92915050565b60008060408385031215612e8b57612e8a61266c565b5b6000612e99858286016128af565b9250506020612eaa85828601612e5f565b9150509250929050565b600080fd5b600067ffffffffffffffff821115612ed457612ed3612990565b5b612edd82612777565b9050602081019050919050565b82818337600083830152505050565b6000612f0c612f0784612eb9565b6129f0565b905082815260208101848484011115612f2857612f27612eb4565b5b612f33848285612eea565b509392505050565b600082601f830112612f5057612f4f61298b565b5b8135612f60848260208601612ef9565b91505092915050565b60008060008060808587031215612f8357612f8261266c565b5b6000612f91878288016128af565b9450506020612fa2878288016128af565b9350506040612fb3878288016127fa565b925050606085013567ffffffffffffffff811115612fd457612fd3612671565b5b612fe087828801612f3b565b91505092959194509250565b600080604083850312156130035761300261266c565b5b6000613011858286016128af565b9250506020613022858286016128af565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b6000600282049050600182168061307357607f821691505b6020821081036130865761308561302c565b5b50919050565b7f4e4f4e5f57484954454c4953543a204e6f742077686974656c69737465640000600082015250565b60006130c2601e8361273c565b91506130cd8261308c565b602082019050919050565b600060208201905081810360008301526130f1816130b5565b9050919050565b7f50524553414c455f494e4143544956453a2050726573616c65206e6f7420616360008201527f7469766521000000000000000000000000000000000000000000000000000000602082015250565b600061315460258361273c565b915061315f826130f8565b604082019050919050565b6000602082019050818103600083015261318381613147565b9050919050565b7f50524553414c455f544945525f4e4f545f535441525445443a2050726573616c60008201527f65206163746976652c20627574206e6f7420666f7220796f7572205469657221602082015250565b60006131e660408361273c565b91506131f18261318a565b604082019050919050565b60006020820190508181036000830152613215816131d9565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006132568261262e565b91506132618361262e565b92508282019050808211156132795761327861321c565b5b92915050565b7f57414c4c45545f4c494d49545f524541434845443a2057616c6c6574206c696d60008201527f6974207265616368656421000000000000000000000000000000000000000000602082015250565b60006132db602b8361273c565b91506132e68261327f565b604082019050919050565b6000602082019050818103600083015261330a816132ce565b9050919050565b7f534f4c445f4f55543a20416c6c204e46547320736f6c64206f75742100000000600082015250565b6000613347601c8361273c565b915061335282613311565b602082019050919050565b600060208201905081810360008301526133768161333a565b9050919050565b60006133888261262e565b91506133938361262e565b92508282026133a18161262e565b915082820484148315176133b8576133b761321c565b5b5092915050565b7f4c4f575f42414c414e43453a204e6f7420656e6f7567682066756e647320737560008201527f70706c6965642100000000000000000000000000000000000000000000000000602082015250565b600061341b60278361273c565b9150613426826133bf565b604082019050919050565b6000602082019050818103600083015261344a8161340e565b9050919050565b60006040820190506134666000830185612638565b6134736020830184612638565b9392505050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026134e77fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff826134aa565b6134f186836134aa565b95508019841693508086168417925050509392505050565b6000819050919050565b600061352e6135296135248461262e565b613509565b61262e565b9050919050565b6000819050919050565b61354883613513565b61355c61355482613535565b8484546134b7565b825550505050565b600090565b613571613564565b61357c81848461353f565b505050565b5b818110156135a057613595600082613569565b600181019050613582565b5050565b601f8211156135e5576135b681613485565b6135bf8461349a565b810160208510156135ce578190505b6135e26135da8561349a565b830182613581565b50505b505050565b600082821c905092915050565b6000613608600019846008026135ea565b1980831691505092915050565b600061362183836135f7565b9150826002028217905092915050565b61363b838361347a565b67ffffffffffffffff81111561365457613653612990565b5b61365e825461305b565b6136698282856135a4565b6000601f8311600181146136985760008415613686578287013590505b6136908582613615565b8655506136f8565b601f1984166136a686613485565b60005b828110156136ce578489013582556001820191506020850194506020810190506136a9565b868310156136eb57848901356136e7601f8916826135f7565b8355505b6001600288020188555050505b50505050505050565b600061370d838561273c565b935061371a838584612eea565b61372383612777565b840190509392505050565b60006020820190508181036000830152613749818486613701565b90509392505050565b7f5055424c49435f53414c455f494e4143544956453a205075626c69632073616c60008201527f65206e6f74206163746976652100000000000000000000000000000000000000602082015250565b60006137ae602d8361273c565b91506137b982613752565b604082019050919050565b600060208201905081810360008301526137dd816137a1565b9050919050565b7f534f4c445f4f55543a204d617820737570706c79207265616368656421000000600082015250565b600061381a601d8361273c565b9150613825826137e4565b602082019050919050565b600060208201905081810360008301526138498161380d565b9050919050565b60008160601b9050919050565b600061386882613850565b9050919050565b600061387a8261385d565b9050919050565b61389261388d8261285c565b61386f565b82525050565b6000819050919050565b6138b36138ae8261262e565b613898565b82525050565b60006138c58286613881565b6014820191506138d582856138a2565b6020820191506138e582846138a2565b602082019150819050949350505050565b7f554e455155414c5f41525241593a206c656e677468206f66207265636970696560008201527f6e747320616e64207175616e74697479206e6f7420657175616c210000000000602082015250565b6000613952603b8361273c565b915061395d826138f6565b604082019050919050565b6000602082019050818103600083015261398181613945565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006139c28261262e565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82036139f4576139f361321c565b5b600182019050919050565b600081905092915050565b6000613a1582612731565b613a1f81856139ff565b9350613a2f81856020860161274d565b80840191505092915050565b6000613a478285613a0a565b9150613a538284613a0a565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b6000613abb60268361273c565b9150613ac682613a5f565b604082019050919050565b60006020820190508181036000830152613aea81613aae565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000613b2760208361273c565b9150613b3282613af1565b602082019050919050565b60006020820190508181036000830152613b5681613b1a565b9050919050565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b6000613b93601d8361273c565b9150613b9e82613b5d565b602082019050919050565b60006020820190508181036000830152613bc281613b86565b9050919050565b600081905092915050565b50565b6000613be4600083613bc9565b9150613bef82613bd4565b600082019050919050565b6000613c0582613bd7565b9150819050919050565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b6000613c6b603a8361273c565b9150613c7682613c0f565b604082019050919050565b60006020820190508181036000830152613c9a81613c5e565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b6000613cd7601f8361273c565b9150613ce282613ca1565b602082019050919050565b60006020820190508181036000830152613d0681613cca565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000613d3482613d0d565b613d3e8185613d18565b9350613d4e81856020860161274d565b613d5781612777565b840191505092915050565b6000608082019050613d77600083018761286e565b613d84602083018661286e565b613d916040830185612638565b8181036060830152613da38184613d29565b905095945050505050565b600081519050613dbd816126a2565b92915050565b600060208284031215613dd957613dd861266c565b5b6000613de784828501613dae565b9150509291505056fea2646970667358221220ce1cc56393ffebaece02bc8d694843a49fd494d2d9e97c1174cd0bab0c2536b564736f6c63430008120033

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

c99425f635cc49f5212358c77d747c2b62491dc595f7e8f2ce7174afa4a8366f

-----Decoded View---------------
Arg [0] : _merkleRoot (bytes32): 0xc99425f635cc49f5212358c77d747c2b62491dc595f7e8f2ce7174afa4a8366f

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


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

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