ETH Price: $3,126.97 (-0.31%)

Token

ChromaHeights (CH)
 

Overview

Max Total Supply

1,758 CH

Holders

448

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
48801.eth
Balance
4 CH
0xc6b3e413b3f7d2cb67191f806f8dfdb4a9d60ac7
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:
ChromaHeights

Compiler Version
v0.8.20+commit.a1b79de6

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2023-06-13
*/

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/introspection/IERC165.sol


// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.19;

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

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/introspection/ERC165.sol


// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.19;


/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/interfaces/IERC2981.sol


// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.19;


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

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/common/ERC2981.sol


// OpenZeppelin Contracts (last updated v4.9.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.19;



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

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

    /**
     * @dev The default royalty set is invalid (eg. (numerator / denominator) >= 1).
     */
    error ERC2981InvalidDefaultRoyalty(uint256 numerator, uint256 denominator);

    /**
     * @dev The default royalty receiver is invalid.
     */
    error ERC2981InvalidDefaultRoyaltyReceiver(address receiver);

    /**
     * @dev The royalty set for an specific `tokenId` is invalid (eg. (numerator / denominator) >= 1).
     */
    error ERC2981InvalidTokenRoyalty(uint256 tokenId, uint256 numerator, uint256 denominator);

    /**
     * @dev The royalty receiver for `tokenId` is invalid.
     */
    error ERC2981InvalidTokenRoyaltyReceiver(uint256 tokenId, address receiver);

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

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

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

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

        return (royalty.receiver, royaltyAmount);
    }

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

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        uint256 denominator = _feeDenominator();
        if (feeNumerator > denominator) {
            // Royalty fee will exceed the sale price
            revert ERC2981InvalidDefaultRoyalty(feeNumerator, denominator);
        }
        if (receiver == address(0)) {
            revert ERC2981InvalidDefaultRoyaltyReceiver(address(0));
        }

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

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

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(uint256 tokenId, address receiver, uint96 feeNumerator) internal virtual {
        uint256 denominator = _feeDenominator();
        if (feeNumerator > denominator) {
            // Royalty fee will exceed the sale price
            revert ERC2981InvalidTokenRoyalty(tokenId, feeNumerator, denominator);
        }
        if (receiver == address(0)) {
            revert ERC2981InvalidTokenRoyaltyReceiver(tokenId, address(0));
        }

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

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

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/math/SignedMath.sol


// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.19;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two signed numbers.
     */
    function min(int256 a, int256 b) internal pure returns (int256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/math/Math.sol


// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)

pragma solidity ^0.8.19;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    /**
     * @dev Muldiv operation overflow.
     */
    error MathOverflowedMulDiv();

    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v5.0._
     */
    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 v5.0._
     */
    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 v5.0._
     */
    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 v5.0._
     */
    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 v5.0._
     */
    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 largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            if (denominator <= prod1) {
                revert MathOverflowedMulDiv();
            }

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
        }
    }
}

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Strings.sol


// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)

pragma solidity ^0.8.19;



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

    /**
     * @dev The `value` string doesn't fit in the specified `length`.
     */
    error StringsInsufficientHexLength(uint256 value, uint256 length);

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toString(int256 value) internal pure returns (string memory) {
        return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

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

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

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Context.sol


// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.19;

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

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

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol


// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.19;


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

    /**
     * @dev The caller account is not authorized to perform an operation.
     */
    error OwnableUnauthorizedAccount(address account);

    /**
     * @dev The owner is not a valid owner account. (eg. `address(0)`)
     */
    error OwnableInvalidOwner(address owner);

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

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

    /**
     * @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 {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling 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 {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _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: https://github.com/chiru-labs/ERC721A/blob/main/contracts/IERC721A.sol


// 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: https://github.com/chiru-labs/ERC721A/blob/main/contracts/ERC721A.sol


// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;


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

        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 Returns whether the ownership slot at `index` is initialized.
     * An uninitialized slot does not necessarily mean that the slot has no owner.
     */
    function _ownershipIsInitialized(uint256 index) internal view virtual returns (bool) {
        return _packedOwnerships[index] != 0;
    }

    /**
     * @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 packed) {
        if (_startTokenId() <= tokenId) {
            packed = _packedOwnerships[tokenId];
            // If the data at the starting slot does not exist, start the scan.
            if (packed == 0) {
                if (tokenId >= _currentIndex) _revert(OwnerQueryForNonexistentToken.selector);
                // 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, `tokenId` will not underflow.
                //
                // We can directly compare the packed value.
                // If the address is zero, packed will be zero.
                for (;;) {
                    unchecked {
                        packed = _packedOwnerships[--tokenId];
                    }
                    if (packed == 0) continue;
                    if (packed & _BITMASK_BURNED == 0) return packed;
                    // Otherwise, the token is burned, and we must revert.
                    // This handles the case of batch burned tokens, where only the burned bit
                    // of the starting slot is set, and remaining slots are left uninitialized.
                    _revert(OwnerQueryForNonexistentToken.selector);
                }
            }
            // Otherwise, the data exists and we can skip the scan.
            // This is possible because we have already achieved the target condition.
            // This saves 2143 gas on transfers of initialized tokens.
            // If the token is not burned, return `packed`. Otherwise, revert.
            if (packed & _BITMASK_BURNED == 0) return packed;
        }
        _revert(OwnerQueryForNonexistentToken.selector);
    }

    /**
     * @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. See {ERC721A-_approve}.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     */
    function approve(address to, uint256 tokenId) public payable virtual override {
        _approve(to, tokenId, true);
    }

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

        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 result) {
        if (_startTokenId() <= tokenId) {
            if (tokenId < _currentIndex) {
                uint256 packed;
                while ((packed = _packedOwnerships[tokenId]) == 0) --tokenId;
                result = packed & _BITMASK_BURNED == 0;
            }
        }
    }

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

        // Mask `from` to the lower 160 bits, in case the upper bits somehow aren't clean.
        from = address(uint160(uint256(uint160(from)) & _BITMASK_ADDRESS));

        if (address(uint160(prevOwnershipPacked)) != from) _revert(TransferFromIncorrectOwner.selector);

        (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.selector);

        _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;
                    }
                }
            }
        }

        // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
        uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS;
        assembly {
            // 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.
                from, // `from`.
                toMasked, // `to`.
                tokenId // `tokenId`.
            )
        }
        if (toMasked == 0) _revert(TransferToZeroAddress.selector);

        _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.selector);
            }
    }

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

        _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:
            // - `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)
            );

            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += quantity * ((1 << _BITPOS_NUMBER_MINTED) | 1);

            // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
            uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS;

            if (toMasked == 0) _revert(MintToZeroAddress.selector);

            uint256 end = startTokenId + quantity;
            uint256 tokenId = startTokenId;

            do {
                assembly {
                    // 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`.
                        tokenId // `tokenId`.
                    )
                }
                // The `!=` check ensures that large values of `quantity`
                // that overflows uint256 will make the loop run out of gas.
            } while (++tokenId != end);

            _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.selector);
        if (quantity == 0) _revert(MintZeroQuantity.selector);
        if (quantity > _MAX_MINT_ERC2309_QUANTITY_LIMIT) _revert(MintERC2309QuantityExceedsLimit.selector);

        _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.selector);
                    }
                } while (index < end);
                // Reentrancy protection.
                if (_currentIndex != end) _revert(bytes4(0));
            }
        }
    }

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

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

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

    /**
     * @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:
     *
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function _approve(
        address to,
        uint256 tokenId,
        bool approvalCheck
    ) internal virtual {
        address owner = ownerOf(tokenId);

        if (approvalCheck && _msgSenderERC721A() != owner)
            if (!isApprovedForAll(owner, _msgSenderERC721A())) {
                _revert(ApprovalCallerNotOwnerNorApproved.selector);
            }

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

    // =============================================================
    //                        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.selector);
        }

        _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.selector);
        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)
        }
    }

    /**
     * @dev For more efficient reverts.
     */
    function _revert(bytes4 errorSelector) internal pure {
        assembly {
            mstore(0x00, errorSelector)
            revert(0x00, 0x04)
        }
    }
}

// File: contracts/ChromaHeights.sol


pragma solidity ^0.8.20;






