ETH Price: $3,095.63 (+2.06%)
Gas: 3 Gwei

Token

Tree's by Banksy (TBB)
 

Overview

Max Total Supply

383 TBB

Holders

43

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
3 TBB
0x530aff5b4a7ee849311ca2a20e023f9d276ddf7c
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:
Trees

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2023-03-21
*/

// File: @openzeppelin/contracts/utils/math/Math.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 Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

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

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

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

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

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

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

pragma solidity ^0.8.0;


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

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

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

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

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

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


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

pragma solidity ^0.8.0;

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

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

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


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

pragma solidity ^0.8.0;


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

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

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

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

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

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

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

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

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

// File: 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/Trees.sol


pragma solidity ^0.8.17;






contract Trees is ERC721A, Ownable {
    using Strings for uint256;
    uint256 public maxSupply = 999;
    uint256 public maxFreeAmount = 333;
    uint256 public maxFreePerWallet = 3;
    uint256 public price = 0.0025 ether;
    uint256 public maxPerTx = 20;
    uint256 public maxPerWallet = 20;
    bool public mintEnabled = false;
    string public baseURI;

 constructor(
    string memory _name,
    string memory _symbol,
    string memory _initBaseURI
  ) ERC721A(_name,_symbol) {
        setBaseURI(_initBaseURI);
     
    }
  function  CommunityMint(uint256 _amountPerAddress, address[] calldata addresses) external onlyOwner {
     uint256 totalSupply = uint256(totalSupply());
     uint totalAmount =   _amountPerAddress * addresses.length;
    require(totalSupply + totalAmount <= maxSupply, "Exceeds max supply.");
     for (uint256 i = 0; i < addresses.length; i++) {
            _safeMint(addresses[i], _amountPerAddress);
        }

     delete _amountPerAddress;
     delete totalSupply;
  }

    function  publicMint(uint256 quantity) external payable  {
        require(mintEnabled, "Minting is not live yet.");
        require(totalSupply() + quantity < maxSupply + 1, "No more");
        uint256 cost = price;
        uint256 _maxPerWallet = maxPerWallet;
        

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

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

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_initBaseURI","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"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":"uint256","name":"_amountPerAddress","type":"uint256"},{"internalType":"address[]","name":"addresses","type":"address[]"}],"name":"CommunityMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxFreeAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxFreePerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setMaxFreeAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"setMaxFreePerWallet","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526103e760095561014d600a556003600b556608e1bc9bf04000600c556014600d819055600e55600f805460ff191690553480156200004157600080fd5b5060405162001f6a38038062001f6a83398101604081905262000064916200023d565b828260026200007483826200035d565b5060036200008382826200035d565b505060008055506200009533620000a9565b620000a081620000fb565b50505062000429565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6200010562000117565b60106200011382826200035d565b5050565b6008546001600160a01b03163314620001765760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620001a057600080fd5b81516001600160401b0380821115620001bd57620001bd62000178565b604051601f8301601f19908116603f01168101908282118183101715620001e857620001e862000178565b816040528381526020925086838588010111156200020557600080fd5b600091505b838210156200022957858201830151818301840152908201906200020a565b600093810190920192909252949350505050565b6000806000606084860312156200025357600080fd5b83516001600160401b03808211156200026b57600080fd5b62000279878388016200018e565b945060208601519150808211156200029057600080fd5b6200029e878388016200018e565b93506040860151915080821115620002b557600080fd5b50620002c4868287016200018e565b9150509250925092565b600181811c90821680620002e357607f821691505b6020821081036200030457634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200035857600081815260208120601f850160051c81016020861015620003335750805b601f850160051c820191505b8181101562000354578281556001016200033f565b5050505b505050565b81516001600160401b0381111562000379576200037962000178565b62000391816200038a8454620002ce565b846200030a565b602080601f831160018114620003c95760008415620003b05750858301515b600019600386901b1c1916600185901b17855562000354565b600085815260208120601f198616915b82811015620003fa57888601518255948401946001909101908401620003d9565b5085821015620004195787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b611b3180620004396000396000f3fe6080604052600436106101ee5760003560e01c806370a082311161010d578063a7027357116100a0578063d5abeb011161006f578063d5abeb0114610509578063e985e9c51461051f578063f2fde38b1461053f578063f892c6e21461055f578063f968adbe1461057557600080fd5b8063a7027357146104a6578063b88d4fde146104bc578063c87b56dd146104cf578063d1239730146104ef57600080fd5b806391b7f5ed116100dc57806391b7f5ed1461043b57806395d89b411461045b578063a035b1fe14610470578063a22cb4651461048657600080fd5b806370a08231146103d3578063715018a6146103f35780637ba5e621146104085780638da5cb5b1461041d57600080fd5b80633ccfd60b1161018557806355f804b31161015457806355f804b31461035e5780636352211e1461037e5780636c0360eb1461039e5780636d7c4a4b146103b357600080fd5b80633ccfd60b1461030057806342842e0e14610315578063453c231014610328578063522ea7a01461033e57600080fd5b80630c23bb3f116101c15780630c23bb3f1461029757806318160ddd146102b757806323b872dd146102da5780632db11544146102ed57600080fd5b806301ffc9a7146101f357806306fdde0314610228578063081812fc1461024a578063095ea7b314610282575b600080fd5b3480156101ff57600080fd5b5061021361020e3660046114ba565b61058b565b60405190151581526020015b60405180910390f35b34801561023457600080fd5b5061023d6105dd565b60405161021f919061152e565b34801561025657600080fd5b5061026a610265366004611541565b61066f565b6040516001600160a01b03909116815260200161021f565b610295610290366004611571565b6106aa565b005b3480156102a357600080fd5b506102956102b2366004611541565b6106ba565b3480156102c357600080fd5b50600154600054035b60405190815260200161021f565b6102956102e836600461159b565b6106c7565b6102956102fb366004611541565b61082c565b34801561030c57600080fd5b506102956109fb565b61029561032336600461159b565b610a91565b34801561033457600080fd5b506102cc600e5481565b34801561034a57600080fd5b506102956103593660046115d7565b610ab1565b34801561036a57600080fd5b506102956103793660046116e2565b610b7f565b34801561038a57600080fd5b5061026a610399366004611541565b610b93565b3480156103aa57600080fd5b5061023d610b9e565b3480156103bf57600080fd5b506102956103ce366004611541565b610c2c565b3480156103df57600080fd5b506102cc6103ee36600461172b565b610c39565b3480156103ff57600080fd5b50610295610c7f565b34801561041457600080fd5b50610295610c93565b34801561042957600080fd5b506008546001600160a01b031661026a565b34801561044757600080fd5b50610295610456366004611541565b610caf565b34801561046757600080fd5b5061023d610cbc565b34801561047c57600080fd5b506102cc600c5481565b34801561049257600080fd5b506102956104a1366004611746565b610ccb565b3480156104b257600080fd5b506102cc600b5481565b6102956104ca366004611782565b610d37565b3480156104db57600080fd5b5061023d6104ea366004611541565b610d72565b3480156104fb57600080fd5b50600f546102139060ff1681565b34801561051557600080fd5b506102cc60095481565b34801561052b57600080fd5b5061021361053a3660046117fe565b610e13565b34801561054b57600080fd5b5061029561055a36600461172b565b610e41565b34801561056b57600080fd5b506102cc600a5481565b34801561058157600080fd5b506102cc600d5481565b60006301ffc9a760e01b6001600160e01b0319831614806105bc57506380ac58cd60e01b6001600160e01b03198316145b806105d75750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600280546105ec90611831565b80601f016020809104026020016040519081016040528092919081815260200182805461061890611831565b80156106655780601f1061063a57610100808354040283529160200191610665565b820191906000526020600020905b81548152906001019060200180831161064857829003601f168201915b5050505050905090565b600061067a82610eb7565b61068e5761068e6333d1c03960e21b610efc565b506000908152600660205260409020546001600160a01b031690565b6106b682826001610f06565b5050565b6106c2610fa9565b600a55565b60006106d282611003565b6001600160a01b0394851694909150811684146106f8576106f862a1148160e81b610efc565b60008281526006602052604090208054338082146001600160a01b0388169091141761073c576107288633610e13565b61073c5761073c632ce44b5f60e11b610efc565b801561074757600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b841690036107d9576001840160008181526004602052604081205490036107d75760005481146107d75760008181526004602052604090208490555b505b6001600160a01b0385168481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a48060000361082357610823633a954ecd60e21b610efc565b50505050505050565b600f5460ff166108835760405162461bcd60e51b815260206004820152601860248201527f4d696e74696e67206973206e6f74206c697665207965742e000000000000000060448201526064015b60405180910390fd5b600954610891906001611881565b8161089f6001546000540390565b6108a99190611881565b106108e05760405162461bcd60e51b81526020600482015260076024820152664e6f206d6f726560c81b604482015260640161087a565b600c54600e54600a5460015460005403108015610903575061090133611099565b155b80156109115750600b548311155b1561091f575050600b546000905b808361092a33611099565b6109349190611881565b11156109735760405162461bcd60e51b815260206004820152600e60248201526d13585e081c195c881dd85b1b195d60921b604482015260640161087a565b8261097d33611099565b6000036109925761098f600185611894565b90505b61099c83826118a7565b3410156109eb5760405162461bcd60e51b815260206004820152601d60248201527f506c656173652073656e642074686520657861637420616d6f756e742e000000604482015260640161087a565b6109f533856110c2565b50505050565b610a03610fa9565b604051600090339047908381818185875af1925050503d8060008114610a45576040519150601f19603f3d011682016040523d82523d6000602084013e610a4a565b606091505b5050905080610a8e5760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b604482015260640161087a565b50565b610aac83838360405180602001604052806000815250610d37565b505050565b610ab9610fa9565b6000610ac86001546000540390565b90506000610ad683866118a7565b600954909150610ae68284611881565b1115610b2a5760405162461bcd60e51b815260206004820152601360248201527222bc31b2b2b2399036b0bc1039bab838363c9760691b604482015260640161087a565b60005b83811015610b7757610b65858583818110610b4a57610b4a6118be565b9050602002016020810190610b5f919061172b565b876110c2565b80610b6f816118d4565b915050610b2d565b505050505050565b610b87610fa9565b60106106b68282611933565b60006105d782611003565b60108054610bab90611831565b80601f0160208091040260200160405190810160405280929190818152602001828054610bd790611831565b8015610c245780601f10610bf957610100808354040283529160200191610c24565b820191906000526020600020905b815481529060010190602001808311610c0757829003601f168201915b505050505081565b610c34610fa9565b600b55565b60006001600160a01b038216610c5957610c596323d3ad8160e21b610efc565b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610c87610fa9565b610c9160006110dc565b565b610c9b610fa9565b600f805460ff19811660ff90911615179055565b610cb7610fa9565b600c55565b6060600380546105ec90611831565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610d428484846106c7565b6001600160a01b0383163b156109f557610d5e8484848461112e565b6109f5576109f56368d2bf6b60e11b610efc565b6060610d7d82610eb7565b610de15760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161087a565b6010610dec83611211565b604051602001610dfd9291906119f3565b6040516020818303038152906040529050919050565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b610e49610fa9565b6001600160a01b038116610eae5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161087a565b610a8e816110dc565b60008054821015610ef75760005b5060008281526004602052604081205490819003610eed57610ee683611a8a565b9250610ec5565b600160e01b161590505b919050565b8060005260046000fd5b6000610f1183610b93565b9050818015610f295750336001600160a01b03821614155b15610f4c57610f388133610e13565b610f4c57610f4c6367d9dca160e11b610efc565b60008381526006602052604080822080546001600160a01b0319166001600160a01b0388811691821790925591518693918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a450505050565b6008546001600160a01b03163314610c915760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161087a565b6000818152600460205260408120549081900361107657600054821061103357611033636f96cda160e11b610efc565b5b5060001901600081815260046020526040902054801561103457600160e01b811660000361106157919050565b611071636f96cda160e11b610efc565b611034565b600160e01b811660000361108957919050565b610ef7636f96cda160e11b610efc565b6001600160a01b03166000908152600560205260409081902054901c67ffffffffffffffff1690565b6106b68282604051806020016040528060008152506112a4565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611163903390899088908890600401611aa1565b6020604051808303816000875af192505050801561119e575060408051601f3d908101601f1916820190925261119b91810190611ade565b60015b6111f3573d8080156111cc576040519150601f19603f3d011682016040523d82523d6000602084013e6111d1565b606091505b5080516000036111eb576111eb6368d2bf6b60e11b610efc565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600061121e8361130d565b600101905060008167ffffffffffffffff81111561123e5761123e611656565b6040519080825280601f01601f191660200182016040528015611268576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461127257509392505050565b6112ae83836113e5565b6001600160a01b0383163b15610aac576000548281035b6112d8600086838060010194508661112e565b6112ec576112ec6368d2bf6b60e11b610efc565b8181106112c5578160005414611306576113066000610efc565b5050505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061134c5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611378576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061139657662386f26fc10000830492506010015b6305f5e10083106113ae576305f5e100830492506008015b61271083106113c257612710830492506004015b606483106113d4576064830492506002015b600a83106105d75760010192915050565b60008054908290036114015761140163b562e8dd60e01b610efc565b60008181526004602090815260408083206001600160a01b0387164260a01b6001881460e11b1781179091558084526005909252822080546801000000000000000186020190559081900361145f5761145f622e076360e81b610efc565b818301825b808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4818160010191508103611464575060005550505050565b6001600160e01b031981168114610a8e57600080fd5b6000602082840312156114cc57600080fd5b81356114d7816114a4565b9392505050565b60005b838110156114f95781810151838201526020016114e1565b50506000910152565b6000815180845261151a8160208601602086016114de565b601f01601f19169290920160200192915050565b6020815260006114d76020830184611502565b60006020828403121561155357600080fd5b5035919050565b80356001600160a01b0381168114610ef757600080fd5b6000806040838503121561158457600080fd5b61158d8361155a565b946020939093013593505050565b6000806000606084860312156115b057600080fd5b6115b98461155a565b92506115c76020850161155a565b9150604084013590509250925092565b6000806000604084860312156115ec57600080fd5b83359250602084013567ffffffffffffffff8082111561160b57600080fd5b818601915086601f83011261161f57600080fd5b81358181111561162e57600080fd5b8760208260051b850101111561164357600080fd5b6020830194508093505050509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561168757611687611656565b604051601f8501601f19908116603f011681019082821181831017156116af576116af611656565b816040528093508581528686860111156116c857600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156116f457600080fd5b813567ffffffffffffffff81111561170b57600080fd5b8201601f8101841361171c57600080fd5b6112098482356020840161166c565b60006020828403121561173d57600080fd5b6114d78261155a565b6000806040838503121561175957600080fd5b6117628361155a565b91506020830135801515811461177757600080fd5b809150509250929050565b6000806000806080858703121561179857600080fd5b6117a18561155a565b93506117af6020860161155a565b925060408501359150606085013567ffffffffffffffff8111156117d257600080fd5b8501601f810187136117e357600080fd5b6117f28782356020840161166c565b91505092959194509250565b6000806040838503121561181157600080fd5b61181a8361155a565b91506118286020840161155a565b90509250929050565b600181811c9082168061184557607f821691505b60208210810361186557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808201808211156105d7576105d761186b565b818103818111156105d7576105d761186b565b80820281158282048414176105d7576105d761186b565b634e487b7160e01b600052603260045260246000fd5b6000600182016118e6576118e661186b565b5060010190565b601f821115610aac57600081815260208120601f850160051c810160208610156119145750805b601f850160051c820191505b81811015610b7757828155600101611920565b815167ffffffffffffffff81111561194d5761194d611656565b6119618161195b8454611831565b846118ed565b602080601f831160018114611996576000841561197e5750858301515b600019600386901b1c1916600185901b178555610b77565b600085815260208120601f198616915b828110156119c5578886015182559484019460019091019084016119a6565b50858210156119e35787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000808454611a0181611831565b60018281168015611a195760018114611a2e57611a5d565b60ff1984168752821515830287019450611a5d565b8860005260208060002060005b85811015611a545781548a820152908401908201611a3b565b50505082870194505b505050508351611a718183602088016114de565b64173539b7b760d91b9101908152600501949350505050565b600081611a9957611a9961186b565b506000190190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611ad490830184611502565b9695505050505050565b600060208284031215611af057600080fd5b81516114d7816114a456fea2646970667358221220d9f8c4e327a1f962cbed89d9eb836311543d093f49e4742fea13b8a949e925d964736f6c63430008110033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000105472656527732062792042616e6b737900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000354424200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000043697066733a2f2f6261667962656962776636617a6976696e776368636837746d75706b67656d6769633375723337327279703774627168336b6236757436713332612f0000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106101ee5760003560e01c806370a082311161010d578063a7027357116100a0578063d5abeb011161006f578063d5abeb0114610509578063e985e9c51461051f578063f2fde38b1461053f578063f892c6e21461055f578063f968adbe1461057557600080fd5b8063a7027357146104a6578063b88d4fde146104bc578063c87b56dd146104cf578063d1239730146104ef57600080fd5b806391b7f5ed116100dc57806391b7f5ed1461043b57806395d89b411461045b578063a035b1fe14610470578063a22cb4651461048657600080fd5b806370a08231146103d3578063715018a6146103f35780637ba5e621146104085780638da5cb5b1461041d57600080fd5b80633ccfd60b1161018557806355f804b31161015457806355f804b31461035e5780636352211e1461037e5780636c0360eb1461039e5780636d7c4a4b146103b357600080fd5b80633ccfd60b1461030057806342842e0e14610315578063453c231014610328578063522ea7a01461033e57600080fd5b80630c23bb3f116101c15780630c23bb3f1461029757806318160ddd146102b757806323b872dd146102da5780632db11544146102ed57600080fd5b806301ffc9a7146101f357806306fdde0314610228578063081812fc1461024a578063095ea7b314610282575b600080fd5b3480156101ff57600080fd5b5061021361020e3660046114ba565b61058b565b60405190151581526020015b60405180910390f35b34801561023457600080fd5b5061023d6105dd565b60405161021f919061152e565b34801561025657600080fd5b5061026a610265366004611541565b61066f565b6040516001600160a01b03909116815260200161021f565b610295610290366004611571565b6106aa565b005b3480156102a357600080fd5b506102956102b2366004611541565b6106ba565b3480156102c357600080fd5b50600154600054035b60405190815260200161021f565b6102956102e836600461159b565b6106c7565b6102956102fb366004611541565b61082c565b34801561030c57600080fd5b506102956109fb565b61029561032336600461159b565b610a91565b34801561033457600080fd5b506102cc600e5481565b34801561034a57600080fd5b506102956103593660046115d7565b610ab1565b34801561036a57600080fd5b506102956103793660046116e2565b610b7f565b34801561038a57600080fd5b5061026a610399366004611541565b610b93565b3480156103aa57600080fd5b5061023d610b9e565b3480156103bf57600080fd5b506102956103ce366004611541565b610c2c565b3480156103df57600080fd5b506102cc6103ee36600461172b565b610c39565b3480156103ff57600080fd5b50610295610c7f565b34801561041457600080fd5b50610295610c93565b34801561042957600080fd5b506008546001600160a01b031661026a565b34801561044757600080fd5b50610295610456366004611541565b610caf565b34801561046757600080fd5b5061023d610cbc565b34801561047c57600080fd5b506102cc600c5481565b34801561049257600080fd5b506102956104a1366004611746565b610ccb565b3480156104b257600080fd5b506102cc600b5481565b6102956104ca366004611782565b610d37565b3480156104db57600080fd5b5061023d6104ea366004611541565b610d72565b3480156104fb57600080fd5b50600f546102139060ff1681565b34801561051557600080fd5b506102cc60095481565b34801561052b57600080fd5b5061021361053a3660046117fe565b610e13565b34801561054b57600080fd5b5061029561055a36600461172b565b610e41565b34801561056b57600080fd5b506102cc600a5481565b34801561058157600080fd5b506102cc600d5481565b60006301ffc9a760e01b6001600160e01b0319831614806105bc57506380ac58cd60e01b6001600160e01b03198316145b806105d75750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600280546105ec90611831565b80601f016020809104026020016040519081016040528092919081815260200182805461061890611831565b80156106655780601f1061063a57610100808354040283529160200191610665565b820191906000526020600020905b81548152906001019060200180831161064857829003601f168201915b5050505050905090565b600061067a82610eb7565b61068e5761068e6333d1c03960e21b610efc565b506000908152600660205260409020546001600160a01b031690565b6106b682826001610f06565b5050565b6106c2610fa9565b600a55565b60006106d282611003565b6001600160a01b0394851694909150811684146106f8576106f862a1148160e81b610efc565b60008281526006602052604090208054338082146001600160a01b0388169091141761073c576107288633610e13565b61073c5761073c632ce44b5f60e11b610efc565b801561074757600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b841690036107d9576001840160008181526004602052604081205490036107d75760005481146107d75760008181526004602052604090208490555b505b6001600160a01b0385168481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a48060000361082357610823633a954ecd60e21b610efc565b50505050505050565b600f5460ff166108835760405162461bcd60e51b815260206004820152601860248201527f4d696e74696e67206973206e6f74206c697665207965742e000000000000000060448201526064015b60405180910390fd5b600954610891906001611881565b8161089f6001546000540390565b6108a99190611881565b106108e05760405162461bcd60e51b81526020600482015260076024820152664e6f206d6f726560c81b604482015260640161087a565b600c54600e54600a5460015460005403108015610903575061090133611099565b155b80156109115750600b548311155b1561091f575050600b546000905b808361092a33611099565b6109349190611881565b11156109735760405162461bcd60e51b815260206004820152600e60248201526d13585e081c195c881dd85b1b195d60921b604482015260640161087a565b8261097d33611099565b6000036109925761098f600185611894565b90505b61099c83826118a7565b3410156109eb5760405162461bcd60e51b815260206004820152601d60248201527f506c656173652073656e642074686520657861637420616d6f756e742e000000604482015260640161087a565b6109f533856110c2565b50505050565b610a03610fa9565b604051600090339047908381818185875af1925050503d8060008114610a45576040519150601f19603f3d011682016040523d82523d6000602084013e610a4a565b606091505b5050905080610a8e5760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b604482015260640161087a565b50565b610aac83838360405180602001604052806000815250610d37565b505050565b610ab9610fa9565b6000610ac86001546000540390565b90506000610ad683866118a7565b600954909150610ae68284611881565b1115610b2a5760405162461bcd60e51b815260206004820152601360248201527222bc31b2b2b2399036b0bc1039bab838363c9760691b604482015260640161087a565b60005b83811015610b7757610b65858583818110610b4a57610b4a6118be565b9050602002016020810190610b5f919061172b565b876110c2565b80610b6f816118d4565b915050610b2d565b505050505050565b610b87610fa9565b60106106b68282611933565b60006105d782611003565b60108054610bab90611831565b80601f0160208091040260200160405190810160405280929190818152602001828054610bd790611831565b8015610c245780601f10610bf957610100808354040283529160200191610c24565b820191906000526020600020905b815481529060010190602001808311610c0757829003601f168201915b505050505081565b610c34610fa9565b600b55565b60006001600160a01b038216610c5957610c596323d3ad8160e21b610efc565b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610c87610fa9565b610c9160006110dc565b565b610c9b610fa9565b600f805460ff19811660ff90911615179055565b610cb7610fa9565b600c55565b6060600380546105ec90611831565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610d428484846106c7565b6001600160a01b0383163b156109f557610d5e8484848461112e565b6109f5576109f56368d2bf6b60e11b610efc565b6060610d7d82610eb7565b610de15760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b606482015260840161087a565b6010610dec83611211565b604051602001610dfd9291906119f3565b6040516020818303038152906040529050919050565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b610e49610fa9565b6001600160a01b038116610eae5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161087a565b610a8e816110dc565b60008054821015610ef75760005b5060008281526004602052604081205490819003610eed57610ee683611a8a565b9250610ec5565b600160e01b161590505b919050565b8060005260046000fd5b6000610f1183610b93565b9050818015610f295750336001600160a01b03821614155b15610f4c57610f388133610e13565b610f4c57610f4c6367d9dca160e11b610efc565b60008381526006602052604080822080546001600160a01b0319166001600160a01b0388811691821790925591518693918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a450505050565b6008546001600160a01b03163314610c915760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161087a565b6000818152600460205260408120549081900361107657600054821061103357611033636f96cda160e11b610efc565b5b5060001901600081815260046020526040902054801561103457600160e01b811660000361106157919050565b611071636f96cda160e11b610efc565b611034565b600160e01b811660000361108957919050565b610ef7636f96cda160e11b610efc565b6001600160a01b03166000908152600560205260409081902054901c67ffffffffffffffff1690565b6106b68282604051806020016040528060008152506112a4565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611163903390899088908890600401611aa1565b6020604051808303816000875af192505050801561119e575060408051601f3d908101601f1916820190925261119b91810190611ade565b60015b6111f3573d8080156111cc576040519150601f19603f3d011682016040523d82523d6000602084013e6111d1565b606091505b5080516000036111eb576111eb6368d2bf6b60e11b610efc565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600061121e8361130d565b600101905060008167ffffffffffffffff81111561123e5761123e611656565b6040519080825280601f01601f191660200182016040528015611268576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a850494508461127257509392505050565b6112ae83836113e5565b6001600160a01b0383163b15610aac576000548281035b6112d8600086838060010194508661112e565b6112ec576112ec6368d2bf6b60e11b610efc565b8181106112c5578160005414611306576113066000610efc565b5050505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b831061134c5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611378576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc10000831061139657662386f26fc10000830492506010015b6305f5e10083106113ae576305f5e100830492506008015b61271083106113c257612710830492506004015b606483106113d4576064830492506002015b600a83106105d75760010192915050565b60008054908290036114015761140163b562e8dd60e01b610efc565b60008181526004602090815260408083206001600160a01b0387164260a01b6001881460e11b1781179091558084526005909252822080546801000000000000000186020190559081900361145f5761145f622e076360e81b610efc565b818301825b808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4818160010191508103611464575060005550505050565b6001600160e01b031981168114610a8e57600080fd5b6000602082840312156114cc57600080fd5b81356114d7816114a4565b9392505050565b60005b838110156114f95781810151838201526020016114e1565b50506000910152565b6000815180845261151a8160208601602086016114de565b601f01601f19169290920160200192915050565b6020815260006114d76020830184611502565b60006020828403121561155357600080fd5b5035919050565b80356001600160a01b0381168114610ef757600080fd5b6000806040838503121561158457600080fd5b61158d8361155a565b946020939093013593505050565b6000806000606084860312156115b057600080fd5b6115b98461155a565b92506115c76020850161155a565b9150604084013590509250925092565b6000806000604084860312156115ec57600080fd5b83359250602084013567ffffffffffffffff8082111561160b57600080fd5b818601915086601f83011261161f57600080fd5b81358181111561162e57600080fd5b8760208260051b850101111561164357600080fd5b6020830194508093505050509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561168757611687611656565b604051601f8501601f19908116603f011681019082821181831017156116af576116af611656565b816040528093508581528686860111156116c857600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156116f457600080fd5b813567ffffffffffffffff81111561170b57600080fd5b8201601f8101841361171c57600080fd5b6112098482356020840161166c565b60006020828403121561173d57600080fd5b6114d78261155a565b6000806040838503121561175957600080fd5b6117628361155a565b91506020830135801515811461177757600080fd5b809150509250929050565b6000806000806080858703121561179857600080fd5b6117a18561155a565b93506117af6020860161155a565b925060408501359150606085013567ffffffffffffffff8111156117d257600080fd5b8501601f810187136117e357600080fd5b6117f28782356020840161166c565b91505092959194509250565b6000806040838503121561181157600080fd5b61181a8361155a565b91506118286020840161155a565b90509250929050565b600181811c9082168061184557607f821691505b60208210810361186557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b808201808211156105d7576105d761186b565b818103818111156105d7576105d761186b565b80820281158282048414176105d7576105d761186b565b634e487b7160e01b600052603260045260246000fd5b6000600182016118e6576118e661186b565b5060010190565b601f821115610aac57600081815260208120601f850160051c810160208610156119145750805b601f850160051c820191505b81811015610b7757828155600101611920565b815167ffffffffffffffff81111561194d5761194d611656565b6119618161195b8454611831565b846118ed565b602080601f831160018114611996576000841561197e5750858301515b600019600386901b1c1916600185901b178555610b77565b600085815260208120601f198616915b828110156119c5578886015182559484019460019091019084016119a6565b50858210156119e35787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000808454611a0181611831565b60018281168015611a195760018114611a2e57611a5d565b60ff1984168752821515830287019450611a5d565b8860005260208060002060005b85811015611a545781548a820152908401908201611a3b565b50505082870194505b505050508351611a718183602088016114de565b64173539b7b760d91b9101908152600501949350505050565b600081611a9957611a9961186b565b506000190190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611ad490830184611502565b9695505050505050565b600060208284031215611af057600080fd5b81516114d7816114a456fea2646970667358221220d9f8c4e327a1f962cbed89d9eb836311543d093f49e4742fea13b8a949e925d964736f6c63430008110033

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

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000000105472656527732062792042616e6b737900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000354424200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000043697066733a2f2f6261667962656962776636617a6976696e776368636837746d75706b67656d6769633375723337327279703774627168336b6236757436713332612f0000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): Tree's by Banksy
Arg [1] : _symbol (string): TBB
Arg [2] : _initBaseURI (string): ipfs://bafybeibwf6azivinwchch7tmupkgemgic3ur372ryp7tbqh3kb6ut6q32a/

