ETH Price: $3,413.99 (+3.90%)

Token

ForNashville (FNV)
 

Overview

Max Total Supply

122 FNV

Holders

58

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
heychristiano.eth
Balance
1 FNV
0xb1b243a3b0b89ec638a9601dc7eb59f7b2c3f3b6
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:
ForNashville

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2023-04-07
*/

// File: @openzeppelin/contracts-upgradeable/utils/math/MathUpgradeable.sol


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

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library MathUpgradeable {
    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-upgradeable/utils/StringsUpgradeable.sol


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

pragma solidity ^0.8.0;


/**
 * @dev String operations.
 */
library StringsUpgradeable {
    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 = MathUpgradeable.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, MathUpgradeable.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: https://github.com/chiru-labs/ERC721A/blob/main/contracts/IERC721A.sol


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

pragma solidity ^0.8.4;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: https://github.com/chiru-labs/ERC721A/blob/main/contracts/ERC721A.sol


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

pragma solidity ^0.8.4;


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * Returns the packed ownership data of `tokenId`.
     */
    function _packedOwnershipOf(uint256 tokenId) private view returns (uint256 packed) {
        if (_startTokenId() <= tokenId) {
            packed = _packedOwnerships[tokenId];
            // If the data at the starting slot does not exist, start the scan.
            if (packed == 0) {
                if (tokenId >= _currentIndex) _revert(OwnerQueryForNonexistentToken.selector);
                // Invariant:
                // There will always be an initialized ownership slot
                // (i.e. `ownership.addr != address(0) && ownership.burned == false`)
                // before an unintialized ownership slot
                // (i.e. `ownership.addr == address(0) && ownership.burned == false`)
                // Hence, `tokenId` will not underflow.
                //
                // We can directly compare the packed value.
                // If the address is zero, packed will be zero.
                for (;;) {
                    unchecked {
                        packed = _packedOwnerships[--tokenId];
                    }
                    if (packed == 0) continue;
                    if (packed & _BITMASK_BURNED == 0) return packed;
                    // Otherwise, the token is burned, and we must revert.
                    // This handles the case of batch burned tokens, where only the burned bit
                    // of the starting slot is set, and remaining slots are left uninitialized.
                    _revert(OwnerQueryForNonexistentToken.selector);
                }
            }
            // Otherwise, the data exists and we can skip the scan.
            // This is possible because we have already achieved the target condition.
            // This saves 2143 gas on transfers of initialized tokens.
            // If the token is not burned, return `packed`. Otherwise, revert.
            if (packed & _BITMASK_BURNED == 0) return packed;
        }
        _revert(OwnerQueryForNonexistentToken.selector);
    }

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

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

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

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

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account. See {ERC721A-_approve}.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     */
    function approve(address to, uint256 tokenId) public payable virtual override {
        _approve(to, tokenId, true);
    }

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

        return _tokenApprovals[tokenId].value;
    }

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

        // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
        uint256 toMasked = uint256(uint160(to)) & _BITMASK_ADDRESS;
        assembly {
            // Emit the `Transfer` event.
            log4(
                0, // Start of data (0, since no data).
                0, // End of data (0, since no data).
                _TRANSFER_EVENT_SIGNATURE, // Signature.
                from, // `from`.
                toMasked, // `to`.
                tokenId // `tokenId`.
            )
        }
        if (toMasked == 0) _revert(TransferToZeroAddress.selector);

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

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

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

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

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

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

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

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

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

        // Overflows are incredibly unrealistic.
        // `balance` and `numberMinted` have a maximum limit of 2**64.
        // `tokenId` has a maximum limit of 2**256.
        unchecked {
            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `quantity == 1`.
            _packedOwnerships[startTokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(quantity) | _nextExtraData(address(0), to, 0)
            );

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

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

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

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

            do {
                assembly {
                    // Emit the `Transfer` event.
                    log4(
                        0, // Start of data (0, since no data).
                        0, // End of data (0, since no data).
                        _TRANSFER_EVENT_SIGNATURE, // Signature.
                        0, // `address(0)`.
                        toMasked, // `to`.
                        tokenId // `tokenId`.
                    )
                }
                // The `!=` check ensures that large values of `quantity`
                // that overflows uint256 will make the loop run out of gas.
            } while (++tokenId != end);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        address from = address(uint160(prevOwnershipPacked));

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: contracts/fornashville/ForNashville.sol


pragma solidity ^0.8.19;




contract ForNashville is ERC721A, Ownable {
    using StringsUpgradeable for uint256;
    string public baseApiURI;
    uint16 public maxMintAmountPerTransaction = 20;
    uint256 public maxSupply = 5000;
    uint256 public cost = 0.005 ether;
    bool public paused = false;
    address public crossmintAddress;

    constructor(string memory _baseUrl) ERC721A("ForNashville", "FNV") {
        baseApiURI = _baseUrl;
        crossmintAddress = address(0xdAb1a1854214684acE522439684a145E62505233);
    }

    function setCrossmintAddress(address _crossmintAddress) public onlyOwner {
        crossmintAddress = _crossmintAddress;
    }

    function crossmint(address _to, uint256 _amount) public payable {
        require(!paused);
        require(_amount > 0, "Mint amount should be greater than 0");
        require(
            _amount <= maxMintAmountPerTransaction,
            "Sorry you cant mint this amount at once"
        );
        require(totalSupply() + _amount <= maxSupply, "Exceeds Max Supply");
        require(msg.value >= cost * _amount, "Insuffient funds");
        // NOTE THAT the address is different for ethereum, polygon, and mumbai
        // ethereum (all)  = 0xdab1a1854214684ace522439684a145e62505233
        require(
            msg.sender == crossmintAddress,
            "This function is for Crossmint only."
        );

        _mintLoop(_to, _amount);
    }

    function mint(uint256 _mintAmount) external payable {
        if (msg.sender != owner()) {
            require(!paused);
            require(_mintAmount > 0, "Mint amount should be greater than 0");
            require(
                _mintAmount <= maxMintAmountPerTransaction,
                "Sorry you cant mint this amount at once"
            );
            require(
                totalSupply() + _mintAmount <= maxSupply,
                "Exceeds Max Supply"
            );
            require(msg.value >= cost * _mintAmount, "Insuffient funds");
        }

        _mintLoop(msg.sender, _mintAmount);
    }

    function gift(address _to, uint256 _mintAmount) public onlyOwner {
        _mintLoop(_to, _mintAmount);
    }

    function airdrop(address[] memory _airdropAddresses) public onlyOwner {
        for (uint256 i = 0; i < _airdropAddresses.length; i++) {
            address to = _airdropAddresses[i];
            _mintLoop(to, 1);
        }
    }

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

    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        require(
            _exists(tokenId),
            "ERC721Metadata: URI query for nonexistent token"
        );
        string memory currentBaseURI = _baseURI();
        return
            bytes(currentBaseURI).length > 0
                ? string(abi.encodePacked(currentBaseURI, tokenId.toString()))
                : "";
    }

    function setCost(uint256 _newCost) public onlyOwner {
        cost = _newCost;
    }

    function setmaxMintAmountPerTransaction(uint16 _amount) public onlyOwner {
        maxMintAmountPerTransaction = _amount;
    }

    function setMaxSupply(uint256 _supply) public onlyOwner {
        maxSupply = _supply;
    }

    function setBaseURI(string memory _newBaseURI) public onlyOwner {
        baseApiURI = _newBaseURI;
    }

    function togglePause() public onlyOwner {
        paused = !paused;
    }

    function _mintLoop(address _receiver, uint256 _mintAmount) internal {
        _safeMint(_receiver, _mintAmount);
    }

    function withdraw() public payable onlyOwner {
        (bool os, ) = payable(0x3A85efd6BCce5F926E6b0cBB412C3645aD26d538).call{
            value: address(this).balance
        }("");
        require(os);
    }

    function safeWithdraw(address _to) public payable onlyOwner {
        (bool os, ) = payable(_to).call{value: address(this).balance}("");
        require(os);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_baseUrl","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address[]","name":"_airdropAddresses","type":"address[]"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseApiURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"crossmint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"crossmintAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"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":"_to","type":"address"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"gift","outputs":[],"stateMutability":"nonpayable","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":"maxMintAmountPerTransaction","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"}],"name":"safeWithdraw","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":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_crossmintAddress","type":"address"}],"name":"setCrossmintAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_supply","type":"uint256"}],"name":"setMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_amount","type":"uint16"}],"name":"setmaxMintAmountPerTransaction","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":[],"name":"togglePause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]

