APE Price: $1.18 (+4.01%)

GooPunks (GP)

Overview

TokenID

11

Total Transfers

-

Market

Onchain Market Cap

$0.00

Circulating Supply Market Cap

-
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information

Contract Source Code Verified (Exact Match)

Contract Name:
GooPunks

Compiler Version
v0.8.26+commit.8a97fa7a

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 10 : Main.sol
// SPDX-License-Identifier: FSL-1.1-MIT
// SettleMint.com

pragma solidity ^0.8.24;

import { IERC721A, ERC721A } from "erc721a/contracts/ERC721A.sol";
import { ERC2981 } from "@openzeppelin/contracts/token/common/ERC2981.sol";
import { Ownable } from "@openzeppelin/contracts/access/Ownable.sol";
import { ReentrancyGuard } from "@openzeppelin/contracts/utils/ReentrancyGuard.sol";

interface ITokenDataSource {
    function tokenData(uint256 tokenId) external view returns (uint256, uint256, uint256, uint256, uint256);
}

interface IMainRenderer {
    function getMetadata(string memory name, string memory description, uint256 tokenId, uint256 headId, uint256 bodyId, uint256 clothId, uint256 accessoryId, uint256 backgroundId) external view returns(string memory);
}

contract GooPunks is ERC721A, Ownable, ReentrancyGuard {
    //////////////////////////////////////////////////////////////////
    // CONFIGURATION                                                //
    //////////////////////////////////////////////////////////////////

    uint256 public constant RESERVES = 50; // amount of tokens for the team, or to sell afterwards
    uint256 public constant MAX_PER_TX = 10; // maximum amount of tokens one can mint in one transaction
    uint256 public constant MAX_SUPPLY = 2222; // the total amount of tokens for this NFT
    uint256 public PRICE = 5 ether; // price per token in the public sale

    string public description;

    //////////////////////////////////////////////////////////////////
    // CROWDSALE STORAGE                                            //
    //////////////////////////////////////////////////////////////////

    address private dataSource; 
    address private mainRenderer;
    mapping(address => uint256) private _addressToMinted; // the amount of tokens an address has minted
    bool private _publicSaleOpen = false; // is the public sale open?

    constructor()
        ERC721A("GooPunks", "GP")
        Ownable(msg.sender)
    {}

    //////////////////////////////////////////////////////////////////
    // SET FUNCTIONS                                                //
    //////////////////////////////////////////////////////////////////

    function setPrice(uint256 _newPrice) public onlyOwner {
        PRICE = _newPrice;
    }

    function setDataSource(address _dataSource) public onlyOwner {
        dataSource = _dataSource;
    }

    function setMainRenderer(address _mainRenderer) public onlyOwner {
        mainRenderer = _mainRenderer;
    }

    //////////////////////////////////////////////////////////////////
    // CORE FUNCTIONS                                               //
    //////////////////////////////////////////////////////////////////

    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        (uint256 headId, uint256 bodyId, uint256 clothId, uint256 accessoryId, uint256 backgroundId) = ITokenDataSource(dataSource).tokenData(tokenId);
        string memory tokenUri = IMainRenderer(mainRenderer).getMetadata("GooPunks", description, tokenId, headId, bodyId, clothId, accessoryId, backgroundId);
        return tokenUri;
    }

    //////////////////////////////////////////////////////////////////
    // RESERVE TOKENS                                               //
    //////////////////////////////////////////////////////////////////

    function collectReserves() public onlyOwner {
        require(_totalMinted() == 0, "Reserves already collected");
        _safeMint(owner(), RESERVES);
    }

    function gift(address[] calldata recipients_) external onlyOwner {
        require(_totalMinted() > 0, "Reserves not taken yet");
        uint256 recipients = recipients_.length;
        require(_totalMinted() + recipients <= MAX_SUPPLY, "Excedes max supply");
        for (uint256 i = 0; i < recipients; i++) {
            _safeMint(recipients_[i], 1);
        }
    }

    //////////////////////////////////////////////////////////////////
    // PUBLIC SALE                                                  //
    //////////////////////////////////////////////////////////////////

    function startPublicSale() external onlyOwner {
        _publicSaleOpen = true;
    }

    function mint(uint256 count) public payable nonReentrant {
        require(_publicSaleOpen, "Public sale not active");
        require(_totalMinted() > 0, "Reserves not taken yet");
        require(_totalMinted() + count <= MAX_SUPPLY, "Exceeds max supply");
        require(count < MAX_PER_TX, "Exceeds max per transaction");
        require(count * PRICE == msg.value, "Invalid funds provided");
        _safeMint(_msgSender(), count);
    }

    //////////////////////////////////////////////////////////////////
    // POST SALE MANAGEMENT                                         //
    //////////////////////////////////////////////////////////////////

    function withdraw() public onlyOwner {
        payable(owner()).transfer(address(this).balance);
    }

    //////////////////////////////////////////////////////////////////
    // ERC165                                                       //
    //////////////////////////////////////////////////////////////////

    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC721A) returns (bool) {
        return interfaceId == type(Ownable).interfaceId || interfaceId == type(IERC721A).interfaceId
            || ERC721A.supportsInterface(interfaceId)
            || interfaceId == type(ERC2981).interfaceId || super.supportsInterface(interfaceId);
    }
}

File 2 of 10 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/ReentrancyGuard.sol)

pragma solidity ^0.8.20;

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

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

    uint256 private _status;

    /**
     * @dev Unauthorized reentrant call.
     */
    error ReentrancyGuardReentrantCall();

    constructor() {
        _status = NOT_ENTERED;
    }

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

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be NOT_ENTERED
        if (_status == ENTERED) {
            revert ReentrancyGuardReentrantCall();
        }

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

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

    /**
     * @dev Returns true if the reentrancy guard is currently set to "entered", which indicates there is a
     * `nonReentrant` function in the call stack.
     */
    function _reentrancyGuardEntered() internal view returns (bool) {
        return _status == ENTERED;
    }
}

File 3 of 10 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)

pragma solidity ^0.8.20;

import {Context} from "../utils/Context.sol";

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

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

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

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

    /**
     * @dev Initializes the contract setting the address provided by the deployer as the initial owner.
     */
    constructor(address initialOwner) {
        if (initialOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(initialOwner);
    }

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

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        if (owner() != _msgSender()) {
            revert OwnableUnauthorizedAccount(_msgSender());
        }
    }

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        if (newOwner == address(0)) {
            revert OwnableInvalidOwner(address(0));
        }
        _transferOwnership(newOwner);
    }

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

File 4 of 10 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.20;

import {IERC2981} from "../../interfaces/IERC2981.sol";
import {IERC165, ERC165} from "../../utils/introspection/ERC165.sol";

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

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

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

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

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

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

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(
        uint256 tokenId,
        uint256 salePrice
    ) public view virtual returns (address receiver, uint256 amount) {
        RoyaltyInfo storage _royaltyInfo = _tokenRoyaltyInfo[tokenId];
        address royaltyReceiver = _royaltyInfo.receiver;
        uint96 royaltyFraction = _royaltyInfo.royaltyFraction;

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

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

        return (royaltyReceiver, royaltyAmount);
    }

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

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

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

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

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

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

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

File 5 of 10 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

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