contract ChromaHeights is ERC721A, ERC2981, Ownable {
   
    

    using Strings for uint256;
    uint256 public maxSupply = 2222;
    uint256 public maxFreeAmount = 888;
    uint256 public maxFreePerWallet = 2;
    uint256 public price = 0.0025 ether;
    uint256 public maxPerTx = 50;
    uint256 public maxPerWallet = 50;
    bool public mintEnabled = false;
    string public baseURI;

 constructor(
    uint96 _royaltyFeesInBips, 
    string memory _name,
    string memory _symbol,
    string memory _initBaseURI
  ) ERC721A(_name,_symbol) Ownable(msg.sender) {
        setBaseURI(_initBaseURI);
        setRoyaltyInfo(msg.sender, _royaltyFeesInBips);
    }

function supportsInterface(
    bytes4 interfaceId
) public view virtual override(ERC721A, ERC2981) returns (bool) {
    // Supports the following `interfaceId`s:
    // - IERC165: 0x01ffc9a7
    // - IERC721: 0x80ac58cd
    // - IERC721Metadata: 0x5b5e139f
    // - IERC2981: 0x2a55205a
    return 
        ERC721A.supportsInterface(interfaceId) || 
        ERC2981.supportsInterface(interfaceId);
}
    function setRoyaltyInfo(address _receiver, uint96 _royaltyFeesInBips) public onlyOwner
    {
        _setDefaultRoyalty(_receiver, _royaltyFeesInBips);
    }


  function  adminMint(uint256 _amountPerAddress, address[] calldata addresses) external onlyOwner {
     uint256 totalSupply = uint256(totalSupply());
     uint totalAmount =   _amountPerAddress * addresses.length;
    require(totalSupply + totalAmount <= maxSupply, "Exceeds max supply.");
     for (uint256 i = 0; i < addresses.length; i++) {
            _safeMint(addresses[i], _amountPerAddress);
        }

     delete _amountPerAddress;
     delete totalSupply;
  }
        function _startTokenId() internal pure override returns (uint256) {
         return 1;
        }
    function  publicMint(uint256 quantity) external payable  {
        require(mintEnabled, "Minting is not live yet.");
        require(totalSupply() + quantity < maxSupply + 1, "No more");
        uint256 cost = price;
        uint256 _maxPerWallet = maxPerWallet;
        

        if (
            totalSupply() < maxFreeAmount &&
            _numberMinted(msg.sender) == 0 &&
            quantity <= maxFreePerWallet
        ) {
            cost = 0;
            _maxPerWallet = maxFreePerWallet;
        }

        require(
            _numberMinted(msg.sender) + quantity <= _maxPerWallet,
            "Max per wallet"
        );

        uint256 needPayCount = quantity;
        if (_numberMinted(msg.sender) == 0) {
            needPayCount = quantity - 1;
        }
        require(
            msg.value >= needPayCount * cost,
            "Please send the exact amount."
        );
        _safeMint(msg.sender, quantity);
    }

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

    function tokenURI(
        uint256 tokenId
    ) public view virtual override returns (string memory) {
        require(
            _exists(tokenId),
            "ERC721Metadata: URI query for nonexistent token"
        );
        return string(abi.encodePacked(baseURI, tokenId.toString(), ".json"));
    }

    function flipSale() external onlyOwner {
        mintEnabled = !mintEnabled;
    }

    function setBaseURI(string memory uri) public onlyOwner {
        baseURI = uri;
    }

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

    function setMaxFreeAmount(uint256 _amount) external onlyOwner {
        maxFreeAmount = _amount;
    }

    function setMaxFreePerWallet(uint256 _amount) external onlyOwner {
        maxFreePerWallet = _amount;
    }

    function withdraw() external onlyOwner {
        (bool success, ) = payable(msg.sender).call{
            value: address(this).balance
        }("");
        require(success, "Transfer failed.");
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"uint96","name":"_royaltyFeesInBips","type":"uint96"},{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_initBaseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[{"internalType":"uint256","name":"numerator","type":"uint256"},{"internalType":"uint256","name":"denominator","type":"uint256"}],"name":"ERC2981InvalidDefaultRoyalty","type":"error"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC2981InvalidDefaultRoyaltyReceiver","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"numerator","type":"uint256"},{"internalType":"uint256","name":"denominator","type":"uint256"}],"name":"ERC2981InvalidTokenRoyalty","type":"error"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"receiver","type":"address"}],"name":"ERC2981InvalidTokenRoyaltyReceiver","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"uint256","name":"_amountPerAddress","type":"uint256"},{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"adminMint","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":[],"name":"flipSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxFreeAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxFreePerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerWallet","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":"mintEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","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":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"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":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setMaxFreeAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setMaxFreePerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint96","name":"_royaltyFeesInBips","type":"uint96"}],"name":"setRoyaltyInfo","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526108ae600b55610378600c556002600d556608e1bc9bf04000600e556032600f8190556010556011805460ff1916905534801562000040575f80fd5b50604051620021ba380380620021ba8339810160408190526200006391620002d3565b33838360026200007483826200040a565b5060036200008382826200040a565b505060015f55506200009581620000b7565b50620000a18162000108565b620000ad338562000124565b50505050620004d2565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b620001126200013a565b60126200012082826200040a565b5050565b6200012e6200013a565b6200012082826200016f565b600a546001600160a01b031633146200016d5760405163118cdaa760e01b81523360048201526024015b60405180910390fd5b565b6127106001600160601b038216811015620001b057604051636f483d0960e01b81526001600160601b03831660048201526024810182905260440162000164565b6001600160a01b038316620001db57604051635b6cc80560e11b81525f600482015260240162000164565b50604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600855565b634e487b7160e01b5f52604160045260245ffd5b5f82601f83011262000239575f80fd5b81516001600160401b038082111562000256576200025662000215565b604051601f8301601f19908116603f0116810190828211818310171562000281576200028162000215565b816040528381526020925086838588010111156200029d575f80fd5b5f91505b83821015620002c05785820183015181830184015290820190620002a1565b5f93810190920192909252949350505050565b5f805f8060808587031215620002e7575f80fd5b84516001600160601b0381168114620002fe575f80fd5b60208601519094506001600160401b03808211156200031b575f80fd5b620003298883890162000229565b945060408701519150808211156200033f575f80fd5b6200034d8883890162000229565b9350606087015191508082111562000363575f80fd5b50620003728782880162000229565b91505092959194509250565b600181811c908216806200039357607f821691505b602082108103620003b257634e487b7160e01b5f52602260045260245ffd5b50919050565b601f82111562000405575f81815260208120601f850160051c81016020861015620003e05750805b601f850160051c820191505b818110156200040157828155600101620003ec565b5050505b505050565b81516001600160401b0381111562000426576200042662000215565b6200043e816200043784546200037e565b84620003b8565b602080601f83116001811462000474575f84156200045c5750858301515b5f19600386901b1c1916600185901b17855562000401565b5f85815260208120601f198616915b82811015620004a45788860151825594840194600190910190840162000483565b5085821015620004c257878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b611cda80620004e05f395ff3fe6080604052600436106101fc575f3560e01c80636d7c4a4b11610113578063a70273571161009d578063d5abeb011161006d578063d5abeb0114610563578063e985e9c514610578578063f2fde38b14610597578063f892c6e2146105b6578063f968adbe146105cb575f80fd5b8063a702735714610503578063b88d4fde14610518578063c87b56dd1461052b578063d12397301461054a575f80fd5b80638da5cb5b116100e35780638da5cb5b1461047f57806391b7f5ed1461049c57806395d89b41146104bb578063a035b1fe146104cf578063a22cb465146104e4575f80fd5b80636d7c4a4b1461041957806370a0823114610438578063715018a6146104575780637ba5e6211461046b575f80fd5b80632a55205a1161019457806342842e0e1161016457806342842e0e1461039f578063453c2310146103b257806355f804b3146103c75780636352211e146103e65780636c0360eb14610405575f80fd5b80632a55205a1461031b5780632db11544146103595780633ccfd60b1461036c5780634248cf4314610380575f80fd5b8063095ea7b3116101cf578063095ea7b3146102ad5780630c23bb3f146102c057806318160ddd146102df57806323b872dd14610308575f80fd5b806301ffc9a71461020057806302fa7c471461023457806306fdde0314610255578063081812fc14610276575b5f80fd5b34801561020b575f80fd5b5061021f61021a36600461162e565b6105e0565b60405190151581526020015b60405180910390f35b34801561023f575f80fd5b5061025361024e366004611666565b6105ff565b005b348015610260575f80fd5b50610269610615565b60405161022b91906116f3565b348015610281575f80fd5b50610295610290366004611705565b6106a5565b6040516001600160a01b03909116815260200161022b565b6102536102bb36600461171c565b6106de565b3480156102cb575f80fd5b506102536102da366004611705565b6106ea565b3480156102ea575f80fd5b506102fa6001545f54035f190190565b60405190815260200161022b565b610253610316366004611744565b6106f7565b348015610326575f80fd5b5061033a61033536600461177d565b610851565b604080516001600160a01b03909316835260208301919091520161022b565b610253610367366004611705565b6108fb565b348015610377575f80fd5b50610253610ad2565b34801561038b575f80fd5b5061025361039a36600461179d565b610b65565b6102536103ad366004611744565b610c32565b3480156103bd575f80fd5b506102fa60105481565b3480156103d2575f80fd5b506102536103e136600461189c565b610c51565b3480156103f1575f80fd5b50610295610400366004611705565b610c65565b348015610410575f80fd5b50610269610c6f565b348015610424575f80fd5b50610253610433366004611705565b610cfb565b348015610443575f80fd5b506102fa6104523660046118e1565b610d08565b348015610462575f80fd5b50610253610d4c565b348015610476575f80fd5b50610253610d5f565b34801561048a575f80fd5b50600a546001600160a01b0316610295565b3480156104a7575f80fd5b506102536104b6366004611705565b610d7b565b3480156104c6575f80fd5b50610269610d88565b3480156104da575f80fd5b506102fa600e5481565b3480156104ef575f80fd5b506102536104fe3660046118fa565b610d97565b34801561050e575f80fd5b506102fa600d5481565b610253610526366004611928565b610e02565b348015610536575f80fd5b50610269610545366004611705565b610e3d565b348015610555575f80fd5b5060115461021f9060ff1681565b34801561056e575f80fd5b506102fa600b5481565b348015610583575f80fd5b5061021f61059236600461199f565b610ede565b3480156105a2575f80fd5b506102536105b13660046118e1565b610f0b565b3480156105c1575f80fd5b506102fa600c5481565b3480156105d6575f80fd5b506102fa600f5481565b5f6105ea82610f45565b806105f957506105f982610f92565b92915050565b610607610fc6565b6106118282610ff3565b5050565b606060028054610624906119d0565b80601f0160208091040260200160405190810160405280929190818152602001828054610650906119d0565b801561069b5780601f106106725761010080835404028352916020019161069b565b820191905f5260205f20905b81548152906001019060200180831161067e57829003601f168201915b5050505050905090565b5f6106af82611095565b6106c3576106c36333d1c03960e21b6110df565b505f908152600660205260409020546001600160a01b031690565b610611828260016110e7565b6106f2610fc6565b600c55565b5f61070182611188565b6001600160a01b0394851694909150811684146107275761072762a1148160e81b6110df565b5f8281526006602052604090208054338082146001600160a01b0388169091141761076a576107568633610ede565b61076a5761076a632ce44b5f60e11b6110df565b8015610774575f82555b6001600160a01b038681165f9081526005602052604080822080545f19019055918716808252919020805460010190554260a01b17600160e11b175f85815260046020526040812091909155600160e11b8416900361080057600184015f8181526004602052604081205490036107fe575f5481146107fe575f8181526004602052604090208490555b505b6001600160a01b0385168481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a4805f0361084857610848633a954ecd60e21b6110df565b50505050505050565b5f8281526009602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916108c55750604080518082019091526008546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101515f90612710906108e3906001600160601b031687611a1c565b6108ed9190611a33565b915196919550909350505050565b60115460ff166109525760405162461bcd60e51b815260206004820152601860248201527f4d696e74696e67206973206e6f74206c697665207965742e000000000000000060448201526064015b60405180910390fd5b600b54610960906001611a52565b816109706001545f54035f190190565b61097a9190611a52565b106109b15760405162461bcd60e51b81526020600482015260076024820152664e6f206d6f726560c81b6044820152606401610949565b600e54601054600c546109c96001545f54035f190190565b1080156109dc57506109da33611222565b155b80156109ea5750600d548311155b156109f7575050600d545f905b8083610a0233611222565b610a0c9190611a52565b1115610a4b5760405162461bcd60e51b815260206004820152600e60248201526d13585e081c195c881dd85b1b195d60921b6044820152606401610949565b82610a5533611222565b5f03610a6957610a66600185611a65565b90505b610a738382611a1c565b341015610ac25760405162461bcd60e51b815260206004820152601d60248201527f506c656173652073656e642074686520657861637420616d6f756e742e0000006044820152606401610949565b610acc338561124a565b50505050565b610ada610fc6565b6040515f90339047908381818185875af1925050503d805f8114610b19576040519150601f19603f3d011682016040523d82523d5f602084013e610b1e565b606091505b5050905080610b625760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610949565b50565b610b6d610fc6565b5f610b7d6001545f54035f190190565b90505f610b8a8386611a1c565b600b54909150610b9a8284611a52565b1115610bde5760405162461bcd60e51b815260206004820152601360248201527222bc31b2b2b2399036b0bc1039bab838363c9760691b6044820152606401610949565b5f5b83811015610c2a57610c18858583818110610bfd57610bfd611a78565b9050602002016020810190610c1291906118e1565b8761124a565b80610c2281611a8c565b915050610be0565b505050505050565b610c4c83838360405180602001604052805f815250610e02565b505050565b610c59610fc6565b60126106118282611ae9565b5f6105f982611188565b60128054610c7c906119d0565b80601f0160208091040260200160405190810160405280929190818152602001828054610ca8906119d0565b8015610cf35780601f10610cca57610100808354040283529160200191610cf3565b820191905f5260205f20905b815481529060010190602001808311610cd657829003601f168201915b505050505081565b610d03610fc6565b600d55565b5f6001600160a01b038216610d2757610d276323d3ad8160e21b6110df565b506001600160a01b03165f9081526005602052604090205467ffffffffffffffff1690565b610d54610fc6565b610d5d5f611263565b565b610d67610fc6565b6011805460ff19811660ff90911615179055565b610d83610fc6565b600e55565b606060038054610624906119d0565b335f8181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610e0d8484846106f7565b6001600160a01b0383163b15610acc57610e29848484846112b4565b610acc57610acc6368d2bf6b60e11b6110df565b6060610e4882611095565b610eac5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610949565b6012610eb783611393565b604051602001610ec8929190611ba5565b6040516020818303038152906040529050919050565b6001600160a01b039182165f90815260076020908152604080832093909416825291909152205460ff1690565b610f13610fc6565b6001600160a01b038116610f3c57604051631e4fbdf760e01b81525f6004820152602401610949565b610b6281611263565b5f6301ffc9a760e01b6001600160e01b031983161480610f7557506380ac58cd60e01b6001600160e01b03198316145b806105f95750506001600160e01b031916635b5e139f60e01b1490565b5f6001600160e01b0319821663152a902d60e11b14806105f957506301ffc9a760e01b6001600160e01b03198316146105f9565b600a546001600160a01b03163314610d5d5760405163118cdaa760e01b8152336004820152602401610949565b6127106001600160601b03821681101561103257604051636f483d0960e01b81526001600160601b038316600482015260248101829052604401610949565b6001600160a01b03831661105b57604051635b6cc80560e11b81525f6004820152602401610949565b50604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600855565b5f816001116110da575f548210156110da575f5b505f82815260046020526040812054908190036110d0576110c983611c38565b92506110a9565b600160e01b161590505b919050565b805f5260045ffd5b5f6110f183610c65565b90508180156111095750336001600160a01b03821614155b1561112c576111188133610ede565b61112c5761112c6367d9dca160e11b6110df565b5f8381526006602052604080822080546001600160a01b0319166001600160a01b0388811691821790925591518693918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a450505050565b5f8160011161121257505f8181526004602052604081205490819003611200575f5482106111c0576111c0636f96cda160e11b6110df565b5b505f19015f8181526004602052604090205480156111c157600160e01b81165f036111eb57919050565b6111fb636f96cda160e11b6110df565b6111c1565b600160e01b81165f0361121257919050565b6110da636f96cda160e11b6110df565b6001600160a01b03165f908152600560205260409081902054901c67ffffffffffffffff1690565b610611828260405180602001604052805f815250611423565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b604051630a85bd0160e11b81525f906001600160a01b0385169063150b7a02906112e8903390899088908890600401611c4d565b6020604051808303815f875af1925050508015611322575060408051601f3d908101601f1916820190925261131f91810190611c89565b60015b611375573d80801561134f576040519150601f19603f3d011682016040523d82523d5f602084013e611354565b606091505b5080515f0361136d5761136d6368d2bf6b60e11b6110df565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60605f61139f83611488565b60010190505f8167ffffffffffffffff8111156113be576113be611815565b6040519080825280601f01601f1916602001820160405280156113e8576020820181803683370190505b5090508181016020015b5f19016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846113f257509392505050565b61142d838361155f565b6001600160a01b0383163b15610c4c575f548281035b6114555f8683806001019450866112b4565b611469576114696368d2bf6b60e11b6110df565b81811061144357815f5414611481576114815f6110df565b5050505050565b5f8072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106114c65772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106114f2576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061151057662386f26fc10000830492506010015b6305f5e1008310611528576305f5e100830492506008015b612710831061153c57612710830492506004015b6064831061154e576064830492506002015b600a83106105f95760010192915050565b5f80549082900361157a5761157a63b562e8dd60e01b6110df565b5f8181526004602090815260408083206001600160a01b0387164260a01b6001881460e11b178117909155808452600590925282208054680100000000000000018602019055908190036115d7576115d7622e076360e81b6110df565b818301825b80835f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a48181600101915081036115dc57505f5550505050565b6001600160e01b031981168114610b62575f80fd5b5f6020828403121561163e575f80fd5b813561164981611619565b9392505050565b80356001600160a01b03811681146110da575f80fd5b5f8060408385031215611677575f80fd5b61168083611650565b915060208301356001600160601b038116811461169b575f80fd5b809150509250929050565b5f5b838110156116c05781810151838201526020016116a8565b50505f910152565b5f81518084526116df8160208601602086016116a6565b601f01601f19169290920160200192915050565b602081525f61164960208301846116c8565b5f60208284031215611715575f80fd5b5035919050565b5f806040838503121561172d575f80fd5b61173683611650565b946020939093013593505050565b5f805f60608486031215611756575f80fd5b61175f84611650565b925061176d60208501611650565b9150604084013590509250925092565b5f806040838503121561178e575f80fd5b50508035926020909101359150565b5f805f604084860312156117af575f80fd5b83359250602084013567ffffffffffffffff808211156117cd575f80fd5b818601915086601f8301126117e0575f80fd5b8135818111156117ee575f80fd5b8760208260051b8501011115611802575f80fd5b6020830194508093505050509250925092565b634e487b7160e01b5f52604160045260245ffd5b5f67ffffffffffffffff8084111561184357611843611815565b604051601f8501601f19908116603f0116810190828211818310171561186b5761186b611815565b81604052809350858152868686011115611883575f80fd5b858560208301375f602087830101525050509392505050565b5f602082840312156118ac575f80fd5b813567ffffffffffffffff8111156118c2575f80fd5b8201601f810184136118d2575f80fd5b61138b84823560208401611829565b5f602082840312156118f1575f80fd5b61164982611650565b5f806040838503121561190b575f80fd5b61191483611650565b91506020830135801515811461169b575f80fd5b5f805f806080858703121561193b575f80fd5b61194485611650565b935061195260208601611650565b925060408501359150606085013567ffffffffffffffff811115611974575f80fd5b8501601f81018713611984575f80fd5b61199387823560208401611829565b91505092959194509250565b5f80604083850312156119b0575f80fd5b6119b983611650565b91506119c760208401611650565b90509250929050565b600181811c908216806119e457607f821691505b602082108103611a0257634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176105f9576105f9611a08565b5f82611a4d57634e487b7160e01b5f52601260045260245ffd5b500490565b808201808211156105f9576105f9611a08565b818103818111156105f9576105f9611a08565b634e487b7160e01b5f52603260045260245ffd5b5f60018201611a9d57611a9d611a08565b5060010190565b601f821115610c4c575f81815260208120601f850160051c81016020861015611aca5750805b601f850160051c820191505b81811015610c2a57828155600101611ad6565b815167ffffffffffffffff811115611b0357611b03611815565b611b1781611b1184546119d0565b84611aa4565b602080601f831160018114611b4a575f8415611b335750858301515b5f19600386901b1c1916600185901b178555610c2a565b5f85815260208120601f198616915b82811015611b7857888601518255948401946001909101908401611b59565b5085821015611b9557878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b5f808454611bb2816119d0565b60018281168015611bca5760018114611bdf57611c0b565b60ff1984168752821515830287019450611c0b565b885f526020805f205f5b85811015611c025781548a820152908401908201611be9565b50505082870194505b505050508351611c1f8183602088016116a6565b64173539b7b760d91b9101908152600501949350505050565b5f81611c4657611c46611a08565b505f190190565b6001600160a01b03858116825284166020820152604081018390526080606082018190525f90611c7f908301846116c8565b9695505050505050565b5f60208284031215611c99575f80fd5b81516116498161161956fea264697066735822122072a03efff5e7e436857b568b09cc56c65fd1238dbaa2264abedd2434b703a9b364736f6c634300081400330000000000000000000000000000000000000000000000000000000000000190000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000d4368726f6d614865696768747300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000243480000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000043697066733a2f2f6261667962656962686a6363366e356d663663697470346469706e64356d32707a7675347376326265616d776c6a61746767766e7572647664376d2f0000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106101fc575f3560e01c80636d7c4a4b11610113578063a70273571161009d578063d5abeb011161006d578063d5abeb0114610563578063e985e9c514610578578063f2fde38b14610597578063f892c6e2146105b6578063f968adbe146105cb575f80fd5b8063a702735714610503578063b88d4fde14610518578063c87b56dd1461052b578063d12397301461054a575f80fd5b80638da5cb5b116100e35780638da5cb5b1461047f57806391b7f5ed1461049c57806395d89b41146104bb578063a035b1fe146104cf578063a22cb465146104e4575f80fd5b80636d7c4a4b1461041957806370a0823114610438578063715018a6146104575780637ba5e6211461046b575f80fd5b80632a55205a1161019457806342842e0e1161016457806342842e0e1461039f578063453c2310146103b257806355f804b3146103c75780636352211e146103e65780636c0360eb14610405575f80fd5b80632a55205a1461031b5780632db11544146103595780633ccfd60b1461036c5780634248cf4314610380575f80fd5b8063095ea7b3116101cf578063095ea7b3146102ad5780630c23bb3f146102c057806318160ddd146102df57806323b872dd14610308575f80fd5b806301ffc9a71461020057806302fa7c471461023457806306fdde0314610255578063081812fc14610276575b5f80fd5b34801561020b575f80fd5b5061021f61021a36600461162e565b6105e0565b60405190151581526020015b60405180910390f35b34801561023f575f80fd5b5061025361024e366004611666565b6105ff565b005b348015610260575f80fd5b50610269610615565b60405161022b91906116f3565b348015610281575f80fd5b50610295610290366004611705565b6106a5565b6040516001600160a01b03909116815260200161022b565b6102536102bb36600461171c565b6106de565b3480156102cb575f80fd5b506102536102da366004611705565b6106ea565b3480156102ea575f80fd5b506102fa6001545f54035f190190565b60405190815260200161022b565b610253610316366004611744565b6106f7565b348015610326575f80fd5b5061033a61033536600461177d565b610851565b604080516001600160a01b03909316835260208301919091520161022b565b610253610367366004611705565b6108fb565b348015610377575f80fd5b50610253610ad2565b34801561038b575f80fd5b5061025361039a36600461179d565b610b65565b6102536103ad366004611744565b610c32565b3480156103bd575f80fd5b506102fa60105481565b3480156103d2575f80fd5b506102536103e136600461189c565b610c51565b3480156103f1575f80fd5b50610295610400366004611705565b610c65565b348015610410575f80fd5b50610269610c6f565b348015610424575f80fd5b50610253610433366004611705565b610cfb565b348015610443575f80fd5b506102fa6104523660046118e1565b610d08565b348015610462575f80fd5b50610253610d4c565b348015610476575f80fd5b50610253610d5f565b34801561048a575f80fd5b50600a546001600160a01b0316610295565b3480156104a7575f80fd5b506102536104b6366004611705565b610d7b565b3480156104c6575f80fd5b50610269610d88565b3480156104da575f80fd5b506102fa600e5481565b3480156104ef575f80fd5b506102536104fe3660046118fa565b610d97565b34801561050e575f80fd5b506102fa600d5481565b610253610526366004611928565b610e02565b348015610536575f80fd5b50610269610545366004611705565b610e3d565b348015610555575f80fd5b5060115461021f9060ff1681565b34801561056e575f80fd5b506102fa600b5481565b348015610583575f80fd5b5061021f61059236600461199f565b610ede565b3480156105a2575f80fd5b506102536105b13660046118e1565b610f0b565b3480156105c1575f80fd5b506102fa600c5481565b3480156105d6575f80fd5b506102fa600f5481565b5f6105ea82610f45565b806105f957506105f982610f92565b92915050565b610607610fc6565b6106118282610ff3565b5050565b606060028054610624906119d0565b80601f0160208091040260200160405190810160405280929190818152602001828054610650906119d0565b801561069b5780601f106106725761010080835404028352916020019161069b565b820191905f5260205f20905b81548152906001019060200180831161067e57829003601f168201915b5050505050905090565b5f6106af82611095565b6106c3576106c36333d1c03960e21b6110df565b505f908152600660205260409020546001600160a01b031690565b610611828260016110e7565b6106f2610fc6565b600c55565b5f61070182611188565b6001600160a01b0394851694909150811684146107275761072762a1148160e81b6110df565b5f8281526006602052604090208054338082146001600160a01b0388169091141761076a576107568633610ede565b61076a5761076a632ce44b5f60e11b6110df565b8015610774575f82555b6001600160a01b038681165f9081526005602052604080822080545f19019055918716808252919020805460010190554260a01b17600160e11b175f85815260046020526040812091909155600160e11b8416900361080057600184015f8181526004602052604081205490036107fe575f5481146107fe575f8181526004602052604090208490555b505b6001600160a01b0385168481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a4805f0361084857610848633a954ecd60e21b6110df565b50505050505050565b5f8281526009602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916108c55750604080518082019091526008546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101515f90612710906108e3906001600160601b031687611a1c565b6108ed9190611a33565b915196919550909350505050565b60115460ff166109525760405162461bcd60e51b815260206004820152601860248201527f4d696e74696e67206973206e6f74206c697665207965742e000000000000000060448201526064015b60405180910390fd5b600b54610960906001611a52565b816109706001545f54035f190190565b61097a9190611a52565b106109b15760405162461bcd60e51b81526020600482015260076024820152664e6f206d6f726560c81b6044820152606401610949565b600e54601054600c546109c96001545f54035f190190565b1080156109dc57506109da33611222565b155b80156109ea5750600d548311155b156109f7575050600d545f905b8083610a0233611222565b610a0c9190611a52565b1115610a4b5760405162461bcd60e51b815260206004820152600e60248201526d13585e081c195c881dd85b1b195d60921b6044820152606401610949565b82610a5533611222565b5f03610a6957610a66600185611a65565b90505b610a738382611a1c565b341015610ac25760405162461bcd60e51b815260206004820152601d60248201527f506c656173652073656e642074686520657861637420616d6f756e742e0000006044820152606401610949565b610acc338561124a565b50505050565b610ada610fc6565b6040515f90339047908381818185875af1925050503d805f8114610b19576040519150601f19603f3d011682016040523d82523d5f602084013e610b1e565b606091505b5050905080610b625760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610949565b50565b610b6d610fc6565b5f610b7d6001545f54035f190190565b90505f610b8a8386611a1c565b600b54909150610b9a8284611a52565b1115610bde5760405162461bcd60e51b815260206004820152601360248201527222bc31b2b2b2399036b0bc1039bab838363c9760691b6044820152606401610949565b5f5b83811015610c2a57610c18858583818110610bfd57610bfd611a78565b9050602002016020810190610c1291906118e1565b8761124a565b80610c2281611a8c565b915050610be0565b505050505050565b610c4c83838360405180602001604052805f815250610e02565b505050565b610c59610fc6565b60126106118282611ae9565b5f6105f982611188565b60128054610c7c906119d0565b80601f0160208091040260200160405190810160405280929190818152602001828054610ca8906119d0565b8015610cf35780601f10610cca57610100808354040283529160200191610cf3565b820191905f5260205f20905b815481529060010190602001808311610cd657829003601f168201915b505050505081565b610d03610fc6565b600d55565b5f6001600160a01b038216610d2757610d276323d3ad8160e21b6110df565b506001600160a01b03165f9081526005602052604090205467ffffffffffffffff1690565b610d54610fc6565b610d5d5f611263565b565b610d67610fc6565b6011805460ff19811660ff90911615179055565b610d83610fc6565b600e55565b606060038054610624906119d0565b335f8181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610e0d8484846106f7565b6001600160a01b0383163b15610acc57610e29848484846112b4565b610acc57610acc6368d2bf6b60e11b6110df565b6060610e4882611095565b610eac5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610949565b6012610eb783611393565b604051602001610ec8929190611ba5565b6040516020818303038152906040529050919050565b6001600160a01b039182165f90815260076020908152604080832093909416825291909152205460ff1690565b610f13610fc6565b6001600160a01b038116610f3c57604051631e4fbdf760e01b81525f6004820152602401610949565b610b6281611263565b5f6301ffc9a760e01b6001600160e01b031983161480610f7557506380ac58cd60e01b6001600160e01b03198316145b806105f95750506001600160e01b031916635b5e139f60e01b1490565b5f6001600160e01b0319821663152a902d60e11b14806105f957506301ffc9a760e01b6001600160e01b03198316146105f9565b600a546001600160a01b03163314610d5d5760405163118cdaa760e01b8152336004820152602401610949565b6127106001600160601b03821681101561103257604051636f483d0960e01b81526001600160601b038316600482015260248101829052604401610949565b6001600160a01b03831661105b57604051635b6cc80560e11b81525f6004820152602401610949565b50604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600855565b5f816001116110da575f548210156110da575f5b505f82815260046020526040812054908190036110d0576110c983611c38565b92506110a9565b600160e01b161590505b919050565b805f5260045ffd5b5f6110f183610c65565b90508180156111095750336001600160a01b03821614155b1561112c576111188133610ede565b61112c5761112c6367d9dca160e11b6110df565b5f8381526006602052604080822080546001600160a01b0319166001600160a01b0388811691821790925591518693918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a450505050565b5f8160011161121257505f8181526004602052604081205490819003611200575f5482106111c0576111c0636f96cda160e11b6110df565b5b505f19015f8181526004602052604090205480156111c157600160e01b81165f036111eb57919050565b6111fb636f96cda160e11b6110df565b6111c1565b600160e01b81165f0361121257919050565b6110da636f96cda160e11b6110df565b6001600160a01b03165f908152600560205260409081902054901c67ffffffffffffffff1690565b610611828260405180602001604052805f815250611423565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b604051630a85bd0160e11b81525f906001600160a01b0385169063150b7a02906112e8903390899088908890600401611c4d565b6020604051808303815f875af1925050508015611322575060408051601f3d908101601f1916820190925261131f91810190611c89565b60015b611375573d80801561134f576040519150601f19603f3d011682016040523d82523d5f602084013e611354565b606091505b5080515f0361136d5761136d6368d2bf6b60e11b6110df565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60605f61139f83611488565b60010190505f8167ffffffffffffffff8111156113be576113be611815565b6040519080825280601f01601f1916602001820160405280156113e8576020820181803683370190505b5090508181016020015b5f19016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846113f257509392505050565b61142d838361155f565b6001600160a01b0383163b15610c4c575f548281035b6114555f8683806001019450866112b4565b611469576114696368d2bf6b60e11b6110df565b81811061144357815f5414611481576114815f6110df565b5050505050565b5f8072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106114c65772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef810000000083106114f2576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061151057662386f26fc10000830492506010015b6305f5e1008310611528576305f5e100830492506008015b612710831061153c57612710830492506004015b6064831061154e576064830492506002015b600a83106105f95760010192915050565b5f80549082900361157a5761157a63b562e8dd60e01b6110df565b5f8181526004602090815260408083206001600160a01b0387164260a01b6001881460e11b178117909155808452600590925282208054680100000000000000018602019055908190036115d7576115d7622e076360e81b6110df565b818301825b80835f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a48181600101915081036115dc57505f5550505050565b6001600160e01b031981168114610b62575f80fd5b5f6020828403121561163e575f80fd5b813561164981611619565b9392505050565b80356001600160a01b03811681146110da575f80fd5b5f8060408385031215611677575f80fd5b61168083611650565b915060208301356001600160601b038116811461169b575f80fd5b809150509250929050565b5f5b838110156116c05781810151838201526020016116a8565b50505f910152565b5f81518084526116df8160208601602086016116a6565b601f01601f19169290920160200192915050565b602081525f61164960208301846116c8565b5f60208284031215611715575f80fd5b5035919050565b5f806040838503121561172d575f80fd5b61173683611650565b946020939093013593505050565b5f805f60608486031215611756575f80fd5b61175f84611650565b925061176d60208501611650565b9150604084013590509250925092565b5f806040838503121561178e575f80fd5b50508035926020909101359150565b5f805f604084860312156117af575f80fd5b83359250602084013567ffffffffffffffff808211156117cd575f80fd5b818601915086601f8301126117e0575f80fd5b8135818111156117ee575f80fd5b8760208260051b8501011115611802575f80fd5b6020830194508093505050509250925092565b634e487b7160e01b5f52604160045260245ffd5b5f67ffffffffffffffff8084111561184357611843611815565b604051601f8501601f19908116603f0116810190828211818310171561186b5761186b611815565b81604052809350858152868686011115611883575f80fd5b858560208301375f602087830101525050509392505050565b5f602082840312156118ac575f80fd5b813567ffffffffffffffff8111156118c2575f80fd5b8201601f810184136118d2575f80fd5b61138b84823560208401611829565b5f602082840312156118f1575f80fd5b61164982611650565b5f806040838503121561190b575f80fd5b61191483611650565b91506020830135801515811461169b575f80fd5b5f805f806080858703121561193b575f80fd5b61194485611650565b935061195260208601611650565b925060408501359150606085013567ffffffffffffffff811115611974575f80fd5b8501601f81018713611984575f80fd5b61199387823560208401611829565b91505092959194509250565b5f80604083850312156119b0575f80fd5b6119b983611650565b91506119c760208401611650565b90509250929050565b600181811c908216806119e457607f821691505b602082108103611a0257634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b80820281158282048414176105f9576105f9611a08565b5f82611a4d57634e487b7160e01b5f52601260045260245ffd5b500490565b808201808211156105f9576105f9611a08565b818103818111156105f9576105f9611a08565b634e487b7160e01b5f52603260045260245ffd5b5f60018201611a9d57611a9d611a08565b5060010190565b601f821115610c4c575f81815260208120601f850160051c81016020861015611aca5750805b601f850160051c820191505b81811015610c2a57828155600101611ad6565b815167ffffffffffffffff811115611b0357611b03611815565b611b1781611b1184546119d0565b84611aa4565b602080601f831160018114611b4a575f8415611b335750858301515b5f19600386901b1c1916600185901b178555610c2a565b5f85815260208120601f198616915b82811015611b7857888601518255948401946001909101908401611b59565b5085821015611b9557878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b5f808454611bb2816119d0565b60018281168015611bca5760018114611bdf57611c0b565b60ff1984168752821515830287019450611c0b565b885f526020805f205f5b85811015611c025781548a820152908401908201611be9565b50505082870194505b505050508351611c1f8183602088016116a6565b64173539b7b760d91b9101908152600501949350505050565b5f81611c4657611c46611a08565b505f190190565b6001600160a01b03858116825284166020820152604081018390526080606082018190525f90611c7f908301846116c8565b9695505050505050565b5f60208284031215611c99575f80fd5b81516116498161161956fea264697066735822122072a03efff5e7e436857b568b09cc56c65fd1238dbaa2264abedd2434b703a9b364736f6c63430008140033

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