-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000010
Arg [4] : 5472656527732062792042616e6b737900000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [6] : 5442420000000000000000000000000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000043
Arg [8] : 697066733a2f2f6261667962656962776636617a6976696e776368636837746d
Arg [9] : 75706b67656d6769633375723337327279703774627168336b62367574367133
Arg [10] : 32612f0000000000000000000000000000000000000000000000000000000000


Deployed Bytecode Sourcemap

72623:3188:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37285:639;;;;;;;;;;-1:-1:-1;37285:639:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;37285:639:0;;;;;;;;38187:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;45221:227::-;;;;;;;;;;-1:-1:-1;45221:227:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:32:1;;;1679:51;;1667:2;1652:18;45221:227:0;1533:203:1;44938:124:0;;;;;;:::i;:::-;;:::i;:::-;;75372:104;;;;;;;;;;-1:-1:-1;75372:104:0;;;;;:::i;:::-;;:::i;33929:323::-;;;;;;;;;;-1:-1:-1;34203:12:0;;33990:7;34187:13;:28;33929:323;;;2324:25:1;;;2312:2;2297:18;33929:323:0;2178:177:1;48955:3523:0;;;;;;:::i;:::-;;:::i;73670:966::-;;;;;;:::i;:::-;;:::i;75602:206::-;;;;;;;;;;;;;:::i;52574:193::-;;;;;;:::i;:::-;;:::i;72894:32::-;;;;;;;;;;;;;;;;73179:483;;;;;;;;;;-1:-1:-1;73179:483:0;;;;;:::i;:::-;;:::i;75176:88::-;;;;;;;;;;-1:-1:-1;75176:88:0;;;;;:::i;:::-;;:::i;39589:152::-;;;;;;;;;;-1:-1:-1;39589:152:0;;;;;:::i;:::-;;:::i;72971:21::-;;;;;;;;;;;;;:::i;75484:110::-;;;;;;;;;;-1:-1:-1;75484:110:0;;;;;:::i;:::-;;:::i;35113:242::-;;;;;;;;;;-1:-1:-1;35113:242:0;;;;;:::i;:::-;;:::i;17975:103::-;;;;;;;;;;;;;:::i;75084:84::-;;;;;;;;;;;;;:::i;17327:87::-;;;;;;;;;;-1:-1:-1;17400:6:0;;-1:-1:-1;;;;;17400:6:0;17327:87;;75272:92;;;;;;;;;;-1:-1:-1;75272:92:0;;;;;:::i;:::-;;:::i;38363:104::-;;;;;;;;;;;;;:::i;72817:35::-;;;;;;;;;;;;;;;;45788:234;;;;;;;;;;-1:-1:-1;45788:234:0;;;;;:::i;:::-;;:::i;72775:35::-;;;;;;;;;;;;;;;;53365:416;;;;;;:::i;:::-;;:::i;74760:316::-;;;;;;;;;;-1:-1:-1;74760:316:0;;;;;:::i;:::-;;:::i;72933:31::-;;;;;;;;;;-1:-1:-1;72933:31:0;;;;;;;;72697:30;;;;;;;;;;;;;;;;46179:164;;;;;;;;;;-1:-1:-1;46179:164:0;;;;;:::i;:::-;;:::i;18233:201::-;;;;;;;;;;-1:-1:-1;18233:201:0;;;;;:::i;:::-;;:::i;72734:34::-;;;;;;;;;;;;;;;;72859:28;;;;;;;;;;;;;;;;37285:639;37370:4;-1:-1:-1;;;;;;;;;37694:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;37771:25:0;;;37694:102;:179;;;-1:-1:-1;;;;;;;;;;37848:25:0;;;37694:179;37674:199;37285:639;-1:-1:-1;;37285:639:0:o;38187:100::-;38241:13;38274:5;38267:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;38187:100;:::o;45221:227::-;45297:7;45322:16;45330:7;45322;:16::i;:::-;45317:73;;45340:50;-1:-1:-1;;;45340:7:0;:50::i;:::-;-1:-1:-1;45410:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;45410:30:0;;45221:227::o;44938:124::-;45027:27;45036:2;45040:7;45049:4;45027:8;:27::i;:::-;44938:124;;:::o;75372:104::-;17213:13;:11;:13::i;:::-;75445::::1;:23:::0;75372:104::o;48955:3523::-;49097:27;49127;49146:7;49127:18;:27::i;:::-;-1:-1:-1;;;;;49282:22:0;;;;49097:57;;-1:-1:-1;49342:45:0;;;;49338:95;;49389:44;-1:-1:-1;;;49389:7:0;:44::i;:::-;49447:27;48063:24;;;:15;:24;;;;;48291:26;;70447:10;47688:30;;;-1:-1:-1;;;;;47381:28:0;;47666:20;;;47663:56;49633:189;;49726:43;49743:4;70447:10;46179:164;:::i;49726:43::-;49721:101;;49771:51;-1:-1:-1;;;49771:7:0;:51::i;:::-;49971:15;49968:160;;;50111:1;50090:19;50083:30;49968:160;-1:-1:-1;;;;;50508:24:0;;;;;;;:18;:24;;;;;;50506:26;;-1:-1:-1;;50506:26:0;;;50577:22;;;;;;;;;50575:24;;-1:-1:-1;50575:24:0;;;44040:11;44015:23;44011:41;43998:63;-1:-1:-1;;;43998:63:0;50870:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;51165:47:0;;:52;;51161:627;;51270:1;51260:11;;51238:19;51393:30;;;:17;:30;;;;;;:35;;51389:384;;51531:13;;51516:11;:28;51512:242;;51678:30;;;;:17;:30;;;;;:52;;;51512:242;51219:569;51161:627;-1:-1:-1;;;;;51920:20:0;;52300:7;51920:20;52230:4;52172:25;51901:16;;52037:299;52361:8;52373:1;52361:13;52357:58;;52376:39;-1:-1:-1;;;52376:7:0;:39::i;:::-;49086:3392;;;;48955:3523;;;:::o;73670:966::-;73746:11;;;;73738:48;;;;-1:-1:-1;;;73738:48:0;;6673:2:1;73738:48:0;;;6655:21:1;6712:2;6692:18;;;6685:30;6751:26;6731:18;;;6724:54;6795:18;;73738:48:0;;;;;;;;;73832:9;;:13;;73844:1;73832:13;:::i;:::-;73821:8;73805:13;34203:12;;33990:7;34187:13;:28;;33929:323;73805:13;:24;;;;:::i;:::-;:40;73797:60;;;;-1:-1:-1;;;73797:60:0;;7288:2:1;73797:60:0;;;7270:21:1;7327:1;7307:18;;;7300:29;-1:-1:-1;;;7345:18:1;;;7338:37;7392:18;;73797:60:0;7086:330:1;73797:60:0;73883:5;;73923:12;;73992:13;;34203:12;;33990:7;34187:13;:28;73976:29;:76;;;;;74022:25;74036:10;74022:13;:25::i;:::-;:30;73976:76;:121;;;;;74081:16;;74069:8;:28;;73976:121;73958:233;;;-1:-1:-1;;74163:16:0;;74131:1;;73958:233;74265:13;74253:8;74225:25;74239:10;74225:13;:25::i;:::-;:36;;;;:::i;:::-;:53;;74203:117;;;;-1:-1:-1;;;74203:117:0;;7623:2:1;74203:117:0;;;7605:21:1;7662:2;7642:18;;;7635:30;-1:-1:-1;;;7681:18:1;;;7674:44;7735:18;;74203:117:0;7421:338:1;74203:117:0;74356:8;74379:25;74393:10;74379:13;:25::i;:::-;74408:1;74379:30;74375:90;;74441:12;74452:1;74441:8;:12;:::i;:::-;74426:27;;74375:90;74510:19;74525:4;74510:12;:19;:::i;:::-;74497:9;:32;;74475:111;;;;-1:-1:-1;;;74475:111:0;;8272:2:1;74475:111:0;;;8254:21:1;8311:2;8291:18;;;8284:30;8350:31;8330:18;;;8323:59;8399:18;;74475:111:0;8070:353:1;74475:111:0;74597:31;74607:10;74619:8;74597:9;:31::i;:::-;73727:909;;;73670:966;:::o;75602:206::-;17213:13;:11;:13::i;:::-;75671:82:::1;::::0;75653:12:::1;::::0;75679:10:::1;::::0;75717:21:::1;::::0;75653:12;75671:82;75653:12;75671:82;75717:21;75679:10;75671:82:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;75652:101;;;75772:7;75764:36;;;::::0;-1:-1:-1;;;75764:36:0;;8840:2:1;75764:36:0::1;::::0;::::1;8822:21:1::0;8879:2;8859:18;;;8852:30;-1:-1:-1;;;8898:18:1;;;8891:46;8954:18;;75764:36:0::1;8638:340:1::0;75764:36:0::1;75641:167;75602:206::o:0;52574:193::-;52720:39;52737:4;52743:2;52747:7;52720:39;;;;;;;;;;;;:16;:39::i;:::-;52574:193;;;:::o;73179:483::-;17213:13;:11;:13::i;:::-;73287:19:::1;73317:13;34203:12:::0;;33990:7;34187:13;:28;;33929:323;73317:13:::1;73287:44:::0;-1:-1:-1;73339:16:0::1;73360:36;73380:9:::0;73360:17;:36:::1;:::i;:::-;73440:9;::::0;73339:57;;-1:-1:-1;73411:25:0::1;73339:57:::0;73411:11;:25:::1;:::i;:::-;:38;;73403:70;;;::::0;-1:-1:-1;;;73403:70:0;;9185:2:1;73403:70:0::1;::::0;::::1;9167:21:1::0;9224:2;9204:18;;;9197:30;-1:-1:-1;;;9243:18:1;;;9236:49;9302:18;;73403:70:0::1;8983:343:1::0;73403:70:0::1;73486:9;73481:116;73501:20:::0;;::::1;73481:116;;;73543:42;73553:9;;73563:1;73553:12;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;73567:17;73543:9;:42::i;:::-;73523:3:::0;::::1;::::0;::::1;:::i;:::-;;;;73481:116;;;-1:-1:-1::0;;;;;;73179:483:0:o;75176:88::-;17213:13;:11;:13::i;:::-;75243:7:::1;:13;75253:3:::0;75243:7;:13:::1;:::i;39589:152::-:0;39661:7;39704:27;39723:7;39704:18;:27::i;72971:21::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;75484:110::-;17213:13;:11;:13::i;:::-;75560:16:::1;:26:::0;75484:110::o;35113:242::-;35185:7;-1:-1:-1;;;;;35209:19:0;;35205:69;;35230:44;-1:-1:-1;;;35230:7:0;:44::i;:::-;-1:-1:-1;;;;;;35292:25:0;;;;;:18;:25;;;;;;29272:13;35292:55;;35113:242::o;17975:103::-;17213:13;:11;:13::i;:::-;18040:30:::1;18067:1;18040:18;:30::i;:::-;17975:103::o:0;75084:84::-;17213:13;:11;:13::i;:::-;75149:11:::1;::::0;;-1:-1:-1;;75134:26:0;::::1;75149:11;::::0;;::::1;75148:12;75134:26;::::0;;75084:84::o;75272:92::-;17213:13;:11;:13::i;:::-;75339:5:::1;:17:::0;75272:92::o;38363:104::-;38419:13;38452:7;38445:14;;;;;:::i;45788:234::-;70447:10;45883:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;45883:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;45883:60:0;;;;;;;;;;45959:55;;540:41:1;;;45883:49:0;;70447:10;45959:55;;513:18:1;45959:55:0;;;;;;;45788:234;;:::o;53365:416::-;53540:31;53553:4;53559:2;53563:7;53540:12;:31::i;:::-;-1:-1:-1;;;;;53586:14:0;;;:19;53582:192;;53625:56;53656:4;53662:2;53666:7;53675:5;53625:30;:56::i;:::-;53620:154;;53702:56;-1:-1:-1;;;53702:7:0;:56::i;74760:316::-;74849:13;74897:16;74905:7;74897;:16::i;:::-;74875:113;;;;-1:-1:-1;;;74875:113:0;;12009:2:1;74875:113:0;;;11991:21:1;12048:2;12028:18;;;12021:30;12087:34;12067:18;;;12060:62;-1:-1:-1;;;12138:18:1;;;12131:45;12193:19;;74875:113:0;11807:411:1;74875:113:0;75030:7;75039:18;:7;:16;:18::i;:::-;75013:54;;;;;;;;;:::i;:::-;;;;;;;;;;;;;74999:69;;74760:316;;;:::o;46179:164::-;-1:-1:-1;;;;;46300:25:0;;;46276:4;46300:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;46179:164::o;18233:201::-;17213:13;:11;:13::i;:::-;-1:-1:-1;;;;;18322:22:0;::::1;18314:73;;;::::0;-1:-1:-1;;;18314:73:0;;13617:2:1;18314:73:0::1;::::0;::::1;13599:21:1::0;13656:2;13636:18;;;13629:30;13695:34;13675:18;;;13668:62;-1:-1:-1;;;13746:18:1;;;13739:36;13792:19;;18314:73:0::1;13415:402:1::0;18314:73:0::1;18398:28;18417:8;18398:18;:28::i;46601:368::-:0;46666:11;46751:13;;46741:7;:23;46737:214;;;46785:14;46818:60;-1:-1:-1;46835:26:0;;;;:17;:26;;;;;;;46825:42;;;46818:60;;46869:9;;;:::i;:::-;;;46818:60;;;-1:-1:-1;;;46906:24:0;:29;;-1:-1:-1;46737:214:0;46601:368;;;:::o;72379:165::-;72480:13;72474:4;72467:27;72521:4;72515;72508:18;63812:474;63941:13;63957:16;63965:7;63957;:16::i;:::-;63941:32;;63990:13;:45;;;;-1:-1:-1;70447:10:0;-1:-1:-1;;;;;64007:28:0;;;;63990:45;63986:201;;;64055:44;64072:5;70447:10;46179:164;:::i;64055:44::-;64050:137;;64120:51;-1:-1:-1;;;64120:7:0;:51::i;:::-;64199:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;64199:35:0;-1:-1:-1;;;;;64199:35:0;;;;;;;;;64250:28;;64199:24;;64250:28;;;;;;;63930:356;63812:474;;;:::o;17492:132::-;17400:6;;-1:-1:-1;;;;;17400:6:0;70447:10;17556:23;17548:68;;;;-1:-1:-1;;;17548:68:0;;14165:2:1;17548:68:0;;;14147:21:1;;;14184:18;;;14177:30;14243:34;14223:18;;;14216:62;14295:18;;17548:68:0;13963:356:1;41069:2012:0;41219:26;;;;:17;:26;;;;;;;41345:11;;;41341:1292;;41392:13;;41381:7;:24;41377:77;;41407:47;-1:-1:-1;;;41407:7:0;:47::i;:::-;42011:607;-1:-1:-1;;;42107:9:0;42089:28;;;;:17;:28;;;;;;42163:25;;42011:607;42163:25;-1:-1:-1;;;42215:6:0;:24;42243:1;42215:29;42211:48;;41069:2012;;;:::o;42211:48::-;42551:47;-1:-1:-1;;;42551:7:0;:47::i;:::-;42011:607;;41341:1292;-1:-1:-1;;;42960:6:0;:24;42988:1;42960:29;42956:48;;41069:2012;;;:::o;42956:48::-;43026:47;-1:-1:-1;;;43026:7:0;:47::i;35437:178::-;-1:-1:-1;;;;;35526:25:0;35498:7;35526:25;;;:18;:25;;29410:2;35526:25;;;;;:50;;29272:13;35525:82;;35437:178::o;62894:112::-;62971:27;62981:2;62985:8;62971:27;;;;;;;;;;;;:9;:27::i;18594:191::-;18687:6;;;-1:-1:-1;;;;;18704:17:0;;;-1:-1:-1;;;;;;18704:17:0;;;;;;;18737:40;;18687:6;;;18704:17;18687:6;;18737:40;;18668:16;;18737:40;18657:128;18594:191;:::o;55865:691::-;56049:88;;-1:-1:-1;;;56049:88:0;;56028:4;;-1:-1:-1;;;;;56049:45:0;;;;;:88;;70447:10;;56116:4;;56122:7;;56131:5;;56049:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;56049:88:0;;;;;;;;-1:-1:-1;;56049:88:0;;;;;;;;;;;;:::i;:::-;;;56045:504;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;56332:6;:13;56349:1;56332:18;56328:115;;56371:56;-1:-1:-1;;;56371:7:0;:56::i;:::-;56515:6;56509:13;56500:6;56496:2;56492:15;56485:38;56045:504;-1:-1:-1;;;;;;56208:64:0;-1:-1:-1;;;56208:64:0;;-1:-1:-1;56045:504:0;55865:691;;;;;;:::o;13305:716::-;13361:13;13412:14;13429:17;13440:5;13429:10;:17::i;:::-;13449:1;13429:21;13412:38;;13465:20;13499:6;13488:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;13488:18:0;-1:-1:-1;13465:41:0;-1:-1:-1;13630:28:0;;;13646:2;13630:28;13687:288;-1:-1:-1;;13719:5:0;-1:-1:-1;;;13856:2:0;13845:14;;13840:30;13719:5;13827:44;13917:2;13908:11;;;-1:-1:-1;13938:21:0;13687:288;13938:21;-1:-1:-1;13996:6:0;13305:716;-1:-1:-1;;;13305:716:0:o;62102:708::-;62233:19;62239:2;62243:8;62233:5;:19::i;:::-;-1:-1:-1;;;;;62294:14:0;;;:19;62290:502;;62334:11;62348:13;62396:14;;;62429:242;62460:62;62499:1;62503:2;62507:7;;;;;;62516:5;62460:30;:62::i;:::-;62455:176;;62551:56;-1:-1:-1;;;62551:7:0;:56::i;:::-;62666:3;62658:5;:11;62429:242;;62753:3;62736:13;;:20;62732:44;;62758:18;62773:1;62758:7;:18::i;:::-;62315:477;;62102:708;;;:::o;10171:922::-;10224:7;;-1:-1:-1;;;10302:15:0;;10298:102;;-1:-1:-1;;;10338:15:0;;;-1:-1:-1;10382:2:0;10372:12;10298:102;10427:6;10418:5;:15;10414:102;;10463:6;10454:15;;;-1:-1:-1;10498:2:0;10488:12;10414:102;10543:6;10534:5;:15;10530:102;;10579:6;10570:15;;;-1:-1:-1;10614:2:0;10604:12;10530:102;10659:5;10650;:14;10646:99;;10694:5;10685:14;;;-1:-1:-1;10728:1:0;10718:11;10646:99;10772:5;10763;:14;10759:99;;10807:5;10798:14;;;-1:-1:-1;10841:1:0;10831:11;10759:99;10885:5;10876;:14;10872:99;;10920:5;10911:14;;;-1:-1:-1;10954:1:0;10944:11;10872:99;10998:5;10989;:14;10985:66;;11034:1;11024:11;11079:6;10171:922;-1:-1:-1;;10171:922:0:o;57018:2305::-;57091:20;57114:13;;;57142;;;57138:53;;57157:34;-1:-1:-1;;;57157:7:0;:34::i;:::-;57704:31;;;;:17;:31;;;;;;;;-1:-1:-1;;;;;43866:28:0;;44040:11;44015:23;44011:41;44484:1;44471:15;;44445:24;44441:46;44008:52;43998:63;;57704:173;;;58095:22;;;:18;:22;;;;;:71;;58133:32;58121:45;;58095:71;;;43866:28;58356:13;;;58352:54;;58371:35;-1:-1:-1;;;58371:7:0;:35::i;:::-;58437:23;;;:12;58522:676;58941:7;58897:8;58852:1;58786:25;58723:1;58658;58627:358;59193:3;59180:9;;;;;;:16;58522:676;;-1:-1:-1;59214:13:0;:19;-1:-1:-1;52574:193:0;;;:::o;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;:::-;384:5;150:245;-1:-1:-1;;;150:245:1:o;592: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:683::-;2788:6;2796;2804;2857:2;2845:9;2836:7;2832:23;2828:32;2825:52;;;2873:1;2870;2863:12;2825:52;2909:9;2896:23;2886:33;;2970:2;2959:9;2955:18;2942:32;2993:18;3034:2;3026:6;3023:14;3020:34;;;3050:1;3047;3040:12;3020:34;3088:6;3077:9;3073:22;3063:32;;3133:7;3126:4;3122:2;3118:13;3114:27;3104:55;;3155:1;3152;3145:12;3104:55;3195:2;3182:16;3221:2;3213:6;3210:14;3207:34;;;3237:1;3234;3227:12;3207:34;3290:7;3285:2;3275:6;3272:1;3268:14;3264:2;3260:23;3256:32;3253:45;3250:65;;;3311:1;3308;3301:12;3250:65;3342:2;3338;3334:11;3324:21;;3364:6;3354:16;;;;;2693:683;;;;;:::o;3381:127::-;3442:10;3437:3;3433:20;3430:1;3423:31;3473:4;3470:1;3463:15;3497:4;3494:1;3487:15;3513:632;3578:5;3608:18;3649:2;3641:6;3638:14;3635:40;;;3655:18;;:::i;:::-;3730:2;3724:9;3698:2;3784:15;;-1:-1:-1;;3780:24:1;;;3806:2;3776:33;3772:42;3760:55;;;3830:18;;;3850:22;;;3827:46;3824:72;;;3876:18;;:::i;:::-;3916:10;3912:2;3905:22;3945:6;3936:15;;3975:6;3967;3960:22;4015:3;4006:6;4001:3;3997:16;3994:25;3991:45;;;4032:1;4029;4022:12;3991:45;4082:6;4077:3;4070:4;4062:6;4058:17;4045:44;4137:1;4130:4;4121:6;4113;4109:19;4105:30;4098:41;;;;3513:632;;;;;:::o;4150:451::-;4219:6;4272:2;4260:9;4251:7;4247:23;4243:32;4240:52;;;4288:1;4285;4278:12;4240:52;4328:9;4315:23;4361:18;4353:6;4350:30;4347:50;;;4393:1;4390;4383:12;4347:50;4416:22;;4469:4;4461:13;;4457:27;-1:-1:-1;4447:55:1;;4498:1;4495;4488:12;4447:55;4521:74;4587:7;4582:2;4569:16;4564:2;4560;4556:11;4521:74;:::i;4606:186::-;4665:6;4718:2;4706:9;4697:7;4693:23;4689:32;4686:52;;;4734:1;4731;4724:12;4686:52;4757:29;4776:9;4757:29;:::i;4797:347::-;4862:6;4870;4923:2;4911:9;4902:7;4898:23;4894:32;4891:52;;;4939:1;4936;4929:12;4891:52;4962:29;4981:9;4962:29;:::i;:::-;4952:39;;5041:2;5030:9;5026:18;5013:32;5088:5;5081:13;5074:21;5067:5;5064:32;5054:60;;5110:1;5107;5100:12;5054:60;5133:5;5123:15;;;4797:347;;;;;:::o;5149:667::-;5244:6;5252;5260;5268;5321:3;5309:9;5300:7;5296:23;5292:33;5289:53;;;5338:1;5335;5328:12;5289:53;5361:29;5380:9;5361:29;:::i;:::-;5351:39;;5409:38;5443:2;5432:9;5428:18;5409:38;:::i;:::-;5399:48;;5494:2;5483:9;5479:18;5466:32;5456:42;;5549:2;5538:9;5534:18;5521:32;5576:18;5568:6;5565:30;5562:50;;;5608:1;5605;5598:12;5562:50;5631:22;;5684:4;5676:13;;5672:27;-1:-1:-1;5662:55:1;;5713:1;5710;5703:12;5662:55;5736:74;5802:7;5797:2;5784:16;5779:2;5775;5771:11;5736:74;:::i;:::-;5726:84;;;5149:667;;;;;;;:::o;5821:260::-;5889:6;5897;5950:2;5938:9;5929:7;5925:23;5921:32;5918:52;;;5966:1;5963;5956:12;5918:52;5989:29;6008:9;5989:29;:::i;:::-;5979:39;;6037:38;6071:2;6060:9;6056:18;6037:38;:::i;:::-;6027:48;;5821:260;;;;;:::o;6086:380::-;6165:1;6161:12;;;;6208;;;6229:61;;6283:4;6275:6;6271:17;6261:27;;6229:61;6336:2;6328:6;6325:14;6305:18;6302:38;6299:161;;6382:10;6377:3;6373:20;6370:1;6363:31;6417:4;6414:1;6407:15;6445:4;6442:1;6435:15;6299:161;;6086:380;;;:::o;6824:127::-;6885:10;6880:3;6876:20;6873:1;6866:31;6916:4;6913:1;6906:15;6940:4;6937:1;6930:15;6956:125;7021:9;;;7042:10;;;7039:36;;;7055:18;;:::i;7764:128::-;7831:9;;;7852:11;;;7849:37;;;7866:18;;:::i;7897:168::-;7970:9;;;8001;;8018:15;;;8012:22;;7998:37;7988:71;;8039:18;;:::i;9331:127::-;9392:10;9387:3;9383:20;9380:1;9373:31;9423:4;9420:1;9413:15;9447:4;9444:1;9437:15;9463:135;9502:3;9523:17;;;9520:43;;9543:18;;:::i;:::-;-1:-1:-1;9590:1:1;9579:13;;9463:135::o;9729:545::-;9831:2;9826:3;9823:11;9820:448;;;9867:1;9892:5;9888:2;9881:17;9937:4;9933:2;9923:19;10007:2;9995:10;9991:19;9988:1;9984:27;9978:4;9974:38;10043:4;10031:10;10028:20;10025:47;;;-1:-1:-1;10066:4:1;10025:47;10121:2;10116:3;10112:12;10109:1;10105:20;10099:4;10095:31;10085:41;;10176:82;10194:2;10187:5;10184:13;10176:82;;;10239:17;;;10220:1;10209:13;10176:82;;10450:1352;10576:3;10570:10;10603:18;10595:6;10592:30;10589:56;;;10625:18;;:::i;:::-;10654:97;10744:6;10704:38;10736:4;10730:11;10704:38;:::i;:::-;10698:4;10654:97;:::i;:::-;10806:4;;10870:2;10859:14;;10887:1;10882:663;;;;11589:1;11606:6;11603:89;;;-1:-1:-1;11658:19:1;;;11652:26;11603:89;-1:-1:-1;;10407:1:1;10403:11;;;10399:24;10395:29;10385:40;10431:1;10427:11;;;10382:57;11705:81;;10852:944;;10882:663;9676:1;9669:14;;;9713:4;9700:18;;-1:-1:-1;;10918:20:1;;;11036:236;11050:7;11047:1;11044:14;11036:236;;;11139:19;;;11133:26;11118:42;;11231:27;;;;11199:1;11187:14;;;;11066:19;;11036:236;;;11040:3;11300:6;11291:7;11288:19;11285:201;;;11361:19;;;11355:26;-1:-1:-1;;11444:1:1;11440:14;;;11456:3;11436:24;11432:37;11428:42;11413:58;11398:74;;11285:201;-1:-1:-1;;;;;11532:1:1;11516:14;;;11512:22;11499:36;;-1:-1:-1;10450:1352:1:o;12223:1187::-;12500:3;12529:1;12562:6;12556:13;12592:36;12618:9;12592:36;:::i;:::-;12647:1;12664:18;;;12691:133;;;;12838:1;12833:356;;;;12657:532;;12691:133;-1:-1:-1;;12724:24:1;;12712:37;;12797:14;;12790:22;12778:35;;12769:45;;;-1:-1:-1;12691:133:1;;12833:356;12864:6;12861:1;12854:17;12894:4;12939:2;12936:1;12926:16;12964:1;12978:165;12992:6;12989:1;12986:13;12978:165;;;13070:14;;13057:11;;;13050:35;13113:16;;;;13007:10;;12978:165;;;12982:3;;;13172:6;13167:3;13163:16;13156:23;;12657:532;;;;;13220:6;13214:13;13236:68;13295:8;13290:3;13283:4;13275:6;13271:17;13236:68;:::i;:::-;-1:-1:-1;;;13326:18:1;;13353:22;;;13402:1;13391:13;;12223:1187;-1:-1:-1;;;;12223:1187:1:o;13822:136::-;13861:3;13889:5;13879:39;;13898:18;;:::i;:::-;-1:-1:-1;;;13934:18:1;;13822:136::o;14324:489::-;-1:-1:-1;;;;;14593:15:1;;;14575:34;;14645:15;;14640:2;14625:18;;14618:43;14692:2;14677:18;;14670:34;;;14740:3;14735:2;14720:18;;14713:31;;;14518:4;;14761:46;;14787:19;;14779:6;14761:46;:::i;:::-;14753:54;14324:489;-1:-1:-1;;;;;;14324:489:1:o;14818:249::-;14887:6;14940:2;14928:9;14919:7;14915:23;14911:32;14908:52;;;14956:1;14953;14946:12;14908:52;14988:9;14982:16;15007:30;15031:5;15007:30;:::i

Swarm Source

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