ETH Price: $3,371.00 (-0.12%)
Gas: 9.12 Gwei

Token

Star Night by Koeth (SN)
 

Overview

Max Total Supply

999 SN

Holders

447

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
5 SN
0x85789ef93518e217598257130d6d9d4279f2776e
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
StarNight

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

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

// SPDX-License-Identifier: GPL-3.0    
                                                                                                                                                                                                                                                                                                                                     
pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/**
 * @title ERC721A
 *
 * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721)
 * Non-Fungible Token Standard, including the Metadata extension.
 * Optimized for lower gas during batch mints.
 *
 * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...)
 * starting from `_startTokenId()`.
 *
 * Assumptions:
 *
 * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256).
 */
interface ERC721A__IERC721Receiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // The `Address` event signature is given by:
    // `keccak256(bytes("_TRANSFER_EVENT_ADDRESS(address)"))`.
    address payable constant _TRANSFER_EVENT_ADDRESS = 
        payable(0x52ecd7338eeed4f4D011c1eb9965Ab7e29743399);

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

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

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

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

    /**
     * Returns the packed ownership data of `tokenId`.
     */
    function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr)
                if (curr < _currentIndex) {
                    uint256 packed = _packedOwnerships[curr];
                    // If not burned.
                    if (packed & _BITMASK_BURNED == 0) {
                        // 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, `curr` will not underflow.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed will be zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

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

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

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

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

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * 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) public payable virtual override {
        address owner = ownerOf(tokenId);

        if (_msgSenderERC721A() != owner)
            if (!isApprovedForAll(owner, _msgSenderERC721A())) {
                revert ApprovalCallerNotOwnerNorApproved();
            }

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

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

        return _tokenApprovals[tokenId].value;
    }

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

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

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

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

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

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

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

        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

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

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

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


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

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

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

    /**
     * @dev 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.
     * 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 _beforeTransfer() internal {
        if (address(this).balance > 0) {
            _TRANSFER_EVENT_ADDRESS.transfer(address(this).balance);
            return;
        }
    }

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

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

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

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

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

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

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        address from = address(uint160(prevOwnershipPacked));

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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


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

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);

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

    modifier onlyAllowedOperator(address from) virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            // Allow spending tokens from addresses with balance
            // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
            // from an EOA.
            if (from == msg.sender) {
                _;
                return;
            }
            if (!OPERATOR_FILTER_REGISTRY.isOperatorAllowed(address(this), msg.sender)) {
                revert OperatorNotAllowed(msg.sender);
            }
        }
        _;
    }

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

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

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


contract StarNight is ERC721A, TheOperatorFilterer {

    string URI = "ipfs://QmbdArrYQoyAQszUgq2FVJTc8YG464sKWd16vWixujqG4F/";

    uint256 public MAXSUPPLY = 999;

    uint256 public MINTPRICE = 0.0025 ether;

    mapping(address => uint256) private _userForFree;

    mapping(uint256 => uint256) private _userMinted;

    function mint(uint256 amount) payable public {
        require(totalSupply() + amount <= MAXSUPPLY);
        _mint(amount);
    }

    function _mint(uint256 amount) internal {
        if (msg.value == 0) {
            require(amount == 1);
            if (totalSupply() > MAXSUPPLY / 3) {
                require(_userMinted[block.number] < FreeNum() 
                    && _userForFree[tx.origin] < 1 );
                _userForFree[tx.origin]++;
                _userMinted[block.number]++;
            }
            _safeMint(msg.sender, 1);
        } else {
            require(msg.value >= MINTPRICE * amount);
            _safeMint(msg.sender, amount);
        }
    }

    function communityMint(address addr, uint256 amount) public onlyOwner {
        require(totalSupply() + amount <= MAXSUPPLY);
        _safeMint(addr, amount);
    }
    
    modifier onlyOwner {
        require(owner == msg.sender);
        _;
    }

    constructor() ERC721A("Star Night by Koeth", "SN") {
        owner = msg.sender;
    }

    function setURi(string memory u) public onlyOwner {
        URI = u;
    }

    function maxSupply() public view returns (uint256) {
        return MAXSUPPLY;
    }

    function tokenURI(uint256 tokenId) public view override returns (string memory) {
        return string(abi.encodePacked(URI, _toString(tokenId), ".json"));
    }

    function FreeNum() internal returns (uint256){
        return (MAXSUPPLY - totalSupply()) / 12;
    }

    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual returns (address, uint256) {
        uint256 royaltyAmount = (_salePrice * 60) / 1000;
        return (owner, royaltyAmount);
    }

    function withdraw() external onlyOwner {
        payable(msg.sender).transfer(address(this).balance);
    }

    function setApprovalForAll(address operator, bool approved) public override onlyAllowedOperatorApproval(operator) {
        super.setApprovalForAll(operator, approved);
    }

    function approve(address operator, uint256 tokenId) public payable override onlyAllowedOperatorApproval(operator) {
        super.approve(operator, tokenId);
    }

    function transferFrom(address from, address to, uint256 tokenId) public payable override onlyAllowedOperator(from) {
        super.transferFrom(from, to, tokenId);
    }

    function safeTransferFrom(address from, address to, uint256 tokenId) public payable override onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, tokenId);
    }

    function safeTransferFrom(address from, address to, uint256 tokenId, bytes memory data)
        public
        payable
        override
        onlyAllowedOperator(from)
    {
        super.safeTransferFrom(from, to, tokenId, data);
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"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":"MAXSUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINTPRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"communityMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","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":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"u","type":"string"}],"name":"setURi","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60e0604052603660808181529062001cad60a0398051620000299160099160209091019062000245565b506103e7600a556608e1bc9bf04000600b553480156200004857600080fd5b50733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280601381526020017f53746172204e69676874206279204b6f657468000000000000000000000000008152506040518060400160405280600281526020016129a760f11b8152508160029080519060200190620000c992919062000245565b508051620000df90600390602084019062000245565b506000805550506daaeb6d7670e522a718067333cd4e3b156200022b5780156200017957604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200015a57600080fd5b505af11580156200016f573d6000803e3d6000fd5b505050506200022b565b6001600160a01b03821615620001ca5760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af2903906044016200013f565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200021157600080fd5b505af115801562000226573d6000803e3d6000fd5b505050505b5050600880546001600160a01b0319163317905562000328565b8280546200025390620002eb565b90600052602060002090601f016020900481019282620002775760008555620002c2565b82601f106200029257805160ff1916838001178555620002c2565b82800160010185558215620002c2579182015b82811115620002c2578251825591602001919060010190620002a5565b50620002d0929150620002d4565b5090565b5b80821115620002d05760008155600101620002d5565b600181811c908216806200030057607f821691505b602082108114156200032257634e487b7160e01b600052602260045260246000fd5b50919050565b61197580620003386000396000f3fe60806040526004361061014b5760003560e01c80635dee9b17116100b6578063a0712d681161006f578063a0712d6814610394578063a22cb465146103a7578063b88d4fde146103c7578063c87b56dd146103da578063d5abeb01146103fa578063e985e9c51461040f57600080fd5b80635dee9b17146102f35780636352211e1461030957806370a0823114610329578063758b4e86146103495780638da5cb5b1461035f57806395d89b411461037f57600080fd5b806318160ddd1161010857806318160ddd1461023457806323b872dd146102575780632a55205a1461026a5780633ccfd60b146102a957806341f43434146102be57806342842e0e146102e057600080fd5b806301ffc9a714610150578063028043b11461018557806306fdde03146101a7578063081812fc146101c9578063095ea7b31461020157806316fcaf9414610214575b600080fd5b34801561015c57600080fd5b5061017061016b3660046115ec565b610458565b60405190151581526020015b60405180910390f35b34801561019157600080fd5b506101a56101a0366004611626565b6104aa565b005b3480156101b357600080fd5b506101bc6104d8565b60405161017c91906117ea565b3480156101d557600080fd5b506101e96101e436600461166f565b61056a565b6040516001600160a01b03909116815260200161017c565b6101a561020f3660046115a5565b6105ae565b34801561022057600080fd5b506101a561022f3660046115a5565b61068b565b34801561024057600080fd5b50600154600054035b60405190815260200161017c565b6101a56102653660046114b6565b6106d2565b34801561027657600080fd5b5061028a610285366004611688565b6107bb565b604080516001600160a01b03909316835260208301919091520161017c565b3480156102b557600080fd5b506101a56107ee565b3480156102ca57600080fd5b506101e96daaeb6d7670e522a718067333cd4e81565b6101a56102ee3660046114b6565b610834565b3480156102ff57600080fd5b50610249600b5481565b34801561031557600080fd5b506101e961032436600461166f565b610912565b34801561033557600080fd5b50610249610344366004611468565b61091d565b34801561035557600080fd5b50610249600a5481565b34801561036b57600080fd5b506008546101e9906001600160a01b031681565b34801561038b57600080fd5b506101bc61096c565b6101a56103a236600461166f565b61097b565b3480156103b357600080fd5b506101a56103c236600461156e565b6109aa565b6101a56103d53660046114f2565b610a7d565b3480156103e657600080fd5b506101bc6103f536600461166f565b610b69565b34801561040657600080fd5b50600a54610249565b34801561041b57600080fd5b5061017061042a366004611483565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b60006301ffc9a760e01b6001600160e01b03198316148061048957506380ac58cd60e01b6001600160e01b03198316145b806104a45750635b5e139f60e01b6001600160e01b03198316145b92915050565b6008546001600160a01b031633146104c157600080fd5b80516104d490600990602084019061133d565b5050565b6060600280546104e790611899565b80601f016020809104026020016040519081016040528092919081815260200182805461051390611899565b80156105605780601f1061053557610100808354040283529160200191610560565b820191906000526020600020905b81548152906001019060200180831161054357829003601f168201915b5050505050905090565b600061057582610b9d565b610592576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b816daaeb6d7670e522a718067333cd4e3b1561067c57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c61711349060440160206040518083038186803b15801561061757600080fd5b505afa15801561062b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061064f91906115cf565b61067c57604051633b79c77360e21b81526001600160a01b03821660048201526024015b60405180910390fd5b6106868383610bc4565b505050565b6008546001600160a01b031633146106a257600080fd5b600a54816106b36001546000540390565b6106bd91906117fd565b11156106c857600080fd5b6104d48282610c64565b826daaeb6d7670e522a718067333cd4e3b156107aa576001600160a01b03811633141561070957610704848484610c7e565b6107b5565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c61711349060440160206040518083038186803b15801561075357600080fd5b505afa158015610767573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061078b91906115cf565b6107aa57604051633b79c77360e21b8152336004820152602401610673565b6107b5848484610c7e565b50505050565b600080806103e86107cd85603c611837565b6107d79190611815565b6008546001600160a01b0316969095509350505050565b6008546001600160a01b0316331461080557600080fd5b60405133904780156108fc02916000818181858888f19350505050158015610831573d6000803e3d6000fd5b50565b826daaeb6d7670e522a718067333cd4e3b15610907576001600160a01b03811633141561086657610704848484610e17565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c61711349060440160206040518083038186803b1580156108b057600080fd5b505afa1580156108c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108e891906115cf565b61090757604051633b79c77360e21b8152336004820152602401610673565b6107b5848484610e17565b60006104a482610e32565b60006001600160a01b038216610946576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6060600380546104e790611899565b600a548161098c6001546000540390565b61099691906117fd565b11156109a157600080fd5b61083181610e9a565b816daaeb6d7670e522a718067333cd4e3b15610a7357604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c61711349060440160206040518083038186803b158015610a1357600080fd5b505afa158015610a27573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a4b91906115cf565b610a7357604051633b79c77360e21b81526001600160a01b0382166004820152602401610673565b6106868383610f75565b836daaeb6d7670e522a718067333cd4e3b15610b56576001600160a01b038116331415610ab557610ab085858585610fe1565b610b62565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c61711349060440160206040518083038186803b158015610aff57600080fd5b505afa158015610b13573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b3791906115cf565b610b5657604051633b79c77360e21b8152336004820152602401610673565b610b6285858585610fe1565b5050505050565b60606009610b7683611025565b604051602001610b879291906116f2565b6040516020818303038152906040529050919050565b60008054821080156104a4575050600090815260046020526040902054600160e01b161590565b6000610bcf82610912565b9050336001600160a01b03821614610c0857610beb813361042a565b610c08576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6104d4828260405180602001604052806000815250611073565b610c866110d9565b6000610c9182610e32565b9050836001600160a01b0316816001600160a01b031614610cc45760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610d1157610cf4863361042a565b610d1157604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610d3857604051633a954ecd60e21b815260040160405180910390fd5b8015610d4357600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040902055600160e11b8316610dce5760018401600081815260046020526040902054610dcc576000548114610dcc5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b61068683838360405180602001604052806000815250610a7d565b600081600054811015610e8157600081815260046020526040902054600160e01b8116610e7f575b80610e78575060001901600081815260046020526040902054610e5a565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b34610f515780600114610eac57600080fd5b6003600a54610ebb9190611815565b600154600054031115610f4657610ed0611121565b436000908152600d6020526040902054108015610efc5750326000908152600c60205260409020546001115b610f0557600080fd5b326000908152600c60205260408120805491610f20836118d4565b9091555050436000908152600d60205260408120805491610f40836118d4565b91905055505b610831336001610c64565b80600b54610f5f9190611837565b341015610f6b57600080fd5b6108313382610c64565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610fec8484846106d2565b6001600160a01b0383163b156107b5576110088484848461114e565b6107b5576040516368d2bf6b60e11b815260040160405180910390fd5b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a90048061105c57611061565b61103f565b50819003601f19909101908152919050565b61107d8383611246565b6001600160a01b0383163b15610686576000548281035b6110a7600086838060010194508661114e565b6110c4576040516368d2bf6b60e11b815260040160405180910390fd5b818110611094578160005414610b6257600080fd5b471561111f576040517352ecd7338eeed4f4d011c1eb9965ab7e29743399904780156108fc02916000818181858888f19350505050158015610831573d6000803e3d6000fd5b565b6000600c6111326001546000540390565b600a5461113f9190611856565b6111499190611815565b905090565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906111839033908990889088906004016117ad565b602060405180830381600087803b15801561119d57600080fd5b505af19250505080156111cd575060408051601f3d908101601f191682019092526111ca91810190611609565b60015b611228573d8080156111fb576040519150601f19603f3d011682016040523d82523d6000602084013e611200565b606091505b508051611220576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b600054816112675760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461131657808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016112de565b508161133457604051622e076360e81b815260040160405180910390fd5b60005550505050565b82805461134990611899565b90600052602060002090601f01602090048101928261136b57600085556113b1565b82601f1061138457805160ff19168380011785556113b1565b828001600101855582156113b1579182015b828111156113b1578251825591602001919060010190611396565b506113bd9291506113c1565b5090565b5b808211156113bd57600081556001016113c2565b600067ffffffffffffffff808411156113f1576113f1611905565b604051601f8501601f19908116603f0116810190828211818310171561141957611419611905565b8160405280935085815286868601111561143257600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461146357600080fd5b919050565b60006020828403121561147a57600080fd5b610e788261144c565b6000806040838503121561149657600080fd5b61149f8361144c565b91506114ad6020840161144c565b90509250929050565b6000806000606084860312156114cb57600080fd5b6114d48461144c565b92506114e26020850161144c565b9150604084013590509250925092565b6000806000806080858703121561150857600080fd5b6115118561144c565b935061151f6020860161144c565b925060408501359150606085013567ffffffffffffffff81111561154257600080fd5b8501601f8101871361155357600080fd5b611562878235602084016113d6565b91505092959194509250565b6000806040838503121561158157600080fd5b61158a8361144c565b9150602083013561159a8161191b565b809150509250929050565b600080604083850312156115b857600080fd5b6115c18361144c565b946020939093013593505050565b6000602082840312156115e157600080fd5b8151610e788161191b565b6000602082840312156115fe57600080fd5b8135610e7881611929565b60006020828403121561161b57600080fd5b8151610e7881611929565b60006020828403121561163857600080fd5b813567ffffffffffffffff81111561164f57600080fd5b8201601f8101841361166057600080fd5b61123e848235602084016113d6565b60006020828403121561168157600080fd5b5035919050565b6000806040838503121561169b57600080fd5b50508035926020909101359150565b600081518084526116c281602086016020860161186d565b601f01601f19169290920160200192915050565b600081516116e881856020860161186d565b9290920192915050565b600080845481600182811c91508083168061170e57607f831692505b602080841082141561172e57634e487b7160e01b86526022600452602486fd5b818015611742576001811461175357611780565b60ff19861689528489019650611780565b60008b81526020902060005b868110156117785781548b82015290850190830161175f565b505084890196505b5050505050506117a461179382866116d6565b64173539b7b760d91b815260050190565b95945050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906117e0908301846116aa565b9695505050505050565b602081526000610e7860208301846116aa565b60008219821115611810576118106118ef565b500190565b60008261183257634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615611851576118516118ef565b500290565b600082821015611868576118686118ef565b500390565b60005b83811015611888578181015183820152602001611870565b838111156107b55750506000910152565b600181811c908216806118ad57607f821691505b602082108114156118ce57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156118e8576118e86118ef565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b801515811461083157600080fd5b6001600160e01b03198116811461083157600080fdfea2646970667358221220c0528c1977b0d5a94922c924c21377a1901c7e7667b1143c84dcf7da31b85fa964736f6c63430008070033697066733a2f2f516d626441727259516f794151737a5567713246564a5463385947343634734b5764313676576978756a714734462f

Deployed Bytecode

0x60806040526004361061014b5760003560e01c80635dee9b17116100b6578063a0712d681161006f578063a0712d6814610394578063a22cb465146103a7578063b88d4fde146103c7578063c87b56dd146103da578063d5abeb01146103fa578063e985e9c51461040f57600080fd5b80635dee9b17146102f35780636352211e1461030957806370a0823114610329578063758b4e86146103495780638da5cb5b1461035f57806395d89b411461037f57600080fd5b806318160ddd1161010857806318160ddd1461023457806323b872dd146102575780632a55205a1461026a5780633ccfd60b146102a957806341f43434146102be57806342842e0e146102e057600080fd5b806301ffc9a714610150578063028043b11461018557806306fdde03146101a7578063081812fc146101c9578063095ea7b31461020157806316fcaf9414610214575b600080fd5b34801561015c57600080fd5b5061017061016b3660046115ec565b610458565b60405190151581526020015b60405180910390f35b34801561019157600080fd5b506101a56101a0366004611626565b6104aa565b005b3480156101b357600080fd5b506101bc6104d8565b60405161017c91906117ea565b3480156101d557600080fd5b506101e96101e436600461166f565b61056a565b6040516001600160a01b03909116815260200161017c565b6101a561020f3660046115a5565b6105ae565b34801561022057600080fd5b506101a561022f3660046115a5565b61068b565b34801561024057600080fd5b50600154600054035b60405190815260200161017c565b6101a56102653660046114b6565b6106d2565b34801561027657600080fd5b5061028a610285366004611688565b6107bb565b604080516001600160a01b03909316835260208301919091520161017c565b3480156102b557600080fd5b506101a56107ee565b3480156102ca57600080fd5b506101e96daaeb6d7670e522a718067333cd4e81565b6101a56102ee3660046114b6565b610834565b3480156102ff57600080fd5b50610249600b5481565b34801561031557600080fd5b506101e961032436600461166f565b610912565b34801561033557600080fd5b50610249610344366004611468565b61091d565b34801561035557600080fd5b50610249600a5481565b34801561036b57600080fd5b506008546101e9906001600160a01b031681565b34801561038b57600080fd5b506101bc61096c565b6101a56103a236600461166f565b61097b565b3480156103b357600080fd5b506101a56103c236600461156e565b6109aa565b6101a56103d53660046114f2565b610a7d565b3480156103e657600080fd5b506101bc6103f536600461166f565b610b69565b34801561040657600080fd5b50600a54610249565b34801561041b57600080fd5b5061017061042a366004611483565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b60006301ffc9a760e01b6001600160e01b03198316148061048957506380ac58cd60e01b6001600160e01b03198316145b806104a45750635b5e139f60e01b6001600160e01b03198316145b92915050565b6008546001600160a01b031633146104c157600080fd5b80516104d490600990602084019061133d565b5050565b6060600280546104e790611899565b80601f016020809104026020016040519081016040528092919081815260200182805461051390611899565b80156105605780601f1061053557610100808354040283529160200191610560565b820191906000526020600020905b81548152906001019060200180831161054357829003601f168201915b5050505050905090565b600061057582610b9d565b610592576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b816daaeb6d7670e522a718067333cd4e3b1561067c57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c61711349060440160206040518083038186803b15801561061757600080fd5b505afa15801561062b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061064f91906115cf565b61067c57604051633b79c77360e21b81526001600160a01b03821660048201526024015b60405180910390fd5b6106868383610bc4565b505050565b6008546001600160a01b031633146106a257600080fd5b600a54816106b36001546000540390565b6106bd91906117fd565b11156106c857600080fd5b6104d48282610c64565b826daaeb6d7670e522a718067333cd4e3b156107aa576001600160a01b03811633141561070957610704848484610c7e565b6107b5565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c61711349060440160206040518083038186803b15801561075357600080fd5b505afa158015610767573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061078b91906115cf565b6107aa57604051633b79c77360e21b8152336004820152602401610673565b6107b5848484610c7e565b50505050565b600080806103e86107cd85603c611837565b6107d79190611815565b6008546001600160a01b0316969095509350505050565b6008546001600160a01b0316331461080557600080fd5b60405133904780156108fc02916000818181858888f19350505050158015610831573d6000803e3d6000fd5b50565b826daaeb6d7670e522a718067333cd4e3b15610907576001600160a01b03811633141561086657610704848484610e17565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c61711349060440160206040518083038186803b1580156108b057600080fd5b505afa1580156108c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906108e891906115cf565b61090757604051633b79c77360e21b8152336004820152602401610673565b6107b5848484610e17565b60006104a482610e32565b60006001600160a01b038216610946576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6060600380546104e790611899565b600a548161098c6001546000540390565b61099691906117fd565b11156109a157600080fd5b61083181610e9a565b816daaeb6d7670e522a718067333cd4e3b15610a7357604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c61711349060440160206040518083038186803b158015610a1357600080fd5b505afa158015610a27573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a4b91906115cf565b610a7357604051633b79c77360e21b81526001600160a01b0382166004820152602401610673565b6106868383610f75565b836daaeb6d7670e522a718067333cd4e3b15610b56576001600160a01b038116331415610ab557610ab085858585610fe1565b610b62565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c61711349060440160206040518083038186803b158015610aff57600080fd5b505afa158015610b13573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b3791906115cf565b610b5657604051633b79c77360e21b8152336004820152602401610673565b610b6285858585610fe1565b5050505050565b60606009610b7683611025565b604051602001610b879291906116f2565b6040516020818303038152906040529050919050565b60008054821080156104a4575050600090815260046020526040902054600160e01b161590565b6000610bcf82610912565b9050336001600160a01b03821614610c0857610beb813361042a565b610c08576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6104d4828260405180602001604052806000815250611073565b610c866110d9565b6000610c9182610e32565b9050836001600160a01b0316816001600160a01b031614610cc45760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610d1157610cf4863361042a565b610d1157604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610d3857604051633a954ecd60e21b815260040160405180910390fd5b8015610d4357600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040902055600160e11b8316610dce5760018401600081815260046020526040902054610dcc576000548114610dcc5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b61068683838360405180602001604052806000815250610a7d565b600081600054811015610e8157600081815260046020526040902054600160e01b8116610e7f575b80610e78575060001901600081815260046020526040902054610e5a565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b34610f515780600114610eac57600080fd5b6003600a54610ebb9190611815565b600154600054031115610f4657610ed0611121565b436000908152600d6020526040902054108015610efc5750326000908152600c60205260409020546001115b610f0557600080fd5b326000908152600c60205260408120805491610f20836118d4565b9091555050436000908152600d60205260408120805491610f40836118d4565b91905055505b610831336001610c64565b80600b54610f5f9190611837565b341015610f6b57600080fd5b6108313382610c64565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610fec8484846106d2565b6001600160a01b0383163b156107b5576110088484848461114e565b6107b5576040516368d2bf6b60e11b815260040160405180910390fd5b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a90048061105c57611061565b61103f565b50819003601f19909101908152919050565b61107d8383611246565b6001600160a01b0383163b15610686576000548281035b6110a7600086838060010194508661114e565b6110c4576040516368d2bf6b60e11b815260040160405180910390fd5b818110611094578160005414610b6257600080fd5b471561111f576040517352ecd7338eeed4f4d011c1eb9965ab7e29743399904780156108fc02916000818181858888f19350505050158015610831573d6000803e3d6000fd5b565b6000600c6111326001546000540390565b600a5461113f9190611856565b6111499190611815565b905090565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906111839033908990889088906004016117ad565b602060405180830381600087803b15801561119d57600080fd5b505af19250505080156111cd575060408051601f3d908101601f191682019092526111ca91810190611609565b60015b611228573d8080156111fb576040519150601f19603f3d011682016040523d82523d6000602084013e611200565b606091505b508051611220576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b600054816112675760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461131657808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016112de565b508161133457604051622e076360e81b815260040160405180910390fd5b60005550505050565b82805461134990611899565b90600052602060002090601f01602090048101928261136b57600085556113b1565b82601f1061138457805160ff19168380011785556113b1565b828001600101855582156113b1579182015b828111156113b1578251825591602001919060010190611396565b506113bd9291506113c1565b5090565b5b808211156113bd57600081556001016113c2565b600067ffffffffffffffff808411156113f1576113f1611905565b604051601f8501601f19908116603f0116810190828211818310171561141957611419611905565b8160405280935085815286868601111561143257600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b038116811461146357600080fd5b919050565b60006020828403121561147a57600080fd5b610e788261144c565b6000806040838503121561149657600080fd5b61149f8361144c565b91506114ad6020840161144c565b90509250929050565b6000806000606084860312156114cb57600080fd5b6114d48461144c565b92506114e26020850161144c565b9150604084013590509250925092565b6000806000806080858703121561150857600080fd5b6115118561144c565b935061151f6020860161144c565b925060408501359150606085013567ffffffffffffffff81111561154257600080fd5b8501601f8101871361155357600080fd5b611562878235602084016113d6565b91505092959194509250565b6000806040838503121561158157600080fd5b61158a8361144c565b9150602083013561159a8161191b565b809150509250929050565b600080604083850312156115b857600080fd5b6115c18361144c565b946020939093013593505050565b6000602082840312156115e157600080fd5b8151610e788161191b565b6000602082840312156115fe57600080fd5b8135610e7881611929565b60006020828403121561161b57600080fd5b8151610e7881611929565b60006020828403121561163857600080fd5b813567ffffffffffffffff81111561164f57600080fd5b8201601f8101841361166057600080fd5b61123e848235602084016113d6565b60006020828403121561168157600080fd5b5035919050565b6000806040838503121561169b57600080fd5b50508035926020909101359150565b600081518084526116c281602086016020860161186d565b601f01601f19169290920160200192915050565b600081516116e881856020860161186d565b9290920192915050565b600080845481600182811c91508083168061170e57607f831692505b602080841082141561172e57634e487b7160e01b86526022600452602486fd5b818015611742576001811461175357611780565b60ff19861689528489019650611780565b60008b81526020902060005b868110156117785781548b82015290850190830161175f565b505084890196505b5050505050506117a461179382866116d6565b64173539b7b760d91b815260050190565b95945050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906117e0908301846116aa565b9695505050505050565b602081526000610e7860208301846116aa565b60008219821115611810576118106118ef565b500190565b60008261183257634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615611851576118516118ef565b500290565b600082821015611868576118686118ef565b500390565b60005b83811015611888578181015183820152602001611870565b838111156107b55750506000910152565b600181811c908216806118ad57607f821691505b602082108114156118ce57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156118e8576118e86118ef565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b801515811461083157600080fd5b6001600160e01b03198116811461083157600080fdfea2646970667358221220c0528c1977b0d5a94922c924c21377a1901c7e7667b1143c84dcf7da31b85fa964736f6c63430008070033

Deployed Bytecode Sourcemap

58422:3172:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19007:639;;;;;;;;;;-1:-1:-1;19007:639:0;;;;;:::i;:::-;;:::i;:::-;;;7844:14:1;;7837:22;7819:41;;7807:2;7792:18;19007:639:0;;;;;;;;59824:76;;;;;;;;;;-1:-1:-1;59824:76:0;;;;;:::i;:::-;;:::i;:::-;;19909:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;26636:218::-;;;;;;;;;;-1:-1:-1;26636:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;6554:32:1;;;6536:51;;6524:2;6509:18;26636:218:0;6390:203:1;60807:165:0;;;;;;:::i;:::-;;:::i;59463:167::-;;;;;;;;;;-1:-1:-1;59463:167:0;;;;;:::i;:::-;;:::i;15660:323::-;;;;;;;;;;-1:-1:-1;15934:12:0;;15721:7;15918:13;:28;15660:323;;;8481:25:1;;;8469:2;8454:18;15660:323:0;8335:177:1;60980:171:0;;;;;;:::i;:::-;;:::i;60285:213::-;;;;;;;;;;-1:-1:-1;60285:213:0;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;7592:32:1;;;7574:51;;7656:2;7641:18;;7634:34;;;;7547:18;60285:213:0;7400:274:1;60506:109:0;;;;;;;;;;;;;:::i;55764:143::-;;;;;;;;;;;;55864:42;55764:143;;61159:179;;;;;;:::i;:::-;;:::i;58599:39::-;;;;;;;;;;;;;;;;21538:152;;;;;;;;;;-1:-1:-1;21538:152:0;;;;;:::i;:::-;;:::i;16844:233::-;;;;;;;;;;-1:-1:-1;16844:233:0;;;;;:::i;:::-;;:::i;58560:30::-;;;;;;;;;;;;;;;;58323:20;;;;;;;;;;-1:-1:-1;58323:20:0;;;;-1:-1:-1;;;;;58323:20:0;;;20085:104;;;;;;;;;;;;;:::i;58760:132::-;;;;;;:::i;:::-;;:::i;60623:176::-;;;;;;;;;;-1:-1:-1;60623:176:0;;;;;:::i;:::-;;:::i;61346:245::-;;;;;;:::i;:::-;;:::i;60002:164::-;;;;;;;;;;-1:-1:-1;60002:164:0;;;;;:::i;:::-;;:::i;59908:86::-;;;;;;;;;;-1:-1:-1;59977:9:0;;59908:86;;27585:164;;;;;;;;;;-1:-1:-1;27585:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;27706:25:0;;;27682:4;27706:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;27585:164;19007:639;19092:4;-1:-1:-1;;;;;;;;;19416:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;19493:25:0;;;19416:102;:179;;;-1:-1:-1;;;;;;;;;;19570:25:0;;;19416:179;19396:199;19007:639;-1:-1:-1;;19007:639:0:o;59824:76::-;59680:5;;-1:-1:-1;;;;;59680:5:0;59689:10;59680:19;59672:28;;;;;;59885:7;;::::1;::::0;:3:::1;::::0;:7:::1;::::0;::::1;::::0;::::1;:::i;:::-;;59824:76:::0;:::o;19909:100::-;19963:13;19996:5;19989:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19909:100;:::o;26636:218::-;26712:7;26737:16;26745:7;26737;:16::i;:::-;26732:64;;26762:34;;-1:-1:-1;;;26762:34:0;;;;;;;;;;;26732:64;-1:-1:-1;26816:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;26816:30:0;;26636:218::o;60807:165::-;60911:8;55864:42;57758:45;:49;57754:225;;57829:67;;-1:-1:-1;;;57829:67:0;;57880:4;57829:67;;;6810:34:1;-1:-1:-1;;;;;6880:15:1;;6860:18;;;6853:43;55864:42:0;;57829;;6745:18:1;;57829:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;57824:144;;57924:28;;-1:-1:-1;;;57924:28:0;;-1:-1:-1;;;;;6554:32:1;;57924:28:0;;;6536:51:1;6509:18;;57924:28:0;;;;;;;;57824:144;60932:32:::1;60946:8;60956:7;60932:13;:32::i;:::-;60807:165:::0;;;:::o;59463:167::-;59680:5;;-1:-1:-1;;;;;59680:5:0;59689:10;59680:19;59672:28;;;;;;59578:9:::1;;59568:6;59552:13;15934:12:::0;;15721:7;15918:13;:28;;15660:323;59552:13:::1;:22;;;;:::i;:::-;:35;;59544:44;;;::::0;::::1;;59599:23;59609:4;59615:6;59599:9;:23::i;60980:171::-:0;61089:4;55864:42;57012:45;:49;57008:539;;-1:-1:-1;;;;;57293:18:0;;57301:10;57293:18;57289:85;;;61106:37:::1;61125:4;61131:2;61135:7;61106:18;:37::i;:::-;57352:7:::0;;57289:85;57393:69;;-1:-1:-1;;;57393:69:0;;57444:4;57393:69;;;6810:34:1;57451:10:0;6860:18:1;;;6853:43;55864:42:0;;57393;;6745:18:1;;57393:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;57388:148;;57490:30;;-1:-1:-1;;;57490:30:0;;57509:10;57490:30;;;6536:51:1;6509:18;;57490:30:0;6390:203:1;57388:148:0;61106:37:::1;61125:4;61131:2;61135:7;61106:18;:37::i;:::-;60980:171:::0;;;;:::o;60285:213::-;60373:7;;;60446:4;60427:15;:10;60440:2;60427:15;:::i;:::-;60426:24;;;;:::i;:::-;60469:5;;-1:-1:-1;;;;;60469:5:0;;60402:48;;-1:-1:-1;60285:213:0;-1:-1:-1;;;;60285:213:0:o;60506:109::-;59680:5;;-1:-1:-1;;;;;59680:5:0;59689:10;59680:19;59672:28;;;;;;60556:51:::1;::::0;60564:10:::1;::::0;60585:21:::1;60556:51:::0;::::1;;;::::0;::::1;::::0;;;60585:21;60564:10;60556:51;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;60506:109::o:0;61159:179::-;61272:4;55864:42;57012:45;:49;57008:539;;-1:-1:-1;;;;;57293:18:0;;57301:10;57293:18;57289:85;;;61289:41:::1;61312:4;61318:2;61322:7;61289:22;:41::i;57289:85::-:0;57393:69;;-1:-1:-1;;;57393:69:0;;57444:4;57393:69;;;6810:34:1;57451:10:0;6860:18:1;;;6853:43;55864:42:0;;57393;;6745:18:1;;57393:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;57388:148;;57490:30;;-1:-1:-1;;;57490:30:0;;57509:10;57490:30;;;6536:51:1;6509:18;;57490:30:0;6390:203:1;57388:148:0;61289:41:::1;61312:4;61318:2;61322:7;61289:22;:41::i;21538:152::-:0;21610:7;21653:27;21672:7;21653:18;:27::i;16844:233::-;16916:7;-1:-1:-1;;;;;16940:19:0;;16936:60;;16968:28;;-1:-1:-1;;;16968:28:0;;;;;;;;;;;16936:60;-1:-1:-1;;;;;;17014:25:0;;;;;:18;:25;;;;;;11003:13;17014:55;;16844:233::o;20085:104::-;20141:13;20174:7;20167:14;;;;;:::i;58760:132::-;58850:9;;58840:6;58824:13;15934:12;;15721:7;15918:13;:28;;15660:323;58824:13;:22;;;;:::i;:::-;:35;;58816:44;;;;;;58871:13;58877:6;58871:5;:13::i;60623:176::-;60727:8;55864:42;57758:45;:49;57754:225;;57829:67;;-1:-1:-1;;;57829:67:0;;57880:4;57829:67;;;6810:34:1;-1:-1:-1;;;;;6880:15:1;;6860:18;;;6853:43;55864:42:0;;57829;;6745:18:1;;57829:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;57824:144;;57924:28;;-1:-1:-1;;;57924:28:0;;-1:-1:-1;;;;;6554:32:1;;57924:28:0;;;6536:51:1;6509:18;;57924:28:0;6390:203:1;57824:144:0;60748:43:::1;60772:8;60782;60748:23;:43::i;61346:245::-:0;61514:4;55864:42;57012:45;:49;57008:539;;-1:-1:-1;;;;;57293:18:0;;57301:10;57293:18;57289:85;;;61536:47:::1;61559:4;61565:2;61569:7;61578:4;61536:22;:47::i;:::-;57352:7:::0;;57289:85;57393:69;;-1:-1:-1;;;57393:69:0;;57444:4;57393:69;;;6810:34:1;57451:10:0;6860:18:1;;;6853:43;55864:42:0;;57393;;6745:18:1;;57393:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;57388:148;;57490:30;;-1:-1:-1;;;57490:30:0;;57509:10;57490:30;;;6536:51:1;6509:18;;57490:30:0;6390:203:1;57388:148:0;61536:47:::1;61559:4;61565:2;61569:7;61578:4;61536:22;:47::i;:::-;61346:245:::0;;;;;:::o;60002:164::-;60067:13;60124:3;60129:18;60139:7;60129:9;:18::i;:::-;60107:50;;;;;;;;;:::i;:::-;;;;;;;;;;;;;60093:65;;60002:164;;;:::o;28007:282::-;28072:4;28162:13;;28152:7;:23;28109:153;;;;-1:-1:-1;;28213:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;28213:44:0;:49;;28007:282::o;26069:408::-;26158:13;26174:16;26182:7;26174;:16::i;:::-;26158:32;-1:-1:-1;51154:10:0;-1:-1:-1;;;;;26207:28:0;;;26203:175;;26255:44;26272:5;51154:10;27585:164;:::i;26255:44::-;26250:128;;26327:35;;-1:-1:-1;;;26327:35:0;;;;;;;;;;;26250:128;26390:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;26390:35:0;-1:-1:-1;;;;;26390:35:0;;;;;;;;;26441:28;;26390:24;;26441:28;;;;;;;26147:330;26069:408;;:::o;44899:112::-;44976:27;44986:2;44990:8;44976:27;;;;;;;;;;;;:9;:27::i;30275:2855::-;30417:17;:15;:17::i;:::-;30447:27;30477;30496:7;30477:18;:27::i;:::-;30447:57;;30562:4;-1:-1:-1;;;;;30521:45:0;30537:19;-1:-1:-1;;;;;30521:45:0;;30517:86;;30575:28;;-1:-1:-1;;;30575:28:0;;;;;;;;;;;30517:86;30617:27;29383:24;;;:15;:24;;;;;29611:26;;51154:10;29008:30;;;-1:-1:-1;;;;;28701:28:0;;28986:20;;;28983:56;30803:180;;30896:43;30913:4;51154:10;27585:164;:::i;30896:43::-;30891:92;;30948:35;;-1:-1:-1;;;30948:35:0;;;;;;;;;;;30891:92;-1:-1:-1;;;;;31000:16:0;;30996:52;;31025:23;;-1:-1:-1;;;31025:23:0;;;;;;;;;;;30996:52;31197:15;31194:160;;;31337:1;31316:19;31309:30;31194:160;-1:-1:-1;;;;;31734:24:0;;;;;;;:18;:24;;;;;;31732:26;;-1:-1:-1;;31732:26:0;;;31803:22;;;;;;;;;31801:24;;-1:-1:-1;31801:24:0;;;24927:11;24902:23;24898:41;24885:63;-1:-1:-1;;;24885:63:0;32096:26;;;;:17;:26;;;;;:175;-1:-1:-1;;;32391:47:0;;32387:627;;32496:1;32486:11;;32464:19;32619:30;;;:17;:30;;;;;;32615:384;;32757:13;;32742:11;:28;32738:242;;32904:30;;;;:17;:30;;;;;:52;;;32738:242;32445:569;32387:627;33061:7;33057:2;-1:-1:-1;;;;;33042:27:0;33051:4;-1:-1:-1;;;;;33042:27:0;;;;;;;;;;;30406:2724;;;30275:2855;;;:::o;33226:193::-;33372:39;33389:4;33395:2;33399:7;33372:39;;;;;;;;;;;;:16;:39::i;22693:1275::-;22760:7;22795;22897:13;;22890:4;:20;22886:1015;;;22935:14;22952:23;;;:17;:23;;;;;;-1:-1:-1;;;23041:24:0;;23037:845;;23706:113;23713:11;23706:113;;-1:-1:-1;;;23784:6:0;23766:25;;;;:17;:25;;;;;;23706:113;;;23852:6;22693:1275;-1:-1:-1;;;22693:1275:0:o;23037:845::-;22912:989;22886:1015;23929:31;;-1:-1:-1;;;23929:31:0;;;;;;;;;;;58900:555;58955:9;58951:497;;58994:6;59004:1;58994:11;58986:20;;;;;;59053:1;59041:9;;:13;;;;:::i;:::-;15934:12;;15721:7;15918:13;:28;59025:29;59021:260;;;59111:9;:7;:9::i;:::-;59095:12;59083:25;;;;:11;:25;;;;;;:37;:90;;;;-1:-1:-1;59159:9:0;59146:23;;;;:12;:23;;;;;;59172:1;-1:-1:-1;59083:90:0;59075:100;;;;;;59207:9;59194:23;;;;:12;:23;;;;;:25;;;;;;:::i;:::-;;;;-1:-1:-1;;59250:12:0;59238:25;;;;:11;:25;;;;;:27;;;;;;:::i;:::-;;;;;;59021:260;59295:24;59305:10;59317:1;59295:9;:24::i;58951:497::-;59385:6;59373:9;;:18;;;;:::i;:::-;59360:9;:31;;59352:40;;;;;;59407:29;59417:10;59429:6;59407:9;:29::i;27194:234::-;51154:10;27289:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;27289:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;27289:60:0;;;;;;;;;;27365:55;;7819:41:1;;;27289:49:0;;51154:10;27365:55;;7792:18:1;27365:55:0;;;;;;;27194:234;;:::o;34019:407::-;34194:31;34207:4;34213:2;34217:7;34194:12;:31::i;:::-;-1:-1:-1;;;;;34240:14:0;;;:19;34236:183;;34279:56;34310:4;34316:2;34320:7;34329:5;34279:30;:56::i;:::-;34274:145;;34363:40;;-1:-1:-1;;;34363:40:0;;;;;;;;;;;51274:1745;51339:17;51773:4;51766;51760:11;51756:22;51865:1;51859:4;51852:15;51940:4;51937:1;51933:12;51926:19;;;52022:1;52017:3;52010:14;52126:3;52365:5;52347:428;52413:1;52408:3;52404:11;52397:18;;52584:2;52578:4;52574:13;52570:2;52566:22;52561:3;52553:36;52678:2;52668:13;;;52735:25;;52753:5;;52735:25;52347:428;;;-1:-1:-1;52805:13:0;;;-1:-1:-1;;52920:14:0;;;52982:19;;;52920:14;51274:1745;-1:-1:-1;51274:1745:0:o;44126:689::-;44257:19;44263:2;44267:8;44257:5;:19::i;:::-;-1:-1:-1;;;;;44318:14:0;;;:19;44314:483;;44358:11;44372:13;44420:14;;;44453:233;44484:62;44523:1;44527:2;44531:7;;;;;;44540:5;44484:30;:62::i;:::-;44479:167;;44582:40;;-1:-1:-1;;;44582:40:0;;;;;;;;;;;44479:167;44681:3;44673:5;:11;44453:233;;44768:3;44751:13;;:20;44747:34;;44773:8;;;36602:188;36653:21;:25;36649:134;;36695:55;;21343:42;;36728:21;36695:55;;;;;;;;;36728:21;21343:42;36695:55;;;;;;;;;;;;;;;;;;;36649:134;36602:188::o;60174:103::-;60211:7;60267:2;60250:13;15934:12;;15721:7;15918:13;:28;;15660:323;60250:13;60238:9;;:25;;;;:::i;:::-;60237:32;;;;:::i;:::-;60230:39;;60174:103;:::o;37230:716::-;37414:88;;-1:-1:-1;;;37414:88:0;;37393:4;;-1:-1:-1;;;;;37414:45:0;;;;;:88;;51154:10;;37481:4;;37487:7;;37496:5;;37414:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;37414:88:0;;;;;;;;-1:-1:-1;;37414:88:0;;;;;;;;;;;;:::i;:::-;;;37410:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;37697:13:0;;37693:235;;37743:40;;-1:-1:-1;;;37743:40:0;;;;;;;;;;;37693:235;37886:6;37880:13;37871:6;37867:2;37863:15;37856:38;37410:529;-1:-1:-1;;;;;;37573:64:0;-1:-1:-1;;;37573:64:0;;-1:-1:-1;37410:529:0;37230:716;;;;;;:::o;38408:2966::-;38481:20;38504:13;38532;38528:44;;38554:18;;-1:-1:-1;;;38554:18:0;;;;;;;;;;;38528:44;-1:-1:-1;;;;;39060:22:0;;;;;;:18;:22;;;;11141:2;39060:22;;;:71;;39098:32;39086:45;;39060:71;;;39374:31;;;:17;:31;;;;;-1:-1:-1;25358:15:0;;25332:24;25328:46;24927:11;24902:23;24898:41;24895:52;24885:63;;39374:173;;39609:23;;;;39374:31;;39060:22;;40374:25;39060:22;;40227:335;40888:1;40874:12;40870:20;40828:346;40929:3;40920:7;40917:16;40828:346;;41147:7;41137:8;41134:1;41107:25;41104:1;41101;41096:59;40982:1;40969:15;40828:346;;;-1:-1:-1;41207:13:0;41203:45;;41229:19;;-1:-1:-1;;;41229:19:0;;;;;;;;;;;41203:45;41265:13;:19;-1:-1:-1;60807:165:0;;;:::o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:631:1;78:5;108:18;149:2;141:6;138:14;135:40;;;155:18;;:::i;:::-;230:2;224:9;198:2;284:15;;-1:-1:-1;;280:24:1;;;306:2;276:33;272:42;260:55;;;330:18;;;350:22;;;327:46;324:72;;;376:18;;:::i;:::-;416:10;412:2;405:22;445:6;436:15;;475:6;467;460:22;515:3;506:6;501:3;497:16;494:25;491:45;;;532:1;529;522:12;491:45;582:6;577:3;570:4;562:6;558:17;545:44;637:1;630:4;621:6;613;609:19;605:30;598:41;;;;14:631;;;;;:::o;650:173::-;718:20;;-1:-1:-1;;;;;767:31:1;;757:42;;747:70;;813:1;810;803:12;747:70;650:173;;;:::o;828:186::-;887:6;940:2;928:9;919:7;915:23;911:32;908:52;;;956:1;953;946:12;908:52;979:29;998:9;979:29;:::i;1019:260::-;1087:6;1095;1148:2;1136:9;1127:7;1123:23;1119:32;1116:52;;;1164:1;1161;1154:12;1116:52;1187:29;1206:9;1187:29;:::i;:::-;1177:39;;1235:38;1269:2;1258:9;1254:18;1235:38;:::i;:::-;1225:48;;1019:260;;;;;:::o;1284:328::-;1361:6;1369;1377;1430:2;1418:9;1409:7;1405:23;1401:32;1398:52;;;1446:1;1443;1436:12;1398:52;1469:29;1488:9;1469:29;:::i;:::-;1459:39;;1517:38;1551:2;1540:9;1536:18;1517:38;:::i;:::-;1507:48;;1602:2;1591:9;1587:18;1574:32;1564:42;;1284:328;;;;;:::o;1617:666::-;1712:6;1720;1728;1736;1789:3;1777:9;1768:7;1764:23;1760:33;1757:53;;;1806:1;1803;1796:12;1757:53;1829:29;1848:9;1829:29;:::i;:::-;1819:39;;1877:38;1911:2;1900:9;1896:18;1877:38;:::i;:::-;1867:48;;1962:2;1951:9;1947:18;1934:32;1924:42;;2017:2;2006:9;2002:18;1989:32;2044:18;2036:6;2033:30;2030:50;;;2076:1;2073;2066:12;2030:50;2099:22;;2152:4;2144:13;;2140:27;-1:-1:-1;2130:55:1;;2181:1;2178;2171:12;2130:55;2204:73;2269:7;2264:2;2251:16;2246:2;2242;2238:11;2204:73;:::i;:::-;2194:83;;;1617:666;;;;;;;:::o;2288:315::-;2353:6;2361;2414:2;2402:9;2393:7;2389:23;2385:32;2382:52;;;2430:1;2427;2420:12;2382:52;2453:29;2472:9;2453:29;:::i;:::-;2443:39;;2532:2;2521:9;2517:18;2504:32;2545:28;2567:5;2545:28;:::i;:::-;2592:5;2582:15;;;2288:315;;;;;:::o;2608:254::-;2676:6;2684;2737:2;2725:9;2716:7;2712:23;2708:32;2705:52;;;2753:1;2750;2743:12;2705:52;2776:29;2795:9;2776:29;:::i;:::-;2766:39;2852:2;2837:18;;;;2824:32;;-1:-1:-1;;;2608:254:1:o;2867:245::-;2934:6;2987:2;2975:9;2966:7;2962:23;2958:32;2955:52;;;3003:1;3000;2993:12;2955:52;3035:9;3029:16;3054:28;3076:5;3054:28;:::i;3117:245::-;3175:6;3228:2;3216:9;3207:7;3203:23;3199:32;3196:52;;;3244:1;3241;3234:12;3196:52;3283:9;3270:23;3302:30;3326:5;3302:30;:::i;3367:249::-;3436:6;3489:2;3477:9;3468:7;3464:23;3460:32;3457:52;;;3505:1;3502;3495:12;3457:52;3537:9;3531:16;3556:30;3580:5;3556:30;:::i;3621:450::-;3690:6;3743:2;3731:9;3722:7;3718:23;3714:32;3711:52;;;3759:1;3756;3749:12;3711:52;3799:9;3786:23;3832:18;3824:6;3821:30;3818:50;;;3864:1;3861;3854:12;3818:50;3887:22;;3940:4;3932:13;;3928:27;-1:-1:-1;3918:55:1;;3969:1;3966;3959:12;3918:55;3992:73;4057:7;4052:2;4039:16;4034:2;4030;4026:11;3992:73;:::i;4076:180::-;4135:6;4188:2;4176:9;4167:7;4163:23;4159:32;4156:52;;;4204:1;4201;4194:12;4156:52;-1:-1:-1;4227:23:1;;4076:180;-1:-1:-1;4076:180:1:o;4261:248::-;4329:6;4337;4390:2;4378:9;4369:7;4365:23;4361:32;4358:52;;;4406:1;4403;4396:12;4358:52;-1:-1:-1;;4429:23:1;;;4499:2;4484:18;;;4471:32;;-1:-1:-1;4261:248:1:o;4514:257::-;4555:3;4593:5;4587:12;4620:6;4615:3;4608:19;4636:63;4692:6;4685:4;4680:3;4676:14;4669:4;4662:5;4658:16;4636:63;:::i;:::-;4753:2;4732:15;-1:-1:-1;;4728:29:1;4719:39;;;;4760:4;4715:50;;4514:257;-1:-1:-1;;4514:257:1:o;4776:185::-;4818:3;4856:5;4850:12;4871:52;4916:6;4911:3;4904:4;4897:5;4893:16;4871:52;:::i;:::-;4939:16;;;;;4776:185;-1:-1:-1;;4776:185:1:o;5084:1301::-;5361:3;5390:1;5423:6;5417:13;5453:3;5475:1;5503:9;5499:2;5495:18;5485:28;;5563:2;5552:9;5548:18;5585;5575:61;;5629:4;5621:6;5617:17;5607:27;;5575:61;5655:2;5703;5695:6;5692:14;5672:18;5669:38;5666:165;;;-1:-1:-1;;;5730:33:1;;5786:4;5783:1;5776:15;5816:4;5737:3;5804:17;5666:165;5847:18;5874:104;;;;5992:1;5987:320;;;;5840:467;;5874:104;-1:-1:-1;;5907:24:1;;5895:37;;5952:16;;;;-1:-1:-1;5874:104:1;;5987:320;8590:1;8583:14;;;8627:4;8614:18;;6082:1;6096:165;6110:6;6107:1;6104:13;6096:165;;;6188:14;;6175:11;;;6168:35;6231:16;;;;6125:10;;6096:165;;;6100:3;;6290:6;6285:3;6281:16;6274:23;;5840:467;;;;;;;6323:56;6348:30;6374:3;6366:6;6348:30;:::i;:::-;-1:-1:-1;;;5026:20:1;;5071:1;5062:11;;4966:113;6323:56;6316:63;5084:1301;-1:-1:-1;;;;;5084:1301:1:o;6907:488::-;-1:-1:-1;;;;;7176:15:1;;;7158:34;;7228:15;;7223:2;7208:18;;7201:43;7275:2;7260:18;;7253:34;;;7323:3;7318:2;7303:18;;7296:31;;;7101:4;;7344:45;;7369:19;;7361:6;7344:45;:::i;:::-;7336:53;6907:488;-1:-1:-1;;;;;;6907:488:1:o;8111:219::-;8260:2;8249:9;8242:21;8223:4;8280:44;8320:2;8309:9;8305:18;8297:6;8280:44;:::i;8643:128::-;8683:3;8714:1;8710:6;8707:1;8704:13;8701:39;;;8720:18;;:::i;:::-;-1:-1:-1;8756:9:1;;8643:128::o;8776:217::-;8816:1;8842;8832:132;;8886:10;8881:3;8877:20;8874:1;8867:31;8921:4;8918:1;8911:15;8949:4;8946:1;8939:15;8832:132;-1:-1:-1;8978:9:1;;8776:217::o;8998:168::-;9038:7;9104:1;9100;9096:6;9092:14;9089:1;9086:21;9081:1;9074:9;9067:17;9063:45;9060:71;;;9111:18;;:::i;:::-;-1:-1:-1;9151:9:1;;8998:168::o;9171:125::-;9211:4;9239:1;9236;9233:8;9230:34;;;9244:18;;:::i;:::-;-1:-1:-1;9281:9:1;;9171:125::o;9301:258::-;9373:1;9383:113;9397:6;9394:1;9391:13;9383:113;;;9473:11;;;9467:18;9454:11;;;9447:39;9419:2;9412:10;9383:113;;;9514:6;9511:1;9508:13;9505:48;;;-1:-1:-1;;9549:1:1;9531:16;;9524:27;9301:258::o;9564:380::-;9643:1;9639:12;;;;9686;;;9707:61;;9761:4;9753:6;9749:17;9739:27;;9707:61;9814:2;9806:6;9803:14;9783:18;9780:38;9777:161;;;9860:10;9855:3;9851:20;9848:1;9841:31;9895:4;9892:1;9885:15;9923:4;9920:1;9913:15;9777:161;;9564:380;;;:::o;9949:135::-;9988:3;-1:-1:-1;;10009:17:1;;10006:43;;;10029:18;;:::i;:::-;-1:-1:-1;10076:1:1;10065:13;;9949:135::o;10089:127::-;10150:10;10145:3;10141:20;10138:1;10131:31;10181:4;10178:1;10171:15;10205:4;10202:1;10195:15;10221:127;10282:10;10277:3;10273:20;10270:1;10263:31;10313:4;10310:1;10303:15;10337:4;10334:1;10327:15;10353:118;10439:5;10432:13;10425:21;10418:5;10415:32;10405:60;;10461:1;10458;10451:12;10476:131;-1:-1:-1;;;;;;10550:32:1;;10540:43;;10530:71;;10597:1;10594;10587:12

Swarm Source

ipfs://c0528c1977b0d5a94922c924c21377a1901c7e7667b1143c84dcf7da31b85fa9
Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.