/**
 * @title ERC721A
 *
 * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721)
 * Non-Fungible Token Standard, including the Metadata extension.
 * Optimized for lower gas during batch mints.
 *
 * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...)
 * starting from `_startTokenId()`.
 *
 * The `_sequentialUpTo()` function can be overriden to enable spot mints
 * (i.e. non-consecutive mints) for `tokenId`s greater than `_sequentialUpTo()`.
 *
 * 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;

    // The amount of tokens minted above `_sequentialUpTo()`.
    // We call these spot mints (i.e. non-sequential mints).
    uint256 private _spotMinted;

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

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

        if (_sequentialUpTo() < _startTokenId()) _revert(SequentialUpToTooSmall.selector);
    }

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

    /**
     * @dev Returns the starting token ID for sequential mints.
     *
     * Override this function to change the starting token ID for sequential mints.
     *
     * Note: The value returned must never change after any tokens have been minted.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev Returns the maximum token ID (inclusive) for sequential mints.
     *
     * Override this function to return a value less than 2**256 - 1,
     * but greater than `_startTokenId()`, to enable spot (non-sequential) mints.
     *
     * Note: The value returned must never change after any tokens have been minted.
     */
    function _sequentialUpTo() internal view virtual returns (uint256) {
        return type(uint256).max;
    }

    /**
     * @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 result) {
        // Counter underflow is impossible as `_burnCounter` cannot be incremented
        // more than `_currentIndex + _spotMinted - _startTokenId()` times.
        unchecked {
            // With spot minting, the intermediate `result` can be temporarily negative,
            // and the computation must be unchecked.
            result = _currentIndex - _burnCounter - _startTokenId();
            if (_sequentialUpTo() != type(uint256).max) result += _spotMinted;
        }
    }

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

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

    /**
     * @dev Returns the total number of tokens that are spot-minted.
     */
    function _totalSpotMinted() internal view virtual returns (uint256) {
        return _spotMinted;
    }

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

    /**
     * @dev Returns the packed ownership data of `tokenId`.
     */
    function _packedOwnershipOf(uint256 tokenId) private view returns (uint256 packed) {
        if (_startTokenId() <= tokenId) {
            packed = _packedOwnerships[tokenId];

            if (tokenId > _sequentialUpTo()) {
                if (_packedOwnershipExists(packed)) return packed;
                _revert(OwnerQueryForNonexistentToken.selector);
            }

            // 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 > _sequentialUpTo()) return _packedOwnershipExists(_packedOwnerships[tokenId]);

            if (tokenId < _currentIndex) {
                uint256 packed;
                while ((packed = _packedOwnerships[tokenId]) == 0) --tokenId;
                result = packed & _BITMASK_BURNED == 0;
            }
        }
    }

    /**
     * @dev Returns whether `packed` represents a token that exists.
     */
    function _packedOwnershipExists(uint256 packed) private pure returns (bool result) {
        assembly {
            // The following is equivalent to `owner != address(0) && burned == false`.
            // Symbolically tested.
            result := gt(and(packed, _BITMASK_ADDRESS), and(packed, _BITMASK_BURNED))
        }
    }

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

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

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

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

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

            if (end - 1 > _sequentialUpTo()) _revert(SequentialMintExceedsLimit.selector);

            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)
            );

            if (startTokenId + quantity - 1 > _sequentialUpTo()) _revert(SequentialMintExceedsLimit.selector);

            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);
                // This prevents reentrancy to `_safeMint`.
                // It does not prevent reentrancy to `_safeMintSpot`.
                if (_currentIndex != end) revert();
            }
        }
    }

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

    /**
     * @dev Mints a single token at `tokenId`.
     *
     * Note: A spot-minted `tokenId` that has been burned can be re-minted again.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` must be greater than `_sequentialUpTo()`.
     * - `tokenId` must not exist.
     *
     * Emits a {Transfer} event for each mint.
     */
    function _mintSpot(address to, uint256 tokenId) internal virtual {
        if (tokenId <= _sequentialUpTo()) _revert(SpotMintTokenIdTooSmall.selector);
        uint256 prevOwnershipPacked = _packedOwnerships[tokenId];
        if (_packedOwnershipExists(prevOwnershipPacked)) _revert(TokenAlreadyExists.selector);

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

        // Overflows are incredibly unrealistic.
        // The `numberMinted` for `to` is incremented by 1, and has a max limit of 2**64 - 1.
        // `_spotMinted` is incremented by 1, and has a max limit of 2**256 - 1.
        unchecked {
            // Updates:
            // - `address` to the owner.
            // - `startTimestamp` to the timestamp of minting.
            // - `burned` to `false`.
            // - `nextInitialized` to `true` (as `quantity == 1`).
            _packedOwnerships[tokenId] = _packOwnershipData(
                to,
                _nextInitializedFlag(1) | _nextExtraData(address(0), to, prevOwnershipPacked)
            );

            // Updates:
            // - `balance += 1`.
            // - `numberMinted += 1`.
            //
            // We can directly add to the `balance` and `numberMinted`.
            _packedAddressData[to] += (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);

            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`.
                )
            }

            ++_spotMinted;
        }

        _afterTokenTransfers(address(0), to, tokenId, 1);
    }

    /**
     * @dev Safely mints a single token at `tokenId`.
     *
     * Note: A spot-minted `tokenId` that has been burned can be re-minted again.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}.
     * - `tokenId` must be greater than `_sequentialUpTo()`.
     * - `tokenId` must not exist.
     *
     * See {_mintSpot}.
     *
     * Emits a {Transfer} event.
     */
    function _safeMintSpot(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mintSpot(to, tokenId);

        unchecked {
            if (to.code.length != 0) {
                uint256 currentSpotMinted = _spotMinted;
                if (!_checkContractOnERC721Received(address(0), to, tokenId, _data)) {
                    _revert(TransferToNonERC721ReceiverImplementer.selector);
                }
                // This prevents reentrancy to `_safeMintSpot`.
                // It does not prevent reentrancy to `_safeMint`.
                if (_spotMinted != currentSpotMinted) revert();
            }
        }
    }

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

    // =============================================================
    //                       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 + _spotMinted` 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 6 of 10 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.3.0
// 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();

    /**
     * `_sequentialUpTo()` must be greater than `_startTokenId()`.
     */
    error SequentialUpToTooSmall();

    /**
     * The `tokenId` of a sequential mint exceeds `_sequentialUpTo()`.
     */
    error SequentialMintExceedsLimit();

    /**
     * Spot minting requires a `tokenId` greater than `_sequentialUpTo()`.
     */
    error SpotMintTokenIdTooSmall();

    /**
     * Cannot mint over a token that already exists.
     */
    error TokenAlreadyExists();

    /**
     * The feature is not compatible with spot mints.
     */
    error NotCompatibleWithSpotMints();

    // =============================================================
    //                            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 7 of 10 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/ERC165.sol)

pragma solidity ^0.8.20;

import {IERC165} from "./IERC165.sol";

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

File 8 of 10 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.20;

import {IERC165} from "../utils/introspection/IERC165.sol";

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     *
     * NOTE: ERC-2981 allows setting the royalty to 100% of the price. In that case all the price would be sent to the
     * royalty receiver and 0 tokens to the seller. Contracts dealing with royalty should consider empty transfers.
     */
    function royaltyInfo(
        uint256 tokenId,
        uint256 salePrice
    ) external view returns (address receiver, uint256 royaltyAmount);
}

File 9 of 10 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)