6080604052600a805461ffff19166014179055611388600b556611c37937e08000600c55600d805460ff191690553480156200003a57600080fd5b50604051620020d1380380620020d18339810160408190526200005d9162000176565b6040518060400160405280600c81526020016b466f724e61736876696c6c6560a01b8152506040518060400160405280600381526020016223272b60e91b8152508160029081620000af9190620002da565b506003620000be8282620002da565b50506000805550620000d0336200010e565b6009620000de8282620002da565b5050600d8054610100600160a81b03191674dab1a1854214684ace522439684a145e6250523300179055620003a6565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600060208083850312156200018a57600080fd5b82516001600160401b0380821115620001a257600080fd5b818501915085601f830112620001b757600080fd5b815181811115620001cc57620001cc62000160565b604051601f8201601f19908116603f01168101908382118183101715620001f757620001f762000160565b8160405282815288868487010111156200021057600080fd5b600093505b8284101562000234578484018601518185018701529285019262000215565b600086848301015280965050505050505092915050565b600181811c908216806200026057607f821691505b6020821081036200028157634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620002d557600081815260208120601f850160051c81016020861015620002b05750805b601f850160051c820191505b81811015620002d157828155600101620002bc565b5050505b505050565b81516001600160401b03811115620002f657620002f662000160565b6200030e816200030784546200024b565b8462000287565b602080601f8311600181146200034657600084156200032d5750858301515b600019600386901b1c1916600185901b178555620002d1565b600085815260208120601f198616915b82811015620003775788860151825594840194600190910190840162000356565b5085821015620003965787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b611d1b80620003b66000396000f3fe6080604052600436106102045760003560e01c806370a0823111610118578063b88d4fde116100a0578063cbce4c971161006f578063cbce4c9714610563578063d5abeb0114610583578063e97800cb14610599578063e985e9c5146105b9578063f2fde38b146105d957600080fd5b8063b88d4fde146104ed578063bbb8974414610500578063c4ae31681461052e578063c87b56dd1461054357600080fd5b80638da5cb5b116100e75780638da5cb5b1461046757806395d89b4114610485578063997556241461049a578063a0712d68146104ba578063a22cb465146104cd57600080fd5b806370a08231146103ff578063715018a61461041f578063729ad39e14610434578063838a41071461045457600080fd5b806341827f131161019b57806358891a371161016a57806358891a371461036d5780635b2a55e4146103805780635c975abb146103a55780636352211e146103bf5780636f8b44b0146103df57600080fd5b806341827f131461030557806342842e0e1461031a57806344a0d68a1461032d57806355f804b31461034d57600080fd5b806313faede6116101d757806313faede6146102ad57806318160ddd146102d157806323b872dd146102ea5780633ccfd60b146102fd57600080fd5b806301ffc9a71461020957806306fdde031461023e578063081812fc14610260578063095ea7b314610298575b600080fd5b34801561021557600080fd5b5061022961022436600461162e565b6105f9565b60405190151581526020015b60405180910390f35b34801561024a57600080fd5b5061025361064b565b604051610235919061169b565b34801561026c57600080fd5b5061028061027b3660046116ae565b6106dd565b6040516001600160a01b039091168152602001610235565b6102ab6102a63660046116de565b610718565b005b3480156102b957600080fd5b506102c3600c5481565b604051908152602001610235565b3480156102dd57600080fd5b50600154600054036102c3565b6102ab6102f8366004611708565b610728565b6102ab61088d565b34801561031157600080fd5b50610253610901565b6102ab610328366004611708565b61098f565b34801561033957600080fd5b506102ab6103483660046116ae565b6109af565b34801561035957600080fd5b506102ab6103683660046117e3565b6109bc565b6102ab61037b3660046116de565b6109d0565b34801561038c57600080fd5b50600d546102809061010090046001600160a01b031681565b3480156103b157600080fd5b50600d546102299060ff1681565b3480156103cb57600080fd5b506102806103da3660046116ae565b610b52565b3480156103eb57600080fd5b506102ab6103fa3660046116ae565b610b5d565b34801561040b57600080fd5b506102c361041a36600461182c565b610b6a565b34801561042b57600080fd5b506102ab610bb0565b34801561044057600080fd5b506102ab61044f366004611847565b610bc4565b6102ab61046236600461182c565b610c14565b34801561047357600080fd5b506008546001600160a01b0316610280565b34801561049157600080fd5b50610253610c7c565b3480156104a657600080fd5b506102ab6104b536600461182c565b610c8b565b6102ab6104c83660046116ae565b610cbb565b3480156104d957600080fd5b506102ab6104e83660046118f4565b610ddb565b6102ab6104fb366004611930565b610e47565b34801561050c57600080fd5b50600a5461051b9061ffff1681565b60405161ffff9091168152602001610235565b34801561053a57600080fd5b506102ab610e88565b34801561054f57600080fd5b5061025361055e3660046116ae565b610ea4565b34801561056f57600080fd5b506102ab61057e3660046116de565b610f6f565b34801561058f57600080fd5b506102c3600b5481565b3480156105a557600080fd5b506102ab6105b43660046119ac565b610f77565b3480156105c557600080fd5b506102296105d43660046119d0565b610f97565b3480156105e557600080fd5b506102ab6105f436600461182c565b610fc5565b60006301ffc9a760e01b6001600160e01b03198316148061062a57506380ac58cd60e01b6001600160e01b03198316145b806106455750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461065a90611a03565b80601f016020809104026020016040519081016040528092919081815260200182805461068690611a03565b80156106d35780601f106106a8576101008083540402835291602001916106d3565b820191906000526020600020905b8154815290600101906020018083116106b657829003601f168201915b5050505050905090565b60006106e88261103b565b6106fc576106fc6333d1c03960e21b611080565b506000908152600660205260409020546001600160a01b031690565b6107248282600161108a565b5050565b60006107338261112d565b6001600160a01b0394851694909150811684146107595761075962a1148160e81b611080565b60008281526006602052604090208054338082146001600160a01b0388169091141761079d576107898633610f97565b61079d5761079d632ce44b5f60e11b611080565b80156107a857600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b8416900361083a576001840160008181526004602052604081205490036108385760005481146108385760008181526004602052604090208490555b505b6001600160a01b0385168481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a48060000361088457610884633a954ecd60e21b611080565b50505050505050565b6108956111c3565b604051600090733a85efd6bcce5f926e6b0cbb412c3645ad26d5389047908381818185875af1925050503d80600081146108eb576040519150601f19603f3d011682016040523d82523d6000602084013e6108f0565b606091505b50509050806108fe57600080fd5b50565b6009805461090e90611a03565b80601f016020809104026020016040519081016040528092919081815260200182805461093a90611a03565b80156109875780601f1061095c57610100808354040283529160200191610987565b820191906000526020600020905b81548152906001019060200180831161096a57829003601f168201915b505050505081565b6109aa83838360405180602001604052806000815250610e47565b505050565b6109b76111c3565b600c55565b6109c46111c3565b60096107248282611a8b565b600d5460ff16156109e057600080fd5b60008111610a095760405162461bcd60e51b8152600401610a0090611b4b565b60405180910390fd5b600a5461ffff16811115610a2f5760405162461bcd60e51b8152600401610a0090611b8f565b600b5481610a406001546000540390565b610a4a9190611bec565b1115610a8d5760405162461bcd60e51b815260206004820152601260248201527145786365656473204d617820537570706c7960701b6044820152606401610a00565b80600c54610a9b9190611bff565b341015610add5760405162461bcd60e51b815260206004820152601060248201526f496e7375666669656e742066756e647360801b6044820152606401610a00565b600d5461010090046001600160a01b03163314610b485760405162461bcd60e51b8152602060048201526024808201527f546869732066756e6374696f6e20697320666f722043726f73736d696e74206f60448201526337363c9760e11b6064820152608401610a00565b610724828261121d565b60006106458261112d565b610b656111c3565b600b55565b60006001600160a01b038216610b8a57610b8a6323d3ad8160e21b611080565b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610bb86111c3565b610bc26000611227565b565b610bcc6111c3565b60005b8151811015610724576000828281518110610bec57610bec611c16565b60200260200101519050610c0181600161121d565b5080610c0c81611c2c565b915050610bcf565b610c1c6111c3565b6000816001600160a01b03164760405160006040518083038185875af1925050503d8060008114610c69576040519150601f19603f3d011682016040523d82523d6000602084013e610c6e565b606091505b505090508061072457600080fd5b60606003805461065a90611a03565b610c936111c3565b600d80546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6008546001600160a01b03163314610dd157600d5460ff1615610cdd57600080fd5b60008111610cfd5760405162461bcd60e51b8152600401610a0090611b4b565b600a5461ffff16811115610d235760405162461bcd60e51b8152600401610a0090611b8f565b600b5481610d346001546000540390565b610d3e9190611bec565b1115610d815760405162461bcd60e51b815260206004820152601260248201527145786365656473204d617820537570706c7960701b6044820152606401610a00565b80600c54610d8f9190611bff565b341015610dd15760405162461bcd60e51b815260206004820152601060248201526f496e7375666669656e742066756e647360801b6044820152606401610a00565b6108fe338261121d565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610e52848484610728565b6001600160a01b0383163b15610e8257610e6e84848484611279565b610e8257610e826368d2bf6b60e11b611080565b50505050565b610e906111c3565b600d805460ff19811660ff90911615179055565b6060610eaf8261103b565b610f135760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610a00565b6000610f1d61135c565b90506000815111610f3d5760405180602001604052806000815250610f68565b80610f478461136b565b604051602001610f58929190611c45565b6040516020818303038152906040525b9392505050565b610b486111c3565b610f7f6111c3565b600a805461ffff191661ffff92909216919091179055565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b610fcd6111c3565b6001600160a01b0381166110325760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a00565b6108fe81611227565b6000805482101561107b5760005b50600082815260046020526040812054908190036110715761106a83611c74565b9250611049565b600160e01b161590505b919050565b8060005260046000fd5b600061109583610b52565b90508180156110ad5750336001600160a01b03821614155b156110d0576110bc8133610f97565b6110d0576110d06367d9dca160e11b611080565b60008381526006602052604080822080546001600160a01b0319166001600160a01b0388811691821790925591518693918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a450505050565b600081815260046020526040812054908190036111a057600054821061115d5761115d636f96cda160e11b611080565b5b5060001901600081815260046020526040902054801561115e57600160e01b811660000361118b57919050565b61119b636f96cda160e11b611080565b61115e565b600160e01b81166000036111b357919050565b61107b636f96cda160e11b611080565b6008546001600160a01b03163314610bc25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a00565b61072482826113fe565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906112ae903390899088908890600401611c8b565b6020604051808303816000875af19250505080156112e9575060408051601f3d908101601f191682019092526112e691810190611cc8565b60015b61133e573d808015611317576040519150601f19603f3d011682016040523d82523d6000602084013e61131c565b606091505b508051600003611336576113366368d2bf6b60e11b611080565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60606009805461065a90611a03565b6060600061137883611418565b600101905060008167ffffffffffffffff81111561139857611398611744565b6040519080825280601f01601f1916602001820160405280156113c2576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846113cc57509392505050565b6107248282604051806020016040528060008152506114f0565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106114575772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611483576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106114a157662386f26fc10000830492506010015b6305f5e10083106114b9576305f5e100830492506008015b61271083106114cd57612710830492506004015b606483106114df576064830492506002015b600a83106106455760010192915050565b6114fa8383611559565b6001600160a01b0383163b156109aa576000548281035b6115246000868380600101945086611279565b611538576115386368d2bf6b60e11b611080565b818110611511578160005414611552576115526000611080565b5050505050565b60008054908290036115755761157563b562e8dd60e01b611080565b60008181526004602090815260408083206001600160a01b0387164260a01b6001881460e11b178117909155808452600590925282208054680100000000000000018602019055908190036115d3576115d3622e076360e81b611080565b818301825b808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a48181600101915081036115d8575060005550505050565b6001600160e01b0319811681146108fe57600080fd5b60006020828403121561164057600080fd5b8135610f6881611618565b60005b8381101561166657818101518382015260200161164e565b50506000910152565b6000815180845261168781602086016020860161164b565b601f01601f19169290920160200192915050565b602081526000610f68602083018461166f565b6000602082840312156116c057600080fd5b5035919050565b80356001600160a01b038116811461107b57600080fd5b600080604083850312156116f157600080fd5b6116fa836116c7565b946020939093013593505050565b60008060006060848603121561171d57600080fd5b611726846116c7565b9250611734602085016116c7565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561178357611783611744565b604052919050565b600067ffffffffffffffff8311156117a5576117a5611744565b6117b8601f8401601f191660200161175a565b90508281528383830111156117cc57600080fd5b828260208301376000602084830101529392505050565b6000602082840312156117f557600080fd5b813567ffffffffffffffff81111561180c57600080fd5b8201601f8101841361181d57600080fd5b6113548482356020840161178b565b60006020828403121561183e57600080fd5b610f68826116c7565b6000602080838503121561185a57600080fd5b823567ffffffffffffffff8082111561187257600080fd5b818501915085601f83011261188657600080fd5b81358181111561189857611898611744565b8060051b91506118a984830161175a565b81815291830184019184810190888411156118c357600080fd5b938501935b838510156118e8576118d9856116c7565b825293850193908501906118c8565b98975050505050505050565b6000806040838503121561190757600080fd5b611910836116c7565b91506020830135801515811461192557600080fd5b809150509250929050565b6000806000806080858703121561194657600080fd5b61194f856116c7565b935061195d602086016116c7565b925060408501359150606085013567ffffffffffffffff81111561198057600080fd5b8501601f8101871361199157600080fd5b6119a08782356020840161178b565b91505092959194509250565b6000602082840312156119be57600080fd5b813561ffff81168114610f6857600080fd5b600080604083850312156119e357600080fd5b6119ec836116c7565b91506119fa602084016116c7565b90509250929050565b600181811c90821680611a1757607f821691505b602082108103611a3757634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156109aa57600081815260208120601f850160051c81016020861015611a645750805b601f850160051c820191505b81811015611a8357828155600101611a70565b505050505050565b815167ffffffffffffffff811115611aa557611aa5611744565b611ab981611ab38454611a03565b84611a3d565b602080601f831160018114611aee5760008415611ad65750858301515b600019600386901b1c1916600185901b178555611a83565b600085815260208120601f198616915b82811015611b1d57888601518255948401946001909101908401611afe565b5085821015611b3b5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60208082526024908201527f4d696e7420616d6f756e742073686f756c6420626520677265617465722074686040820152630616e20360e41b606082015260800190565b60208082526027908201527f536f72727920796f752063616e74206d696e74207468697320616d6f756e74206040820152666174206f6e636560c81b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b8082018082111561064557610645611bd6565b808202811582820484141761064557610645611bd6565b634e487b7160e01b600052603260045260246000fd5b600060018201611c3e57611c3e611bd6565b5060010190565b60008351611c5781846020880161164b565b835190830190611c6b81836020880161164b565b01949350505050565b600081611c8357611c83611bd6565b506000190190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611cbe9083018461166f565b9695505050505050565b600060208284031215611cda57600080fd5b8151610f688161161856fea2646970667358221220d3a08631d3c7da7dd064d51b6a65e13cfb7e45c1b665cabd57ed723c7c5139fd64736f6c634300081300330000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000003568747470733a2f2f617069322e6f726967696e616c617065636c75622e696f2f6170692f76312f6e66742f6e61736876696c6c652f0000000000000000000000

