ETH Price: $3,812.02 (+4.33%)

Token

Echo Key (EK)
 

Overview

Max Total Supply

158 EK

Holders

78

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
2 EK
0xABb0eed4D4FB06f6B55194d092bf30c53156De1a
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:
ZeroPointEchoKey

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2023-01-20
*/

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

// File: operator-filter-registry/src/IOperatorFilterRegistry.sol

interface IOperatorFilterRegistry {
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);
    function register(address registrant) external;
    function registerAndSubscribe(address registrant, address subscription) external;
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;
    function unregister(address addr) external;
    function updateOperator(address registrant, address operator, bool filtered) external;
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;
    function subscribe(address registrant, address registrantToSubscribe) external;
    function unsubscribe(address registrant, bool copyExistingEntries) external;
    function subscriptionOf(address addr) external returns (address registrant);
    function subscribers(address registrant) external returns (address[] memory);
    function subscriberAt(address registrant, uint256 index) external returns (address);
    function copyEntriesOf(address registrant, address registrantToCopy) external;
    function isOperatorFiltered(address registrant, address operator) external returns (bool);
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);
    function filteredOperators(address addr) external returns (address[] memory);
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);
    function isRegistered(address addr) external returns (bool);
    function codeHashOf(address addr) external returns (bytes32);
}

// File: operator-filter-registry/src/OperatorFilterer.sol


pragma solidity ^0.8.13;


/**
 * @title  OperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 */
abstract contract OperatorFilterer {
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);

    constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
        // If an inheriting token contract is deployed to a network without the registry deployed, the modifier
        // will not revert, but the contract will need to be registered with the registry once it is deployed in
        // order for the modifier to filter addresses.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (subscribe) {
                OPERATOR_FILTER_REGISTRY.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
                } else {
                    OPERATOR_FILTER_REGISTRY.register(address(this));
                }
            }
        }
    }

    modifier onlyAllowedOperator(address from) virtual {
        // Allow spending tokens from addresses with balance
        // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
        // from an EOA.
        if (from != msg.sender) {
            _checkFilterOperator(msg.sender);
        }
        _;
    }

    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    function _checkFilterOperator(address operator) internal view virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), operator)) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}

// File: operator-filter-registry/src/DefaultOperatorFilterer.sol


pragma solidity ^0.8.13;


/**
 * @title  DefaultOperatorFilterer
 * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
 */
abstract contract DefaultOperatorFilterer is OperatorFilterer {
    address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6);

    constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {}
}

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @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) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 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 10, 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 * 8) < value ? 1 : 0);
        }
    }
}

// File: @openzeppelin/contracts/utils/Strings.sol


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