pragma solidity ^0.8.20;

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

    function _contextSuffixLength() internal view virtual returns (uint256) {
        return 0;
    }
}

File 10 of 10 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol)

pragma solidity ^0.8.20;

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

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "remappings": []
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"NotCompatibleWithSpotMints","type":"error"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"OwnableInvalidOwner","type":"error"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"OwnableUnauthorizedAccount","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"ReentrancyGuardReentrantCall","type":"error"},{"inputs":[],"name":"SequentialMintExceedsLimit","type":"error"},{"inputs":[],"name":"SequentialUpToTooSmall","type":"error"},{"inputs":[],"name":"SpotMintTokenIdTooSmall","type":"error"},{"inputs":[],"name":"TokenAlreadyExists","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_PER_TX","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RESERVES","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"collectReserves","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"description","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"recipients_","type":"address[]"}],"name":"gift","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":"address","name":"_dataSource","type":"address"}],"name":"setDataSource","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_mainRenderer","type":"address"}],"name":"setMainRenderer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startPublicSale","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":"result","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"}]

6080604052674563918244f40000600b555f60105f6101000a81548160ff021916908315150217905550348015610034575f80fd5b50336040518060400160405280600881526020017f476f6f50756e6b730000000000000000000000000000000000000000000000008152506040518060400160405280600281526020017f475000000000000000000000000000000000000000000000000000000000000081525081600290816100b191906104cd565b5080600390816100c191906104cd565b506100d061019d60201b60201c565b5f819055506100e361019d60201b60201c565b6100f16101a160201b60201c565b101561010e5761010d63fed8210f60e01b6101c860201b60201c565b5b50505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603610180575f6040517f1e4fbdf700000000000000000000000000000000000000000000000000000000815260040161017791906105db565b60405180910390fd5b61018f816101d060201b60201c565b506001600a819055506105f4565b5f90565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff905090565b805f5260045ffd5b5f60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160095f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f81519050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061030e57607f821691505b602082108103610321576103206102ca565b5b50919050565b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026103837fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82610348565b61038d8683610348565b95508019841693508086168417925050509392505050565b5f819050919050565b5f819050919050565b5f6103d16103cc6103c7846103a5565b6103ae565b6103a5565b9050919050565b5f819050919050565b6103ea836103b7565b6103fe6103f6826103d8565b848454610354565b825550505050565b5f90565b610412610406565b61041d8184846103e1565b505050565b5b81811015610440576104355f8261040a565b600181019050610423565b5050565b601f8211156104855761045681610327565b61045f84610339565b8101602085101561046e578190505b61048261047a85610339565b830182610422565b50505b505050565b5f82821c905092915050565b5f6104a55f198460080261048a565b1980831691505092915050565b5f6104bd8383610496565b9150826002028217905092915050565b6104d682610293565b67ffffffffffffffff8111156104ef576104ee61029d565b5b6104f982546102f7565b610504828285610444565b5f60209050601f831160018114610535575f8415610523578287015190505b61052d85826104b2565b865550610594565b601f19841661054386610327565b5f5b8281101561056a57848901518255600182019150602085019450602081019050610545565b868310156105875784890151610583601f891682610496565b8355505b6001600288020188555050505b505050505050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6105c58261059c565b9050919050565b6105d5816105bb565b82525050565b5f6020820190506105ee5f8301846105cc565b92915050565b612ded806106015f395ff3fe6080604052600436106101cc575f3560e01c806370a08231116100f657806395d89b4111610094578063c87b56dd11610063578063c87b56dd146105bc578063e985e9c5146105f8578063f2fde38b14610634578063f43a22dc1461065c576101cc565b806395d89b4114610532578063a0712d681461055c578063a22cb46514610578578063b88d4fde146105a0576101cc565b8063755e67b1116100d0578063755e67b11461048e5780638d859f3e146104b65780638da5cb5b146104e057806391b7f5ed1461050a576101cc565b806370a0823114610412578063715018a61461044e5780637284e41614610464576101cc565b8063163e1e611161016e5780633ccfd60b1161013d5780633ccfd60b1461037c57806342842e0e146103925780634ddb3961146103ae5780636352211e146103d6576101cc565b8063163e1e61146102e457806318160ddd1461030c57806323b872dd1461033657806332cb6b0c14610352576101cc565b8063081812fc116101aa578063081812fc1461024c5780630922f9c514610288578063095ea7b3146102b25780630c1c972a146102ce576101cc565b806301ffc9a7146101d0578063029877b61461020c57806306fdde0314610222575b5f80fd5b3480156101db575f80fd5b506101f660048036038101906101f19190612034565b610686565b6040516102039190612079565b60405180910390f35b348015610217575f80fd5b506102206107df565b005b34801561022d575f80fd5b50610236610844565b6040516102439190612102565b60405180910390f35b348015610257575f80fd5b50610272600480360381019061026d9190612155565b6108d4565b60405161027f91906121bf565b60405180910390f35b348015610293575f80fd5b5061029c61092d565b6040516102a991906121e7565b60405180910390f35b6102cc60048036038101906102c7919061222a565b610932565b005b3480156102d9575f80fd5b506102e2610942565b005b3480156102ef575f80fd5b5061030a600480360381019061030591906122c9565b610966565b005b348015610317575f80fd5b50610320610a64565b60405161032d91906121e7565b60405180910390f35b610350600480360381019061034b9190612314565b610aaf565b005b34801561035d575f80fd5b50610366610d5a565b60405161037391906121e7565b60405180910390f35b348015610387575f80fd5b50610390610d60565b005b6103ac60048036038101906103a79190612314565b610db5565b005b3480156103b9575f80fd5b506103d460048036038101906103cf9190612364565b610dd4565b005b3480156103e1575f80fd5b506103fc60048036038101906103f79190612155565b610e1f565b60405161040991906121bf565b60405180910390f35b34801561041d575f80fd5b5061043860048036038101906104339190612364565b610e30565b60405161044591906121e7565b60405180910390f35b348015610459575f80fd5b50610462610ec4565b005b34801561046f575f80fd5b50610478610ed7565b6040516104859190612102565b60405180910390f35b348015610499575f80fd5b506104b460048036038101906104af9190612364565b610f63565b005b3480156104c1575f80fd5b506104ca610fae565b6040516104d791906121e7565b60405180910390f35b3480156104eb575f80fd5b506104f4610fb4565b60405161050191906121bf565b60405180910390f35b348015610515575f80fd5b50610530600480360381019061052b9190612155565b610fdc565b005b34801561053d575f80fd5b50610546610fee565b6040516105539190612102565b60405180910390f35b61057660048036038101906105719190612155565b61107e565b005b348015610583575f80fd5b5061059e600480360381019061059991906123b9565b611222565b005b6105ba60048036038101906105b5919061251f565b611328565b005b3480156105c7575f80fd5b506105e260048036038101906105dd9190612155565b611379565b6040516105ef9190612102565b60405180910390f35b348015610603575f80fd5b5061061e6004803603810190610619919061259f565b6114dd565b60405161062b9190612079565b60405180910390f35b34801561063f575f80fd5b5061065a60048036038101906106559190612364565b61156b565b005b348015610667575f80fd5b506106706115ef565b60405161067d91906121e7565b60405180910390f35b5f7f0e083076000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061075057507fc21b8f28000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610760575061075f826115f4565b5b806107c857507f2baae9fd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806107d857506107d7826115f4565b5b9050919050565b6107e7611685565b5f6107f061170c565b14610830576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161082790612627565b60405180910390fd5b61084261083b610fb4565b6032611753565b565b60606002805461085390612672565b80601f016020809104026020016040519081016040528092919081815260200182805461087f90612672565b80156108ca5780601f106108a1576101008083540402835291602001916108ca565b820191905f5260205f20905b8154815290600101906020018083116108ad57829003601f168201915b5050505050905090565b5f6108de82611770565b6108f3576108f263cf4700e460e01b611813565b5b60065f8381526020019081526020015f205f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b603281565b61093e8282600161181b565b5050565b61094a611685565b600160105f6101000a81548160ff021916908315150217905550565b61096e611685565b5f61097761170c565b116109b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109ae906126ec565b60405180910390fd5b5f8282905090506108ae816109ca61170c565b6109d49190612737565b1115610a15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a0c906127b4565b60405180910390fd5b5f5b81811015610a5e57610a51848483818110610a3557610a346127d2565b5b9050602002016020810190610a4a9190612364565b6001611753565b8080600101915050610a17565b50505050565b5f610a6d611945565b6001545f54030390507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610a9f611949565b14610aac57600854810190505b90565b5f610ab982611970565b905073ffffffffffffffffffffffffffffffffffffffff8473ffffffffffffffffffffffffffffffffffffffff161693508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610b2e57610b2d63a114810060e01b611813565b5b5f80610b3984611a7f565b91509150610b4f8187610b4a611aa2565b611aa9565b610b7a57610b6486610b5f611aa2565b6114dd565b610b7957610b786359c896be60e01b611813565b5b5b610b878686866001611aec565b8015610b91575f82555b60055f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8154600190039190508190555060055f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f815460010191905081905550610c5985610c35888887611af2565b7c020000000000000000000000000000000000000000000000000000000017611b19565b60045f8681526020019081526020015f20819055505f7c0200000000000000000000000000000000000000000000000000000000841603610cd5575f6001850190505f60045f8381526020019081526020015f205403610cd3575f548114610cd2578360045f8381526020019081526020015f20819055505b5b505b5f73ffffffffffffffffffffffffffffffffffffffff8673ffffffffffffffffffffffffffffffffffffffff161690508481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a45f8103610d4457610d4363ea553b3460e01b611813565b5b610d518787876001611b43565b50505050505050565b6108ae81565b610d68611685565b610d70610fb4565b73ffffffffffffffffffffffffffffffffffffffff166108fc4790811502906040515f60405180830381858888f19350505050158015610db2573d5f803e3d5ffd5b50565b610dcf83838360405180602001604052805f815250611328565b505050565b610ddc611685565b80600e5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b5f610e2982611970565b9050919050565b5f8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610e7557610e74638f4eb60460e01b611813565b5b67ffffffffffffffff60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054169050919050565b610ecc611685565b610ed55f611b49565b565b600c8054610ee490612672565b80601f0160208091040260200160405190810160405280929190818152602001828054610f1090612672565b8015610f5b5780601f10610f3257610100808354040283529160200191610f5b565b820191905f5260205f20905b815481529060010190602001808311610f3e57829003601f168201915b505050505081565b610f6b611685565b80600d5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600b5481565b5f60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610fe4611685565b80600b8190555050565b606060038054610ffd90612672565b80601f016020809104026020016040519081016040528092919081815260200182805461102990612672565b80156110745780601f1061104b57610100808354040283529160200191611074565b820191905f5260205f20905b81548152906001019060200180831161105757829003601f168201915b5050505050905090565b611086611c0c565b60105f9054906101000a900460ff166110d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110cb90612849565b60405180910390fd5b5f6110dd61170c565b1161111d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611114906126ec565b60405180910390fd5b6108ae8161112961170c565b6111339190612737565b1115611174576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161116b906128b1565b60405180910390fd5b600a81106111b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ae90612919565b60405180910390fd5b34600b54826111c69190612937565b14611206576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111fd906129c2565b60405180910390fd5b611217611211611c52565b82611753565b61121f611c59565b50565b8060075f61122e611aa2565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166112d7611aa2565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161131c9190612079565b60405180910390a35050565b611333848484610aaf565b5f8373ffffffffffffffffffffffffffffffffffffffff163b146113735761135d84848484611c63565b6113725761137163d1a57ed660e01b611813565b5b5b50505050565b60605f805f805f600d5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b4b5b48f886040518263ffffffff1660e01b81526004016113da91906121e7565b60a060405180830381865afa1580156113f5573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061141991906129f4565b945094509450945094505f600e5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638801f363600c8a89898989896040518863ffffffff1660e01b815260040161148b9796959493929190612b48565b5f60405180830381865afa1580156114a5573d5f803e3d5ffd5b505050506040513d5f823e3d601f19601f820116820180604052508101906114cd9190612c6e565b9050809650505050505050919050565b5f60075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b611573611685565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036115e3575f6040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016115da91906121bf565b60405180910390fd5b6115ec81611b49565b50565b600a81565b5f6301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061164e57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061167e5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b61168d611c52565b73ffffffffffffffffffffffffffffffffffffffff166116ab610fb4565b73ffffffffffffffffffffffffffffffffffffffff161461170a576116ce611c52565b6040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040161170191906121bf565b60405180910390fd5b565b5f611715611945565b5f540390507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff611743611949565b1461175057600854810190505b90565b61176c828260405180602001604052805f815250611d8d565b5050565b5f8161177a611945565b1161180d57611787611949565b8211156117af576117a860045f8481526020019081526020015f2054611e03565b905061180e565b5f5482101561180c575f5b5f60045f8581526020019081526020015f2054915081036117e657826117df90612cb5565b92506117ba565b5f7c01000000000000000000000000000000000000000000000000000000008216149150505b5b5b919050565b805f5260045ffd5b5f61182583610e1f565b905081801561186757508073ffffffffffffffffffffffffffffffffffffffff1661184e611aa2565b73ffffffffffffffffffffffffffffffffffffffff1614155b156118935761187d81611878611aa2565b6114dd565b6118925761189163cfb3b94260e01b611813565b5b5b8360065f8581526020019081526020015f205f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550828473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a450505050565b5f90565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff905090565b5f8161197a611945565b11611a695760045f8381526020019081526020015f2054905061199b611949565b8211156119c0576119ab81611e03565b611a7a576119bf63df2d9b4260e01b611813565b5b5f8103611a41575f5482106119e0576119df63df2d9b4260e01b611813565b5b5b60045f836001900393508381526020019081526020015f205490505f810315611a3c575f7c010000000000000000000000000000000000000000000000000000000082160315611a7a57611a3b63df2d9b4260e01b611813565b5b6119e1565b5f7c010000000000000000000000000000000000000000000000000000000082160315611a7a575b611a7963df2d9b4260e01b611813565b5b919050565b5f805f60065f8581526020019081526020015f2090508092508254915050915091565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b5f8060e883901c905060e8611b08868684611e43565b62ffffff16901b9150509392505050565b5f73ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b5f60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160095f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6002600a5403611c48576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600a81905550565b5f33905090565b6001600a81905550565b5f8373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611c88611aa2565b8786866040518563ffffffff1660e01b8152600401611caa9493929190612d2e565b6020604051808303815f875af1925050508015611ce557506040513d601f19601f82011682018060405250810190611ce29190612d8c565b60015b611d3a573d805f8114611d13576040519150601f19603f3d011682016040523d82523d5f602084013e611d18565b606091505b505f815103611d3257611d3163d1a57ed660e01b611813565b5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b611d978383611e4b565b5f8373ffffffffffffffffffffffffffffffffffffffff163b14611dfe575f805490505f83820390505b611dd35f868380600101945086611c63565b611de857611de763d1a57ed660e01b611813565b5b818110611dc157815f5414611dfb575f80fd5b50505b505050565b5f7c0100000000000000000000000000000000000000000000000000000000821673ffffffffffffffffffffffffffffffffffffffff8316119050919050565b5f9392505050565b5f805490505f8203611e6857611e6763b562e8dd60e01b611813565b5b611e745f848385611aec565b611e9283611e835f865f611af2565b611e8c85611fbf565b17611b19565b60045f8381526020019081526020015f2081905550600160406001901b17820260055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505f73ffffffffffffffffffffffffffffffffffffffff8473ffffffffffffffffffffffffffffffffffffffff161690505f8103611f4357611f42632e07630060e01b611813565b5b5f83830190505f839050611f55611949565b600183031115611f7057611f6f6381647e3a60e01b611813565b5b5b80835f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a4818160010191508103611f7157815f81905550505050611fba5f848385611b43565b505050565b5f6001821460e11b9050919050565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61201381611fdf565b811461201d575f80fd5b50565b5f8135905061202e8161200a565b92915050565b5f6020828403121561204957612048611fd7565b5b5f61205684828501612020565b91505092915050565b5f8115159050919050565b6120738161205f565b82525050565b5f60208201905061208c5f83018461206a565b92915050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f6120d482612092565b6120de818561209c565b93506120ee8185602086016120ac565b6120f7816120ba565b840191505092915050565b5f6020820190508181035f83015261211a81846120ca565b905092915050565b5f819050919050565b61213481612122565b811461213e575f80fd5b50565b5f8135905061214f8161212b565b92915050565b5f6020828403121561216a57612169611fd7565b5b5f61217784828501612141565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6121a982612180565b9050919050565b6121b98161219f565b82525050565b5f6020820190506121d25f8301846121b0565b92915050565b6121e181612122565b82525050565b5f6020820190506121fa5f8301846121d8565b92915050565b6122098161219f565b8114612213575f80fd5b50565b5f8135905061222481612200565b92915050565b5f80604083850312156122405761223f611fd7565b5b5f61224d85828601612216565b925050602061225e85828601612141565b9150509250929050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f84011261228957612288612268565b5b8235905067ffffffffffffffff8111156122a6576122a561226c565b5b6020830191508360208202830111156122c2576122c1612270565b5b9250929050565b5f80602083850312156122df576122de611fd7565b5b5f83013567ffffffffffffffff8111156122fc576122fb611fdb565b5b61230885828601612274565b92509250509250929050565b5f805f6060848603121561232b5761232a611fd7565b5b5f61233886828701612216565b935050602061234986828701612216565b925050604061235a86828701612141565b9150509250925092565b5f6020828403121561237957612378611fd7565b5b5f61238684828501612216565b91505092915050565b6123988161205f565b81146123a2575f80fd5b50565b5f813590506123b38161238f565b92915050565b5f80604083850312156123cf576123ce611fd7565b5b5f6123dc85828601612216565b92505060206123ed858286016123a5565b9150509250929050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b612431826120ba565b810181811067ffffffffffffffff821117156124505761244f6123fb565b5b80604052505050565b5f612462611fce565b905061246e8282612428565b919050565b5f67ffffffffffffffff82111561248d5761248c6123fb565b5b612496826120ba565b9050602081019050919050565b828183375f83830152505050565b5f6124c36124be84612473565b612459565b9050828152602081018484840111156124df576124de6123f7565b5b6124ea8482856124a3565b509392505050565b5f82601f83011261250657612505612268565b5b81356125168482602086016124b1565b91505092915050565b5f805f806080858703121561253757612536611fd7565b5b5f61254487828801612216565b945050602061255587828801612216565b935050604061256687828801612141565b925050606085013567ffffffffffffffff81111561258757612586611fdb565b5b612593878288016124f2565b91505092959194509250565b5f80604083850312156125b5576125b4611fd7565b5b5f6125c285828601612216565b92505060206125d385828601612216565b9150509250929050565b7f526573657276657320616c726561647920636f6c6c65637465640000000000005f82015250565b5f612611601a8361209c565b915061261c826125dd565b602082019050919050565b5f6020820190508181035f83015261263e81612605565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061268957607f821691505b60208210810361269c5761269b612645565b5b50919050565b7f5265736572766573206e6f742074616b656e20796574000000000000000000005f82015250565b5f6126d660168361209c565b91506126e1826126a2565b602082019050919050565b5f6020820190508181035f830152612703816126ca565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61274182612122565b915061274c83612122565b92508282019050808211156127645761276361270a565b5b92915050565b7f45786365646573206d617820737570706c7900000000000000000000000000005f82015250565b5f61279e60128361209c565b91506127a98261276a565b602082019050919050565b5f6020820190508181035f8301526127cb81612792565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f5075626c69632073616c65206e6f7420616374697665000000000000000000005f82015250565b5f61283360168361209c565b915061283e826127ff565b602082019050919050565b5f6020820190508181035f83015261286081612827565b9050919050565b7f45786365656473206d617820737570706c7900000000000000000000000000005f82015250565b5f61289b60128361209c565b91506128a682612867565b602082019050919050565b5f6020820190508181035f8301526128c88161288f565b9050919050565b7f45786365656473206d617820706572207472616e73616374696f6e00000000005f82015250565b5f612903601b8361209c565b915061290e826128cf565b602082019050919050565b5f6020820190508181035f830152612930816128f7565b9050919050565b5f61294182612122565b915061294c83612122565b925082820261295a81612122565b915082820484148315176129715761297061270a565b5b5092915050565b7f496e76616c69642066756e64732070726f7669646564000000000000000000005f82015250565b5f6129ac60168361209c565b91506129b782612978565b602082019050919050565b5f6020820190508181035f8301526129d9816129a0565b9050919050565b5f815190506129ee8161212b565b92915050565b5f805f805f60a08688031215612a0d57612a0c611fd7565b5b5f612a1a888289016129e0565b9550506020612a2b888289016129e0565b9450506040612a3c888289016129e0565b9350506060612a4d888289016129e0565b9250506080612a5e888289016129e0565b9150509295509295909350565b7f476f6f50756e6b730000000000000000000000000000000000000000000000005f82015250565b5f612a9f60088361209c565b9150612aaa82612a6b565b602082019050919050565b5f819050815f5260205f209050919050565b5f8154612ad381612672565b612add818661209c565b9450600182165f8114612af75760018114612b0d57612b3f565b60ff198316865281151560200286019350612b3f565b612b1685612ab5565b5f5b83811015612b3757815481890152600182019150602081019050612b18565b808801955050505b50505092915050565b5f610100820190508181035f830152612b6081612a93565b90508181036020830152612b74818a612ac7565b9050612b8360408301896121d8565b612b9060608301886121d8565b612b9d60808301876121d8565b612baa60a08301866121d8565b612bb760c08301856121d8565b612bc460e08301846121d8565b98975050505050505050565b5f67ffffffffffffffff821115612bea57612be96123fb565b5b612bf3826120ba565b9050602081019050919050565b5f612c12612c0d84612bd0565b612459565b905082815260208101848484011115612c2e57612c2d6123f7565b5b612c398482856120ac565b509392505050565b5f82601f830112612c5557612c54612268565b5b8151612c65848260208601612c00565b91505092915050565b5f60208284031215612c8357612c82611fd7565b5b5f82015167ffffffffffffffff811115612ca057612c9f611fdb565b5b612cac84828501612c41565b91505092915050565b5f612cbf82612122565b91505f8203612cd157612cd061270a565b5b600182039050919050565b5f81519050919050565b5f82825260208201905092915050565b5f612d0082612cdc565b612d0a8185612ce6565b9350612d1a8185602086016120ac565b612d23816120ba565b840191505092915050565b5f608082019050612d415f8301876121b0565b612d4e60208301866121b0565b612d5b60408301856121d8565b8181036060830152612d6d8184612cf6565b905095945050505050565b5f81519050612d868161200a565b92915050565b5f60208284031215612da157612da0611fd7565b5b5f612dae84828501612d78565b9150509291505056fea2646970667358221220ee2537a4bbee6c66eb0d53699b1fd1c5821214e837de2d92e8134ae6ab87f54564736f6c634300081a0033