Deployed Bytecode

0x6080604052600436106102045760003560e01c806370a0823111610118578063b88d4fde116100a0578063cbce4c971161006f578063cbce4c9714610563578063d5abeb0114610583578063e97800cb14610599578063e985e9c5146105b9578063f2fde38b146105d957600080fd5b8063b88d4fde146104ed578063bbb8974414610500578063c4ae31681461052e578063c87b56dd1461054357600080fd5b80638da5cb5b116100e75780638da5cb5b1461046757806395d89b4114610485578063997556241461049a578063a0712d68146104ba578063a22cb465146104cd57600080fd5b806370a08231146103ff578063715018a61461041f578063729ad39e14610434578063838a41071461045457600080fd5b806341827f131161019b57806358891a371161016a57806358891a371461036d5780635b2a55e4146103805780635c975abb146103a55780636352211e146103bf5780636f8b44b0146103df57600080fd5b806341827f131461030557806342842e0e1461031a57806344a0d68a1461032d57806355f804b31461034d57600080fd5b806313faede6116101d757806313faede6146102ad57806318160ddd146102d157806323b872dd146102ea5780633ccfd60b146102fd57600080fd5b806301ffc9a71461020957806306fdde031461023e578063081812fc14610260578063095ea7b314610298575b600080fd5b34801561021557600080fd5b5061022961022436600461162e565b6105f9565b60405190151581526020015b60405180910390f35b34801561024a57600080fd5b5061025361064b565b604051610235919061169b565b34801561026c57600080fd5b5061028061027b3660046116ae565b6106dd565b6040516001600160a01b039091168152602001610235565b6102ab6102a63660046116de565b610718565b005b3480156102b957600080fd5b506102c3600c5481565b604051908152602001610235565b3480156102dd57600080fd5b50600154600054036102c3565b6102ab6102f8366004611708565b610728565b6102ab61088d565b34801561031157600080fd5b50610253610901565b6102ab610328366004611708565b61098f565b34801561033957600080fd5b506102ab6103483660046116ae565b6109af565b34801561035957600080fd5b506102ab6103683660046117e3565b6109bc565b6102ab61037b3660046116de565b6109d0565b34801561038c57600080fd5b50600d546102809061010090046001600160a01b031681565b3480156103b157600080fd5b50600d546102299060ff1681565b3480156103cb57600080fd5b506102806103da3660046116ae565b610b52565b3480156103eb57600080fd5b506102ab6103fa3660046116ae565b610b5d565b34801561040b57600080fd5b506102c361041a36600461182c565b610b6a565b34801561042b57600080fd5b506102ab610bb0565b34801561044057600080fd5b506102ab61044f366004611847565b610bc4565b6102ab61046236600461182c565b610c14565b34801561047357600080fd5b506008546001600160a01b0316610280565b34801561049157600080fd5b50610253610c7c565b3480156104a657600080fd5b506102ab6104b536600461182c565b610c8b565b6102ab6104c83660046116ae565b610cbb565b3480156104d957600080fd5b506102ab6104e83660046118f4565b610ddb565b6102ab6104fb366004611930565b610e47565b34801561050c57600080fd5b50600a5461051b9061ffff1681565b60405161ffff9091168152602001610235565b34801561053a57600080fd5b506102ab610e88565b34801561054f57600080fd5b5061025361055e3660046116ae565b610ea4565b34801561056f57600080fd5b506102ab61057e3660046116de565b610f6f565b34801561058f57600080fd5b506102c3600b5481565b3480156105a557600080fd5b506102ab6105b43660046119ac565b610f77565b3480156105c557600080fd5b506102296105d43660046119d0565b610f97565b3480156105e557600080fd5b506102ab6105f436600461182c565b610fc5565b60006301ffc9a760e01b6001600160e01b03198316148061062a57506380ac58cd60e01b6001600160e01b03198316145b806106455750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461065a90611a03565b80601f016020809104026020016040519081016040528092919081815260200182805461068690611a03565b80156106d35780601f106106a8576101008083540402835291602001916106d3565b820191906000526020600020905b8154815290600101906020018083116106b657829003601f168201915b5050505050905090565b60006106e88261103b565b6106fc576106fc6333d1c03960e21b611080565b506000908152600660205260409020546001600160a01b031690565b6107248282600161108a565b5050565b60006107338261112d565b6001600160a01b0394851694909150811684146107595761075962a1148160e81b611080565b60008281526006602052604090208054338082146001600160a01b0388169091141761079d576107898633610f97565b61079d5761079d632ce44b5f60e11b611080565b80156107a857600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b8416900361083a576001840160008181526004602052604081205490036108385760005481146108385760008181526004602052604090208490555b505b6001600160a01b0385168481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a48060000361088457610884633a954ecd60e21b611080565b50505050505050565b6108956111c3565b604051600090733a85efd6bcce5f926e6b0cbb412c3645ad26d5389047908381818185875af1925050503d80600081146108eb576040519150601f19603f3d011682016040523d82523d6000602084013e6108f0565b606091505b50509050806108fe57600080fd5b50565b6009805461090e90611a03565b80601f016020809104026020016040519081016040528092919081815260200182805461093a90611a03565b80156109875780601f1061095c57610100808354040283529160200191610987565b820191906000526020600020905b81548152906001019060200180831161096a57829003601f168201915b505050505081565b6109aa83838360405180602001604052806000815250610e47565b505050565b6109b76111c3565b600c55565b6109c46111c3565b60096107248282611a8b565b600d5460ff16156109e057600080fd5b60008111610a095760405162461bcd60e51b8152600401610a0090611b4b565b60405180910390fd5b600a5461ffff16811115610a2f5760405162461bcd60e51b8152600401610a0090611b8f565b600b5481610a406001546000540390565b610a4a9190611bec565b1115610a8d5760405162461bcd60e51b815260206004820152601260248201527145786365656473204d617820537570706c7960701b6044820152606401610a00565b80600c54610a9b9190611bff565b341015610add5760405162461bcd60e51b815260206004820152601060248201526f496e7375666669656e742066756e647360801b6044820152606401610a00565b600d5461010090046001600160a01b03163314610b485760405162461bcd60e51b8152602060048201526024808201527f546869732066756e6374696f6e20697320666f722043726f73736d696e74206f60448201526337363c9760e11b6064820152608401610a00565b610724828261121d565b60006106458261112d565b610b656111c3565b600b55565b60006001600160a01b038216610b8a57610b8a6323d3ad8160e21b611080565b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610bb86111c3565b610bc26000611227565b565b610bcc6111c3565b60005b8151811015610724576000828281518110610bec57610bec611c16565b60200260200101519050610c0181600161121d565b5080610c0c81611c2c565b915050610bcf565b610c1c6111c3565b6000816001600160a01b03164760405160006040518083038185875af1925050503d8060008114610c69576040519150601f19603f3d011682016040523d82523d6000602084013e610c6e565b606091505b505090508061072457600080fd5b60606003805461065a90611a03565b610c936111c3565b600d80546001600160a01b0390921661010002610100600160a81b0319909216919091179055565b6008546001600160a01b03163314610dd157600d5460ff1615610cdd57600080fd5b60008111610cfd5760405162461bcd60e51b8152600401610a0090611b4b565b600a5461ffff16811115610d235760405162461bcd60e51b8152600401610a0090611b8f565b600b5481610d346001546000540390565b610d3e9190611bec565b1115610d815760405162461bcd60e51b815260206004820152601260248201527145786365656473204d617820537570706c7960701b6044820152606401610a00565b80600c54610d8f9190611bff565b341015610dd15760405162461bcd60e51b815260206004820152601060248201526f496e7375666669656e742066756e647360801b6044820152606401610a00565b6108fe338261121d565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610e52848484610728565b6001600160a01b0383163b15610e8257610e6e84848484611279565b610e8257610e826368d2bf6b60e11b611080565b50505050565b610e906111c3565b600d805460ff19811660ff90911615179055565b6060610eaf8261103b565b610f135760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610a00565b6000610f1d61135c565b90506000815111610f3d5760405180602001604052806000815250610f68565b80610f478461136b565b604051602001610f58929190611c45565b6040516020818303038152906040525b9392505050565b610b486111c3565b610f7f6111c3565b600a805461ffff191661ffff92909216919091179055565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b610fcd6111c3565b6001600160a01b0381166110325760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a00565b6108fe81611227565b6000805482101561107b5760005b50600082815260046020526040812054908190036110715761106a83611c74565b9250611049565b600160e01b161590505b919050565b8060005260046000fd5b600061109583610b52565b90508180156110ad5750336001600160a01b03821614155b156110d0576110bc8133610f97565b6110d0576110d06367d9dca160e11b611080565b60008381526006602052604080822080546001600160a01b0319166001600160a01b0388811691821790925591518693918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a450505050565b600081815260046020526040812054908190036111a057600054821061115d5761115d636f96cda160e11b611080565b5b5060001901600081815260046020526040902054801561115e57600160e01b811660000361118b57919050565b61119b636f96cda160e11b611080565b61115e565b600160e01b81166000036111b357919050565b61107b636f96cda160e11b611080565b6008546001600160a01b03163314610bc25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a00565b61072482826113fe565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906112ae903390899088908890600401611c8b565b6020604051808303816000875af19250505080156112e9575060408051601f3d908101601f191682019092526112e691810190611cc8565b60015b61133e573d808015611317576040519150601f19603f3d011682016040523d82523d6000602084013e61131c565b606091505b508051600003611336576113366368d2bf6b60e11b611080565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60606009805461065a90611a03565b6060600061137883611418565b600101905060008167ffffffffffffffff81111561139857611398611744565b6040519080825280601f01601f1916602001820160405280156113c2576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846113cc57509392505050565b6107248282604051806020016040528060008152506114f0565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106114575772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611483576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106114a157662386f26fc10000830492506010015b6305f5e10083106114b9576305f5e100830492506008015b61271083106114cd57612710830492506004015b606483106114df576064830492506002015b600a83106106455760010192915050565b6114fa8383611559565b6001600160a01b0383163b156109aa576000548281035b6115246000868380600101945086611279565b611538576115386368d2bf6b60e11b611080565b818110611511578160005414611552576115526000611080565b5050505050565b60008054908290036115755761157563b562e8dd60e01b611080565b60008181526004602090815260408083206001600160a01b0387164260a01b6001881460e11b178117909155808452600590925282208054680100000000000000018602019055908190036115d3576115d3622e076360e81b611080565b818301825b808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a48181600101915081036115d8575060005550505050565b6001600160e01b0319811681146108fe57600080fd5b60006020828403121561164057600080fd5b8135610f6881611618565b60005b8381101561166657818101518382015260200161164e565b50506000910152565b6000815180845261168781602086016020860161164b565b601f01601f19169290920160200192915050565b602081526000610f68602083018461166f565b6000602082840312156116c057600080fd5b5035919050565b80356001600160a01b038116811461107b57600080fd5b600080604083850312156116f157600080fd5b6116fa836116c7565b946020939093013593505050565b60008060006060848603121561171d57600080fd5b611726846116c7565b9250611734602085016116c7565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561178357611783611744565b604052919050565b600067ffffffffffffffff8311156117a5576117a5611744565b6117b8601f8401601f191660200161175a565b90508281528383830111156117cc57600080fd5b828260208301376000602084830101529392505050565b6000602082840312156117f557600080fd5b813567ffffffffffffffff81111561180c57600080fd5b8201601f8101841361181d57600080fd5b6113548482356020840161178b565b60006020828403121561183e57600080fd5b610f68826116c7565b6000602080838503121561185a57600080fd5b823567ffffffffffffffff8082111561187257600080fd5b818501915085601f83011261188657600080fd5b81358181111561189857611898611744565b8060051b91506118a984830161175a565b81815291830184019184810190888411156118c357600080fd5b938501935b838510156118e8576118d9856116c7565b825293850193908501906118c8565b98975050505050505050565b6000806040838503121561190757600080fd5b611910836116c7565b91506020830135801515811461192557600080fd5b809150509250929050565b6000806000806080858703121561194657600080fd5b61194f856116c7565b935061195d602086016116c7565b925060408501359150606085013567ffffffffffffffff81111561198057600080fd5b8501601f8101871361199157600080fd5b6119a08782356020840161178b565b91505092959194509250565b6000602082840312156119be57600080fd5b813561ffff81168114610f6857600080fd5b600080604083850312156119e357600080fd5b6119ec836116c7565b91506119fa602084016116c7565b90509250929050565b600181811c90821680611a1757607f821691505b602082108103611a3757634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156109aa57600081815260208120601f850160051c81016020861015611a645750805b601f850160051c820191505b81811015611a8357828155600101611a70565b505050505050565b815167ffffffffffffffff811115611aa557611aa5611744565b611ab981611ab38454611a03565b84611a3d565b602080601f831160018114611aee5760008415611ad65750858301515b600019600386901b1c1916600185901b178555611a83565b600085815260208120601f198616915b82811015611b1d57888601518255948401946001909101908401611afe565b5085821015611b3b5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60208082526024908201527f4d696e7420616d6f756e742073686f756c6420626520677265617465722074686040820152630616e20360e41b606082015260800190565b60208082526027908201527f536f72727920796f752063616e74206d696e74207468697320616d6f756e74206040820152666174206f6e636560c81b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b8082018082111561064557610645611bd6565b808202811582820484141761064557610645611bd6565b634e487b7160e01b600052603260045260246000fd5b600060018201611c3e57611c3e611bd6565b5060010190565b60008351611c5781846020880161164b565b835190830190611c6b81836020880161164b565b01949350505050565b600081611c8357611c83611bd6565b506000190190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611cbe9083018461166f565b9695505050505050565b600060208284031215611cda57600080fd5b8151610f688161161856fea2646970667358221220d3a08631d3c7da7dd064d51b6a65e13cfb7e45c1b665cabd57ed723c7c5139fd64736f6c63430008130033

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