0000000000000000000000000000000000000000000000000000000000000190000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000d4368726f6d614865696768747300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000243480000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000043697066733a2f2f6261667962656962686a6363366e356d663663697470346469706e64356d32707a7675347376326265616d776c6a61746767766e7572647664376d2f0000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _royaltyFeesInBips (uint96): 400
Arg [1] : _name (string): ChromaHeights
Arg [2] : _symbol (string): CH
Arg [3] : _initBaseURI (string): ipfs://bafybeibhjcc6n5mf6citp4dipnd5m2pzvu4sv2beamwljatggvnurdvd7m/

-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000190
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000d
Arg [5] : 4368726f6d614865696768747300000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [7] : 4348000000000000000000000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000043
Arg [9] : 697066733a2f2f6261667962656962686a6363366e356d663663697470346469
Arg [10] : 706e64356d32707a7675347376326265616d776c6a61746767766e7572647664
Arg [11] : 376d2f0000000000000000000000000000000000000000000000000000000000


Deployed Bytecode Sourcemap

86037:4009:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;86727:411;;;;;;;;;;-1:-1:-1;86727:411:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;86727:411:0;;;;;;;;87144:160;;;;;;;;;;-1:-1:-1;87144:160:0;;;;;:::i;:::-;;:::i;:::-;;51593:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;58627:227::-;;;;;;;;;;-1:-1:-1;58627:227:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;2246:32:1;;;2228:51;;2216:2;2201:18;58627:227:0;2082:203:1;58344:124:0;;;;;;:::i;:::-;;:::i;89607:104::-;;;;;;;;;;-1:-1:-1;89607:104:0;;;;;:::i;:::-;;:::i;47335:323::-;;;;;;;;;;;;87886:1;47609:12;47396:7;47593:13;:28;-1:-1:-1;;47593:46:0;;47335:323;;;;2695:25:1;;;2683:2;2668:18;47335:323:0;2549:177:1;62361:3523:0;;;;;;:::i;:::-;;:::i;5315:429::-;;;;;;;;;;-1:-1:-1;5315:429:0;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;3509:32:1;;;3491:51;;3573:2;3558:18;;3551:34;;;;3464:18;5315:429:0;3317:274:1;87905:966:0;;;;;;:::i;:::-;;:::i;89837:206::-;;;;;;;;;;;;;:::i;87312:479::-;;;;;;;;;;-1:-1:-1;87312:479:0;;;;;:::i;:::-;;:::i;65980:193::-;;;;;;:::i;:::-;;:::i;86339:32::-;;;;;;;;;;;;;;;;89411:88;;;;;;;;;;-1:-1:-1;89411:88:0;;;;;:::i;:::-;;:::i;52995:152::-;;;;;;;;;;-1:-1:-1;52995:152:0;;;;;:::i;:::-;;:::i;86416:21::-;;;;;;;;;;;;;:::i;89719:110::-;;;;;;;;;;-1:-1:-1;89719:110:0;;;;;:::i;:::-;;:::i;48519:242::-;;;;;;;;;;-1:-1:-1;48519:242:0;;;;;:::i;:::-;;:::i;31362:103::-;;;;;;;;;;;;;:::i;89319:84::-;;;;;;;;;;;;;:::i;30687:87::-;;;;;;;;;;-1:-1:-1;30760:6:0;;-1:-1:-1;;;;;30760:6:0;30687:87;;89507:92;;;;;;;;;;-1:-1:-1;89507:92:0;;;;;:::i;:::-;;:::i;51769:104::-;;;;;;;;;;;;;:::i;86262:35::-;;;;;;;;;;;;;;;;59194:234;;;;;;;;;;-1:-1:-1;59194:234:0;;;;;:::i;:::-;;:::i;86220:35::-;;;;;;;;;;;;;;;;66771:416;;;;;;:::i;:::-;;:::i;88995:316::-;;;;;;;;;;-1:-1:-1;88995:316:0;;;;;:::i;:::-;;:::i;86378:31::-;;;;;;;;;;-1:-1:-1;86378:31:0;;;;;;;;86141;;;;;;;;;;;;;;;;59585:164;;;;;;;;;;-1:-1:-1;59585:164:0;;;;;:::i;:::-;;:::i;31620:220::-;;;;;;;;;;-1:-1:-1;31620:220:0;;;;;:::i;:::-;;:::i;86179:34::-;;;;;;;;;;;;;;;;86304:28;;;;;;;;;;;;;;;;86727:411;86838:4;87044:38;87070:11;87044:25;:38::i;:::-;:90;;;;87096:38;87122:11;87096:25;:38::i;:::-;87027:107;86727:411;-1:-1:-1;;86727:411:0:o;87144:160::-;30573:13;:11;:13::i;:::-;87247:49:::1;87266:9;87277:18;87247;:49::i;:::-;87144:160:::0;;:::o;51593:100::-;51647:13;51680:5;51673:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;51593:100;:::o;58627:227::-;58703:7;58728:16;58736:7;58728;:16::i;:::-;58723:73;;58746:50;-1:-1:-1;;;58746:7:0;:50::i;:::-;-1:-1:-1;58816:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;58816:30:0;;58627:227::o;58344:124::-;58433:27;58442:2;58446:7;58455:4;58433:8;:27::i;89607:104::-;30573:13;:11;:13::i;:::-;89680::::1;:23:::0;89607:104::o;62361:3523::-;62503:27;62533;62552:7;62533:18;:27::i;:::-;-1:-1:-1;;;;;62688:22:0;;;;62503:57;;-1:-1:-1;62748:45:0;;;;62744:95;;62795:44;-1:-1:-1;;;62795:7:0;:44::i;:::-;62853:27;61469:24;;;:15;:24;;;;;61697:26;;83853:10;61094:30;;;-1:-1:-1;;;;;60787:28:0;;61072:20;;;61069:56;63039:189;;63132:43;63149:4;83853:10;59585:164;:::i;63132:43::-;63127:101;;63177:51;-1:-1:-1;;;63177:7:0;:51::i;:::-;63377:15;63374:160;;;63517:1;63496:19;63489:30;63374:160;-1:-1:-1;;;;;63914:24:0;;;;;;;:18;:24;;;;;;63912:26;;-1:-1:-1;;63912:26:0;;;63983:22;;;;;;;;;63981:24;;-1:-1:-1;63981:24:0;;;57446:11;57421:23;57417:41;57404:63;-1:-1:-1;;;57404:63:0;64276:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;64571:47:0;;:52;;64567:627;;64676:1;64666:11;;64644:19;64799:30;;;:17;:30;;;;;;:35;;64795:384;;64937:13;;64922:11;:28;64918:242;;65084:30;;;;:17;:30;;;;;:52;;;64918:242;64625:569;64567:627;-1:-1:-1;;;;;65326:20:0;;65706:7;65326:20;65636:4;65578:25;65307:16;;65443:299;65767:8;65779:1;65767:13;65763:58;;65782:39;-1:-1:-1;;;65782:7:0;:39::i;:::-;62492:3392;;;;62361:3523;;;:::o;5315:429::-;5401:7;5459:26;;;:17;:26;;;;;;;;5430:55;;;;;;;;;-1:-1:-1;;;;;5430:55:0;;;;;-1:-1:-1;;;5430:55:0;;;-1:-1:-1;;;;;5430:55:0;;;;;;;;5401:7;;5498:92;;-1:-1:-1;5549:29:0;;;;;;;;;5559:19;5549:29;-1:-1:-1;;;;;5549:29:0;;;;-1:-1:-1;;;5549:29:0;;-1:-1:-1;;;;;5549:29:0;;;;;5498:92;5639:23;;;;5602:21;;6110:5;;5627:35;;-1:-1:-1;;;;;5627:35:0;:9;:35;:::i;:::-;5626:57;;;;:::i;:::-;5704:16;;;;;-1:-1:-1;5315:429:0;;-1:-1:-1;;;;5315:429:0:o;87905:966::-;87981:11;;;;87973:48;;;;-1:-1:-1;;;87973:48:0;;8235:2:1;87973:48:0;;;8217:21:1;8274:2;8254:18;;;8247:30;8313:26;8293:18;;;8286:54;8357:18;;87973:48:0;;;;;;;;;88067:9;;:13;;88079:1;88067:13;:::i;:::-;88056:8;88040:13;87886:1;47609:12;47396:7;47593:13;:28;-1:-1:-1;;47593:46:0;;47335:323;88040:13;:24;;;;:::i;:::-;:40;88032:60;;;;-1:-1:-1;;;88032:60:0;;8718:2:1;88032:60:0;;;8700:21:1;8757:1;8737:18;;;8730:29;-1:-1:-1;;;8775:18:1;;;8768:37;8822:18;;88032:60:0;8516:330:1;88032:60:0;88118:5;;88158:12;;88227:13;;88211;87886:1;47609:12;47396:7;47593:13;:28;-1:-1:-1;;47593:46:0;;47335:323;88211:13;:29;:76;;;;;88257:25;88271:10;88257:13;:25::i;:::-;:30;88211:76;:121;;;;;88316:16;;88304:8;:28;;88211:121;88193:233;;;-1:-1:-1;;88398:16:0;;88366:1;;88193:233;88500:13;88488:8;88460:25;88474:10;88460:13;:25::i;:::-;:36;;;;:::i;:::-;:53;;88438:117;;;;-1:-1:-1;;;88438:117:0;;9053:2:1;88438:117:0;;;9035:21:1;9092:2;9072:18;;;9065:30;-1:-1:-1;;;9111:18:1;;;9104:44;9165:18;;88438:117:0;8851:338:1;88438:117:0;88591:8;88614:25;88628:10;88614:13;:25::i;:::-;88643:1;88614:30;88610:90;;88676:12;88687:1;88676:8;:12;:::i;:::-;88661:27;;88610:90;88745:19;88760:4;88745:12;:19;:::i;:::-;88732:9;:32;;88710:111;;;;-1:-1:-1;;;88710:111:0;;9529:2:1;88710:111:0;;;9511:21:1;9568:2;9548:18;;;9541:30;9607:31;9587:18;;;9580:59;9656:18;;88710:111:0;9327:353:1;88710:111:0;88832:31;88842:10;88854:8;88832:9;:31::i;:::-;87962:909;;;87905:966;:::o;89837:206::-;30573:13;:11;:13::i;:::-;89906:82:::1;::::0;89888:12:::1;::::0;89914:10:::1;::::0;89952:21:::1;::::0;89888:12;89906:82;89888:12;89906:82;89952:21;89914:10;89906:82:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;89887:101;;;90007:7;89999:36;;;::::0;-1:-1:-1;;;89999:36:0;;10097:2:1;89999:36:0::1;::::0;::::1;10079:21:1::0;10136:2;10116:18;;;10109:30;-1:-1:-1;;;10155:18:1;;;10148:46;10211:18;;89999:36:0::1;9895:340:1::0;89999:36:0::1;89876:167;89837:206::o:0;87312:479::-;30573:13;:11;:13::i;:::-;87416:19:::1;87446:13;87886:1:::0;47609:12;47396:7;47593:13;:28;-1:-1:-1;;47593:46:0;;47335:323;87446:13:::1;87416:44:::0;-1:-1:-1;87468:16:0::1;87489:36;87509:9:::0;87489:17;:36:::1;:::i;:::-;87569:9;::::0;87468:57;;-1:-1:-1;87540:25:0::1;87468:57:::0;87540:11;:25:::1;:::i;:::-;:38;;87532:70;;;::::0;-1:-1:-1;;;87532:70:0;;10442:2:1;87532:70:0::1;::::0;::::1;10424:21:1::0;10481:2;10461:18;;;10454:30;-1:-1:-1;;;10500:18:1;;;10493:49;10559:18;;87532:70:0::1;10240:343:1::0;87532:70:0::1;87615:9;87610:116;87630:20:::0;;::::1;87610:116;;;87672:42;87682:9;;87692:1;87682:12;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;87696:17;87672:9;:42::i;:::-;87652:3:::0;::::1;::::0;::::1;:::i;:::-;;;;87610:116;;;-1:-1:-1::0;;;;;;87312:479:0:o;65980:193::-;66126:39;66143:4;66149:2;66153:7;66126:39;;;;;;;;;;;;:16;:39::i;:::-;65980:193;;;:::o;89411:88::-;30573:13;:11;:13::i;:::-;89478:7:::1;:13;89488:3:::0;89478:7;:13:::1;:::i;52995:152::-:0;53067:7;53110:27;53129:7;53110:18;:27::i;86416:21::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;89719:110::-;30573:13;:11;:13::i;:::-;89795:16:::1;:26:::0;89719:110::o;48519:242::-;48591:7;-1:-1:-1;;;;;48615:19:0;;48611:69;;48636:44;-1:-1:-1;;;48636:7:0;:44::i;:::-;-1:-1:-1;;;;;;48698:25:0;;;;;:18;:25;;;;;;42678:13;48698:55;;48519:242::o;31362:103::-;30573:13;:11;:13::i;:::-;31427:30:::1;31454:1;31427:18;:30::i;:::-;31362:103::o:0;89319:84::-;30573:13;:11;:13::i;:::-;89384:11:::1;::::0;;-1:-1:-1;;89369:26:0;::::1;89384:11;::::0;;::::1;89383:12;89369:26;::::0;;89319:84::o;89507:92::-;30573:13;:11;:13::i;:::-;89574:5:::1;:17:::0;89507:92::o;51769:104::-;51825:13;51858:7;51851:14;;;;;:::i;59194:234::-;83853:10;59289:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;59289:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;59289:60:0;;;;;;;;;;59365:55;;540:41:1;;;59289:49:0;;83853:10;59365:55;;513:18:1;59365:55:0;;;;;;;59194:234;;:::o;66771:416::-;66946:31;66959:4;66965:2;66969:7;66946:12;:31::i;:::-;-1:-1:-1;;;;;66992:14:0;;;:19;66988:192;;67031:56;67062:4;67068:2;67072:7;67081:5;67031:30;:56::i;:::-;67026:154;;67108:56;-1:-1:-1;;;67108:7:0;:56::i;88995:316::-;89084:13;89132:16;89140:7;89132;:16::i;:::-;89110:113;;;;-1:-1:-1;;;89110:113:0;;13266:2:1;89110:113:0;;;13248:21:1;13305:2;13285:18;;;13278:30;13344:34;13324:18;;;13317:62;-1:-1:-1;;;13395:18:1;;;13388:45;13450:19;;89110:113:0;13064:411:1;89110:113:0;89265:7;89274:18;:7;:16;:18::i;:::-;89248:54;;;;;;;;;:::i;:::-;;;;;;;;;;;;;89234:69;;88995:316;;;:::o;59585:164::-;-1:-1:-1;;;;;59706:25:0;;;59682:4;59706:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;59585:164::o;31620:220::-;30573:13;:11;:13::i;:::-;-1:-1:-1;;;;;31705:22:0;::::1;31701:93;;31751:31;::::0;-1:-1:-1;;;31751:31:0;;31779:1:::1;31751:31;::::0;::::1;2228:51:1::0;2201:18;;31751:31:0::1;2082:203:1::0;31701:93:0::1;31804:28;31823:8;31804:18;:28::i;50691:639::-:0;50776:4;-1:-1:-1;;;;;;;;;51100:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;51177:25:0;;;51100:102;:179;;;-1:-1:-1;;;;;;;;51254:25:0;-1:-1:-1;;;51254:25:0;;50691:639::o;5045:215::-;5147:4;-1:-1:-1;;;;;;5171:41:0;;-1:-1:-1;;;5171:41:0;;:81;;-1:-1:-1;;;;;;;;;;1890:40:0;;;5216:36;1790:148;30852:166;30760:6;;-1:-1:-1;;;;;30760:6:0;83853:10;30912:23;30908:103;;30959:40;;-1:-1:-1;;;30959:40:0;;83853:10;30959:40;;;2228:51:1;2201:18;;30959:40:0;2082:203:1;6394:518:0;6110:5;-1:-1:-1;;;;;6543:26:0;;;-1:-1:-1;6539:176:0;;;6648:55;;-1:-1:-1;;;6648:55:0;;-1:-1:-1;;;;;14863:39:1;;6648:55:0;;;14845:58:1;14919:18;;;14912:34;;;14818:18;;6648:55:0;14672:280:1;6539:176:0;-1:-1:-1;;;;;6729:22:0;;6725:110;;6775:48;;-1:-1:-1;;;6775:48:0;;6820:1;6775:48;;;2228:51:1;2201:18;;6775:48:0;2082:203:1;6725:110:0;-1:-1:-1;6869:35:0;;;;;;;;;-1:-1:-1;;;;;6869:35:0;;;;;;-1:-1:-1;;;;;6869:35:0;;;;;;;;;;-1:-1:-1;;;6847:57:0;;;;:19;:57;6394:518::o;60007:368::-;60072:11;60119:7;87886:1;60100:26;60096:272;;60157:13;;60147:7;:23;60143:214;;;60191:14;60224:60;-1:-1:-1;60241:26:0;;;;:17;:26;;;;;;;60231:42;;;60224:60;;60275:9;;;:::i;:::-;;;60224:60;;;-1:-1:-1;;;60312:24:0;:29;;-1:-1:-1;60143:214:0;60007:368;;;:::o;85785:165::-;85886:13;85880:4;85873:27;85927:4;85921;85914:18;77218:474;77347:13;77363:16;77371:7;77363;:16::i;:::-;77347:32;;77396:13;:45;;;;-1:-1:-1;83853:10:0;-1:-1:-1;;;;;77413:28:0;;;;77396:45;77392:201;;;77461:44;77478:5;83853:10;59585:164;:::i;77461:44::-;77456:137;;77526:51;-1:-1:-1;;;77526:7:0;:51::i;:::-;77605:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;77605:35:0;-1:-1:-1;;;;;77605:35:0;;;;;;;;;77656:28;;77605:24;;77656:28;;;;;;;77336:356;77218:474;;;:::o;54475:2012::-;54542:14;54592:7;87886:1;54573:26;54569:1853;;-1:-1:-1;54625:26:0;;;;:17;:26;;;;;;;54751:11;;;54747:1292;;54798:13;;54787:7;:24;54783:77;;54813:47;-1:-1:-1;;;54813:7:0;:47::i;:::-;55417:607;-1:-1:-1;;;55513:9:0;55495:28;;;;:17;:28;;;;;;55569:25;;55417:607;55569:25;-1:-1:-1;;;55621:6:0;:24;55649:1;55621:29;55617:48;;54475:2012;;;:::o;55617:48::-;55957:47;-1:-1:-1;;;55957:7:0;:47::i;:::-;55417:607;;54747:1292;-1:-1:-1;;;56366:6:0;:24;56394:1;56366:29;56362:48;;54475:2012;;;:::o;56362:48::-;56432:47;-1:-1:-1;;;56432:7:0;:47::i;48843:178::-;-1:-1:-1;;;;;48932:25:0;48904:7;48932:25;;;:18;:25;;42816:2;48932:25;;;;;:50;;42678:13;48931:82;;48843:178::o;76300:112::-;76377:27;76387:2;76391:8;76377:27;;;;;;;;;;;;:9;:27::i;32000:191::-;32093:6;;;-1:-1:-1;;;;;32110:17:0;;;-1:-1:-1;;;;;;32110:17:0;;;;;;;32143:40;;32093:6;;;32110:17;32093:6;;32143:40;;32074:16;;32143:40;32063:128;32000:191;:::o;69271:691::-;69455:88;;-1:-1:-1;;;69455:88:0;;69434:4;;-1:-1:-1;;;;;69455:45:0;;;;;:88;;83853:10;;69522:4;;69528:7;;69537:5;;69455:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;69455:88:0;;;;;;;;-1:-1:-1;;69455:88:0;;;;;;;;;;;;:::i;:::-;;;69451:504;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;69738:6;:13;69755:1;69738:18;69734:115;;69777:56;-1:-1:-1;;;69777:7:0;:56::i;:::-;69921:6;69915:13;69906:6;69902:2;69898:15;69891:38;69451:504;-1:-1:-1;;;;;;69614:64:0;-1:-1:-1;;;69614:64:0;;-1:-1:-1;69451:504:0;69271:691;;;;;;:::o;25612:716::-;25668:13;25719:14;25736:17;25747:5;25736:10;:17::i;:::-;25756:1;25736:21;25719:38;;25772:20;25806:6;25795:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;25795:18:0;-1:-1:-1;25772:41:0;-1:-1:-1;25937:28:0;;;25953:2;25937:28;25994:288;-1:-1:-1;;26026:5:0;-1:-1:-1;;;26163:2:0;26152:14;;26147:30;26026:5;26134:44;26224:2;26215:11;;;-1:-1:-1;26245:21:0;25994:288;26245:21;-1:-1:-1;26303:6:0;25612:716;-1:-1:-1;;;25612:716:0:o;75508:708::-;75639:19;75645:2;75649:8;75639:5;:19::i;:::-;-1:-1:-1;;;;;75700:14:0;;;:19;75696:502;;75740:11;75754:13;75802:14;;;75835:242;75866:62;75905:1;75909:2;75913:7;;;;;;75922:5;75866:30;:62::i;:::-;75861:176;;75957:56;-1:-1:-1;;;75957:7:0;:56::i;:::-;76072:3;76064:5;:11;75835:242;;76159:3;76142:13;;:20;76138:44;;76164:18;76179:1;76164:7;:18::i;:::-;75721:477;;75508:708;;;:::o;22229:948::-;22282:7;;-1:-1:-1;;;22360:17:0;;22356:106;;-1:-1:-1;;;22398:17:0;;;-1:-1:-1;22444:2:0;22434:12;22356:106;22489:8;22480:5;:17;22476:106;;22527:8;22518:17;;;-1:-1:-1;22564:2:0;22554:12;22476:106;22609:8;22600:5;:17;22596:106;;22647:8;22638:17;;;-1:-1:-1;22684:2:0;22674:12;22596:106;22729:7;22720:5;:16;22716:103;;22766:7;22757:16;;;-1:-1:-1;22802:1:0;22792:11;22716:103;22846:7;22837:5;:16;22833:103;;22883:7;22874:16;;;-1:-1:-1;22919:1:0;22909:11;22833:103;22963:7;22954:5;:16;22950:103;;23000:7;22991:16;;;-1:-1:-1;23036:1:0;23026:11;22950:103;23080:7;23071:5;:16;23067:68;;23118:1;23108:11;23163:6;22229:948;-1:-1:-1;;22229:948:0:o;70424:2305::-;70497:20;70520:13;;;70548;;;70544:53;;70563:34;-1:-1:-1;;;70563:7:0;:34::i;:::-;71110:31;;;;:17;:31;;;;;;;;-1:-1:-1;;;;;57272:28:0;;57446:11;57421:23;57417:41;57890:1;57877:15;;57851:24;57847:46;57414:52;57404:63;;71110:173;;;71501:22;;;:18;:22;;;;;:71;;71539:32;71527:45;;71501:71;;;57272:28;71762:13;;;71758:54;;71777:35;-1:-1:-1;;;71777:7:0;:35::i;:::-;71843:23;;;:12;71928:676;72347:7;72303:8;72258:1;72192:25;72129:1;72064;72033:358;72599:3;72586:9;;;;;;:16;71928:676;;-1:-1:-1;72620:13:0;:19;-1:-1:-1;65980:193:0;;;:::o;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;:::-;384:5;150:245;-1:-1:-1;;;150:245:1:o;592:173::-;660:20;;-1:-1:-1;;;;;709:31:1;;699:42;;689:70;;755:1;752;745:12;770:366;837:6;845;898:2;886:9;877:7;873:23;869:32;866:52;;;914:1;911;904:12;866:52;937:29;956:9;937:29;:::i;:::-;927:39;;1016:2;1005:9;1001:18;988:32;-1:-1:-1;;;;;1053:5:1;1049:38;1042:5;1039:49;1029:77;;1102:1;1099;1092:12;1029:77;1125:5;1115:15;;;770:366;;;;;:::o;1141:250::-;1226:1;1236:113;1250:6;1247:1;1244:13;1236:113;;;1326:11;;;1320:18;1307:11;;;1300:39;1272:2;1265:10;1236:113;;;-1:-1:-1;;1383:1:1;1365:16;;1358:27;1141:250::o;1396:271::-;1438:3;1476:5;1470:12;1503:6;1498:3;1491:19;1519:76;1588:6;1581:4;1576:3;1572:14;1565:4;1558:5;1554:16;1519:76;:::i;:::-;1649:2;1628:15;-1:-1:-1;;1624:29:1;1615:39;;;;1656:4;1611:50;;1396:271;-1:-1:-1;;1396:271:1:o;1672:220::-;1821:2;1810:9;1803:21;1784:4;1841:45;1882:2;1871:9;1867:18;1859:6;1841:45;:::i;1897:180::-;1956:6;2009:2;1997:9;1988:7;1984:23;1980:32;1977:52;;;2025:1;2022;2015:12;1977:52;-1:-1:-1;2048:23:1;;1897:180;-1:-1:-1;1897:180:1:o;2290:254::-;2358:6;2366;2419:2;2407:9;2398:7;2394:23;2390:32;2387:52;;;2435:1;2432;2425:12;2387:52;2458:29;2477:9;2458:29;:::i;:::-;2448:39;2534:2;2519:18;;;;2506:32;;-1:-1:-1;;;2290:254:1:o;2731:328::-;2808:6;2816;2824;2877:2;2865:9;2856:7;2852:23;2848:32;2845:52;;;2893:1;2890;2883:12;2845:52;2916:29;2935:9;2916:29;:::i;:::-;2906:39;;2964:38;2998:2;2987:9;2983:18;2964:38;:::i;:::-;2954:48;;3049:2;3038:9;3034:18;3021:32;3011:42;;2731:328;;;;;:::o;3064:248::-;3132:6;3140;3193:2;3181:9;3172:7;3168:23;3164:32;3161:52;;;3209:1;3206;3199:12;3161:52;-1:-1:-1;;3232:23:1;;;3302:2;3287:18;;;3274:32;;-1:-1:-1;3064:248:1:o;3596:683::-;3691:6;3699;3707;3760:2;3748:9;3739:7;3735:23;3731:32;3728:52;;;3776:1;3773;3766:12;3728:52;3812:9;3799:23;3789:33;;3873:2;3862:9;3858:18;3845:32;3896:18;3937:2;3929:6;3926:14;3923:34;;;3953:1;3950;3943:12;3923:34;3991:6;3980:9;3976:22;3966:32;;4036:7;4029:4;4025:2;4021:13;4017:27;4007:55;;4058:1;4055;4048:12;4007:55;4098:2;4085:16;4124:2;4116:6;4113:14;4110:34;;;4140:1;4137;4130:12;4110:34;4193:7;4188:2;4178:6;4175:1;4171:14;4167:2;4163:23;4159:32;4156:45;4153:65;;;4214:1;4211;4204:12;4153:65;4245:2;4241;4237:11;4227:21;;4267:6;4257:16;;;;;3596:683;;;;;:::o;4284:127::-;4345:10;4340:3;4336:20;4333:1;4326:31;4376:4;4373:1;4366:15;4400:4;4397:1;4390:15;4416:632;4481:5;4511:18;4552:2;4544:6;4541:14;4538:40;;;4558:18;;:::i;:::-;4633:2;4627:9;4601:2;4687:15;;-1:-1:-1;;4683:24:1;;;4709:2;4679:33;4675:42;4663:55;;;4733:18;;;4753:22;;;4730:46;4727:72;;;4779:18;;:::i;:::-;4819:10;4815:2;4808:22;4848:6;4839:15;;4878:6;4870;4863:22;4918:3;4909:6;4904:3;4900:16;4897:25;4894:45;;;4935:1;4932;4925:12;4894:45;4985:6;4980:3;4973:4;4965:6;4961:17;4948:44;5040:1;5033:4;5024:6;5016;5012:19;5008:30;5001:41;;;;4416:632;;;;;:::o;5053:451::-;5122:6;5175:2;5163:9;5154:7;5150:23;5146:32;5143:52;;;5191:1;5188;5181:12;5143:52;5231:9;5218:23;5264:18;5256:6;5253:30;5250:50;;;5296:1;5293;5286:12;5250:50;5319:22;;5372:4;5364:13;;5360:27;-1:-1:-1;5350:55:1;;5401:1;5398;5391:12;5350:55;5424:74;5490:7;5485:2;5472:16;5467:2;5463;5459:11;5424:74;:::i;5509:186::-;5568:6;5621:2;5609:9;5600:7;5596:23;5592:32;5589:52;;;5637:1;5634;5627:12;5589:52;5660:29;5679:9;5660:29;:::i;5700:347::-;5765:6;5773;5826:2;5814:9;5805:7;5801:23;5797:32;5794:52;;;5842:1;5839;5832:12;5794:52;5865:29;5884:9;5865:29;:::i;:::-;5855:39;;5944:2;5933:9;5929:18;5916:32;5991:5;5984:13;5977:21;5970:5;5967:32;5957:60;;6013:1;6010;6003:12;6052:667;6147:6;6155;6163;6171;6224:3;6212:9;6203:7;6199:23;6195:33;6192:53;;;6241:1;6238;6231:12;6192:53;6264:29;6283:9;6264:29;:::i;:::-;6254:39;;6312:38;6346:2;6335:9;6331:18;6312:38;:::i;:::-;6302:48;;6397:2;6386:9;6382:18;6369:32;6359:42;;6452:2;6441:9;6437:18;6424:32;6479:18;6471:6;6468:30;6465:50;;;6511:1;6508;6501:12;6465:50;6534:22;;6587:4;6579:13;;6575:27;-1:-1:-1;6565:55:1;;6616:1;6613;6606:12;6565:55;6639:74;6705:7;6700:2;6687:16;6682:2;6678;6674:11;6639:74;:::i;:::-;6629:84;;;6052:667;;;;;;;:::o;6724:260::-;6792:6;6800;6853:2;6841:9;6832:7;6828:23;6824:32;6821:52;;;6869:1;6866;6859:12;6821:52;6892:29;6911:9;6892:29;:::i;:::-;6882:39;;6940:38;6974:2;6963:9;6959:18;6940:38;:::i;:::-;6930:48;;6724:260;;;;;:::o;6989:380::-;7068:1;7064:12;;;;7111;;;7132:61;;7186:4;7178:6;7174:17;7164:27;;7132:61;7239:2;7231:6;7228:14;7208:18;7205:38;7202:161;;7285:10;7280:3;7276:20;7273:1;7266:31;7320:4;7317:1;7310:15;7348:4;7345:1;7338:15;7202:161;;6989:380;;;:::o;7374:127::-;7435:10;7430:3;7426:20;7423:1;7416:31;7466:4;7463:1;7456:15;7490:4;7487:1;7480:15;7506:168;7579:9;;;7610;;7627:15;;;7621:22;;7607:37;7597:71;;7648:18;;:::i;7811:217::-;7851:1;7877;7867:132;;7921:10;7916:3;7912:20;7909:1;7902:31;7956:4;7953:1;7946:15;7984:4;7981:1;7974:15;7867:132;-1:-1:-1;8013:9:1;;7811:217::o;8386:125::-;8451:9;;;8472:10;;;8469:36;;;8485:18;;:::i;9194:128::-;9261:9;;;9282:11;;;9279:37;;;9296:18;;:::i;10588:127::-;10649:10;10644:3;10640:20;10637:1;10630:31;10680:4;10677:1;10670:15;10704:4;10701:1;10694:15;10720:135;10759:3;10780:17;;;10777:43;;10800:18;;:::i;:::-;-1:-1:-1;10847:1:1;10836:13;;10720:135::o;10986:545::-;11088:2;11083:3;11080:11;11077:448;;;11124:1;11149:5;11145:2;11138:17;11194:4;11190:2;11180:19;11264:2;11252:10;11248:19;11245:1;11241:27;11235:4;11231:38;11300:4;11288:10;11285:20;11282:47;;;-1:-1:-1;11323:4:1;11282:47;11378:2;11373:3;11369:12;11366:1;11362:20;11356:4;11352:31;11342:41;;11433:82;11451:2;11444:5;11441:13;11433:82;;;11496:17;;;11477:1;11466:13;11433:82;;11707:1352;11833:3;11827:10;11860:18;11852:6;11849:30;11846:56;;;11882:18;;:::i;:::-;11911:97;12001:6;11961:38;11993:4;11987:11;11961:38;:::i;:::-;11955:4;11911:97;:::i;:::-;12063:4;;12127:2;12116:14;;12144:1;12139:663;;;;12846:1;12863:6;12860:89;;;-1:-1:-1;12915:19:1;;;12909:26;12860:89;-1:-1:-1;;11664:1:1;11660:11;;;11656:24;11652:29;11642:40;11688:1;11684:11;;;11639:57;12962:81;;12109:944;;12139:663;10933:1;10926:14;;;10970:4;10957:18;;-1:-1:-1;;12175:20:1;;;12293:236;12307:7;12304:1;12301:14;12293:236;;;12396:19;;;12390:26;12375:42;;12488:27;;;;12456:1;12444:14;;;;12323:19;;12293:236;;;12297:3;12557:6;12548:7;12545:19;12542:201;;;12618:19;;;12612:26;-1:-1:-1;;12701:1:1;12697:14;;;12713:3;12693:24;12689:37;12685:42;12670:58;12655:74;;12542:201;-1:-1:-1;;;;;12789:1:1;12773:14;;;12769:22;12756:36;;-1:-1:-1;11707:1352:1:o;13480:1187::-;13757:3;13786:1;13819:6;13813:13;13849:36;13875:9;13849:36;:::i;:::-;13904:1;13921:18;;;13948:133;;;;14095:1;14090:356;;;;13914:532;;13948:133;-1:-1:-1;;13981:24:1;;13969:37;;14054:14;;14047:22;14035:35;;14026:45;;;-1:-1:-1;13948:133:1;;14090:356;14121:6;14118:1;14111:17;14151:4;14196:2;14193:1;14183:16;14221:1;14235:165;14249:6;14246:1;14243:13;14235:165;;;14327:14;;14314:11;;;14307:35;14370:16;;;;14264:10;;14235:165;;;14239:3;;;14429:6;14424:3;14420:16;14413:23;;13914:532;;;;;14477:6;14471:13;14493:68;14552:8;14547:3;14540:4;14532:6;14528:17;14493:68;:::i;:::-;-1:-1:-1;;;14583:18:1;;14610:22;;;14659:1;14648:13;;13480:1187;-1:-1:-1;;;;13480:1187:1:o;14957:136::-;14996:3;15024:5;15014:39;;15033:18;;:::i;:::-;-1:-1:-1;;;15069:18:1;;14957:136::o;15098:489::-;-1:-1:-1;;;;;15367:15:1;;;15349:34;;15419:15;;15414:2;15399:18;;15392:43;15466:2;15451:18;;15444:34;;;15514:3;15509:2;15494:18;;15487:31;;;15292:4;;15535:46;;15561:19;;15553:6;15535:46;:::i;:::-;15527:54;15098:489;-1:-1:-1;;;;;;15098:489:1:o;15592:249::-;15661:6;15714:2;15702:9;15693:7;15689:23;15685:32;15682:52;;;15730:1;15727;15720:12;15682:52;15762:9;15756:16;15781:30;15805:5;15781:30;:::i

Swarm Source

ipfs://72a03efff5e7e436857b568b09cc56c65fd1238dbaa2264abedd2434b703a9b3
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.