Deployed Bytecode

0x6080604052600436106101cc575f3560e01c806370a08231116100f657806395d89b4111610094578063c87b56dd11610063578063c87b56dd146105bc578063e985e9c5146105f8578063f2fde38b14610634578063f43a22dc1461065c576101cc565b806395d89b4114610532578063a0712d681461055c578063a22cb46514610578578063b88d4fde146105a0576101cc565b8063755e67b1116100d0578063755e67b11461048e5780638d859f3e146104b65780638da5cb5b146104e057806391b7f5ed1461050a576101cc565b806370a0823114610412578063715018a61461044e5780637284e41614610464576101cc565b8063163e1e611161016e5780633ccfd60b1161013d5780633ccfd60b1461037c57806342842e0e146103925780634ddb3961146103ae5780636352211e146103d6576101cc565b8063163e1e61146102e457806318160ddd1461030c57806323b872dd1461033657806332cb6b0c14610352576101cc565b8063081812fc116101aa578063081812fc1461024c5780630922f9c514610288578063095ea7b3146102b25780630c1c972a146102ce576101cc565b806301ffc9a7146101d0578063029877b61461020c57806306fdde0314610222575b5f80fd5b3480156101db575f80fd5b506101f660048036038101906101f19190612034565b610686565b6040516102039190612079565b60405180910390f35b348015610217575f80fd5b506102206107df565b005b34801561022d575f80fd5b50610236610844565b6040516102439190612102565b60405180910390f35b348015610257575f80fd5b50610272600480360381019061026d9190612155565b6108d4565b60405161027f91906121bf565b60405180910390f35b348015610293575f80fd5b5061029c61092d565b6040516102a991906121e7565b60405180910390f35b6102cc60048036038101906102c7919061222a565b610932565b005b3480156102d9575f80fd5b506102e2610942565b005b3480156102ef575f80fd5b5061030a600480360381019061030591906122c9565b610966565b005b348015610317575f80fd5b50610320610a64565b60405161032d91906121e7565b60405180910390f35b610350600480360381019061034b9190612314565b610aaf565b005b34801561035d575f80fd5b50610366610d5a565b60405161037391906121e7565b60405180910390f35b348015610387575f80fd5b50610390610d60565b005b6103ac60048036038101906103a79190612314565b610db5565b005b3480156103b9575f80fd5b506103d460048036038101906103cf9190612364565b610dd4565b005b3480156103e1575f80fd5b506103fc60048036038101906103f79190612155565b610e1f565b60405161040991906121bf565b60405180910390f35b34801561041d575f80fd5b5061043860048036038101906104339190612364565b610e30565b60405161044591906121e7565b60405180910390f35b348015610459575f80fd5b50610462610ec4565b005b34801561046f575f80fd5b50610478610ed7565b6040516104859190612102565b60405180910390f35b348015610499575f80fd5b506104b460048036038101906104af9190612364565b610f63565b005b3480156104c1575f80fd5b506104ca610fae565b6040516104d791906121e7565b60405180910390f35b3480156104eb575f80fd5b506104f4610fb4565b60405161050191906121bf565b60405180910390f35b348015610515575f80fd5b50610530600480360381019061052b9190612155565b610fdc565b005b34801561053d575f80fd5b50610546610fee565b6040516105539190612102565b60405180910390f35b61057660048036038101906105719190612155565b61107e565b005b348015610583575f80fd5b5061059e600480360381019061059991906123b9565b611222565b005b6105ba60048036038101906105b5919061251f565b611328565b005b3480156105c7575f80fd5b506105e260048036038101906105dd9190612155565b611379565b6040516105ef9190612102565b60405180910390f35b348015610603575f80fd5b5061061e6004803603810190610619919061259f565b6114dd565b60405161062b9190612079565b60405180910390f35b34801561063f575f80fd5b5061065a60048036038101906106559190612364565b61156b565b005b348015610667575f80fd5b506106706115ef565b60405161067d91906121e7565b60405180910390f35b5f7f0e083076000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061075057507fc21b8f28000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610760575061075f826115f4565b5b806107c857507f2baae9fd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806107d857506107d7826115f4565b5b9050919050565b6107e7611685565b5f6107f061170c565b14610830576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161082790612627565b60405180910390fd5b61084261083b610fb4565b6032611753565b565b60606002805461085390612672565b80601f016020809104026020016040519081016040528092919081815260200182805461087f90612672565b80156108ca5780601f106108a1576101008083540402835291602001916108ca565b820191905f5260205f20905b8154815290600101906020018083116108ad57829003601f168201915b5050505050905090565b5f6108de82611770565b6108f3576108f263cf4700e460e01b611813565b5b60065f8381526020019081526020015f205f015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b603281565b61093e8282600161181b565b5050565b61094a611685565b600160105f6101000a81548160ff021916908315150217905550565b61096e611685565b5f61097761170c565b116109b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109ae906126ec565b60405180910390fd5b5f8282905090506108ae816109ca61170c565b6109d49190612737565b1115610a15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a0c906127b4565b60405180910390fd5b5f5b81811015610a5e57610a51848483818110610a3557610a346127d2565b5b9050602002016020810190610a4a9190612364565b6001611753565b8080600101915050610a17565b50505050565b5f610a6d611945565b6001545f54030390507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff610a9f611949565b14610aac57600854810190505b90565b5f610ab982611970565b905073ffffffffffffffffffffffffffffffffffffffff8473ffffffffffffffffffffffffffffffffffffffff161693508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614610b2e57610b2d63a114810060e01b611813565b5b5f80610b3984611a7f565b91509150610b4f8187610b4a611aa2565b611aa9565b610b7a57610b6486610b5f611aa2565b6114dd565b610b7957610b786359c896be60e01b611813565b5b5b610b878686866001611aec565b8015610b91575f82555b60055f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8154600190039190508190555060055f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f815460010191905081905550610c5985610c35888887611af2565b7c020000000000000000000000000000000000000000000000000000000017611b19565b60045f8681526020019081526020015f20819055505f7c0200000000000000000000000000000000000000000000000000000000841603610cd5575f6001850190505f60045f8381526020019081526020015f205403610cd3575f548114610cd2578360045f8381526020019081526020015f20819055505b5b505b5f73ffffffffffffffffffffffffffffffffffffffff8673ffffffffffffffffffffffffffffffffffffffff161690508481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a45f8103610d4457610d4363ea553b3460e01b611813565b5b610d518787876001611b43565b50505050505050565b6108ae81565b610d68611685565b610d70610fb4565b73ffffffffffffffffffffffffffffffffffffffff166108fc4790811502906040515f60405180830381858888f19350505050158015610db2573d5f803e3d5ffd5b50565b610dcf83838360405180602001604052805f815250611328565b505050565b610ddc611685565b80600e5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b5f610e2982611970565b9050919050565b5f8073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603610e7557610e74638f4eb60460e01b611813565b5b67ffffffffffffffff60055f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054169050919050565b610ecc611685565b610ed55f611b49565b565b600c8054610ee490612672565b80601f0160208091040260200160405190810160405280929190818152602001828054610f1090612672565b8015610f5b5780601f10610f3257610100808354040283529160200191610f5b565b820191905f5260205f20905b815481529060010190602001808311610f3e57829003601f168201915b505050505081565b610f6b611685565b80600d5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600b5481565b5f60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b610fe4611685565b80600b8190555050565b606060038054610ffd90612672565b80601f016020809104026020016040519081016040528092919081815260200182805461102990612672565b80156110745780601f1061104b57610100808354040283529160200191611074565b820191905f5260205f20905b81548152906001019060200180831161105757829003601f168201915b5050505050905090565b611086611c0c565b60105f9054906101000a900460ff166110d4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110cb90612849565b60405180910390fd5b5f6110dd61170c565b1161111d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611114906126ec565b60405180910390fd5b6108ae8161112961170c565b6111339190612737565b1115611174576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161116b906128b1565b60405180910390fd5b600a81106111b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111ae90612919565b60405180910390fd5b34600b54826111c69190612937565b14611206576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111fd906129c2565b60405180910390fd5b611217611211611c52565b82611753565b61121f611c59565b50565b8060075f61122e611aa2565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166112d7611aa2565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161131c9190612079565b60405180910390a35050565b611333848484610aaf565b5f8373ffffffffffffffffffffffffffffffffffffffff163b146113735761135d84848484611c63565b6113725761137163d1a57ed660e01b611813565b5b5b50505050565b60605f805f805f600d5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b4b5b48f886040518263ffffffff1660e01b81526004016113da91906121e7565b60a060405180830381865afa1580156113f5573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061141991906129f4565b945094509450945094505f600e5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638801f363600c8a89898989896040518863ffffffff1660e01b815260040161148b9796959493929190612b48565b5f60405180830381865afa1580156114a5573d5f803e3d5ffd5b505050506040513d5f823e3d601f19601f820116820180604052508101906114cd9190612c6e565b9050809650505050505050919050565b5f60075f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900460ff16905092915050565b611573611685565b5f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036115e3575f6040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526004016115da91906121bf565b60405180910390fd5b6115ec81611b49565b50565b600a81565b5f6301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061164e57506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061167e5750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b61168d611c52565b73ffffffffffffffffffffffffffffffffffffffff166116ab610fb4565b73ffffffffffffffffffffffffffffffffffffffff161461170a576116ce611c52565b6040517f118cdaa700000000000000000000000000000000000000000000000000000000815260040161170191906121bf565b60405180910390fd5b565b5f611715611945565b5f540390507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff611743611949565b1461175057600854810190505b90565b61176c828260405180602001604052805f815250611d8d565b5050565b5f8161177a611945565b1161180d57611787611949565b8211156117af576117a860045f8481526020019081526020015f2054611e03565b905061180e565b5f5482101561180c575f5b5f60045f8581526020019081526020015f2054915081036117e657826117df90612cb5565b92506117ba565b5f7c01000000000000000000000000000000000000000000000000000000008216149150505b5b5b919050565b805f5260045ffd5b5f61182583610e1f565b905081801561186757508073ffffffffffffffffffffffffffffffffffffffff1661184e611aa2565b73ffffffffffffffffffffffffffffffffffffffff1614155b156118935761187d81611878611aa2565b6114dd565b6118925761189163cfb3b94260e01b611813565b5b5b8360065f8581526020019081526020015f205f015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550828473ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a450505050565b5f90565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff905090565b5f8161197a611945565b11611a695760045f8381526020019081526020015f2054905061199b611949565b8211156119c0576119ab81611e03565b611a7a576119bf63df2d9b4260e01b611813565b5b5f8103611a41575f5482106119e0576119df63df2d9b4260e01b611813565b5b5b60045f836001900393508381526020019081526020015f205490505f810315611a3c575f7c010000000000000000000000000000000000000000000000000000000082160315611a7a57611a3b63df2d9b4260e01b611813565b5b6119e1565b5f7c010000000000000000000000000000000000000000000000000000000082160315611a7a575b611a7963df2d9b4260e01b611813565b5b919050565b5f805f60065f8581526020019081526020015f2090508092508254915050915091565b5f33905090565b5f73ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b5f8060e883901c905060e8611b08868684611e43565b62ffffff16901b9150509392505050565b5f73ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b5f60095f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508160095f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6002600a5403611c48576040517f3ee5aeb500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002600a81905550565b5f33905090565b6001600a81905550565b5f8373ffffffffffffffffffffffffffffffffffffffff1663150b7a02611c88611aa2565b8786866040518563ffffffff1660e01b8152600401611caa9493929190612d2e565b6020604051808303815f875af1925050508015611ce557506040513d601f19601f82011682018060405250810190611ce29190612d8c565b60015b611d3a573d805f8114611d13576040519150601f19603f3d011682016040523d82523d5f602084013e611d18565b606091505b505f815103611d3257611d3163d1a57ed660e01b611813565b5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b611d978383611e4b565b5f8373ffffffffffffffffffffffffffffffffffffffff163b14611dfe575f805490505f83820390505b611dd35f868380600101945086611c63565b611de857611de763d1a57ed660e01b611813565b5b818110611dc157815f5414611dfb575f80fd5b50505b505050565b5f7c0100000000000000000000000000000000000000000000000000000000821673ffffffffffffffffffffffffffffffffffffffff8316119050919050565b5f9392505050565b5f805490505f8203611e6857611e6763b562e8dd60e01b611813565b5b611e745f848385611aec565b611e9283611e835f865f611af2565b611e8c85611fbf565b17611b19565b60045f8381526020019081526020015f2081905550600160406001901b17820260055f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f82825401925050819055505f73ffffffffffffffffffffffffffffffffffffffff8473ffffffffffffffffffffffffffffffffffffffff161690505f8103611f4357611f42632e07630060e01b611813565b5b5f83830190505f839050611f55611949565b600183031115611f7057611f6f6381647e3a60e01b611813565b5b5b80835f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a4818160010191508103611f7157815f81905550505050611fba5f848385611b43565b505050565b5f6001821460e11b9050919050565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61201381611fdf565b811461201d575f80fd5b50565b5f8135905061202e8161200a565b92915050565b5f6020828403121561204957612048611fd7565b5b5f61205684828501612020565b91505092915050565b5f8115159050919050565b6120738161205f565b82525050565b5f60208201905061208c5f83018461206a565b92915050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f6120d482612092565b6120de818561209c565b93506120ee8185602086016120ac565b6120f7816120ba565b840191505092915050565b5f6020820190508181035f83015261211a81846120ca565b905092915050565b5f819050919050565b61213481612122565b811461213e575f80fd5b50565b5f8135905061214f8161212b565b92915050565b5f6020828403121561216a57612169611fd7565b5b5f61217784828501612141565b91505092915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6121a982612180565b9050919050565b6121b98161219f565b82525050565b5f6020820190506121d25f8301846121b0565b92915050565b6121e181612122565b82525050565b5f6020820190506121fa5f8301846121d8565b92915050565b6122098161219f565b8114612213575f80fd5b50565b5f8135905061222481612200565b92915050565b5f80604083850312156122405761223f611fd7565b5b5f61224d85828601612216565b925050602061225e85828601612141565b9150509250929050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f84011261228957612288612268565b5b8235905067ffffffffffffffff8111156122a6576122a561226c565b5b6020830191508360208202830111156122c2576122c1612270565b5b9250929050565b5f80602083850312156122df576122de611fd7565b5b5f83013567ffffffffffffffff8111156122fc576122fb611fdb565b5b61230885828601612274565b92509250509250929050565b5f805f6060848603121561232b5761232a611fd7565b5b5f61233886828701612216565b935050602061234986828701612216565b925050604061235a86828701612141565b9150509250925092565b5f6020828403121561237957612378611fd7565b5b5f61238684828501612216565b91505092915050565b6123988161205f565b81146123a2575f80fd5b50565b5f813590506123b38161238f565b92915050565b5f80604083850312156123cf576123ce611fd7565b5b5f6123dc85828601612216565b92505060206123ed858286016123a5565b9150509250929050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b612431826120ba565b810181811067ffffffffffffffff821117156124505761244f6123fb565b5b80604052505050565b5f612462611fce565b905061246e8282612428565b919050565b5f67ffffffffffffffff82111561248d5761248c6123fb565b5b612496826120ba565b9050602081019050919050565b828183375f83830152505050565b5f6124c36124be84612473565b612459565b9050828152602081018484840111156124df576124de6123f7565b5b6124ea8482856124a3565b509392505050565b5f82601f83011261250657612505612268565b5b81356125168482602086016124b1565b91505092915050565b5f805f806080858703121561253757612536611fd7565b5b5f61254487828801612216565b945050602061255587828801612216565b935050604061256687828801612141565b925050606085013567ffffffffffffffff81111561258757612586611fdb565b5b612593878288016124f2565b91505092959194509250565b5f80604083850312156125b5576125b4611fd7565b5b5f6125c285828601612216565b92505060206125d385828601612216565b9150509250929050565b7f526573657276657320616c726561647920636f6c6c65637465640000000000005f82015250565b5f612611601a8361209c565b915061261c826125dd565b602082019050919050565b5f6020820190508181035f83015261263e81612605565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f600282049050600182168061268957607f821691505b60208210810361269c5761269b612645565b5b50919050565b7f5265736572766573206e6f742074616b656e20796574000000000000000000005f82015250565b5f6126d660168361209c565b91506126e1826126a2565b602082019050919050565b5f6020820190508181035f830152612703816126ca565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f61274182612122565b915061274c83612122565b92508282019050808211156127645761276361270a565b5b92915050565b7f45786365646573206d617820737570706c7900000000000000000000000000005f82015250565b5f61279e60128361209c565b91506127a98261276a565b602082019050919050565b5f6020820190508181035f8301526127cb81612792565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f5075626c69632073616c65206e6f7420616374697665000000000000000000005f82015250565b5f61283360168361209c565b915061283e826127ff565b602082019050919050565b5f6020820190508181035f83015261286081612827565b9050919050565b7f45786365656473206d617820737570706c7900000000000000000000000000005f82015250565b5f61289b60128361209c565b91506128a682612867565b602082019050919050565b5f6020820190508181035f8301526128c88161288f565b9050919050565b7f45786365656473206d617820706572207472616e73616374696f6e00000000005f82015250565b5f612903601b8361209c565b915061290e826128cf565b602082019050919050565b5f6020820190508181035f830152612930816128f7565b9050919050565b5f61294182612122565b915061294c83612122565b925082820261295a81612122565b915082820484148315176129715761297061270a565b5b5092915050565b7f496e76616c69642066756e64732070726f7669646564000000000000000000005f82015250565b5f6129ac60168361209c565b91506129b782612978565b602082019050919050565b5f6020820190508181035f8301526129d9816129a0565b9050919050565b5f815190506129ee8161212b565b92915050565b5f805f805f60a08688031215612a0d57612a0c611fd7565b5b5f612a1a888289016129e0565b9550506020612a2b888289016129e0565b9450506040612a3c888289016129e0565b9350506060612a4d888289016129e0565b9250506080612a5e888289016129e0565b9150509295509295909350565b7f476f6f50756e6b730000000000000000000000000000000000000000000000005f82015250565b5f612a9f60088361209c565b9150612aaa82612a6b565b602082019050919050565b5f819050815f5260205f209050919050565b5f8154612ad381612672565b612add818661209c565b9450600182165f8114612af75760018114612b0d57612b3f565b60ff198316865281151560200286019350612b3f565b612b1685612ab5565b5f5b83811015612b3757815481890152600182019150602081019050612b18565b808801955050505b50505092915050565b5f610100820190508181035f830152612b6081612a93565b90508181036020830152612b74818a612ac7565b9050612b8360408301896121d8565b612b9060608301886121d8565b612b9d60808301876121d8565b612baa60a08301866121d8565b612bb760c08301856121d8565b612bc460e08301846121d8565b98975050505050505050565b5f67ffffffffffffffff821115612bea57612be96123fb565b5b612bf3826120ba565b9050602081019050919050565b5f612c12612c0d84612bd0565b612459565b905082815260208101848484011115612c2e57612c2d6123f7565b5b612c398482856120ac565b509392505050565b5f82601f830112612c5557612c54612268565b5b8151612c65848260208601612c00565b91505092915050565b5f60208284031215612c8357612c82611fd7565b5b5f82015167ffffffffffffffff811115612ca057612c9f611fdb565b5b612cac84828501612c41565b91505092915050565b5f612cbf82612122565b91505f8203612cd157612cd061270a565b5b600182039050919050565b5f81519050919050565b5f82825260208201905092915050565b5f612d0082612cdc565b612d0a8185612ce6565b9350612d1a8185602086016120ac565b612d23816120ba565b840191505092915050565b5f608082019050612d415f8301876121b0565b612d4e60208301866121b0565b612d5b60408301856121d8565b8181036060830152612d6d8184612cf6565b905095945050505050565b5f81519050612d868161200a565b92915050565b5f60208284031215612da157612da0611fd7565b5b5f612dae84828501612d78565b9150509291505056fea2646970667358221220ee2537a4bbee6c66eb0d53699b1fd1c5821214e837de2d92e8134ae6ab87f54564736f6c634300081a0033

[ 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.