0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000003568747470733a2f2f617069322e6f726967696e616c617065636c75622e696f2f6170692f76312f6e66742f6e61736876696c6c652f0000000000000000000000

-----Decoded View---------------
Arg [0] : _baseUrl (string): https://api2.originalapeclub.io/api/v1/nft/nashville/

-----Encoded View---------------
4 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000020
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [2] : 68747470733a2f2f617069322e6f726967696e616c617065636c75622e696f2f
Arg [3] : 6170692f76312f6e66742f6e61736876696c6c652f0000000000000000000000


Deployed Bytecode Sourcemap

72729:4104:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37375:639;;;;;;;;;;-1:-1:-1;37375:639:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;37375:639:0;;;;;;;;38277:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;45311:227::-;;;;;;;;;;-1:-1:-1;45311:227:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:32:1;;;1679:51;;1667:2;1652:18;45311:227:0;1533:203:1;45028:124:0;;;;;;:::i;:::-;;:::i;:::-;;72943:33;;;;;;;;;;;;;;;;;;;2324:25:1;;;2312:2;2297:18;72943:33:0;2178:177:1;34019:323:0;;;;;;;;;;-1:-1:-1;34293:12:0;;34080:7;34277:13;:28;34019:323;;49045:3523;;;;;;:::i;:::-;;:::i;76442:214::-;;;:::i;72821:24::-;;;;;;;;;;;;;:::i;52664:193::-;;;;;;:::i;:::-;;:::i;75783:86::-;;;;;;;;;;-1:-1:-1;75783:86:0;;;;;:::i;:::-;;:::i;76116:107::-;;;;;;;;;;-1:-1:-1;76116:107:0;;;;;:::i;:::-;;:::i;73388:770::-;;;;;;:::i;:::-;;:::i;73016:31::-;;;;;;;;;;-1:-1:-1;73016:31:0;;;;;;;-1:-1:-1;;;;;73016:31:0;;;72983:26;;;;;;;;;;-1:-1:-1;72983:26:0;;;;;;;;39679:152;;;;;;;;;;-1:-1:-1;39679:152:0;;;;;:::i;:::-;;:::i;76014:94::-;;;;;;;;;;-1:-1:-1;76014:94:0;;;;;:::i;:::-;;:::i;35203:242::-;;;;;;;;;;-1:-1:-1;35203:242:0;;;;;:::i;:::-;;:::i;18065:103::-;;;;;;;;;;;;;:::i;74927:234::-;;;;;;;;;;-1:-1:-1;74927:234:0;;;;;:::i;:::-;;:::i;76664:166::-;;;;;;:::i;:::-;;:::i;17417:87::-;;;;;;;;;;-1:-1:-1;17490:6:0;;-1:-1:-1;;;;;17490:6:0;17417:87;;38453:104;;;;;;;;;;;;;:::i;73252:128::-;;;;;;;;;;-1:-1:-1;73252:128:0;;;;;:::i;:::-;;:::i;74166:634::-;;;;;;:::i;:::-;;:::i;45878:234::-;;;;;;;;;;-1:-1:-1;45878:234:0;;;;;:::i;:::-;;:::i;53455:416::-;;;;;;:::i;:::-;;:::i;72852:46::-;;;;;;;;;;-1:-1:-1;72852:46:0;;;;;;;;;;;6319:6:1;6307:19;;;6289:38;;6277:2;6262:18;72852:46:0;6145:188:1;76231:75:0;;;;;;;;;;;;;:::i;75288:487::-;;;;;;;;;;-1:-1:-1;75288:487:0;;;;;:::i;:::-;;:::i;74808:111::-;;;;;;;;;;-1:-1:-1;74808:111:0;;;;;:::i;:::-;;:::i;72905:31::-;;;;;;;;;;;;;;;;75877:129;;;;;;;;;;-1:-1:-1;75877:129:0;;;;;:::i;:::-;;:::i;46269:164::-;;;;;;;;;;-1:-1:-1;46269:164:0;;;;;:::i;:::-;;:::i;18323:201::-;;;;;;;;;;-1:-1:-1;18323:201:0;;;;;:::i;:::-;;:::i;37375:639::-;37460:4;-1:-1:-1;;;;;;;;;37784:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;37861:25:0;;;37784:102;:179;;;-1:-1:-1;;;;;;;;;;37938:25:0;;;37784:179;37764:199;37375:639;-1:-1:-1;;37375:639:0:o;38277:100::-;38331:13;38364:5;38357:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38277:100;:::o;45311:227::-;45387:7;45412:16;45420:7;45412;:16::i;:::-;45407:73;;45430:50;-1:-1:-1;;;45430:7:0;:50::i;:::-;-1:-1:-1;45500:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;45500:30:0;;45311:227::o;45028:124::-;45117:27;45126:2;45130:7;45139:4;45117:8;:27::i;:::-;45028:124;;:::o;49045:3523::-;49187:27;49217;49236:7;49217:18;:27::i;:::-;-1:-1:-1;;;;;49372:22:0;;;;49187:57;;-1:-1:-1;49432:45:0;;;;49428:95;;49479:44;-1:-1:-1;;;49479:7:0;:44::i;:::-;49537:27;48153:24;;;:15;:24;;;;;48381:26;;70537:10;47778:30;;;-1:-1:-1;;;;;47471:28:0;;47756:20;;;47753:56;49723:189;;49816:43;49833:4;70537:10;46269:164;:::i;49816:43::-;49811:101;;49861:51;-1:-1:-1;;;49861:7:0;:51::i;:::-;50061:15;50058:160;;;50201:1;50180:19;50173:30;50058:160;-1:-1:-1;;;;;50598:24:0;;;;;;;:18;:24;;;;;;50596:26;;-1:-1:-1;;50596:26:0;;;50667:22;;;;;;;;;50665:24;;-1:-1:-1;50665:24:0;;;44130:11;44105:23;44101:41;44088:63;-1:-1:-1;;;44088:63:0;50960:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;51255:47:0;;:52;;51251:627;;51360:1;51350:11;;51328:19;51483:30;;;:17;:30;;;;;;:35;;51479:384;;51621:13;;51606:11;:28;51602:242;;51768:30;;;;:17;:30;;;;;:52;;;51602:242;51309:569;51251:627;-1:-1:-1;;;;;52010:20:0;;52390:7;52010:20;52320:4;52262:25;51991:16;;52127:299;52451:8;52463:1;52451:13;52447:58;;52466:39;-1:-1:-1;;;52466:7:0;:39::i;:::-;49176:3392;;;;49045:3523;;;:::o;76442:214::-;17303:13;:11;:13::i;:::-;76512:114:::1;::::0;76499:7:::1;::::0;76520:42:::1;::::0;76590:21:::1;::::0;76499:7;76512:114;76499:7;76512:114;76590:21;76520:42;76512:114:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;76498:128;;;76645:2;76637:11;;;::::0;::::1;;76487:169;76442:214::o:0;72821:24::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;52664:193::-;52810:39;52827:4;52833:2;52837:7;52810:39;;;;;;;;;;;;:16;:39::i;:::-;52664:193;;;:::o;75783:86::-;17303:13;:11;:13::i;:::-;75846:4:::1;:15:::0;75783:86::o;76116:107::-;17303:13;:11;:13::i;:::-;76191:10:::1;:24;76204:11:::0;76191:10;:24:::1;:::i;73388:770::-:0;73472:6;;;;73471:7;73463:16;;;;;;73508:1;73498:7;:11;73490:60;;;;-1:-1:-1;;;73490:60:0;;;;;;;:::i;:::-;;;;;;;;;73594:27;;;;73583:38;;;73561:127;;;;-1:-1:-1;;;73561:127:0;;;;;;;:::i;:::-;73734:9;;73723:7;73707:13;34293:12;;34080:7;34277:13;:28;;34019:323;73707:13;:23;;;;:::i;:::-;:36;;73699:67;;;;-1:-1:-1;;;73699:67:0;;10956:2:1;73699:67:0;;;10938:21:1;10995:2;10975:18;;;10968:30;-1:-1:-1;;;11014:18:1;;;11007:48;11072:18;;73699:67:0;10754:342:1;73699:67:0;73805:7;73798:4;;:14;;;;:::i;:::-;73785:9;:27;;73777:56;;;;-1:-1:-1;;;73777:56:0;;11476:2:1;73777:56:0;;;11458:21:1;11515:2;11495:18;;;11488:30;-1:-1:-1;;;11534:18:1;;;11527:46;11590:18;;73777:56:0;11274:340:1;73777:56:0;74034:16;;;;;-1:-1:-1;;;;;74034:16:0;74020:10;:30;73998:116;;;;-1:-1:-1;;;73998:116:0;;11821:2:1;73998:116:0;;;11803:21:1;11860:2;11840:18;;;11833:30;11899:34;11879:18;;;11872:62;-1:-1:-1;;;11950:18:1;;;11943:34;11994:19;;73998:116:0;11619:400:1;73998:116:0;74127:23;74137:3;74142:7;74127:9;:23::i;39679:152::-;39751:7;39794:27;39813:7;39794:18;:27::i;76014:94::-;17303:13;:11;:13::i;:::-;76081:9:::1;:19:::0;76014:94::o;35203:242::-;35275:7;-1:-1:-1;;;;;35299:19:0;;35295:69;;35320:44;-1:-1:-1;;;35320:7:0;:44::i;:::-;-1:-1:-1;;;;;;35382:25:0;;;;;:18;:25;;;;;;29362:13;35382:55;;35203:242::o;18065:103::-;17303:13;:11;:13::i;:::-;18130:30:::1;18157:1;18130:18;:30::i;:::-;18065:103::o:0;74927:234::-;17303:13;:11;:13::i;:::-;75013:9:::1;75008:146;75032:17;:24;75028:1;:28;75008:146;;;75078:10;75091:17;75109:1;75091:20;;;;;;;;:::i;:::-;;;;;;;75078:33;;75126:16;75136:2;75140:1;75126:9;:16::i;:::-;-1:-1:-1::0;75058:3:0;::::1;::::0;::::1;:::i;:::-;;;;75008:146;;76664:166:::0;17303:13;:11;:13::i;:::-;76736:7:::1;76757:3;-1:-1:-1::0;;;;;76749:17:0::1;76774:21;76749:51;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;76735:65;;;76819:2;76811:11;;;::::0;::::1;38453:104:::0;38509:13;38542:7;38535:14;;;;;:::i;73252:128::-;17303:13;:11;:13::i;:::-;73336:16:::1;:36:::0;;-1:-1:-1;;;;;73336:36:0;;::::1;;;-1:-1:-1::0;;;;;;73336:36:0;;::::1;::::0;;;::::1;::::0;;73252:128::o;74166:634::-;17490:6;;-1:-1:-1;;;;;17490:6:0;74233:10;:21;74229:517;;74280:6;;;;74279:7;74271:16;;;;;;74324:1;74310:11;:15;74302:64;;;;-1:-1:-1;;;74302:64:0;;;;;;;:::i;:::-;74422:27;;;;74407:42;;;74381:143;;;;-1:-1:-1;;;74381:143:0;;;;;;;:::i;:::-;74596:9;;74581:11;74565:13;34293:12;;34080:7;34277:13;:28;;34019:323;74565:13;:27;;;;:::i;:::-;:40;;74539:120;;;;-1:-1:-1;;;74539:120:0;;10956:2:1;74539:120:0;;;10938:21:1;10995:2;10975:18;;;10968:30;-1:-1:-1;;;11014:18:1;;;11007:48;11072:18;;74539:120:0;10754:342:1;74539:120:0;74702:11;74695:4;;:18;;;;:::i;:::-;74682:9;:31;;74674:60;;;;-1:-1:-1;;;74674:60:0;;11476:2:1;74674:60:0;;;11458:21:1;11515:2;11495:18;;;11488:30;-1:-1:-1;;;11534:18:1;;;11527:46;11590:18;;74674:60:0;11274:340:1;74674:60:0;74758:34;74768:10;74780:11;74758:9;:34::i;45878:234::-;70537:10;45973:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;45973:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;45973:60:0;;;;;;;;;;46049:55;;540:41:1;;;45973:49:0;;70537:10;46049:55;;513:18:1;46049:55:0;;;;;;;45878:234;;:::o;53455:416::-;53630:31;53643:4;53649:2;53653:7;53630:12;:31::i;:::-;-1:-1:-1;;;;;53676:14:0;;;:19;53672:192;;53715:56;53746:4;53752:2;53756:7;53765:5;53715:30;:56::i;:::-;53710:154;;53792:56;-1:-1:-1;;;53792:7:0;:56::i;:::-;53455:416;;;;:::o;76231:75::-;17303:13;:11;:13::i;:::-;76292:6:::1;::::0;;-1:-1:-1;;76282:16:0;::::1;76292:6;::::0;;::::1;76291:7;76282:16;::::0;;76231:75::o;75288:487::-;75406:13;75459:16;75467:7;75459;:16::i;:::-;75437:113;;;;-1:-1:-1;;;75437:113:0;;12498:2:1;75437:113:0;;;12480:21:1;12537:2;12517:18;;;12510:30;12576:34;12556:18;;;12549:62;-1:-1:-1;;;12627:18:1;;;12620:45;12682:19;;75437:113:0;12296:411:1;75437:113:0;75561:28;75592:10;:8;:10::i;:::-;75561:41;;75664:1;75639:14;75633:28;:32;:134;;;;;;;;;;;;;;;;;75709:14;75725:18;:7;:16;:18::i;:::-;75692:52;;;;;;;;;:::i;:::-;;;;;;;;;;;;;75633:134;75613:154;75288:487;-1:-1:-1;;;75288:487:0:o;74808:111::-;17303:13;:11;:13::i;75877:129::-;17303:13;:11;:13::i;:::-;75961:27:::1;:37:::0;;-1:-1:-1;;75961:37:0::1;;::::0;;;::::1;::::0;;;::::1;::::0;;75877:129::o;46269:164::-;-1:-1:-1;;;;;46390:25:0;;;46366:4;46390:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;46269:164::o;18323:201::-;17303:13;:11;:13::i;:::-;-1:-1:-1;;;;;18412:22:0;::::1;18404:73;;;::::0;-1:-1:-1;;;18404:73:0;;13415:2:1;18404:73:0::1;::::0;::::1;13397:21:1::0;13454:2;13434:18;;;13427:30;13493:34;13473:18;;;13466:62;-1:-1:-1;;;13544:18:1;;;13537:36;13590:19;;18404:73:0::1;13213:402:1::0;18404:73:0::1;18488:28;18507:8;18488:18;:28::i;46691:368::-:0;46756:11;46841:13;;46831:7;:23;46827:214;;;46875:14;46908:60;-1:-1:-1;46925:26:0;;;;:17;:26;;;;;;;46915:42;;;46908:60;;46959:9;;;:::i;:::-;;;46908:60;;;-1:-1:-1;;;46996:24:0;:29;;-1:-1:-1;46827:214:0;46691:368;;;:::o;72469:165::-;72570:13;72564:4;72557:27;72611:4;72605;72598:18;63902:474;64031:13;64047:16;64055:7;64047;:16::i;:::-;64031:32;;64080:13;:45;;;;-1:-1:-1;70537:10:0;-1:-1:-1;;;;;64097:28:0;;;;64080:45;64076:201;;;64145:44;64162:5;70537:10;46269:164;:::i;64145:44::-;64140:137;;64210:51;-1:-1:-1;;;64210:7:0;:51::i;:::-;64289:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;64289:35:0;-1:-1:-1;;;;;64289:35:0;;;;;;;;;64340:28;;64289:24;;64340:28;;;;;;;64020:356;63902:474;;;:::o;41159:2012::-;41309:26;;;;:17;:26;;;;;;;41435:11;;;41431:1292;;41482:13;;41471:7;:24;41467:77;;41497:47;-1:-1:-1;;;41497:7:0;:47::i;:::-;42101:607;-1:-1:-1;;;42197:9:0;42179:28;;;;:17;:28;;;;;;42253:25;;42101:607;42253:25;-1:-1:-1;;;42305:6:0;:24;42333:1;42305:29;42301:48;;41159:2012;;;:::o;42301:48::-;42641:47;-1:-1:-1;;;42641:7:0;:47::i;:::-;42101:607;;41431:1292;-1:-1:-1;;;43050:6:0;:24;43078:1;43050:29;43046:48;;41159:2012;;;:::o;43046:48::-;43116:47;-1:-1:-1;;;43116:7:0;:47::i;17582:132::-;17490:6;;-1:-1:-1;;;;;17490:6:0;70537:10;17646:23;17638:68;;;;-1:-1:-1;;;17638:68:0;;13963:2:1;17638:68:0;;;13945:21:1;;;13982:18;;;13975:30;14041:34;14021:18;;;14014:62;14093:18;;17638:68:0;13761:356:1;76314:120:0;76393:33;76403:9;76414:11;76393:9;:33::i;18684:191::-;18777:6;;;-1:-1:-1;;;;;18794:17:0;;;-1:-1:-1;;;;;;18794:17:0;;;;;;;18827:40;;18777:6;;;18794:17;18777:6;;18827:40;;18758:16;;18827:40;18747:128;18684:191;:::o;55955:691::-;56139:88;;-1:-1:-1;;;56139:88:0;;56118:4;;-1:-1:-1;;;;;56139:45:0;;;;;:88;;70537:10;;56206:4;;56212:7;;56221:5;;56139:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;56139:88:0;;;;;;;;-1:-1:-1;;56139:88:0;;;;;;;;;;;;:::i;:::-;;;56135:504;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56422:6;:13;56439:1;56422:18;56418:115;;56461:56;-1:-1:-1;;;56461:7:0;:56::i;:::-;56605:6;56599:13;56590:6;56586:2;56582:15;56575:38;56135:504;-1:-1:-1;;;;;;56298:64:0;-1:-1:-1;;;56298:64:0;;-1:-1:-1;56135:504:0;55955:691;;;;;;:::o;75169:111::-;75229:13;75262:10;75255:17;;;;;:::i;13373:727::-;13429:13;13480:14;13497:28;13519:5;13497:21;:28::i;:::-;13528:1;13497:32;13480:49;;13544:20;13578:6;13567:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;13567:18:0;-1:-1:-1;13544:41:0;-1:-1:-1;13709:28:0;;;13725:2;13709:28;13766:288;-1:-1:-1;;13798:5:0;-1:-1:-1;;;13935:2:0;13924:14;;13919:30;13798:5;13906:44;13996:2;13987:11;;;-1:-1:-1;14017:21:0;13766:288;14017:21;-1:-1:-1;14075:6:0;13373:727;-1:-1:-1;;;13373:727:0:o;62984:112::-;63061:27;63071:2;63075:8;63061:27;;;;;;;;;;;;:9;:27::i;10205:922::-;10258:7;;-1:-1:-1;;;10336:15:0;;10332:102;;-1:-1:-1;;;10372:15:0;;;-1:-1:-1;10416:2:0;10406:12;10332:102;10461:6;10452:5;:15;10448:102;;10497:6;10488:15;;;-1:-1:-1;10532:2:0;10522:12;10448:102;10577:6;10568:5;:15;10564:102;;10613:6;10604:15;;;-1:-1:-1;10648:2:0;10638:12;10564:102;10693:5;10684;:14;10680:99;;10728:5;10719:14;;;-1:-1:-1;10762:1:0;10752:11;10680:99;10806:5;10797;:14;10793:99;;10841:5;10832:14;;;-1:-1:-1;10875:1:0;10865:11;10793:99;10919:5;10910;:14;10906:99;;10954:5;10945:14;;;-1:-1:-1;10988:1:0;10978:11;10906:99;11032:5;11023;:14;11019:66;;11068:1;11058:11;11113:6;10205:922;-1:-1:-1;;10205:922:0:o;62192:708::-;62323:19;62329:2;62333:8;62323:5;:19::i;:::-;-1:-1:-1;;;;;62384:14:0;;;:19;62380:502;;62424:11;62438:13;62486:14;;;62519:242;62550:62;62589:1;62593:2;62597:7;;;;;;62606:5;62550:30;:62::i;:::-;62545:176;;62641:56;-1:-1:-1;;;62641:7:0;:56::i;:::-;62756:3;62748:5;:11;62519:242;;62843:3;62826:13;;:20;62822:44;;62848:18;62863:1;62848:7;:18::i;:::-;62405:477;;62192:708;;;:::o;57108:2305::-;57181:20;57204:13;;;57232;;;57228:53;;57247:34;-1:-1:-1;;;57247:7:0;:34::i;:::-;57794:31;;;;:17;:31;;;;;;;;-1:-1:-1;;;;;43956:28:0;;44130:11;44105:23;44101:41;44574:1;44561:15;;44535:24;44531:46;44098:52;44088:63;;57794:173;;;58185:22;;;:18;:22;;;;;:71;;58223:32;58211:45;;58185:71;;;43956:28;58446:13;;;58442:54;;58461:35;-1:-1:-1;;;58461:7:0;:35::i;:::-;58527:23;;;:12;58612:676;59031:7;58987:8;58942:1;58876:25;58813:1;58748;58717:358;59283:3;59270:9;;;;;;:16;58612:676;;-1:-1:-1;59304:13:0;:19;-1:-1:-1;52664:193:0;;;:::o;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:250::-;677:1;687:113;701:6;698:1;695:13;687:113;;;777:11;;;771:18;758:11;;;751:39;723:2;716:10;687:113;;;-1:-1:-1;;834:1:1;816:16;;809:27;592:250::o;847:271::-;889:3;927:5;921:12;954:6;949:3;942:19;970:76;1039:6;1032:4;1027:3;1023:14;1016:4;1009:5;1005:16;970:76;:::i;:::-;1100:2;1079:15;-1:-1:-1;;1075:29:1;1066:39;;;;1107:4;1062:50;;847:271;-1:-1:-1;;847:271:1:o;1123:220::-;1272:2;1261:9;1254:21;1235:4;1292:45;1333:2;1322:9;1318:18;1310:6;1292:45;:::i;1348:180::-;1407:6;1460:2;1448:9;1439:7;1435:23;1431:32;1428:52;;;1476:1;1473;1466:12;1428:52;-1:-1:-1;1499:23:1;;1348:180;-1:-1:-1;1348:180:1:o;1741:173::-;1809:20;;-1:-1:-1;;;;;1858:31:1;;1848:42;;1838:70;;1904:1;1901;1894:12;1919:254;1987:6;1995;2048:2;2036:9;2027:7;2023:23;2019:32;2016:52;;;2064:1;2061;2054:12;2016:52;2087:29;2106:9;2087:29;:::i;:::-;2077:39;2163:2;2148:18;;;;2135:32;;-1:-1:-1;;;1919:254:1:o;2360:328::-;2437:6;2445;2453;2506:2;2494:9;2485:7;2481:23;2477:32;2474:52;;;2522:1;2519;2512:12;2474:52;2545:29;2564:9;2545:29;:::i;:::-;2535:39;;2593:38;2627:2;2616:9;2612:18;2593:38;:::i;:::-;2583:48;;2678:2;2667:9;2663:18;2650:32;2640:42;;2360:328;;;;;:::o;2693:127::-;2754:10;2749:3;2745:20;2742:1;2735:31;2785:4;2782:1;2775:15;2809:4;2806:1;2799:15;2825:275;2896:2;2890:9;2961:2;2942:13;;-1:-1:-1;;2938:27:1;2926:40;;2996:18;2981:34;;3017:22;;;2978:62;2975:88;;;3043:18;;:::i;:::-;3079:2;3072:22;2825:275;;-1:-1:-1;2825:275:1:o;3105:407::-;3170:5;3204:18;3196:6;3193:30;3190:56;;;3226:18;;:::i;:::-;3264:57;3309:2;3288:15;;-1:-1:-1;;3284:29:1;3315:4;3280:40;3264:57;:::i;:::-;3255:66;;3344:6;3337:5;3330:21;3384:3;3375:6;3370:3;3366:16;3363:25;3360:45;;;3401:1;3398;3391:12;3360:45;3450:6;3445:3;3438:4;3431:5;3427:16;3414:43;3504:1;3497:4;3488:6;3481:5;3477:18;3473:29;3466:40;3105:407;;;;;:::o;3517:451::-;3586:6;3639:2;3627:9;3618:7;3614:23;3610:32;3607:52;;;3655:1;3652;3645:12;3607:52;3695:9;3682:23;3728:18;3720:6;3717:30;3714:50;;;3760:1;3757;3750:12;3714:50;3783:22;;3836:4;3828:13;;3824:27;-1:-1:-1;3814:55:1;;3865:1;3862;3855:12;3814:55;3888:74;3954:7;3949:2;3936:16;3931:2;3927;3923:11;3888:74;:::i;3973:186::-;4032:6;4085:2;4073:9;4064:7;4060:23;4056:32;4053:52;;;4101:1;4098;4091:12;4053:52;4124:29;4143:9;4124:29;:::i;4164:952::-;4248:6;4279:2;4322;4310:9;4301:7;4297:23;4293:32;4290:52;;;4338:1;4335;4328:12;4290:52;4378:9;4365:23;4407:18;4448:2;4440:6;4437:14;4434:34;;;4464:1;4461;4454:12;4434:34;4502:6;4491:9;4487:22;4477:32;;4547:7;4540:4;4536:2;4532:13;4528:27;4518:55;;4569:1;4566;4559:12;4518:55;4605:2;4592:16;4627:2;4623;4620:10;4617:36;;;4633:18;;:::i;:::-;4679:2;4676:1;4672:10;4662:20;;4702:28;4726:2;4722;4718:11;4702:28;:::i;:::-;4764:15;;;4834:11;;;4830:20;;;4795:12;;;;4862:19;;;4859:39;;;4894:1;4891;4884:12;4859:39;4918:11;;;;4938:148;4954:6;4949:3;4946:15;4938:148;;;5020:23;5039:3;5020:23;:::i;:::-;5008:36;;4971:12;;;;5064;;;;4938:148;;;5105:5;4164:952;-1:-1:-1;;;;;;;;4164:952:1:o;5121:347::-;5186:6;5194;5247:2;5235:9;5226:7;5222:23;5218:32;5215:52;;;5263:1;5260;5253:12;5215:52;5286:29;5305:9;5286:29;:::i;:::-;5276:39;;5365:2;5354:9;5350:18;5337:32;5412:5;5405:13;5398:21;5391:5;5388:32;5378:60;;5434:1;5431;5424:12;5378:60;5457:5;5447:15;;;5121:347;;;;;:::o;5473:667::-;5568:6;5576;5584;5592;5645:3;5633:9;5624:7;5620:23;5616:33;5613:53;;;5662:1;5659;5652:12;5613:53;5685:29;5704:9;5685:29;:::i;:::-;5675:39;;5733:38;5767:2;5756:9;5752:18;5733:38;:::i;:::-;5723:48;;5818:2;5807:9;5803:18;5790:32;5780:42;;5873:2;5862:9;5858:18;5845:32;5900:18;5892:6;5889:30;5886:50;;;5932:1;5929;5922:12;5886:50;5955:22;;6008:4;6000:13;;5996:27;-1:-1:-1;5986:55:1;;6037:1;6034;6027:12;5986:55;6060:74;6126:7;6121:2;6108:16;6103:2;6099;6095:11;6060:74;:::i;:::-;6050:84;;;5473:667;;;;;;;:::o;6338:272::-;6396:6;6449:2;6437:9;6428:7;6424:23;6420:32;6417:52;;;6465:1;6462;6455:12;6417:52;6504:9;6491:23;6554:6;6547:5;6543:18;6536:5;6533:29;6523:57;;6576:1;6573;6566:12;6615:260;6683:6;6691;6744:2;6732:9;6723:7;6719:23;6715:32;6712:52;;;6760:1;6757;6750:12;6712:52;6783:29;6802:9;6783:29;:::i;:::-;6773:39;;6831:38;6865:2;6854:9;6850:18;6831:38;:::i;:::-;6821:48;;6615:260;;;;;:::o;6880:380::-;6959:1;6955:12;;;;7002;;;7023:61;;7077:4;7069:6;7065:17;7055:27;;7023:61;7130:2;7122:6;7119:14;7099:18;7096:38;7093:161;;7176:10;7171:3;7167:20;7164:1;7157:31;7211:4;7208:1;7201:15;7239:4;7236:1;7229:15;7093:161;;6880:380;;;:::o;7601:545::-;7703:2;7698:3;7695:11;7692:448;;;7739:1;7764:5;7760:2;7753:17;7809:4;7805:2;7795:19;7879:2;7867:10;7863:19;7860:1;7856:27;7850:4;7846:38;7915:4;7903:10;7900:20;7897:47;;;-1:-1:-1;7938:4:1;7897:47;7993:2;7988:3;7984:12;7981:1;7977:20;7971:4;7967:31;7957:41;;8048:82;8066:2;8059:5;8056:13;8048:82;;;8111:17;;;8092:1;8081:13;8048:82;;;8052:3;;;7601:545;;;:::o;8322:1352::-;8448:3;8442:10;8475:18;8467:6;8464:30;8461:56;;;8497:18;;:::i;:::-;8526:97;8616:6;8576:38;8608:4;8602:11;8576:38;:::i;:::-;8570:4;8526:97;:::i;:::-;8678:4;;8742:2;8731:14;;8759:1;8754:663;;;;9461:1;9478:6;9475:89;;;-1:-1:-1;9530:19:1;;;9524:26;9475:89;-1:-1:-1;;8279:1:1;8275:11;;;8271:24;8267:29;8257:40;8303:1;8299:11;;;8254:57;9577:81;;8724:944;;8754:663;7548:1;7541:14;;;7585:4;7572:18;;-1:-1:-1;;8790:20:1;;;8908:236;8922:7;8919:1;8916:14;8908:236;;;9011:19;;;9005:26;8990:42;;9103:27;;;;9071:1;9059:14;;;;8938:19;;8908:236;;;8912:3;9172:6;9163:7;9160:19;9157:201;;;9233:19;;;9227:26;-1:-1:-1;;9316:1:1;9312:14;;;9328:3;9308:24;9304:37;9300:42;9285:58;9270:74;;9157:201;-1:-1:-1;;;;;9404:1:1;9388:14;;;9384:22;9371:36;;-1:-1:-1;8322:1352:1:o;9679:400::-;9881:2;9863:21;;;9920:2;9900:18;;;9893:30;9959:34;9954:2;9939:18;;9932:62;-1:-1:-1;;;10025:2:1;10010:18;;10003:34;10069:3;10054:19;;9679:400::o;10084:403::-;10286:2;10268:21;;;10325:2;10305:18;;;10298:30;10364:34;10359:2;10344:18;;10337:62;-1:-1:-1;;;10430:2:1;10415:18;;10408:37;10477:3;10462:19;;10084:403::o;10492:127::-;10553:10;10548:3;10544:20;10541:1;10534:31;10584:4;10581:1;10574:15;10608:4;10605:1;10598:15;10624:125;10689:9;;;10710:10;;;10707:36;;;10723:18;;:::i;11101:168::-;11174:9;;;11205;;11222:15;;;11216:22;;11202:37;11192:71;;11243:18;;:::i;12024:127::-;12085:10;12080:3;12076:20;12073:1;12066:31;12116:4;12113:1;12106:15;12140:4;12137:1;12130:15;12156:135;12195:3;12216:17;;;12213:43;;12236:18;;:::i;:::-;-1:-1:-1;12283:1:1;12272:13;;12156:135::o;12712:496::-;12891:3;12929:6;12923:13;12945:66;13004:6;12999:3;12992:4;12984:6;12980:17;12945:66;:::i;:::-;13074:13;;13033:16;;;;13096:70;13074:13;13033:16;13143:4;13131:17;;13096:70;:::i;:::-;13182:20;;12712:496;-1:-1:-1;;;;12712:496:1:o;13620:136::-;13659:3;13687:5;13677:39;;13696:18;;:::i;:::-;-1:-1:-1;;;13732:18:1;;13620:136::o;14122:489::-;-1:-1:-1;;;;;14391:15:1;;;14373:34;;14443:15;;14438:2;14423:18;;14416:43;14490:2;14475:18;;14468:34;;;14538:3;14533:2;14518:18;;14511:31;;;14316:4;;14559:46;;14585:19;;14577:6;14559:46;:::i;:::-;14551:54;14122:489;-1:-1:-1;;;;;;14122:489:1:o;14616:249::-;14685:6;14738:2;14726:9;14717:7;14713:23;14709:32;14706:52;;;14754:1;14751;14744:12;14706:52;14786:9;14780:16;14805:30;14829:5;14805:30;:::i

Swarm Source

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