pragma solidity ^0.8.0;


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

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        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 `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) {
        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[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

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

// File: @openzeppelin/contracts/utils/Context.sol


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

pragma solidity ^0.8.0;

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

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

// File: @openzeppelin/contracts/access/Ownable.sol


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

pragma solidity ^0.8.0;


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

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/security/ReentrancyGuard.sol


// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

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

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

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

// File: 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();
        return _packedAddressData[owner] & _BITMASK_ADDRESS_DATA_ENTRY;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * Returns the packed ownership data of `tokenId`.
     */
    function _packedOwnershipOf(uint256 tokenId) private view returns (uint256 packed) {
        if (_startTokenId() <= tokenId) {
            packed = _packedOwnerships[tokenId];
            // If not burned.
            if (packed & _BITMASK_BURNED == 0) {
                // If the data at the starting slot does not exist, start the scan.
                if (packed == 0) {
                    if (tokenId >= _currentIndex) revert OwnerQueryForNonexistentToken();
                    // 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;
                        return packed;
                    }
                }
                // Otherwise, the data exists and is not burned. 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.
                return packed;
            }
        }
        revert OwnerQueryForNonexistentToken();
    }

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

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

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

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

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account. 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();

        return _tokenApprovals[tokenId].value;
    }

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

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

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

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

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

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

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

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

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

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

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

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

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

    // =============================================================
    //                       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)
            if (_msgSenderERC721A() != owner)
                if (!isApprovedForAll(owner, _msgSenderERC721A())) {
                    revert ApprovalCallerNotOwnerNorApproved();
                }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            let length := sub(end, str)
            // Move the pointer 32 bytes leftwards to make room for the length.
            str := sub(str, 0x20)
            // Store the length.
            mstore(str, length)
        }
    }
}
 
pragma solidity ^ 0.8.2;
 
contract ZeroPointEchoKey is ERC721A, Ownable, ReentrancyGuard, DefaultOperatorFilterer {

   using Strings for uint256;
 
   /// @notice settings for upgrade utility
   bool public isUpgradeActive = false;
   mapping(string => mapping(uint256 => bool)) public currentEchoKeys;
   uint256 public tokensBurned = 0;

   /// @notice collection settings
   uint256 public constant KEYS_NEEDED = 6;
   uint256 public MAX_KEYS = 350;
 
   /// @notice metadata paths
    string echoKeyURI;
    string masterEchoKeyURI;
 
   /// @notice tracks number minted per person
   mapping(address => uint256) public numMintedPerPerson;
 
   constructor() ERC721A("Echo Key", "EK") {}
 
   /// @notice reserve to wallets, only owner
   function reserve(address[] calldata addr) public onlyOwner {
       uint256 ts = totalSupply() + tokensBurned;
       require(ts + addr.length <= MAX_KEYS);
       for (uint256 i = 0; i < addr.length; i++)
       _safeMint(addr[i], 1);
   }
 
    /**
     * @notice For upgrading a ECHO KEY to master tier
     * @dev User must own at least 7 Echo Keys to call this
     * @dev 7 Echo keys 6 will be burned 1 primary key will be upgraded
     * @param _primaryTokenId Token ID of KEY to upgrade
     * @param _tokenIds Array of ECHO KEYS token IDs to burn as part of the upgrade
     */
    function upgrade(
        uint256 _primaryTokenId,  
        uint256[] calldata _tokenIds
    ) external nonReentrant {
        require(isUpgradeActive == true, "Upgrading is offline right now.");
        string memory _masterTier = "Master";
        require(ownerOf(_primaryTokenId) == msg.sender, "You do not own a primary token");
        require(_tokenIds.length == KEYS_NEEDED, "You need 6 keys");

        _burnKeys(_primaryTokenId, _tokenIds);
        
        tokensBurned += 6;
        currentEchoKeys[_masterTier][_primaryTokenId] = true;
    }

    function _burnKeys(
        uint256 _primaryTokenId, 
        uint256[] calldata _tokenIdsToBurn
    ) private {
        require(!readFromCurrentEchoKeys("Master", _primaryTokenId), "Primary token is already master");
        for (uint i=0; i < _tokenIdsToBurn.length; ) {
            uint256 _tokenId = _tokenIdsToBurn[i];
            require(!readFromCurrentEchoKeys("Master", _tokenId), "Token is already master. Can not burn master token");
            require(_tokenId != _primaryTokenId, "Can not burn primary token");
            unchecked { 
                i++;
            }
        }
        for(uint i=0; i<_tokenIdsToBurn.length;){
            burn(_tokenIdsToBurn[i]);
            unchecked {
                i++;
            }
        }
    }

    function burn(uint256 _tokenId) private {
        _burn(_tokenId, true);
    }

    function readFromCurrentEchoKeys(string memory _tier, uint _tokenId) public view returns(bool) {
        return currentEchoKeys[_tier][_tokenId];
    }
 
   /// @notice set burn active
   function setUpgrade(bool _status) external onlyOwner {
       isUpgradeActive = _status;
   }

   /// @notice set metadata path for echo keys
   function setEchoKeyMetadata(string memory metadata_) external onlyOwner {
       echoKeyURI = metadata_;
   }

   /// @notice set metadata path for master keys
   function setMasterKeyMetadata(string memory metadata_) external onlyOwner {
       masterEchoKeyURI = metadata_;
   }

    function tokenURI(uint256 _id) public view override returns (string memory) {
        require(
            _exists(_id),
            "ERC721Metadata: URI query for nonexistent token"
        );

        return
            readFromCurrentEchoKeys("Master", _id)
                ? string(abi.encodePacked(masterEchoKeyURI, Strings.toString(_id)))
                : string(abi.encodePacked(echoKeyURI, Strings.toString(_id)));
    }

    function _startTokenId() internal override view virtual returns (uint256) {
        return 1;
    }

    function tokensOfOwner(address owner) public view returns (uint256[] memory) {
            uint256 tokenIdsLength = balanceOf(owner);
            uint256[] memory tokenIds;
            assembly {
                // Grab the free memory pointer.
                tokenIds := mload(0x40)
                // Allocate one word for the length, and `tokenIdsMaxLength` words
                // for the data. `shl(5, x)` is equivalent to `mul(32, x)`.
                mstore(0x40, add(tokenIds, shl(5, add(tokenIdsLength, 1))))
                // Store the length of `tokenIds`.
                mstore(tokenIds, tokenIdsLength)
            }
            address currOwnershipAddr;
            uint256 tokenIdsIdx;
            for (uint256 i = _startTokenId(); tokenIdsIdx != tokenIdsLength; ) {
                TokenOwnership memory ownership = _ownershipAt(i);
                assembly {
                    // if `ownership.burned == false`.
                    if iszero(mload(add(ownership, 0x40))) {
                        // if `ownership.addr != address(0)`.
                        // The `addr` already has it's upper 96 bits clearned,
                        // since it is written to memory with regular Solidity.
                        if mload(ownership) {
                            currOwnershipAddr := mload(ownership)
                        }
                        // if `currOwnershipAddr == owner`.
                        // The `shl(96, x)` is to make the comparison agnostic to any
                        // dirty upper 96 bits in `owner`.
                        if iszero(shl(96, xor(currOwnershipAddr, owner))) {
                            tokenIdsIdx := add(tokenIdsIdx, 1)
                            mstore(add(tokenIds, shl(5, tokenIdsIdx)), i)
                        }
                    }
                    i := add(i, 1)
                }
            }
            return tokenIds;
        }
 
   /// @notice withdraw funds to deployer wallet
   function withdraw() public payable onlyOwner {
       (bool success, ) = payable(msg.sender).call { value: address(this).balance}("");
       require(success);
   }

   function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) {
       super.setApprovalForAll(operator, approved);
   }
 
   function approve(address operator, uint256 tokenId) public payable override onlyAllowedOperatorApproval(operator) {
       super.approve(operator, tokenId);
   }
 
   function transferFrom(address from, address to, uint256 tokenId) public payable override onlyAllowedOperator(from) {
       super.transferFrom(from, to, tokenId);
   }
 
   function safeTransferFrom(address from, address to, uint256 tokenId) public payable override onlyAllowedOperator(from) {
       super.safeTransferFrom(from, to, tokenId);
   }
 
   function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data)
       public
       override
       payable
       onlyAllowedOperator(from)
   {
       super.safeTransferFrom(from, to, tokenId, data);
   }
 
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"KEYS_NEEDED","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_KEYS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"","type":"string"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"currentEchoKeys","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isUpgradeActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"numMintedPerPerson","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"_tier","type":"string"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"readFromCurrentEchoKeys","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"addr","type":"address[]"}],"name":"reserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"metadata_","type":"string"}],"name":"setEchoKeyMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"metadata_","type":"string"}],"name":"setMasterKeyMetadata","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_status","type":"bool"}],"name":"setUpgrade","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":"_id","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensBurned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_primaryTokenId","type":"uint256"},{"internalType":"uint256[]","name":"_tokenIds","type":"uint256[]"}],"name":"upgrade","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]

6080604052600a805460ff191690556000600c5561015e600d553480156200002657600080fd5b50733cc6cdda760b79bafa08df41ecfa224f810dceb66001604051806040016040528060088152602001674563686f204b657960c01b81525060405180604001604052806002815260200161454b60f01b81525081600290816200008b9190620002f6565b5060036200009a8282620002f6565b5050600160005550620000ad33620001ff565b60016009556daaeb6d7670e522a718067333cd4e3b15620001f75780156200014557604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200012657600080fd5b505af11580156200013b573d6000803e3d6000fd5b50505050620001f7565b6001600160a01b03821615620001965760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af2903906044016200010b565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b158015620001dd57600080fd5b505af1158015620001f2573d6000803e3d6000fd5b505050505b5050620003c2565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200027c57607f821691505b6020821081036200029d57634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620002f157600081815260208120601f850160051c81016020861015620002cc5750805b601f850160051c820191505b81811015620002ed57828155600101620002d8565b5050505b505050565b81516001600160401b0381111562000312576200031262000251565b6200032a8162000323845462000267565b84620002a3565b602080601f831160018114620003625760008415620003495750858301515b600019600386901b1c1916600185901b178555620002ed565b600085815260208120601f198616915b82811015620003935788860151825594840194600190910190840162000372565b5085821015620003b25787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6121ba80620003d26000396000f3fe6080604052600436106101e35760003560e01c8063715018a611610102578063b88d4fde11610095578063d682ed8611610064578063d682ed861461056c578063e7873b581461058c578063e985e9c5146105a2578063f2fde38b146105eb57600080fd5b8063b88d4fde14610503578063c405275b14610516578063c470db1c14610536578063c87b56dd1461054c57600080fd5b806395d89b41116100d157806395d89b4114610463578063a13f1b0a14610478578063a22cb46514610498578063aa90ed63146104b857600080fd5b8063715018a6146103e3578063772503b0146103f85780638462151c146104185780638da5cb5b1461044557600080fd5b806318160ddd1161017a57806342842e0e1161014957806342842e0e14610370578063464e494c146103835780636352211e146103a357806370a08231146103c357600080fd5b806318160ddd1461031657806323b872dd146103335780633ccfd60b1461034657806341f434341461034e57600080fd5b8063066589fb116101b6578063066589fb1461027a57806306fdde03146102a7578063081812fc146102c9578063095ea7b31461030157600080fd5b806301c84a03146101e857806301ffc9a71461021d57806302d26c441461023d578063065f02db14610260575b600080fd5b3480156101f457600080fd5b50610208610203366004611ac2565b61060b565b60405190151581526020015b60405180910390f35b34801561022957600080fd5b50610208610238366004611b1d565b610644565b34801561024957600080fd5b50610252600681565b604051908152602001610214565b34801561026c57600080fd5b50600a546102089060ff1681565b34801561028657600080fd5b50610252610295366004611b51565b60106020526000908152604090205481565b3480156102b357600080fd5b506102bc610692565b6040516102149190611bbc565b3480156102d557600080fd5b506102e96102e4366004611bcf565b610724565b6040516001600160a01b039091168152602001610214565b61031461030f366004611be8565b610768565b005b34801561032257600080fd5b506001546000540360001901610252565b610314610341366004611c12565b610781565b6103146107ac565b34801561035a57600080fd5b506102e96daaeb6d7670e522a718067333cd4e81565b61031461037e366004611c12565b61080c565b34801561038f57600080fd5b5061031461039e366004611c9a565b610831565b3480156103af57600080fd5b506102e96103be366004611bcf565b6109bf565b3480156103cf57600080fd5b506102526103de366004611b51565b6109ca565b3480156103ef57600080fd5b50610314610a19565b34801561040457600080fd5b50610314610413366004611cf4565b610a2d565b34801561042457600080fd5b50610438610433366004611b51565b610a48565b6040516102149190611d11565b34801561045157600080fd5b506008546001600160a01b03166102e9565b34801561046f57600080fd5b506102bc610ad3565b34801561048457600080fd5b50610314610493366004611d55565b610ae2565b3480156104a457600080fd5b506103146104b3366004611d8a565b610afa565b3480156104c457600080fd5b506102086104d3366004611ac2565b8151602081840181018051600b825292820194820194909420919093529091526000908152604090205460ff1681565b610314610511366004611dc1565b610b0e565b34801561052257600080fd5b50610314610531366004611d55565b610b3b565b34801561054257600080fd5b50610252600d5481565b34801561055857600080fd5b506102bc610567366004611bcf565b610b4f565b34801561057857600080fd5b50610314610587366004611e3d565b610c4b565b34801561059857600080fd5b50610252600c5481565b3480156105ae57600080fd5b506102086105bd366004611e7f565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156105f757600080fd5b50610314610606366004611b51565b610cde565b6000600b8360405161061d9190611eb2565b90815260408051602092819003830190206000858152925290205460ff1690505b92915050565b60006301ffc9a760e01b6001600160e01b03198316148061067557506380ac58cd60e01b6001600160e01b03198316145b8061063e5750506001600160e01b031916635b5e139f60e01b1490565b6060600280546106a190611ece565b80601f01602080910402602001604051908101604052809291908181526020018280546106cd90611ece565b801561071a5780601f106106ef5761010080835404028352916020019161071a565b820191906000526020600020905b8154815290600101906020018083116106fd57829003601f168201915b5050505050905090565b600061072f82610d54565b61074c576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b8161077281610d89565b61077c8383610e42565b505050565b826001600160a01b038116331461079b5761079b33610d89565b6107a6848484610e4e565b50505050565b6107b4610fdf565b604051600090339047908381818185875af1925050503d80600081146107f6576040519150601f19603f3d011682016040523d82523d6000602084013e6107fb565b606091505b505090508061080957600080fd5b50565b826001600160a01b03811633146108265761082633610d89565b6107a6848484611039565b610839611054565b600a5460ff1615156001146108955760405162461bcd60e51b815260206004820152601f60248201527f557067726164696e67206973206f66666c696e65207269676874206e6f772e0060448201526064015b60405180910390fd5b60408051808201909152600681526526b0b9ba32b960d11b6020820152336108bc856109bf565b6001600160a01b0316146109125760405162461bcd60e51b815260206004820152601e60248201527f596f7520646f206e6f74206f776e2061207072696d61727920746f6b656e0000604482015260640161088c565b600682146109545760405162461bcd60e51b815260206004820152600f60248201526e596f75206e6565642036206b65797360881b604482015260640161088c565b61095f8484846110ad565b6006600c60008282546109729190611f1e565b925050819055506001600b8260405161098b9190611eb2565b9081526040805160209281900383019020600088815292529020805460ff1916911515919091179055506001600955505050565b600061063e82611267565b60006001600160a01b0382166109f3576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610a21610fdf565b610a2b60006112f3565b565b610a35610fdf565b600a805460ff1916911515919091179055565b60606000610a55836109ca565b9050606060405190506001820160051b81016040528181526000806000610a7a600190565b90505b848214610ac8576000610a8f82611345565b90506040810151610abf57805115610aa657805193505b87841860601b610abf57600183019250818360051b8601525b50600101610a7d565b509195945050505050565b6060600380546106a190611ece565b610aea610fdf565b600e610af68282611f77565b5050565b81610b0481610d89565b61077c83836113c4565b836001600160a01b0381163314610b2857610b2833610d89565b610b3485858585611430565b5050505050565b610b43610fdf565b600f610af68282611f77565b6060610b5a82610d54565b610bbe5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161088c565b610be66040518060400160405280600681526020016526b0b9ba32b960d11b8152508361060b565b610c1a57600e610bf583611474565b604051602001610c06929190612037565b60405160208183030381529060405261063e565b600f610c2583611474565b604051602001610c36929190612037565b60405160208183030381529060405292915050565b610c53610fdf565b6000600c54610c6b6001546000546000199190030190565b610c759190611f1e565b600d54909150610c858383611f1e565b1115610c9057600080fd5b60005b828110156107a657610ccc848483818110610cb057610cb06120be565b9050602002016020810190610cc59190611b51565b6001611507565b80610cd6816120d4565b915050610c93565b610ce6610fdf565b6001600160a01b038116610d4b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161088c565b610809816112f3565b600081600111158015610d68575060005482105b801561063e575050600090815260046020526040902054600160e01b161590565b6daaeb6d7670e522a718067333cd4e3b1561080957604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610df6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e1a91906120ed565b61080957604051633b79c77360e21b81526001600160a01b038216600482015260240161088c565b610af682826001611521565b6000610e5982611267565b9050836001600160a01b0316816001600160a01b031614610e8c5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054610eb88187335b6001600160a01b039081169116811491141790565b610ee357610ec686336105bd565b610ee357604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610f0a57604051633a954ecd60e21b815260040160405180910390fd5b8015610f1557600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003610fa757600184016000818152600460205260408120549003610fa5576000548114610fa55760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b031660008051602061216583398151915260405160405180910390a45b505050505050565b6008546001600160a01b03163314610a2b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161088c565b61077c83838360405180602001604052806000815250610b0e565b6002600954036110a65760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161088c565b6002600955565b6110d56040518060400160405280600681526020016526b0b9ba32b960d11b8152508461060b565b156111225760405162461bcd60e51b815260206004820152601f60248201527f5072696d61727920746f6b656e20697320616c7265616479206d617374657200604482015260640161088c565b60005b81811015611232576000838383818110611141576111416120be565b9050602002013590506111726040518060400160405280600681526020016526b0b9ba32b960d11b8152508261060b565b156111da5760405162461bcd60e51b815260206004820152603260248201527f546f6b656e20697320616c7265616479206d61737465722e2043616e206e6f7460448201527110313ab9371036b0b9ba32b9103a37b5b2b760711b606482015260840161088c565b8481036112295760405162461bcd60e51b815260206004820152601a60248201527f43616e206e6f74206275726e207072696d61727920746f6b656e000000000000604482015260640161088c565b50600101611125565b5060005b818110156107a65761125f838383818110611253576112536120be565b905060200201356115c8565b600101611236565b6000816001116112da575060008181526004602052604081205490600160e01b821690036112da57806000036112d55760005482106112b957604051636f96cda160e11b815260040160405180910390fd5b5b506000190160008181526004602052604090205480156112ba575b919050565b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60408051608081018252600080825260208201819052918101829052606081019190915260008281526004602052604090205461063e90604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61143b848484610781565b6001600160a01b0383163b156107a657611457848484846115d3565b6107a6576040516368d2bf6b60e11b815260040160405180910390fd5b60606000611481836116bf565b600101905060008167ffffffffffffffff8111156114a1576114a1611a0f565b6040519080825280601f01601f1916602001820160405280156114cb576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846114d557509392505050565b610af6828260405180602001604052806000815250611797565b600061152c836109bf565b9050811561156b57336001600160a01b0382161461156b5761154e81336105bd565b61156b576040516367d9dca160e11b815260040160405180910390fd5b60008381526006602052604080822080546001600160a01b0319166001600160a01b0388811691821790925591518693918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a450505050565b6108098160016117fd565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061160890339089908890889060040161210a565b6020604051808303816000875af1925050508015611643575060408051601f3d908101601f1916820190925261164091810190612147565b60015b6116a1573d808015611671576040519150601f19603f3d011682016040523d82523d6000602084013e611676565b606091505b508051600003611699576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106116fe5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef8100000000831061172a576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061174857662386f26fc10000830492506010015b6305f5e1008310611760576305f5e100830492506008015b612710831061177457612710830492506004015b60648310611786576064830492506002015b600a831061063e5760010192915050565b6117a18383611935565b6001600160a01b0383163b1561077c576000548281035b6117cb60008683806001019450866115d3565b6117e8576040516368d2bf6b60e11b815260040160405180910390fd5b8181106117b8578160005414610b3457600080fd5b600061180883611267565b90508060008061182686600090815260066020526040902080549091565b9150915084156118665761183b818433610ea3565b6118665761184983336105bd565b61186657604051632ce44b5f60e11b815260040160405180910390fd5b801561187157600082555b6001600160a01b038316600081815260056020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b17600360e01b17600087815260046020526040812091909155600160e11b851690036118ff576001860160008181526004602052604081205490036118fd5760005481146118fd5760008181526004602052604090208590555b505b60405186906000906001600160a01b03861690600080516020612165833981519152908390a45050600180548101905550505050565b600080549082900361195a5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083906000805160206121658339815191528180a4600183015b8181146119e55780836000600080516020612165833981519152600080a46001016119bf565b5081600003611a0657604051622e076360e81b815260040160405180910390fd5b60005550505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611a4057611a40611a0f565b604051601f8501601f19908116603f01168101908282118183101715611a6857611a68611a0f565b81604052809350858152868686011115611a8157600080fd5b858560208301376000602087830101525050509392505050565b600082601f830112611aac57600080fd5b611abb83833560208501611a25565b9392505050565b60008060408385031215611ad557600080fd5b823567ffffffffffffffff811115611aec57600080fd5b611af885828601611a9b565b95602094909401359450505050565b6001600160e01b03198116811461080957600080fd5b600060208284031215611b2f57600080fd5b8135611abb81611b07565b80356001600160a01b03811681146112d557600080fd5b600060208284031215611b6357600080fd5b611abb82611b3a565b60005b83811015611b87578181015183820152602001611b6f565b50506000910152565b60008151808452611ba8816020860160208601611b6c565b601f01601f19169290920160200192915050565b602081526000611abb6020830184611b90565b600060208284031215611be157600080fd5b5035919050565b60008060408385031215611bfb57600080fd5b611c0483611b3a565b946020939093013593505050565b600080600060608486031215611c2757600080fd5b611c3084611b3a565b9250611c3e60208501611b3a565b9150604084013590509250925092565b60008083601f840112611c6057600080fd5b50813567ffffffffffffffff811115611c7857600080fd5b6020830191508360208260051b8501011115611c9357600080fd5b9250929050565b600080600060408486031215611caf57600080fd5b83359250602084013567ffffffffffffffff811115611ccd57600080fd5b611cd986828701611c4e565b9497909650939450505050565b801515811461080957600080fd5b600060208284031215611d0657600080fd5b8135611abb81611ce6565b6020808252825182820181905260009190848201906040850190845b81811015611d4957835183529284019291840191600101611d2d565b50909695505050505050565b600060208284031215611d6757600080fd5b813567ffffffffffffffff811115611d7e57600080fd5b6116b784828501611a9b565b60008060408385031215611d9d57600080fd5b611da683611b3a565b91506020830135611db681611ce6565b809150509250929050565b60008060008060808587031215611dd757600080fd5b611de085611b3a565b9350611dee60208601611b3a565b925060408501359150606085013567ffffffffffffffff811115611e1157600080fd5b8501601f81018713611e2257600080fd5b611e3187823560208401611a25565b91505092959194509250565b60008060208385031215611e5057600080fd5b823567ffffffffffffffff811115611e6757600080fd5b611e7385828601611c4e565b90969095509350505050565b60008060408385031215611e9257600080fd5b611e9b83611b3a565b9150611ea960208401611b3a565b90509250929050565b60008251611ec4818460208701611b6c565b9190910192915050565b600181811c90821680611ee257607f821691505b602082108103611f0257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561063e5761063e611f08565b601f82111561077c57600081815260208120601f850160051c81016020861015611f585750805b601f850160051c820191505b81811015610fd757828155600101611f64565b815167ffffffffffffffff811115611f9157611f91611a0f565b611fa581611f9f8454611ece565b84611f31565b602080601f831160018114611fda5760008415611fc25750858301515b600019600386901b1c1916600185901b178555610fd7565b600085815260208120601f198616915b8281101561200957888601518255948401946001909101908401611fea565b50858210156120275787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600080845461204581611ece565b6001828116801561205d5760018114612072576120a1565b60ff19841687528215158302870194506120a1565b8860005260208060002060005b858110156120985781548a82015290840190820161207f565b50505082870194505b5050505083516120b5818360208801611b6c565b01949350505050565b634e487b7160e01b600052603260045260246000fd5b6000600182016120e6576120e6611f08565b5060010190565b6000602082840312156120ff57600080fd5b8151611abb81611ce6565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061213d90830184611b90565b9695505050505050565b60006020828403121561215957600080fd5b8151611abb81611b0756feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220dc3db4fd97d9de4b88046e0a94efc2da95d9df1b350be76976ede51acd95428f64736f6c63430008110033

Deployed Bytecode

0x6080604052600436106101e35760003560e01c8063715018a611610102578063b88d4fde11610095578063d682ed8611610064578063d682ed861461056c578063e7873b581461058c578063e985e9c5146105a2578063f2fde38b146105eb57600080fd5b8063b88d4fde14610503578063c405275b14610516578063c470db1c14610536578063c87b56dd1461054c57600080fd5b806395d89b41116100d157806395d89b4114610463578063a13f1b0a14610478578063a22cb46514610498578063aa90ed63146104b857600080fd5b8063715018a6146103e3578063772503b0146103f85780638462151c146104185780638da5cb5b1461044557600080fd5b806318160ddd1161017a57806342842e0e1161014957806342842e0e14610370578063464e494c146103835780636352211e146103a357806370a08231146103c357600080fd5b806318160ddd1461031657806323b872dd146103335780633ccfd60b1461034657806341f434341461034e57600080fd5b8063066589fb116101b6578063066589fb1461027a57806306fdde03146102a7578063081812fc146102c9578063095ea7b31461030157600080fd5b806301c84a03146101e857806301ffc9a71461021d57806302d26c441461023d578063065f02db14610260575b600080fd5b3480156101f457600080fd5b50610208610203366004611ac2565b61060b565b60405190151581526020015b60405180910390f35b34801561022957600080fd5b50610208610238366004611b1d565b610644565b34801561024957600080fd5b50610252600681565b604051908152602001610214565b34801561026c57600080fd5b50600a546102089060ff1681565b34801561028657600080fd5b50610252610295366004611b51565b60106020526000908152604090205481565b3480156102b357600080fd5b506102bc610692565b6040516102149190611bbc565b3480156102d557600080fd5b506102e96102e4366004611bcf565b610724565b6040516001600160a01b039091168152602001610214565b61031461030f366004611be8565b610768565b005b34801561032257600080fd5b506001546000540360001901610252565b610314610341366004611c12565b610781565b6103146107ac565b34801561035a57600080fd5b506102e96daaeb6d7670e522a718067333cd4e81565b61031461037e366004611c12565b61080c565b34801561038f57600080fd5b5061031461039e366004611c9a565b610831565b3480156103af57600080fd5b506102e96103be366004611bcf565b6109bf565b3480156103cf57600080fd5b506102526103de366004611b51565b6109ca565b3480156103ef57600080fd5b50610314610a19565b34801561040457600080fd5b50610314610413366004611cf4565b610a2d565b34801561042457600080fd5b50610438610433366004611b51565b610a48565b6040516102149190611d11565b34801561045157600080fd5b506008546001600160a01b03166102e9565b34801561046f57600080fd5b506102bc610ad3565b34801561048457600080fd5b50610314610493366004611d55565b610ae2565b3480156104a457600080fd5b506103146104b3366004611d8a565b610afa565b3480156104c457600080fd5b506102086104d3366004611ac2565b8151602081840181018051600b825292820194820194909420919093529091526000908152604090205460ff1681565b610314610511366004611dc1565b610b0e565b34801561052257600080fd5b50610314610531366004611d55565b610b3b565b34801561054257600080fd5b50610252600d5481565b34801561055857600080fd5b506102bc610567366004611bcf565b610b4f565b34801561057857600080fd5b50610314610587366004611e3d565b610c4b565b34801561059857600080fd5b50610252600c5481565b3480156105ae57600080fd5b506102086105bd366004611e7f565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b3480156105f757600080fd5b50610314610606366004611b51565b610cde565b6000600b8360405161061d9190611eb2565b90815260408051602092819003830190206000858152925290205460ff1690505b92915050565b60006301ffc9a760e01b6001600160e01b03198316148061067557506380ac58cd60e01b6001600160e01b03198316145b8061063e5750506001600160e01b031916635b5e139f60e01b1490565b6060600280546106a190611ece565b80601f01602080910402602001604051908101604052809291908181526020018280546106cd90611ece565b801561071a5780601f106106ef5761010080835404028352916020019161071a565b820191906000526020600020905b8154815290600101906020018083116106fd57829003601f168201915b5050505050905090565b600061072f82610d54565b61074c576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b8161077281610d89565b61077c8383610e42565b505050565b826001600160a01b038116331461079b5761079b33610d89565b6107a6848484610e4e565b50505050565b6107b4610fdf565b604051600090339047908381818185875af1925050503d80600081146107f6576040519150601f19603f3d011682016040523d82523d6000602084013e6107fb565b606091505b505090508061080957600080fd5b50565b826001600160a01b03811633146108265761082633610d89565b6107a6848484611039565b610839611054565b600a5460ff1615156001146108955760405162461bcd60e51b815260206004820152601f60248201527f557067726164696e67206973206f66666c696e65207269676874206e6f772e0060448201526064015b60405180910390fd5b60408051808201909152600681526526b0b9ba32b960d11b6020820152336108bc856109bf565b6001600160a01b0316146109125760405162461bcd60e51b815260206004820152601e60248201527f596f7520646f206e6f74206f776e2061207072696d61727920746f6b656e0000604482015260640161088c565b600682146109545760405162461bcd60e51b815260206004820152600f60248201526e596f75206e6565642036206b65797360881b604482015260640161088c565b61095f8484846110ad565b6006600c60008282546109729190611f1e565b925050819055506001600b8260405161098b9190611eb2565b9081526040805160209281900383019020600088815292529020805460ff1916911515919091179055506001600955505050565b600061063e82611267565b60006001600160a01b0382166109f3576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610a21610fdf565b610a2b60006112f3565b565b610a35610fdf565b600a805460ff1916911515919091179055565b60606000610a55836109ca565b9050606060405190506001820160051b81016040528181526000806000610a7a600190565b90505b848214610ac8576000610a8f82611345565b90506040810151610abf57805115610aa657805193505b87841860601b610abf57600183019250818360051b8601525b50600101610a7d565b509195945050505050565b6060600380546106a190611ece565b610aea610fdf565b600e610af68282611f77565b5050565b81610b0481610d89565b61077c83836113c4565b836001600160a01b0381163314610b2857610b2833610d89565b610b3485858585611430565b5050505050565b610b43610fdf565b600f610af68282611f77565b6060610b5a82610d54565b610bbe5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161088c565b610be66040518060400160405280600681526020016526b0b9ba32b960d11b8152508361060b565b610c1a57600e610bf583611474565b604051602001610c06929190612037565b60405160208183030381529060405261063e565b600f610c2583611474565b604051602001610c36929190612037565b60405160208183030381529060405292915050565b610c53610fdf565b6000600c54610c6b6001546000546000199190030190565b610c759190611f1e565b600d54909150610c858383611f1e565b1115610c9057600080fd5b60005b828110156107a657610ccc848483818110610cb057610cb06120be565b9050602002016020810190610cc59190611b51565b6001611507565b80610cd6816120d4565b915050610c93565b610ce6610fdf565b6001600160a01b038116610d4b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161088c565b610809816112f3565b600081600111158015610d68575060005482105b801561063e575050600090815260046020526040902054600160e01b161590565b6daaeb6d7670e522a718067333cd4e3b1561080957604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610df6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e1a91906120ed565b61080957604051633b79c77360e21b81526001600160a01b038216600482015260240161088c565b610af682826001611521565b6000610e5982611267565b9050836001600160a01b0316816001600160a01b031614610e8c5760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054610eb88187335b6001600160a01b039081169116811491141790565b610ee357610ec686336105bd565b610ee357604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610f0a57604051633a954ecd60e21b815260040160405180910390fd5b8015610f1557600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003610fa757600184016000818152600460205260408120549003610fa5576000548114610fa55760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b031660008051602061216583398151915260405160405180910390a45b505050505050565b6008546001600160a01b03163314610a2b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161088c565b61077c83838360405180602001604052806000815250610b0e565b6002600954036110a65760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161088c565b6002600955565b6110d56040518060400160405280600681526020016526b0b9ba32b960d11b8152508461060b565b156111225760405162461bcd60e51b815260206004820152601f60248201527f5072696d61727920746f6b656e20697320616c7265616479206d617374657200604482015260640161088c565b60005b81811015611232576000838383818110611141576111416120be565b9050602002013590506111726040518060400160405280600681526020016526b0b9ba32b960d11b8152508261060b565b156111da5760405162461bcd60e51b815260206004820152603260248201527f546f6b656e20697320616c7265616479206d61737465722e2043616e206e6f7460448201527110313ab9371036b0b9ba32b9103a37b5b2b760711b606482015260840161088c565b8481036112295760405162461bcd60e51b815260206004820152601a60248201527f43616e206e6f74206275726e207072696d61727920746f6b656e000000000000604482015260640161088c565b50600101611125565b5060005b818110156107a65761125f838383818110611253576112536120be565b905060200201356115c8565b600101611236565b6000816001116112da575060008181526004602052604081205490600160e01b821690036112da57806000036112d55760005482106112b957604051636f96cda160e11b815260040160405180910390fd5b5b506000190160008181526004602052604090205480156112ba575b919050565b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60408051608081018252600080825260208201819052918101829052606081019190915260008281526004602052604090205461063e90604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61143b848484610781565b6001600160a01b0383163b156107a657611457848484846115d3565b6107a6576040516368d2bf6b60e11b815260040160405180910390fd5b60606000611481836116bf565b600101905060008167ffffffffffffffff8111156114a1576114a1611a0f565b6040519080825280601f01601f1916602001820160405280156114cb576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846114d557509392505050565b610af6828260405180602001604052806000815250611797565b600061152c836109bf565b9050811561156b57336001600160a01b0382161461156b5761154e81336105bd565b61156b576040516367d9dca160e11b815260040160405180910390fd5b60008381526006602052604080822080546001600160a01b0319166001600160a01b0388811691821790925591518693918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a450505050565b6108098160016117fd565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061160890339089908890889060040161210a565b6020604051808303816000875af1925050508015611643575060408051601f3d908101601f1916820190925261164091810190612147565b60015b6116a1573d808015611671576040519150601f19603f3d011682016040523d82523d6000602084013e611676565b606091505b508051600003611699576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106116fe5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef8100000000831061172a576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061174857662386f26fc10000830492506010015b6305f5e1008310611760576305f5e100830492506008015b612710831061177457612710830492506004015b60648310611786576064830492506002015b600a831061063e5760010192915050565b6117a18383611935565b6001600160a01b0383163b1561077c576000548281035b6117cb60008683806001019450866115d3565b6117e8576040516368d2bf6b60e11b815260040160405180910390fd5b8181106117b8578160005414610b3457600080fd5b600061180883611267565b90508060008061182686600090815260066020526040902080549091565b9150915084156118665761183b818433610ea3565b6118665761184983336105bd565b61186657604051632ce44b5f60e11b815260040160405180910390fd5b801561187157600082555b6001600160a01b038316600081815260056020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b17600360e01b17600087815260046020526040812091909155600160e11b851690036118ff576001860160008181526004602052604081205490036118fd5760005481146118fd5760008181526004602052604090208590555b505b60405186906000906001600160a01b03861690600080516020612165833981519152908390a45050600180548101905550505050565b600080549082900361195a5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083906000805160206121658339815191528180a4600183015b8181146119e55780836000600080516020612165833981519152600080a46001016119bf565b5081600003611a0657604051622e076360e81b815260040160405180910390fd5b60005550505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611a4057611a40611a0f565b604051601f8501601f19908116603f01168101908282118183101715611a6857611a68611a0f565b81604052809350858152868686011115611a8157600080fd5b858560208301376000602087830101525050509392505050565b600082601f830112611aac57600080fd5b611abb83833560208501611a25565b9392505050565b60008060408385031215611ad557600080fd5b823567ffffffffffffffff811115611aec57600080fd5b611af885828601611a9b565b95602094909401359450505050565b6001600160e01b03198116811461080957600080fd5b600060208284031215611b2f57600080fd5b8135611abb81611b07565b80356001600160a01b03811681146112d557600080fd5b600060208284031215611b6357600080fd5b611abb82611b3a565b60005b83811015611b87578181015183820152602001611b6f565b50506000910152565b60008151808452611ba8816020860160208601611b6c565b601f01601f19169290920160200192915050565b602081526000611abb6020830184611b90565b600060208284031215611be157600080fd5b5035919050565b60008060408385031215611bfb57600080fd5b611c0483611b3a565b946020939093013593505050565b600080600060608486031215611c2757600080fd5b611c3084611b3a565b9250611c3e60208501611b3a565b9150604084013590509250925092565b60008083601f840112611c6057600080fd5b50813567ffffffffffffffff811115611c7857600080fd5b6020830191508360208260051b8501011115611c9357600080fd5b9250929050565b600080600060408486031215611caf57600080fd5b83359250602084013567ffffffffffffffff811115611ccd57600080fd5b611cd986828701611c4e565b9497909650939450505050565b801515811461080957600080fd5b600060208284031215611d0657600080fd5b8135611abb81611ce6565b6020808252825182820181905260009190848201906040850190845b81811015611d4957835183529284019291840191600101611d2d565b50909695505050505050565b600060208284031215611d6757600080fd5b813567ffffffffffffffff811115611d7e57600080fd5b6116b784828501611a9b565b60008060408385031215611d9d57600080fd5b611da683611b3a565b91506020830135611db681611ce6565b809150509250929050565b60008060008060808587031215611dd757600080fd5b611de085611b3a565b9350611dee60208601611b3a565b925060408501359150606085013567ffffffffffffffff811115611e1157600080fd5b8501601f81018713611e2257600080fd5b611e3187823560208401611a25565b91505092959194509250565b60008060208385031215611e5057600080fd5b823567ffffffffffffffff811115611e6757600080fd5b611e7385828601611c4e565b90969095509350505050565b60008060408385031215611e9257600080fd5b611e9b83611b3a565b9150611ea960208401611b3a565b90509250929050565b60008251611ec4818460208701611b6c565b9190910192915050565b600181811c90821680611ee257607f821691505b602082108103611f0257634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561063e5761063e611f08565b601f82111561077c57600081815260208120601f850160051c81016020861015611f585750805b601f850160051c820191505b81811015610fd757828155600101611f64565b815167ffffffffffffffff811115611f9157611f91611a0f565b611fa581611f9f8454611ece565b84611f31565b602080601f831160018114611fda5760008415611fc25750858301515b600019600386901b1c1916600185901b178555610fd7565b600085815260208120601f198616915b8281101561200957888601518255948401946001909101908401611fea565b50858210156120275787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600080845461204581611ece565b6001828116801561205d5760018114612072576120a1565b60ff19841687528215158302870194506120a1565b8860005260208060002060005b858110156120985781548a82015290840190820161207f565b50505082870194505b5050505083516120b5818360208801611b6c565b01949350505050565b634e487b7160e01b600052603260045260246000fd5b6000600182016120e6576120e6611f08565b5060010190565b6000602082840312156120ff57600080fd5b8151611abb81611ce6565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061213d90830184611b90565b9695505050505050565b60006020828403121561215957600080fd5b8151611abb81611b0756feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220dc3db4fd97d9de4b88046e0a94efc2da95d9df1b350be76976ede51acd95428f64736f6c63430008110033

Deployed Bytecode Sourcemap

79789:7142:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;82582:153;;;;;;;;;;-1:-1:-1;82582:153:0;;;;;:::i;:::-;;:::i;:::-;;;1570:14:1;;1563:22;1545:41;;1533:2;1518:18;82582:153:0;;;;;;;;45521:639;;;;;;;;;;-1:-1:-1;45521:639:0;;;;;:::i;:::-;;:::i;80152:39::-;;;;;;;;;;;;80190:1;80152:39;;;;;2129:25:1;;;2117:2;2102:18;80152:39:0;1983:177:1;79964:35:0;;;;;;;;;;-1:-1:-1;79964:35:0;;;;;;;;80371:53;;;;;;;;;;-1:-1:-1;80371:53:0;;;;;:::i;:::-;;;;;;;;;;;;;;46423:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;52823:218::-;;;;;;;;;;-1:-1:-1;52823:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;3639:32:1;;;3621:51;;3609:2;3594:18;52823:218:0;3475:203:1;86154:163:0;;;;;;:::i;:::-;;:::i;:::-;;42174:323;;;;;;;;;;-1:-1:-1;83759:1:0;42448:12;42235:7;42432:13;:28;-1:-1:-1;;42432:46:0;42174:323;;86325:169;;;;;;:::i;:::-;;:::i;85798:167::-;;;:::i;2959:143::-;;;;;;;;;;;;3059:42;2959:143;;86502:177;;;;;;:::i;:::-;;:::i;81135:567::-;;;;;;;;;;-1:-1:-1;81135:567:0;;;;;:::i;:::-;;:::i;47816:152::-;;;;;;;;;;-1:-1:-1;47816:152:0;;;;;:::i;:::-;;:::i;43358:233::-;;;;;;;;;;-1:-1:-1;43358:233:0;;;;;:::i;:::-;;:::i;23274:103::-;;;;;;;;;;;;;:::i;82775:95::-;;;;;;;;;;-1:-1:-1;82775:95:0;;;;;:::i;:::-;;:::i;83776:1964::-;;;;;;;;;;-1:-1:-1;83776:1964:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;22626:87::-;;;;;;;;;;-1:-1:-1;22699:6:0;;-1:-1:-1;;;;;22699:6:0;22626:87;;46599:104;;;;;;;;;;;;;:::i;82925:111::-;;;;;;;;;;-1:-1:-1;82925:111:0;;;;;:::i;:::-;;:::i;85972:174::-;;;;;;;;;;-1:-1:-1;85972:174:0;;;;;:::i;:::-;;:::i;80005:66::-;;;;;;;;;;-1:-1:-1;80005:66:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;80005:66:0;;;;;;;;;;;86687:238;;;;;;:::i;:::-;;:::i;83093:119::-;;;;;;;;;;-1:-1:-1;83093:119:0;;;;;:::i;:::-;;:::i;80197:29::-;;;;;;;;;;;;;;;;83220:439;;;;;;;;;;-1:-1:-1;83220:439:0;;;;;:::i;:::-;;:::i;80530:245::-;;;;;;;;;;-1:-1:-1;80530:245:0;;;;;:::i;:::-;;:::i;80077:31::-;;;;;;;;;;;;;;;;53772:164;;;;;;;;;;-1:-1:-1;53772:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;53893:25:0;;;53869:4;53893:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;53772:164;23532:201;;;;;;;;;;-1:-1:-1;23532:201:0;;;;;:::i;:::-;;:::i;82582:153::-;82671:4;82695:15;82711:5;82695:22;;;;;;:::i;:::-;;;;;;;;;;;;;;;;:32;;;;;;;;;;;;-1:-1:-1;82582:153:0;;;;;:::o;45521:639::-;45606:4;-1:-1:-1;;;;;;;;;45930:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;46007:25:0;;;45930:102;:179;;;-1:-1:-1;;;;;;;;46084:25:0;-1:-1:-1;;;46084:25:0;;45521:639::o;46423:100::-;46477:13;46510:5;46503:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;46423:100;:::o;52823:218::-;52899:7;52924:16;52932:7;52924;:16::i;:::-;52919:64;;52949:34;;-1:-1:-1;;;52949:34:0;;;;;;;;;;;52919:64;-1:-1:-1;53003:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;53003:30:0;;52823:218::o;86154:163::-;86258:8;4480:30;4501:8;4480:20;:30::i;:::-;86278:32:::1;86292:8;86302:7;86278:13;:32::i;:::-;86154:163:::0;;;:::o;86325:169::-;86434:4;-1:-1:-1;;;;;4300:18:0;;4308:10;4300:18;4296:83;;4335:32;4356:10;4335:20;:32::i;:::-;86450:37:::1;86469:4;86475:2;86479:7;86450:18;:37::i;:::-;86325:169:::0;;;;:::o;85798:167::-;22512:13;:11;:13::i;:::-;85872:60:::1;::::0;85854:12:::1;::::0;85880:10:::1;::::0;85906:21:::1;::::0;85854:12;85872:60;85854:12;85872:60;85906:21;85880:10;85872:60:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;85853:79;;;85950:7;85942:16;;;::::0;::::1;;85843:122;85798:167::o:0;86502:177::-;86615:4;-1:-1:-1;;;;;4300:18:0;;4308:10;4300:18;4296:83;;4335:32;4356:10;4335:20;:32::i;:::-;86631:41:::1;86654:4;86660:2;86664:7;86631:22;:41::i;81135:567::-:0;26436:21;:19;:21::i;:::-;81275:15:::1;::::0;::::1;;:23;;:15:::0;:23:::1;81267:67;;;::::0;-1:-1:-1;;;81267:67:0;;9519:2:1;81267:67:0::1;::::0;::::1;9501:21:1::0;9558:2;9538:18;;;9531:30;9597:33;9577:18;;;9570:61;9648:18;;81267:67:0::1;;;;;;;;;81345:36;::::0;;;;::::1;::::0;;;::::1;::::0;;-1:-1:-1;;;81345:36:0::1;::::0;::::1;::::0;81428:10:::1;81400:24;81408:15:::0;81400:7:::1;:24::i;:::-;-1:-1:-1::0;;;;;81400:38:0::1;;81392:81;;;::::0;-1:-1:-1;;;81392:81:0;;9879:2:1;81392:81:0::1;::::0;::::1;9861:21:1::0;9918:2;9898:18;;;9891:30;9957:32;9937:18;;;9930:60;10007:18;;81392:81:0::1;9677:354:1::0;81392:81:0::1;80190:1;81492:31:::0;::::1;81484:59;;;::::0;-1:-1:-1;;;81484:59:0;;10238:2:1;81484:59:0::1;::::0;::::1;10220:21:1::0;10277:2;10257:18;;;10250:30;-1:-1:-1;;;10296:18:1;;;10289:45;10351:18;;81484:59:0::1;10036:339:1::0;81484:59:0::1;81556:37;81566:15;81583:9;;81556;:37::i;:::-;81630:1;81614:12;;:17;;;;;;;:::i;:::-;;;;;;;;81690:4;81642:15;81658:11;81642:28;;;;;;:::i;:::-;::::0;;;::::1;::::0;;::::1;::::0;;;;;;;;:45:::1;::::0;;;;;;;:52;;-1:-1:-1;;81642:52:0::1;::::0;::::1;;::::0;;;::::1;::::0;;-1:-1:-1;;27000:7:0;:22;86154:163;;;:::o;47816:152::-;47888:7;47931:27;47950:7;47931:18;:27::i;43358:233::-;43430:7;-1:-1:-1;;;;;43454:19:0;;43450:60;;43482:28;;-1:-1:-1;;;43482:28:0;;;;;;;;;;;43450:60;-1:-1:-1;;;;;;43528:25:0;;;;;:18;:25;;;;;;37517:13;43528:55;;43358:233::o;23274:103::-;22512:13;:11;:13::i;:::-;23339:30:::1;23366:1;23339:18;:30::i;:::-;23274:103::o:0;82775:95::-;22512:13;:11;:13::i;:::-;82838:15:::1;:25:::0;;-1:-1:-1;;82838:25:0::1;::::0;::::1;;::::0;;;::::1;::::0;;82775:95::o;83776:1964::-;83835:16;83868:22;83893:16;83903:5;83893:9;:16::i;:::-;83868:41;;83924:25;84060:4;84054:11;84042:23;;84298:1;84282:14;84278:22;84275:1;84271:30;84261:8;84257:45;84251:4;84244:59;84390:14;84380:8;84373:32;84434:25;84474:19;84513:9;84525:15;83759:1;;83667:101;84525:15;84513:27;;84508:1191;84557:14;84542:11;:29;84508:1191;;84594:31;84628:15;84641:1;84628:12;:15::i;:::-;84594:49;;84781:4;84770:9;84766:20;84760:27;84750:879;;85049:9;85043:16;85040:115;;;85118:9;85112:16;85091:37;;85040:115;85430:5;85411:17;85407:29;85403:2;85399:38;85389:217;;85502:1;85489:11;85485:19;85470:34;;85577:1;85562:11;85559:1;85555:19;85545:8;85541:34;85534:45;85389:217;-1:-1:-1;85663:1:0;85656:9;84508:1191;;;-1:-1:-1;85720:8:0;;83776:1964;-1:-1:-1;;;;;83776:1964:0:o;46599:104::-;46655:13;46688:7;46681:14;;;;;:::i;82925:111::-;22512:13;:11;:13::i;:::-;83007:10:::1;:22;83020:9:::0;83007:10;:22:::1;:::i;:::-;;82925:111:::0;:::o;85972:174::-;86076:8;4480:30;4501:8;4480:20;:30::i;:::-;86096:43:::1;86120:8;86130;86096:23;:43::i;86687:238::-:0;86851:4;-1:-1:-1;;;;;4300:18:0;;4308:10;4300:18;4296:83;;4335:32;4356:10;4335:20;:32::i;:::-;86871:47:::1;86894:4;86900:2;86904:7;86913:4;86871:22;:47::i;:::-;86687:238:::0;;;;;:::o;83093:119::-;22512:13;:11;:13::i;:::-;83177:16:::1;:28;83196:9:::0;83177:16;:28:::1;:::i;83220:439::-:0;83281:13;83329:12;83337:3;83329:7;:12::i;:::-;83307:109;;;;-1:-1:-1;;;83307:109:0;;13048:2:1;83307:109:0;;;13030:21:1;13087:2;13067:18;;;13060:30;13126:34;13106:18;;;13099:62;-1:-1:-1;;;13177:18:1;;;13170:45;13232:19;;83307:109:0;12846:411:1;83307:109:0;83449:38;;;;;;;;;;;;;;-1:-1:-1;;;83449:38:0;;;83483:3;83449:23;:38::i;:::-;:202;;83616:10;83628:21;83645:3;83628:16;:21::i;:::-;83599:51;;;;;;;;;:::i;:::-;;;;;;;;;;;;;83449:202;;;83531:16;83549:21;83566:3;83549:16;:21::i;:::-;83514:57;;;;;;;;;:::i;:::-;;;;;;;;;;;;;83429:222;83220:439;-1:-1:-1;;83220:439:0:o;80530:245::-;22512:13;:11;:13::i;:::-;80599:10:::1;80628:12;;80612:13;83759:1:::0;42448:12;42235:7;42432:13;-1:-1:-1;;42432:28:0;;;:46;;42174:323;80612:13:::1;:28;;;;:::i;:::-;80678:8;::::0;80599:41;;-1:-1:-1;80658:16:0::1;80663:4:::0;80599:41;80658:16:::1;:::i;:::-;:28;;80650:37;;;::::0;::::1;;80702:9;80697:71;80717:15:::0;;::::1;80697:71;;;80747:21;80757:4;;80762:1;80757:7;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;80766:1;80747:9;:21::i;:::-;80734:3:::0;::::1;::::0;::::1;:::i;:::-;;;;80697:71;;23532:201:::0;22512:13;:11;:13::i;:::-;-1:-1:-1;;;;;23621:22:0;::::1;23613:73;;;::::0;-1:-1:-1;;;23613:73:0;;14761:2:1;23613:73:0::1;::::0;::::1;14743:21:1::0;14800:2;14780:18;;;14773:30;14839:34;14819:18;;;14812:62;-1:-1:-1;;;14890:18:1;;;14883:36;14936:19;;23613:73:0::1;14559:402:1::0;23613:73:0::1;23697:28;23716:8;23697:18;:28::i;54194:282::-:0;54259:4;54315:7;83759:1;54296:26;;:66;;;;;54349:13;;54339:7;:23;54296:66;:153;;;;-1:-1:-1;;54400:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;54400:44:0;:49;;54194:282::o;4538:419::-;3059:42;4729:45;:49;4725:225;;4800:67;;-1:-1:-1;;;4800:67:0;;4851:4;4800:67;;;15178:34:1;-1:-1:-1;;;;;15248:15:1;;15228:18;;;15221:43;3059:42:0;;4800;;15113:18:1;;4800:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;4795:144;;4895:28;;-1:-1:-1;;;4895:28:0;;-1:-1:-1;;;;;3639:32:1;;4895:28:0;;;3621:51:1;3594:18;;4895:28:0;3475:203:1;52540:124:0;52629:27;52638:2;52642:7;52651:4;52629:8;:27::i;56462:2825::-;56604:27;56634;56653:7;56634:18;:27::i;:::-;56604:57;;56719:4;-1:-1:-1;;;;;56678:45:0;56694:19;-1:-1:-1;;;;;56678:45:0;;56674:86;;56732:28;;-1:-1:-1;;;56732:28:0;;;;;;;;;;;56674:86;56774:27;55570:24;;;:15;:24;;;;;55798:26;;56965:68;55798:26;57007:4;77887:10;57013:19;-1:-1:-1;;;;;55044:32:0;;;54888:28;;55173:20;;55195:30;;55170:56;;54585:659;56965:68;56960:180;;57053:43;57070:4;77887:10;53772:164;:::i;57053:43::-;57048:92;;57105:35;;-1:-1:-1;;;57105:35:0;;;;;;;;;;;57048:92;-1:-1:-1;;;;;57157:16:0;;57153:52;;57182:23;;-1:-1:-1;;;57182:23:0;;;;;;;;;;;57153:52;57354:15;57351:160;;;57494:1;57473:19;57466:30;57351:160;-1:-1:-1;;;;;57891:24:0;;;;;;;:18;:24;;;;;;57889:26;;-1:-1:-1;;57889:26:0;;;57960:22;;;;;;;;;57958:24;;-1:-1:-1;57958:24:0;;;51642:11;51617:23;51613:41;51600:63;-1:-1:-1;;;51600:63:0;58253:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;58548:47:0;;:52;;58544:627;;58653:1;58643:11;;58621:19;58776:30;;;:17;:30;;;;;;:35;;58772:384;;58914:13;;58899:11;:28;58895:242;;59061:30;;;;:17;:30;;;;;:52;;;58895:242;58602:569;58544:627;59218:7;59214:2;-1:-1:-1;;;;;59199:27:0;59208:4;-1:-1:-1;;;;;59199:27:0;-1:-1:-1;;;;;;;;;;;59199:27:0;;;;;;;;;59237:42;56593:2694;;;56462:2825;;;:::o;22791:132::-;22699:6;;-1:-1:-1;;;;;22699:6:0;77887:10;22855:23;22847:68;;;;-1:-1:-1;;;22847:68:0;;15727:2:1;22847:68:0;;;15709:21:1;;;15746:18;;;15739:30;15805:34;15785:18;;;15778:62;15857:18;;22847:68:0;15525:356:1;59383:193:0;59529:39;59546:4;59552:2;59556:7;59529:39;;;;;;;;;;;;:16;:39::i;26516:293::-;25918:1;26650:7;;:19;26642:63;;;;-1:-1:-1;;;26642:63:0;;16088:2:1;26642:63:0;;;16070:21:1;16127:2;16107:18;;;16100:30;16166:33;16146:18;;;16139:61;16217:18;;26642:63:0;15886:355:1;26642:63:0;25918:1;26783:7;:18;26516:293::o;81710:776::-;81844:50;;;;;;;;;;;;;;-1:-1:-1;;;81844:50:0;;;81878:15;81844:23;:50::i;:::-;81843:51;81835:95;;;;-1:-1:-1;;;81835:95:0;;16448:2:1;81835:95:0;;;16430:21:1;16487:2;16467:18;;;16460:30;16526:33;16506:18;;;16499:61;16577:18;;81835:95:0;16246:355:1;81835:95:0;81946:6;81941:375;81956:26;;;81941:375;;;82001:16;82020:15;;82036:1;82020:18;;;;;;;:::i;:::-;;;;;;;82001:37;;82062:43;;;;;;;;;;;;;;-1:-1:-1;;;82062:43:0;;;82096:8;82062:23;:43::i;:::-;82061:44;82053:107;;;;-1:-1:-1;;;82053:107:0;;16808:2:1;82053:107:0;;;16790:21:1;16847:2;16827:18;;;16820:30;16886:34;16866:18;;;16859:62;-1:-1:-1;;;16937:18:1;;;16930:48;16995:19;;82053:107:0;16606:414:1;82053:107:0;82195:15;82183:8;:27;82175:66;;;;-1:-1:-1;;;82175:66:0;;17227:2:1;82175:66:0;;;17209:21:1;17266:2;17246:18;;;17239:30;17305:28;17285:18;;;17278:56;17351:18;;82175:66:0;17025:350:1;82175:66:0;-1:-1:-1;82286:3:0;;81941:375;;;;82330:6;82326:153;82340:24;;;82326:153;;;82381:24;82386:15;;82402:1;82386:18;;;;;;;:::i;:::-;;;;;;;82381:4;:24::i;:::-;82449:3;;82326:153;;48971:1712;49038:14;49088:7;83759:1;49069:26;49065:1562;;-1:-1:-1;49121:26:0;;;;:17;:26;;;;;;;-1:-1:-1;;;49197:24:0;;:29;;49193:1423;;49336:6;49346:1;49336:11;49332:981;;49387:13;;49376:7;:24;49372:68;;49409:31;;-1:-1:-1;;;49409:31:0;;;;;;;;;;;49372:68;50037:257;-1:-1:-1;;;50141:9:0;50123:28;;;;:17;:28;;;;;;50205:25;;50037:257;50205:25;;48971:1712;;;:::o;49193:1423::-;50644:31;;-1:-1:-1;;;50644:31:0;;;;;;;;;;;23893:191;23986:6;;;-1:-1:-1;;;;;24003:17:0;;;-1:-1:-1;;;;;;24003:17:0;;;;;;;24036:40;;23986:6;;;24003:17;23986:6;;24036:40;;23967:16;;24036:40;23956:128;23893:191;:::o;48419:161::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;48547:24:0;;;;:17;:24;;;;;;48528:44;;-1:-1:-1;;;;;;;;;;;;;50892:41:0;;;;38176:3;50978:33;;;50944:68;;-1:-1:-1;;;50944:68:0;-1:-1:-1;;;51042:24:0;;:29;;-1:-1:-1;;;51023:48:0;;;;38697:3;51111:28;;;;-1:-1:-1;;;51082:58:0;-1:-1:-1;50782:366:0;53381:234;77887:10;53476:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;53476:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;53476:60:0;;;;;;;;;;53552:55;;1545:41:1;;;53476:49:0;;77887:10;53552:55;;1518:18:1;53552:55:0;;;;;;;53381:234;;:::o;60174:407::-;60349:31;60362:4;60368:2;60372:7;60349:12;:31::i;:::-;-1:-1:-1;;;;;60395:14:0;;;:19;60391:183;;60434:56;60465:4;60471:2;60475:7;60484:5;60434:30;:56::i;:::-;60429:145;;60518:40;;-1:-1:-1;;;60518:40:0;;;;;;;;;;;18604:716;18660:13;18711:14;18728:17;18739:5;18728:10;:17::i;:::-;18748:1;18728:21;18711:38;;18764:20;18798:6;18787:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;18787:18:0;-1:-1:-1;18764:41:0;-1:-1:-1;18929:28:0;;;18945:2;18929:28;18986:288;-1:-1:-1;;19018:5:0;-1:-1:-1;;;19155:2:0;19144:14;;19139:30;19018:5;19126:44;19216:2;19207:11;;;-1:-1:-1;19237:21:0;18986:288;19237:21;-1:-1:-1;19295:6:0;18604:716;-1:-1:-1;;;18604:716:0:o;70334:112::-;70411:27;70421:2;70425:8;70411:27;;;;;;;;;;;;:9;:27::i;71252:492::-;71381:13;71397:16;71405:7;71397;:16::i;:::-;71381:32;;71430:13;71426:219;;;77887:10;-1:-1:-1;;;;;71462:28:0;;;71458:187;;71514:44;71531:5;77887:10;53772:164;:::i;71514:44::-;71509:136;;71590:35;;-1:-1:-1;;;71590:35:0;;;;;;;;;;;71509:136;71657:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;71657:35:0;-1:-1:-1;;;;;71657:35:0;;;;;;;;;71708:28;;71657:24;;71708:28;;;;;;;71370:374;71252:492;;;:::o;82494:80::-;82545:21;82551:8;82561:4;82545:5;:21::i;62665:716::-;62849:88;;-1:-1:-1;;;62849:88:0;;62828:4;;-1:-1:-1;;;;;62849:45:0;;;;;:88;;77887:10;;62916:4;;62922:7;;62931:5;;62849:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;62849:88:0;;;;;;;;-1:-1:-1;;62849:88:0;;;;;;;;;;;;:::i;:::-;;;62845:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;63132:6;:13;63149:1;63132:18;63128:235;;63178:40;;-1:-1:-1;;;63178:40:0;;;;;;;;;;;63128:235;63321:6;63315:13;63306:6;63302:2;63298:15;63291:38;62845:529;-1:-1:-1;;;;;;63008:64:0;-1:-1:-1;;;63008:64:0;;-1:-1:-1;62845:529:0;62665:716;;;;;;:::o;15470:922::-;15523:7;;-1:-1:-1;;;15601:15:0;;15597:102;;-1:-1:-1;;;15637:15:0;;;-1:-1:-1;15681:2:0;15671:12;15597:102;15726:6;15717:5;:15;15713:102;;15762:6;15753:15;;;-1:-1:-1;15797:2:0;15787:12;15713:102;15842:6;15833:5;:15;15829:102;;15878:6;15869:15;;;-1:-1:-1;15913:2:0;15903:12;15829:102;15958:5;15949;:14;15945:99;;15993:5;15984:14;;;-1:-1:-1;16027:1:0;16017:11;15945:99;16071:5;16062;:14;16058:99;;16106:5;16097:14;;;-1:-1:-1;16140:1:0;16130:11;16058:99;16184:5;16175;:14;16171:99;;16219:5;16210:14;;;-1:-1:-1;16253:1:0;16243:11;16171:99;16297:5;16288;:14;16284:66;;16333:1;16323:11;16378:6;15470:922;-1:-1:-1;;15470:922:0:o;69561:689::-;69692:19;69698:2;69702:8;69692:5;:19::i;:::-;-1:-1:-1;;;;;69753:14:0;;;:19;69749:483;;69793:11;69807:13;69855:14;;;69888:233;69919:62;69958:1;69962:2;69966:7;;;;;;69975:5;69919:30;:62::i;:::-;69914:167;;70017:40;;-1:-1:-1;;;70017:40:0;;;;;;;;;;;69914:167;70116:3;70108:5;:11;69888:233;;70203:3;70186:13;;:20;70182:34;;70208:8;;;72329:3081;72409:27;72439;72458:7;72439:18;:27::i;:::-;72409:57;-1:-1:-1;72409:57:0;72479:12;;72601:35;72628:7;55459:27;55570:24;;;:15;:24;;;;;55798:26;;55570:24;;55357:485;72601:35;72544:92;;;;72653:13;72649:316;;;72774:68;72799:15;72816:4;77887:10;72822:19;77800:105;72774:68;72769:184;;72866:43;72883:4;77887:10;53772:164;:::i;72866:43::-;72861:92;;72918:35;;-1:-1:-1;;;72918:35:0;;;;;;;;;;;72861:92;73121:15;73118:160;;;73261:1;73240:19;73233:30;73118:160;-1:-1:-1;;;;;73880:24:0;;;;;;:18;:24;;;;;:60;;73908:32;73880:60;;;51642:11;51617:23;51613:41;51600:63;-1:-1:-1;;;51600:63:0;74178:26;;;;:17;:26;;;;;:205;;;;-1:-1:-1;;;74503:47:0;;:52;;74499:627;;74608:1;74598:11;;74576:19;74731:30;;;:17;:30;;;;;;:35;;74727:384;;74869:13;;74854:11;:28;74850:242;;75016:30;;;;:17;:30;;;;;:52;;;74850:242;74557:569;74499:627;75154:35;;75181:7;;75177:1;;-1:-1:-1;;;;;75154:35:0;;;-1:-1:-1;;;;;;;;;;;75154:35:0;75177:1;;75154:35;-1:-1:-1;;75377:12:0;:14;;;;;;-1:-1:-1;;;;72329:3081:0:o;63843:2966::-;63916:20;63939:13;;;63967;;;63963:44;;63989:18;;-1:-1:-1;;;63989:18:0;;;;;;;;;;;63963:44;-1:-1:-1;;;;;64495:22:0;;;;;;:18;:22;;;;37655:2;64495:22;;;:71;;64533:32;64521:45;;64495:71;;;64809:31;;;:17;:31;;;;;-1:-1:-1;52073:15:0;;52047:24;52043:46;51642:11;51617:23;51613:41;51610:52;51600:63;;64809:173;;65044:23;;;;64809:31;;64495:22;;-1:-1:-1;;;;;;;;;;;64495:22:0;;65662:335;66323:1;66309:12;66305:20;66263:346;66364:3;66355:7;66352:16;66263:346;;66582:7;66572:8;66569:1;-1:-1:-1;;;;;;;;;;;66539:1:0;66536;66531:59;66417:1;66404:15;66263:346;;;66267:77;66642:8;66654:1;66642:13;66638:45;;66664:19;;-1:-1:-1;;;66664:19:0;;;;;;;;;;;66638:45;66700:13;:19;-1:-1:-1;86154:163:0;;;:::o;14:127:1:-;75:10;70:3;66:20;63:1;56:31;106:4;103:1;96:15;130:4;127:1;120:15;146:632;211:5;241:18;282:2;274:6;271:14;268:40;;;288:18;;:::i;:::-;363:2;357:9;331:2;417:15;;-1:-1:-1;;413:24:1;;;439:2;409:33;405:42;393:55;;;463:18;;;483:22;;;460:46;457:72;;;509:18;;:::i;:::-;549:10;545:2;538:22;578:6;569:15;;608:6;600;593:22;648:3;639:6;634:3;630:16;627:25;624:45;;;665:1;662;655:12;624:45;715:6;710:3;703:4;695:6;691:17;678:44;770:1;763:4;754:6;746;742:19;738:30;731:41;;;;146:632;;;;;:::o;783:222::-;826:5;879:3;872:4;864:6;860:17;856:27;846:55;;897:1;894;887:12;846:55;919:80;995:3;986:6;973:20;966:4;958:6;954:17;919:80;:::i;:::-;910:89;783:222;-1:-1:-1;;;783:222:1:o;1010:390::-;1088:6;1096;1149:2;1137:9;1128:7;1124:23;1120:32;1117:52;;;1165:1;1162;1155:12;1117:52;1205:9;1192:23;1238:18;1230:6;1227:30;1224:50;;;1270:1;1267;1260:12;1224:50;1293;1335:7;1326:6;1315:9;1311:22;1293:50;:::i;:::-;1283:60;1390:2;1375:18;;;;1362:32;;-1:-1:-1;;;;1010:390:1:o;1597:131::-;-1:-1:-1;;;;;;1671:32:1;;1661:43;;1651:71;;1718:1;1715;1708:12;1733:245;1791:6;1844:2;1832:9;1823:7;1819:23;1815:32;1812:52;;;1860:1;1857;1850:12;1812:52;1899:9;1886:23;1918:30;1942:5;1918:30;:::i;2165:173::-;2233:20;;-1:-1:-1;;;;;2282:31:1;;2272:42;;2262:70;;2328:1;2325;2318:12;2343:186;2402:6;2455:2;2443:9;2434:7;2430:23;2426:32;2423:52;;;2471:1;2468;2461:12;2423:52;2494:29;2513:9;2494:29;:::i;2534:250::-;2619:1;2629:113;2643:6;2640:1;2637:13;2629:113;;;2719:11;;;2713:18;2700:11;;;2693:39;2665:2;2658:10;2629:113;;;-1:-1:-1;;2776:1:1;2758:16;;2751:27;2534:250::o;2789:271::-;2831:3;2869:5;2863:12;2896:6;2891:3;2884:19;2912:76;2981:6;2974:4;2969:3;2965:14;2958:4;2951:5;2947:16;2912:76;:::i;:::-;3042:2;3021:15;-1:-1:-1;;3017:29:1;3008:39;;;;3049:4;3004:50;;2789:271;-1:-1:-1;;2789:271:1:o;3065:220::-;3214:2;3203:9;3196:21;3177:4;3234:45;3275:2;3264:9;3260:18;3252:6;3234:45;:::i;3290:180::-;3349:6;3402:2;3390:9;3381:7;3377:23;3373:32;3370:52;;;3418:1;3415;3408:12;3370:52;-1:-1:-1;3441:23:1;;3290:180;-1:-1:-1;3290:180:1:o;3683:254::-;3751:6;3759;3812:2;3800:9;3791:7;3787:23;3783:32;3780:52;;;3828:1;3825;3818:12;3780:52;3851:29;3870:9;3851:29;:::i;:::-;3841:39;3927:2;3912:18;;;;3899:32;;-1:-1:-1;;;3683:254:1:o;3942:328::-;4019:6;4027;4035;4088:2;4076:9;4067:7;4063:23;4059:32;4056:52;;;4104:1;4101;4094:12;4056:52;4127:29;4146:9;4127:29;:::i;:::-;4117:39;;4175:38;4209:2;4198:9;4194:18;4175:38;:::i;:::-;4165:48;;4260:2;4249:9;4245:18;4232:32;4222:42;;3942:328;;;;;:::o;4514:367::-;4577:8;4587:6;4641:3;4634:4;4626:6;4622:17;4618:27;4608:55;;4659:1;4656;4649:12;4608:55;-1:-1:-1;4682:20:1;;4725:18;4714:30;;4711:50;;;4757:1;4754;4747:12;4711:50;4794:4;4786:6;4782:17;4770:29;;4854:3;4847:4;4837:6;4834:1;4830:14;4822:6;4818:27;4814:38;4811:47;4808:67;;;4871:1;4868;4861:12;4808:67;4514:367;;;;;:::o;4886:505::-;4981:6;4989;4997;5050:2;5038:9;5029:7;5025:23;5021:32;5018:52;;;5066:1;5063;5056:12;5018:52;5102:9;5089:23;5079:33;;5163:2;5152:9;5148:18;5135:32;5190:18;5182:6;5179:30;5176:50;;;5222:1;5219;5212:12;5176:50;5261:70;5323:7;5314:6;5303:9;5299:22;5261:70;:::i;:::-;4886:505;;5350:8;;-1:-1:-1;5235:96:1;;-1:-1:-1;;;;4886:505:1:o;5396:118::-;5482:5;5475:13;5468:21;5461:5;5458:32;5448:60;;5504:1;5501;5494:12;5519:241;5575:6;5628:2;5616:9;5607:7;5603:23;5599:32;5596:52;;;5644:1;5641;5634:12;5596:52;5683:9;5670:23;5702:28;5724:5;5702:28;:::i;5765:632::-;5936:2;5988:21;;;6058:13;;5961:18;;;6080:22;;;5907:4;;5936:2;6159:15;;;;6133:2;6118:18;;;5907:4;6202:169;6216:6;6213:1;6210:13;6202:169;;;6277:13;;6265:26;;6346:15;;;;6311:12;;;;6238:1;6231:9;6202:169;;;-1:-1:-1;6388:3:1;;5765:632;-1:-1:-1;;;;;;5765:632:1:o;6402:322::-;6471:6;6524:2;6512:9;6503:7;6499:23;6495:32;6492:52;;;6540:1;6537;6530:12;6492:52;6580:9;6567:23;6613:18;6605:6;6602:30;6599:50;;;6645:1;6642;6635:12;6599:50;6668;6710:7;6701:6;6690:9;6686:22;6668:50;:::i;6729:315::-;6794:6;6802;6855:2;6843:9;6834:7;6830:23;6826:32;6823:52;;;6871:1;6868;6861:12;6823:52;6894:29;6913:9;6894:29;:::i;:::-;6884:39;;6973:2;6962:9;6958:18;6945:32;6986:28;7008:5;6986:28;:::i;:::-;7033:5;7023:15;;;6729:315;;;;;:::o;7049:667::-;7144:6;7152;7160;7168;7221:3;7209:9;7200:7;7196:23;7192:33;7189:53;;;7238:1;7235;7228:12;7189:53;7261:29;7280:9;7261:29;:::i;:::-;7251:39;;7309:38;7343:2;7332:9;7328:18;7309:38;:::i;:::-;7299:48;;7394:2;7383:9;7379:18;7366:32;7356:42;;7449:2;7438:9;7434:18;7421:32;7476:18;7468:6;7465:30;7462:50;;;7508:1;7505;7498:12;7462:50;7531:22;;7584:4;7576:13;;7572:27;-1:-1:-1;7562:55:1;;7613:1;7610;7603:12;7562:55;7636:74;7702:7;7697:2;7684:16;7679:2;7675;7671:11;7636:74;:::i;:::-;7626:84;;;7049:667;;;;;;;:::o;7721:437::-;7807:6;7815;7868:2;7856:9;7847:7;7843:23;7839:32;7836:52;;;7884:1;7881;7874:12;7836:52;7924:9;7911:23;7957:18;7949:6;7946:30;7943:50;;;7989:1;7986;7979:12;7943:50;8028:70;8090:7;8081:6;8070:9;8066:22;8028:70;:::i;:::-;8117:8;;8002:96;;-1:-1:-1;7721:437:1;-1:-1:-1;;;;7721:437:1:o;8163:260::-;8231:6;8239;8292:2;8280:9;8271:7;8267:23;8263:32;8260:52;;;8308:1;8305;8298:12;8260:52;8331:29;8350:9;8331:29;:::i;:::-;8321:39;;8379:38;8413:2;8402:9;8398:18;8379:38;:::i;:::-;8369:48;;8163:260;;;;;:::o;8428:289::-;8559:3;8597:6;8591:13;8613:66;8672:6;8667:3;8660:4;8652:6;8648:17;8613:66;:::i;:::-;8695:16;;;;;8428:289;-1:-1:-1;;8428:289:1:o;8722:380::-;8801:1;8797:12;;;;8844;;;8865:61;;8919:4;8911:6;8907:17;8897:27;;8865:61;8972:2;8964:6;8961:14;8941:18;8938:38;8935:161;;9018:10;9013:3;9009:20;9006:1;8999:31;9053:4;9050:1;9043:15;9081:4;9078:1;9071:15;8935:161;;8722:380;;;:::o;10380:127::-;10441:10;10436:3;10432:20;10429:1;10422:31;10472:4;10469:1;10462:15;10496:4;10493:1;10486:15;10512:125;10577:9;;;10598:10;;;10595:36;;;10611:18;;:::i;10768:545::-;10870:2;10865:3;10862:11;10859:448;;;10906:1;10931:5;10927:2;10920:17;10976:4;10972:2;10962:19;11046:2;11034:10;11030:19;11027:1;11023:27;11017:4;11013:38;11082:4;11070:10;11067:20;11064:47;;;-1:-1:-1;11105:4:1;11064:47;11160:2;11155:3;11151:12;11148:1;11144:20;11138:4;11134:31;11124:41;;11215:82;11233:2;11226:5;11223:13;11215:82;;;11278:17;;;11259:1;11248:13;11215:82;;11489:1352;11615:3;11609:10;11642:18;11634:6;11631:30;11628:56;;;11664:18;;:::i;:::-;11693:97;11783:6;11743:38;11775:4;11769:11;11743:38;:::i;:::-;11737:4;11693:97;:::i;:::-;11845:4;;11909:2;11898:14;;11926:1;11921:663;;;;12628:1;12645:6;12642:89;;;-1:-1:-1;12697:19:1;;;12691:26;12642:89;-1:-1:-1;;11446:1:1;11442:11;;;11438:24;11434:29;11424:40;11470:1;11466:11;;;11421:57;12744:81;;11891:944;;11921:663;10715:1;10708:14;;;10752:4;10739:18;;-1:-1:-1;;11957:20:1;;;12075:236;12089:7;12086:1;12083:14;12075:236;;;12178:19;;;12172:26;12157:42;;12270:27;;;;12238:1;12226:14;;;;12105:19;;12075:236;;;12079:3;12339:6;12330:7;12327:19;12324:201;;;12400:19;;;12394:26;-1:-1:-1;;12483:1:1;12479:14;;;12495:3;12475:24;12471:37;12467:42;12452:58;12437:74;;12324:201;-1:-1:-1;;;;;12571:1:1;12555:14;;;12551:22;12538:36;;-1:-1:-1;11489:1352:1:o;13262:1020::-;13438:3;13467:1;13500:6;13494:13;13530:36;13556:9;13530:36;:::i;:::-;13585:1;13602:18;;;13629:133;;;;13776:1;13771:356;;;;13595:532;;13629:133;-1:-1:-1;;13662:24:1;;13650:37;;13735:14;;13728:22;13716:35;;13707:45;;;-1:-1:-1;13629:133:1;;13771:356;13802:6;13799:1;13792:17;13832:4;13877:2;13874:1;13864:16;13902:1;13916:165;13930:6;13927:1;13924:13;13916:165;;;14008:14;;13995:11;;;13988:35;14051:16;;;;13945:10;;13916:165;;;13920:3;;;14110:6;14105:3;14101:16;14094:23;;13595:532;;;;;14158:6;14152:13;14174:68;14233:8;14228:3;14221:4;14213:6;14209:17;14174:68;:::i;:::-;14258:18;;13262:1020;-1:-1:-1;;;;13262:1020:1:o;14287:127::-;14348:10;14343:3;14339:20;14336:1;14329:31;14379:4;14376:1;14369:15;14403:4;14400:1;14393:15;14419:135;14458:3;14479:17;;;14476:43;;14499:18;;:::i;:::-;-1:-1:-1;14546:1:1;14535:13;;14419:135::o;15275:245::-;15342:6;15395:2;15383:9;15374:7;15370:23;15366:32;15363:52;;;15411:1;15408;15401:12;15363:52;15443:9;15437:16;15462:28;15484:5;15462:28;:::i;17512:489::-;-1:-1:-1;;;;;17781:15:1;;;17763:34;;17833:15;;17828:2;17813:18;;17806:43;17880:2;17865:18;;17858:34;;;17928:3;17923:2;17908:18;;17901:31;;;17706:4;;17949:46;;17975:19;;17967:6;17949:46;:::i;:::-;17941:54;17512:489;-1:-1:-1;;;;;;17512:489:1:o;18006:249::-;18075:6;18128:2;18116:9;18107:7;18103:23;18099:32;18096:52;;;18144:1;18141;18134:12;18096:52;18176:9;18170:16;18195:30;18219:5;18195:30;:::i

Swarm Source

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