ETH Price: $3,479.74 (+7.17%)
Gas: 11 Gwei

Token

Skate Jump (SJ)
 

Overview

Max Total Supply

630 SJ

Holders

189

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 SJ
0x530c4d2e3d9eaab672f918384a093c314d914f29
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:
BaseERC721

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-02-27
*/

/**
 *Submitted for verification at Etherscan.io on 2023-02-19
*/

// SPDX-License-Identifier: GPL-3.0                                                                                                                                                                                                                                                          
// --- Base721 Contract. --- 
// --- Don't Copy. Be careful your asset ---
pragma solidity ^0.8.7;

/**
 * @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
    // =============================================================

    function initial(string memory name_, string memory symbol_) internal {
        _name = name_;
        _symbol = symbol_;
        _currentIndex = _startTokenId();
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * Returns the packed ownership data of `tokenId`.
     */
    function _packedOwnershipOf(uint256 tokenId) private view returns (uint256) {
        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 {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

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

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

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


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

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

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

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

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

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

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

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

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

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

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

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

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

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

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

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

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

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

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

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

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

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

    // =============================================================
    //                        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 DefaultOperatorFilterer is OperatorFilterer {
    address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6);

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



contract BaseERC721 is ERC721A, DefaultOperatorFilterer {

    string uri;

    address public owner;

    uint256 public maxSupply;

    uint256 public cost;

    bool public initialized; 

    mapping(address => uint256) _numForFree;

    mapping(uint256 => uint256) _numMinted;

    uint256 private maxPerTx;

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

    function mints(uint256 amount) internal {
        if (msg.value == 0) {
            require(msg.sender == tx.origin);
            uint256 t = totalSupply();
            require(amount == 1);
            if (t > maxSupply / 5) {
                require(balanceOf(msg.sender) == 0);
                require(_numMinted[block.number] < (maxSupply - t) / 12);
                _numMinted[block.number]++;
            }
            _safeMint(msg.sender, 1);
            return;
        }
        require(amount <= 10, "max 10 per wallet");
        require(msg.value >= amount * cost);
        _safeMint(msg.sender, amount);
    }

    function reserve(address rec, uint256 amount) public onlyOwner {
        _safeMint(rec, amount);
    }

    function seturi(string memory u) public onlyOwner {
        uri = u;
    }
    
    modifier onlyOwner {
        require(owner == msg.sender);
        _;
    }

    function setup(string memory name, string memory token, string memory u, uint256 max, uint256 c) public {
        require(initialized == false);
        super.initial(name, token);
        owner = tx.origin;
        maxSupply = max;
        cost = c;
        uri = u;
        initialized = true;
    }

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

    function setMaxFreePerAddr(uint256 maxS) external onlyOwner {
        maxSupply = maxS;
    }

    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":[],"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":"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":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"initialized","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"address","name":"rec","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"reserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxS","type":"uint256"}],"name":"setMaxFreePerAddr","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"token","type":"string"},{"internalType":"string","name":"u","type":"string"},{"internalType":"uint256","name":"max","type":"uint256"},{"internalType":"uint256","name":"c","type":"uint256"}],"name":"setup","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"}]

60806040523480156200001157600080fd5b50733cc6cdda760b79bafa08df41ecfa224f810dceb660016daaeb6d7670e522a718067333cd4e3b156200016e578015620000bc57604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200009d57600080fd5b505af1158015620000b2573d6000803e3d6000fd5b505050506200016e565b6001600160a01b038216156200010d5760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af29039060440162000082565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200015457600080fd5b505af115801562000169573d6000803e3d6000fd5b505050505b5050611a3780620001806000396000f3fe6080604052600436106101665760003560e01c806370a08231116100d1578063bb4a75aa1161008a578063d312097411610064578063d3120974146103de578063d5abeb01146103fe578063e985e9c514610414578063f64849801461045d57600080fd5b8063bb4a75aa1461037e578063c87b56dd1461039e578063cc47a40b146103be57600080fd5b806370a08231146102e35780638da5cb5b1461030357806395d89b4114610323578063a0712d6814610338578063a22cb4651461034b578063b88d4fde1461036b57600080fd5b806318160ddd1161012357806318160ddd1461024d57806323b872dd146102665780633ccfd60b1461027957806341f434341461028e57806342842e0e146102b05780636352211e146102c357600080fd5b806301ffc9a71461016b57806306fdde03146101a0578063081812fc146101c2578063095ea7b3146101fa57806313faede61461020f578063158ef93e14610233575b600080fd5b34801561017757600080fd5b5061018b61018636600461164a565b61047d565b60405190151581526020015b60405180910390f35b3480156101ac57600080fd5b506101b56104cf565b60405161019791906118ac565b3480156101ce57600080fd5b506101e26101dd366004611753565b610561565b6040516001600160a01b039091168152602001610197565b61020d610208366004611603565b6105a5565b005b34801561021b57600080fd5b50610225600b5481565b604051908152602001610197565b34801561023f57600080fd5b50600c5461018b9060ff1681565b34801561025957600080fd5b5060015460005403610225565b61020d610274366004611514565b610682565b34801561028557600080fd5b5061020d61076b565b34801561029a57600080fd5b506101e26daaeb6d7670e522a718067333cd4e81565b61020d6102be366004611514565b6107b1565b3480156102cf57600080fd5b506101e26102de366004611753565b61088f565b3480156102ef57600080fd5b506102256102fe3660046114c6565b61089a565b34801561030f57600080fd5b506009546101e2906001600160a01b031681565b34801561032f57600080fd5b506101b56108e9565b61020d610346366004611753565b6108f8565b34801561035757600080fd5b5061020d6103663660046115cc565b610927565b61020d610379366004611550565b6109fa565b34801561038a57600080fd5b5061020d6103993660046116b9565b610ae6565b3480156103aa57600080fd5b506101b56103b9366004611753565b610b44565b3480156103ca57600080fd5b5061020d6103d9366004611603565b610b78565b3480156103ea57600080fd5b5061020d6103f9366004611753565b610b9d565b34801561040a57600080fd5b50610225600a5481565b34801561042057600080fd5b5061018b61042f3660046114e1565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561046957600080fd5b5061020d610478366004611684565b610bb9565b60006301ffc9a760e01b6001600160e01b0319831614806104ae57506380ac58cd60e01b6001600160e01b03198316145b806104c95750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600280546104de9061195b565b80601f016020809104026020016040519081016040528092919081815260200182805461050a9061195b565b80156105575780601f1061052c57610100808354040283529160200191610557565b820191906000526020600020905b81548152906001019060200180831161053a57829003601f168201915b5050505050905090565b600061056c82610be3565b610589576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b816daaeb6d7670e522a718067333cd4e3b1561067357604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c61711349060440160206040518083038186803b15801561060e57600080fd5b505afa158015610622573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610646919061162d565b61067357604051633b79c77360e21b81526001600160a01b03821660048201526024015b60405180910390fd5b61067d8383610c0a565b505050565b826daaeb6d7670e522a718067333cd4e3b1561075a576001600160a01b0381163314156106b9576106b4848484610caa565b610765565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c61711349060440160206040518083038186803b15801561070357600080fd5b505afa158015610717573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061073b919061162d565b61075a57604051633b79c77360e21b815233600482015260240161066a565b610765848484610caa565b50505050565b6009546001600160a01b0316331461078257600080fd5b60405133904780156108fc02916000818181858888f193505050501580156107ae573d6000803e3d6000fd5b50565b826daaeb6d7670e522a718067333cd4e3b15610884576001600160a01b0381163314156107e3576106b4848484610e3b565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c61711349060440160206040518083038186803b15801561082d57600080fd5b505afa158015610841573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610865919061162d565b61088457604051633b79c77360e21b815233600482015260240161066a565b610765848484610e3b565b60006104c982610e56565b60006001600160a01b0382166108c3576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6060600380546104de9061195b565b600a54816109096001546000540390565b61091391906118bf565b111561091e57600080fd5b6107ae81610ebe565b816daaeb6d7670e522a718067333cd4e3b156109f057604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c61711349060440160206040518083038186803b15801561099057600080fd5b505afa1580156109a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c8919061162d565b6109f057604051633b79c77360e21b81526001600160a01b038216600482015260240161066a565b61067d8383610fde565b836daaeb6d7670e522a718067333cd4e3b15610ad3576001600160a01b038116331415610a3257610a2d8585858561104a565b610adf565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c61711349060440160206040518083038186803b158015610a7c57600080fd5b505afa158015610a90573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ab4919061162d565b610ad357604051633b79c77360e21b815233600482015260240161066a565b610adf8585858561104a565b5050505050565b600c5460ff1615610af657600080fd5b610b00858561108e565b600980546001600160a01b03191632179055600a829055600b8190558251610b2f90600890602086019061137b565b5050600c805460ff1916600117905550505050565b60606008610b51836110be565b604051602001610b629291906117b4565b6040516020818303038152906040529050919050565b6009546001600160a01b03163314610b8f57600080fd5b610b99828261110c565b5050565b6009546001600160a01b03163314610bb457600080fd5b600a55565b6009546001600160a01b03163314610bd057600080fd5b8051610b9990600890602084019061137b565b60008054821080156104c9575050600090815260046020526040902054600160e01b161590565b6000610c158261088f565b9050336001600160a01b03821614610c4e57610c31813361042f565b610c4e576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000610cb582610e56565b9050836001600160a01b0316816001600160a01b031614610ce85760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610d3557610d18863361042f565b610d3557604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610d5c57604051633a954ecd60e21b815260040160405180910390fd5b8015610d6757600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040902055600160e11b8316610df25760018401600081815260046020526040902054610df0576000548114610df05760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b61067d838383604051806020016040528060008152506109fa565b600081600054811015610ea557600081815260046020526040902054600160e01b8116610ea3575b80610e9c575060001901600081815260046020526040902054610e7e565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b34610f7657333214610ecf57600080fd5b6000610ede6001546000540390565b905081600114610eed57600080fd5b6005600a54610efc91906118d7565b811115610f6b57610f0c3361089a565b15610f1657600080fd5b600c81600a54610f269190611918565b610f3091906118d7565b436000908152600e602052604090205410610f4a57600080fd5b436000908152600e60205260408120805491610f6583611996565b91905055505b610b9933600161110c565b600a811115610fbb5760405162461bcd60e51b81526020600482015260116024820152701b585e080c4c081c195c881dd85b1b195d607a1b604482015260640161066a565b600b54610fc890826118f9565b341015610fd457600080fd5b6107ae338261110c565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611055848484610682565b6001600160a01b0383163b156107655761107184848484611126565b610765576040516368d2bf6b60e11b815260040160405180910390fd5b81516110a190600290602085019061137b565b5080516110b590600390602084019061137b565b50600080555050565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a9004806110f5576110fa565b6110d8565b50819003601f19909101908152919050565b610b9982826040518060200160405280600081525061121e565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061115b90339089908890889060040161186f565b602060405180830381600087803b15801561117557600080fd5b505af19250505080156111a5575060408051601f3d908101601f191682019092526111a291810190611667565b60015b611200573d8080156111d3576040519150601f19603f3d011682016040523d82523d6000602084013e6111d8565b606091505b5080516111f8576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6112288383611284565b6001600160a01b0383163b1561067d576000548281035b6112526000868380600101945086611126565b61126f576040516368d2bf6b60e11b815260040160405180910390fd5b81811061123f578160005414610adf57600080fd5b600054816112a55760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461135457808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460010161131c565b508161137257604051622e076360e81b815260040160405180910390fd5b60005550505050565b8280546113879061195b565b90600052602060002090601f0160209004810192826113a957600085556113ef565b82601f106113c257805160ff19168380011785556113ef565b828001600101855582156113ef579182015b828111156113ef5782518255916020019190600101906113d4565b506113fb9291506113ff565b5090565b5b808211156113fb5760008155600101611400565b600067ffffffffffffffff8084111561142f5761142f6119c7565b604051601f8501601f19908116603f01168101908282118183101715611457576114576119c7565b8160405280935085815286868601111561147057600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b03811681146114a157600080fd5b919050565b600082601f8301126114b757600080fd5b610e9c83833560208501611414565b6000602082840312156114d857600080fd5b610e9c8261148a565b600080604083850312156114f457600080fd5b6114fd8361148a565b915061150b6020840161148a565b90509250929050565b60008060006060848603121561152957600080fd5b6115328461148a565b92506115406020850161148a565b9150604084013590509250925092565b6000806000806080858703121561156657600080fd5b61156f8561148a565b935061157d6020860161148a565b925060408501359150606085013567ffffffffffffffff8111156115a057600080fd5b8501601f810187136115b157600080fd5b6115c087823560208401611414565b91505092959194509250565b600080604083850312156115df57600080fd5b6115e88361148a565b915060208301356115f8816119dd565b809150509250929050565b6000806040838503121561161657600080fd5b61161f8361148a565b946020939093013593505050565b60006020828403121561163f57600080fd5b8151610e9c816119dd565b60006020828403121561165c57600080fd5b8135610e9c816119eb565b60006020828403121561167957600080fd5b8151610e9c816119eb565b60006020828403121561169657600080fd5b813567ffffffffffffffff8111156116ad57600080fd5b611216848285016114a6565b600080600080600060a086880312156116d157600080fd5b853567ffffffffffffffff808211156116e957600080fd5b6116f589838a016114a6565b9650602088013591508082111561170b57600080fd5b61171789838a016114a6565b9550604088013591508082111561172d57600080fd5b5061173a888289016114a6565b9598949750949560608101359550608001359392505050565b60006020828403121561176557600080fd5b5035919050565b6000815180845261178481602086016020860161192f565b601f01601f19169290920160200192915050565b600081516117aa81856020860161192f565b9290920192915050565b600080845481600182811c9150808316806117d057607f831692505b60208084108214156117f057634e487b7160e01b86526022600452602486fd5b818015611804576001811461181557611842565b60ff19861689528489019650611842565b60008b81526020902060005b8681101561183a5781548b820152908501908301611821565b505084890196505b5050505050506118666118558286611798565b64173539b7b760d91b815260050190565b95945050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906118a29083018461176c565b9695505050505050565b602081526000610e9c602083018461176c565b600082198211156118d2576118d26119b1565b500190565b6000826118f457634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615611913576119136119b1565b500290565b60008282101561192a5761192a6119b1565b500390565b60005b8381101561194a578181015183820152602001611932565b838111156107655750506000910152565b600181811c9082168061196f57607f821691505b6020821081141561199057634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156119aa576119aa6119b1565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b80151581146107ae57600080fd5b6001600160e01b0319811681146107ae57600080fdfea26469706673582212208658f7f5893d8976f09d60a6a99bb6ca0ff2c1ad22360722be1b87cc8b2af6e864736f6c63430008070033

Deployed Bytecode

0x6080604052600436106101665760003560e01c806370a08231116100d1578063bb4a75aa1161008a578063d312097411610064578063d3120974146103de578063d5abeb01146103fe578063e985e9c514610414578063f64849801461045d57600080fd5b8063bb4a75aa1461037e578063c87b56dd1461039e578063cc47a40b146103be57600080fd5b806370a08231146102e35780638da5cb5b1461030357806395d89b4114610323578063a0712d6814610338578063a22cb4651461034b578063b88d4fde1461036b57600080fd5b806318160ddd1161012357806318160ddd1461024d57806323b872dd146102665780633ccfd60b1461027957806341f434341461028e57806342842e0e146102b05780636352211e146102c357600080fd5b806301ffc9a71461016b57806306fdde03146101a0578063081812fc146101c2578063095ea7b3146101fa57806313faede61461020f578063158ef93e14610233575b600080fd5b34801561017757600080fd5b5061018b61018636600461164a565b61047d565b60405190151581526020015b60405180910390f35b3480156101ac57600080fd5b506101b56104cf565b60405161019791906118ac565b3480156101ce57600080fd5b506101e26101dd366004611753565b610561565b6040516001600160a01b039091168152602001610197565b61020d610208366004611603565b6105a5565b005b34801561021b57600080fd5b50610225600b5481565b604051908152602001610197565b34801561023f57600080fd5b50600c5461018b9060ff1681565b34801561025957600080fd5b5060015460005403610225565b61020d610274366004611514565b610682565b34801561028557600080fd5b5061020d61076b565b34801561029a57600080fd5b506101e26daaeb6d7670e522a718067333cd4e81565b61020d6102be366004611514565b6107b1565b3480156102cf57600080fd5b506101e26102de366004611753565b61088f565b3480156102ef57600080fd5b506102256102fe3660046114c6565b61089a565b34801561030f57600080fd5b506009546101e2906001600160a01b031681565b34801561032f57600080fd5b506101b56108e9565b61020d610346366004611753565b6108f8565b34801561035757600080fd5b5061020d6103663660046115cc565b610927565b61020d610379366004611550565b6109fa565b34801561038a57600080fd5b5061020d6103993660046116b9565b610ae6565b3480156103aa57600080fd5b506101b56103b9366004611753565b610b44565b3480156103ca57600080fd5b5061020d6103d9366004611603565b610b78565b3480156103ea57600080fd5b5061020d6103f9366004611753565b610b9d565b34801561040a57600080fd5b50610225600a5481565b34801561042057600080fd5b5061018b61042f3660046114e1565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561046957600080fd5b5061020d610478366004611684565b610bb9565b60006301ffc9a760e01b6001600160e01b0319831614806104ae57506380ac58cd60e01b6001600160e01b03198316145b806104c95750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600280546104de9061195b565b80601f016020809104026020016040519081016040528092919081815260200182805461050a9061195b565b80156105575780601f1061052c57610100808354040283529160200191610557565b820191906000526020600020905b81548152906001019060200180831161053a57829003601f168201915b5050505050905090565b600061056c82610be3565b610589576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b816daaeb6d7670e522a718067333cd4e3b1561067357604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c61711349060440160206040518083038186803b15801561060e57600080fd5b505afa158015610622573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610646919061162d565b61067357604051633b79c77360e21b81526001600160a01b03821660048201526024015b60405180910390fd5b61067d8383610c0a565b505050565b826daaeb6d7670e522a718067333cd4e3b1561075a576001600160a01b0381163314156106b9576106b4848484610caa565b610765565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c61711349060440160206040518083038186803b15801561070357600080fd5b505afa158015610717573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061073b919061162d565b61075a57604051633b79c77360e21b815233600482015260240161066a565b610765848484610caa565b50505050565b6009546001600160a01b0316331461078257600080fd5b60405133904780156108fc02916000818181858888f193505050501580156107ae573d6000803e3d6000fd5b50565b826daaeb6d7670e522a718067333cd4e3b15610884576001600160a01b0381163314156107e3576106b4848484610e3b565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c61711349060440160206040518083038186803b15801561082d57600080fd5b505afa158015610841573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610865919061162d565b61088457604051633b79c77360e21b815233600482015260240161066a565b610765848484610e3b565b60006104c982610e56565b60006001600160a01b0382166108c3576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6060600380546104de9061195b565b600a54816109096001546000540390565b61091391906118bf565b111561091e57600080fd5b6107ae81610ebe565b816daaeb6d7670e522a718067333cd4e3b156109f057604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c61711349060440160206040518083038186803b15801561099057600080fd5b505afa1580156109a4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109c8919061162d565b6109f057604051633b79c77360e21b81526001600160a01b038216600482015260240161066a565b61067d8383610fde565b836daaeb6d7670e522a718067333cd4e3b15610ad3576001600160a01b038116331415610a3257610a2d8585858561104a565b610adf565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c61711349060440160206040518083038186803b158015610a7c57600080fd5b505afa158015610a90573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ab4919061162d565b610ad357604051633b79c77360e21b815233600482015260240161066a565b610adf8585858561104a565b5050505050565b600c5460ff1615610af657600080fd5b610b00858561108e565b600980546001600160a01b03191632179055600a829055600b8190558251610b2f90600890602086019061137b565b5050600c805460ff1916600117905550505050565b60606008610b51836110be565b604051602001610b629291906117b4565b6040516020818303038152906040529050919050565b6009546001600160a01b03163314610b8f57600080fd5b610b99828261110c565b5050565b6009546001600160a01b03163314610bb457600080fd5b600a55565b6009546001600160a01b03163314610bd057600080fd5b8051610b9990600890602084019061137b565b60008054821080156104c9575050600090815260046020526040902054600160e01b161590565b6000610c158261088f565b9050336001600160a01b03821614610c4e57610c31813361042f565b610c4e576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000610cb582610e56565b9050836001600160a01b0316816001600160a01b031614610ce85760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610d3557610d18863361042f565b610d3557604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610d5c57604051633a954ecd60e21b815260040160405180910390fd5b8015610d6757600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040902055600160e11b8316610df25760018401600081815260046020526040902054610df0576000548114610df05760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b61067d838383604051806020016040528060008152506109fa565b600081600054811015610ea557600081815260046020526040902054600160e01b8116610ea3575b80610e9c575060001901600081815260046020526040902054610e7e565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b34610f7657333214610ecf57600080fd5b6000610ede6001546000540390565b905081600114610eed57600080fd5b6005600a54610efc91906118d7565b811115610f6b57610f0c3361089a565b15610f1657600080fd5b600c81600a54610f269190611918565b610f3091906118d7565b436000908152600e602052604090205410610f4a57600080fd5b436000908152600e60205260408120805491610f6583611996565b91905055505b610b9933600161110c565b600a811115610fbb5760405162461bcd60e51b81526020600482015260116024820152701b585e080c4c081c195c881dd85b1b195d607a1b604482015260640161066a565b600b54610fc890826118f9565b341015610fd457600080fd5b6107ae338261110c565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611055848484610682565b6001600160a01b0383163b156107655761107184848484611126565b610765576040516368d2bf6b60e11b815260040160405180910390fd5b81516110a190600290602085019061137b565b5080516110b590600390602084019061137b565b50600080555050565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a9004806110f5576110fa565b6110d8565b50819003601f19909101908152919050565b610b9982826040518060200160405280600081525061121e565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061115b90339089908890889060040161186f565b602060405180830381600087803b15801561117557600080fd5b505af19250505080156111a5575060408051601f3d908101601f191682019092526111a291810190611667565b60015b611200573d8080156111d3576040519150601f19603f3d011682016040523d82523d6000602084013e6111d8565b606091505b5080516111f8576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6112288383611284565b6001600160a01b0383163b1561067d576000548281035b6112526000868380600101945086611126565b61126f576040516368d2bf6b60e11b815260040160405180910390fd5b81811061123f578160005414610adf57600080fd5b600054816112a55760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461135457808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a460010161131c565b508161137257604051622e076360e81b815260040160405180910390fd5b60005550505050565b8280546113879061195b565b90600052602060002090601f0160209004810192826113a957600085556113ef565b82601f106113c257805160ff19168380011785556113ef565b828001600101855582156113ef579182015b828111156113ef5782518255916020019190600101906113d4565b506113fb9291506113ff565b5090565b5b808211156113fb5760008155600101611400565b600067ffffffffffffffff8084111561142f5761142f6119c7565b604051601f8501601f19908116603f01168101908282118183101715611457576114576119c7565b8160405280935085815286868601111561147057600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b03811681146114a157600080fd5b919050565b600082601f8301126114b757600080fd5b610e9c83833560208501611414565b6000602082840312156114d857600080fd5b610e9c8261148a565b600080604083850312156114f457600080fd5b6114fd8361148a565b915061150b6020840161148a565b90509250929050565b60008060006060848603121561152957600080fd5b6115328461148a565b92506115406020850161148a565b9150604084013590509250925092565b6000806000806080858703121561156657600080fd5b61156f8561148a565b935061157d6020860161148a565b925060408501359150606085013567ffffffffffffffff8111156115a057600080fd5b8501601f810187136115b157600080fd5b6115c087823560208401611414565b91505092959194509250565b600080604083850312156115df57600080fd5b6115e88361148a565b915060208301356115f8816119dd565b809150509250929050565b6000806040838503121561161657600080fd5b61161f8361148a565b946020939093013593505050565b60006020828403121561163f57600080fd5b8151610e9c816119dd565b60006020828403121561165c57600080fd5b8135610e9c816119eb565b60006020828403121561167957600080fd5b8151610e9c816119eb565b60006020828403121561169657600080fd5b813567ffffffffffffffff8111156116ad57600080fd5b611216848285016114a6565b600080600080600060a086880312156116d157600080fd5b853567ffffffffffffffff808211156116e957600080fd5b6116f589838a016114a6565b9650602088013591508082111561170b57600080fd5b61171789838a016114a6565b9550604088013591508082111561172d57600080fd5b5061173a888289016114a6565b9598949750949560608101359550608001359392505050565b60006020828403121561176557600080fd5b5035919050565b6000815180845261178481602086016020860161192f565b601f01601f19169290920160200192915050565b600081516117aa81856020860161192f565b9290920192915050565b600080845481600182811c9150808316806117d057607f831692505b60208084108214156117f057634e487b7160e01b86526022600452602486fd5b818015611804576001811461181557611842565b60ff19861689528489019650611842565b60008b81526020902060005b8681101561183a5781548b820152908501908301611821565b505084890196505b5050505050506118666118558286611798565b64173539b7b760d91b815260050190565b95945050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906118a29083018461176c565b9695505050505050565b602081526000610e9c602083018461176c565b600082198211156118d2576118d26119b1565b500190565b6000826118f457634e487b7160e01b600052601260045260246000fd5b500490565b6000816000190483118215151615611913576119136119b1565b500290565b60008282101561192a5761192a6119b1565b500390565b60005b8381101561194a578181015183820152602001611932565b838111156107655750506000910152565b600181811c9082168061196f57607f821691505b6020821081141561199057634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156119aa576119aa6119b1565b5060010190565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b80151581146107ae57600080fd5b6001600160e01b0319811681146107ae57600080fdfea26469706673582212208658f7f5893d8976f09d60a6a99bb6ca0ff2c1ad22360722be1b87cc8b2af6e864736f6c63430008070033

Deployed Bytecode Sourcemap

57494:3087:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19088:639;;;;;;;;;;-1:-1:-1;19088:639:0;;;;;:::i;:::-;;:::i;:::-;;;8296:14:1;;8289:22;8271:41;;8259:2;8244:18;19088:639:0;;;;;;;;19990:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;26481:218::-;;;;;;;;;;-1:-1:-1;26481:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;7285:32:1;;;7267:51;;7255:2;7240:18;26481:218:0;7121:203:1;59794:165:0;;;;;;:::i;:::-;;:::i;:::-;;57640:19;;;;;;;;;;;;;;;;;;;9279:25:1;;;9267:2;9252:18;57640:19:0;9133:177:1;57668:23:0;;;;;;;;;;-1:-1:-1;57668:23:0;;;;;;;;15741:323;;;;;;;;;;-1:-1:-1;16015:12:0;;15802:7;15999:13;:28;15741:323;;59967:171;;;;;;:::i;:::-;;:::i;59493:109::-;;;;;;;;;;;;;:::i;54857:143::-;;;;;;;;;;;;54957:42;54857:143;;60146:179;;;;;;:::i;:::-;;:::i;21383:152::-;;;;;;;;;;-1:-1:-1;21383:152:0;;;;;:::i;:::-;;:::i;16925:233::-;;;;;;;;;;-1:-1:-1;16925:233:0;;;;;:::i;:::-;;:::i;57578:20::-;;;;;;;;;;-1:-1:-1;57578:20:0;;;;-1:-1:-1;;;;;57578:20:0;;;20166:104;;;;;;;;;;;;;:::i;57829:132::-;;;;;;:::i;:::-;;:::i;59610:176::-;;;;;;;;;;-1:-1:-1;59610:176:0;;;;;:::i;:::-;;:::i;60333:245::-;;;;;;:::i;:::-;;:::i;58901:309::-;;;;;;;;;;-1:-1:-1;58901:309:0;;;;;:::i;:::-;;:::i;59218:164::-;;;;;;;;;;-1:-1:-1;59218:164:0;;;;;:::i;:::-;;:::i;58615:104::-;;;;;;;;;;-1:-1:-1;58615:104:0;;;;;:::i;:::-;;:::i;59390:95::-;;;;;;;;;;-1:-1:-1;59390:95:0;;;;;:::i;:::-;;:::i;57607:24::-;;;;;;;;;;;;;;;;27430:164;;;;;;;;;;-1:-1:-1;27430:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;27551:25:0;;;27527:4;27551:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;27430:164;58727:76;;;;;;;;;;-1:-1:-1;58727:76:0;;;;;:::i;:::-;;:::i;19088:639::-;19173:4;-1:-1:-1;;;;;;;;;19497:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;19574:25:0;;;19497:102;:179;;;-1:-1:-1;;;;;;;;;;19651:25:0;;;19497:179;19477:199;19088:639;-1:-1:-1;;19088:639:0:o;19990:100::-;20044:13;20077:5;20070:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19990:100;:::o;26481:218::-;26557:7;26582:16;26590:7;26582;:16::i;:::-;26577:64;;26607:34;;-1:-1:-1;;;26607:34:0;;;;;;;;;;;26577:64;-1:-1:-1;26661:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;26661:30:0;;26481:218::o;59794:165::-;59898:8;54957:42;56851:45;:49;56847:225;;56922:67;;-1:-1:-1;;;56922:67:0;;56973:4;56922:67;;;7541:34:1;-1:-1:-1;;;;;7611:15:1;;7591:18;;;7584:43;54957:42:0;;56922;;7476:18:1;;56922:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;56917:144;;57017:28;;-1:-1:-1;;;57017:28:0;;-1:-1:-1;;;;;7285:32:1;;57017:28:0;;;7267:51:1;7240:18;;57017:28:0;;;;;;;;56917:144;59919:32:::1;59933:8;59943:7;59919:13;:32::i;:::-;59794:165:::0;;;:::o;59967:171::-;60076:4;54957:42;56105:45;:49;56101:539;;-1:-1:-1;;;;;56386:18:0;;56394:10;56386:18;56382:85;;;60093:37:::1;60112:4;60118:2;60122:7;60093:18;:37::i;:::-;56445:7:::0;;56382:85;56486:69;;-1:-1:-1;;;56486:69:0;;56537:4;56486:69;;;7541:34:1;56544:10:0;7591:18:1;;;7584:43;54957:42:0;;56486;;7476:18:1;;56486:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;56481:148;;56583:30;;-1:-1:-1;;;56583:30:0;;56602:10;56583:30;;;7267:51:1;7240:18;;56583:30:0;7121:203:1;56481:148:0;60093:37:::1;60112:4;60118:2;60122:7;60093:18;:37::i;:::-;59967:171:::0;;;;:::o;59493:109::-;58853:5;;-1:-1:-1;;;;;58853:5:0;58862:10;58853:19;58845:28;;;;;;59543:51:::1;::::0;59551:10:::1;::::0;59572:21:::1;59543:51:::0;::::1;;;::::0;::::1;::::0;;;59572:21;59551:10;59543:51;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;59493:109::o:0;60146:179::-;60259:4;54957:42;56105:45;:49;56101:539;;-1:-1:-1;;;;;56386:18:0;;56394:10;56386:18;56382:85;;;60276:41:::1;60299:4;60305:2;60309:7;60276:22;:41::i;56382:85::-:0;56486:69;;-1:-1:-1;;;56486:69:0;;56537:4;56486:69;;;7541:34:1;56544:10:0;7591:18:1;;;7584:43;54957:42:0;;56486;;7476:18:1;;56486:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;56481:148;;56583:30;;-1:-1:-1;;;56583:30:0;;56602:10;56583:30;;;7267:51:1;7240:18;;56583:30:0;7121:203:1;56481:148:0;60276:41:::1;60299:4;60305:2;60309:7;60276:22;:41::i;21383:152::-:0;21455:7;21498:27;21517:7;21498:18;:27::i;16925:233::-;16997:7;-1:-1:-1;;;;;17021:19:0;;17017:60;;17049:28;;-1:-1:-1;;;17049:28:0;;;;;;;;;;;17017:60;-1:-1:-1;;;;;;17095:25:0;;;;;:18;:25;;;;;;11070:13;17095:55;;16925:233::o;20166:104::-;20222:13;20255:7;20248:14;;;;;:::i;57829:132::-;57919:9;;57909:6;57893:13;16015:12;;15802:7;15999:13;:28;;15741:323;57893:13;:22;;;;:::i;:::-;:35;;57885:44;;;;;;57940:13;57946:6;57940:5;:13::i;59610:176::-;59714:8;54957:42;56851:45;:49;56847:225;;56922:67;;-1:-1:-1;;;56922:67:0;;56973:4;56922:67;;;7541:34:1;-1:-1:-1;;;;;7611:15:1;;7591:18;;;7584:43;54957:42:0;;56922;;7476:18:1;;56922:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;56917:144;;57017:28;;-1:-1:-1;;;57017:28:0;;-1:-1:-1;;;;;7285:32:1;;57017:28:0;;;7267:51:1;7240:18;;57017:28:0;7121:203:1;56917:144:0;59735:43:::1;59759:8;59769;59735:23;:43::i;60333:245::-:0;60501:4;54957:42;56105:45;:49;56101:539;;-1:-1:-1;;;;;56386:18:0;;56394:10;56386:18;56382:85;;;60523:47:::1;60546:4;60552:2;60556:7;60565:4;60523:22;:47::i;:::-;56445:7:::0;;56382:85;56486:69;;-1:-1:-1;;;56486:69:0;;56537:4;56486:69;;;7541:34:1;56544:10:0;7591:18:1;;;7584:43;54957:42:0;;56486;;7476:18:1;;56486:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;56481:148;;56583:30;;-1:-1:-1;;;56583:30:0;;56602:10;56583:30;;;7267:51:1;7240:18;;56583:30:0;7121:203:1;56481:148:0;60523:47:::1;60546:4;60552:2;60556:7;60565:4;60523:22;:47::i;:::-;60333:245:::0;;;;;:::o;58901:309::-;59024:11;;;;:20;59016:29;;;;;;59056:26;59070:4;59076:5;59056:13;:26::i;:::-;59093:5;:17;;-1:-1:-1;;;;;;59093:17:0;59101:9;59093:17;;;59121:9;:15;;;59147:4;:8;;;59166:7;;;;:3;;:7;;;;;:::i;:::-;-1:-1:-1;;59184:11:0;:18;;-1:-1:-1;;59184:18:0;59198:4;59184:18;;;-1:-1:-1;;;;58901:309:0:o;59218:164::-;59283:13;59340:3;59345:18;59355:7;59345:9;:18::i;:::-;59323:50;;;;;;;;;:::i;:::-;;;;;;;;;;;;;59309:65;;59218:164;;;:::o;58615:104::-;58853:5;;-1:-1:-1;;;;;58853:5:0;58862:10;58853:19;58845:28;;;;;;58689:22:::1;58699:3;58704:6;58689:9;:22::i;:::-;58615:104:::0;;:::o;59390:95::-;58853:5;;-1:-1:-1;;;;;58853:5:0;58862:10;58853:19;58845:28;;;;;;59461:9:::1;:16:::0;59390:95::o;58727:76::-;58853:5;;-1:-1:-1;;;;;58853:5:0;58862:10;58853:19;58845:28;;;;;;58788:7;;::::1;::::0;:3:::1;::::0;:7:::1;::::0;::::1;::::0;::::1;:::i;27852:282::-:0;27917:4;28007:13;;27997:7;:23;27954:153;;;;-1:-1:-1;;28058:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;28058:44:0;:49;;27852:282::o;25914:408::-;26003:13;26019:16;26027:7;26019;:16::i;:::-;26003:32;-1:-1:-1;50249:10:0;-1:-1:-1;;;;;26052:28:0;;;26048:175;;26100:44;26117:5;50249:10;27430:164;:::i;26100:44::-;26095:128;;26172:35;;-1:-1:-1;;;26172:35:0;;;;;;;;;;;26095:128;26235:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;26235:35:0;-1:-1:-1;;;;;26235:35:0;;;;;;;;;26286:28;;26235:24;;26286:28;;;;;;;25992:330;25914:408;;:::o;30120:2825::-;30262:27;30292;30311:7;30292:18;:27::i;:::-;30262:57;;30377:4;-1:-1:-1;;;;;30336:45:0;30352:19;-1:-1:-1;;;;;30336:45:0;;30332:86;;30390:28;;-1:-1:-1;;;30390:28:0;;;;;;;;;;;30332:86;30432:27;29228:24;;;:15;:24;;;;;29456:26;;50249:10;28853:30;;;-1:-1:-1;;;;;28546:28:0;;28831:20;;;28828:56;30618:180;;30711:43;30728:4;50249:10;27430:164;:::i;30711:43::-;30706:92;;30763:35;;-1:-1:-1;;;30763:35:0;;;;;;;;;;;30706:92;-1:-1:-1;;;;;30815:16:0;;30811:52;;30840:23;;-1:-1:-1;;;30840:23:0;;;;;;;;;;;30811:52;31012:15;31009:160;;;31152:1;31131:19;31124:30;31009:160;-1:-1:-1;;;;;31549:24:0;;;;;;;:18;:24;;;;;;31547:26;;-1:-1:-1;;31547:26:0;;;31618:22;;;;;;;;;31616:24;;-1:-1:-1;31616:24:0;;;24772:11;24747:23;24743:41;24730:63;-1:-1:-1;;;24730:63:0;31911:26;;;;:17;:26;;;;;:175;-1:-1:-1;;;32206:47:0;;32202:627;;32311:1;32301:11;;32279:19;32434:30;;;:17;:30;;;;;;32430:384;;32572:13;;32557:11;:28;32553:242;;32719:30;;;;:17;:30;;;;;:52;;;32553:242;32260:569;32202:627;32876:7;32872:2;-1:-1:-1;;;;;32857:27:0;32866:4;-1:-1:-1;;;;;32857:27:0;;;;;;;;;;;30251:2694;;;30120:2825;;;:::o;33041:193::-;33187:39;33204:4;33210:2;33214:7;33187:39;;;;;;;;;;;;:16;:39::i;22538:1275::-;22605:7;22640;22742:13;;22735:4;:20;22731:1015;;;22780:14;22797:23;;;:17;:23;;;;;;-1:-1:-1;;;22886:24:0;;22882:845;;23551:113;23558:11;23551:113;;-1:-1:-1;;;23629:6:0;23611:25;;;;:17;:25;;;;;;23551:113;;;23697:6;22538:1275;-1:-1:-1;;;22538:1275:0:o;22882:845::-;22757:989;22731:1015;23774:31;;-1:-1:-1;;;23774:31:0;;;;;;;;;;;57969:638;58024:9;58020:441;;58063:10;58077:9;58063:23;58055:32;;;;;;58102:9;58114:13;16015:12;;15802:7;15999:13;:28;;15741:323;58114:13;58102:25;;58150:6;58160:1;58150:11;58142:20;;;;;;58197:1;58185:9;;:13;;;;:::i;:::-;58181:1;:17;58177:213;;;58227:21;58237:10;58227:9;:21::i;:::-;:26;58219:35;;;;;;58326:2;58321:1;58309:9;;:13;;;;:::i;:::-;58308:20;;;;:::i;:::-;58292:12;58281:24;;;;:10;:24;;;;;;:47;58273:56;;;;;;58359:12;58348:24;;;;:10;:24;;;;;:26;;;;;;:::i;:::-;;;;;;58177:213;58404:24;58414:10;58426:1;58404:9;:24::i;58020:441::-;58489:2;58479:6;:12;;58471:42;;;;-1:-1:-1;;;58471:42:0;;8989:2:1;58471:42:0;;;8971:21:1;9028:2;9008:18;;;9001:30;-1:-1:-1;;;9047:18:1;;;9040:47;9104:18;;58471:42:0;8787:341:1;58471:42:0;58554:4;;58545:13;;:6;:13;:::i;:::-;58532:9;:26;;58524:35;;;;;;58570:29;58580:10;58592:6;58570:9;:29::i;27039:234::-;50249:10;27134:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;27134:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;27134:60:0;;;;;;;;;;27210:55;;8271:41:1;;;27134:49:0;;50249:10;27210:55;;8244:18:1;27210:55:0;;;;;;;27039:234;;:::o;33834:407::-;34009:31;34022:4;34028:2;34032:7;34009:12;:31::i;:::-;-1:-1:-1;;;;;34055:14:0;;;:19;34051:183;;34094:56;34125:4;34131:2;34135:7;34144:5;34094:30;:56::i;:::-;34089:145;;34178:40;;-1:-1:-1;;;34178:40:0;;;;;;;;;;;14749:172;14830:13;;;;:5;;:13;;;;;:::i;:::-;-1:-1:-1;14854:17:0;;;;:7;;:17;;;;;:::i;:::-;-1:-1:-1;15313:7:0;14882:13;:31;-1:-1:-1;;14749:172:0:o;50369:1745::-;50434:17;50868:4;50861;50855:11;50851:22;50960:1;50954:4;50947:15;51035:4;51032:1;51028:12;51021:19;;;51117:1;51112:3;51105:14;51221:3;51460:5;51442:428;51508:1;51503:3;51499:11;51492:18;;51679:2;51673:4;51669:13;51665:2;51661:22;51656:3;51648:36;51773:2;51763:13;;;51830:25;;51848:5;;51830:25;51442:428;;;-1:-1:-1;51900:13:0;;;-1:-1:-1;;52015:14:0;;;52077:19;;;52015:14;50369:1745;-1:-1:-1;50369:1745:0:o;43994:112::-;44071:27;44081:2;44085:8;44071:27;;;;;;;;;;;;:9;:27::i;36325:716::-;36509:88;;-1:-1:-1;;;36509:88:0;;36488:4;;-1:-1:-1;;;;;36509:45:0;;;;;:88;;50249:10;;36576:4;;36582:7;;36591:5;;36509:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36509:88:0;;;;;;;;-1:-1:-1;;36509:88:0;;;;;;;;;;;;:::i;:::-;;;36505:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36792:13:0;;36788:235;;36838:40;;-1:-1:-1;;;36838:40:0;;;;;;;;;;;36788:235;36981:6;36975:13;36966:6;36962:2;36958:15;36951:38;36505:529;-1:-1:-1;;;;;;36668:64:0;-1:-1:-1;;;36668:64:0;;-1:-1:-1;36505:529:0;36325:716;;;;;;:::o;43221:689::-;43352:19;43358:2;43362:8;43352:5;:19::i;:::-;-1:-1:-1;;;;;43413:14:0;;;:19;43409:483;;43453:11;43467:13;43515:14;;;43548:233;43579:62;43618:1;43622:2;43626:7;;;;;;43635:5;43579:30;:62::i;:::-;43574:167;;43677:40;;-1:-1:-1;;;43677:40:0;;;;;;;;;;;43574:167;43776:3;43768:5;:11;43548:233;;43863:3;43846:13;;:20;43842:34;;43868:8;;;37503:2966;37576:20;37599:13;37627;37623:44;;37649:18;;-1:-1:-1;;;37649:18:0;;;;;;;;;;;37623:44;-1:-1:-1;;;;;38155:22:0;;;;;;:18;:22;;;;11208:2;38155:22;;;:71;;38193:32;38181:45;;38155:71;;;38469:31;;;:17;:31;;;;;-1:-1:-1;25203:15:0;;25177:24;25173:46;24772:11;24747:23;24743:41;24740:52;24730:63;;38469:173;;38704:23;;;;38469:31;;38155:22;;39469:25;38155:22;;39322:335;39983:1;39969:12;39965:20;39923:346;40024:3;40015:7;40012:16;39923:346;;40242:7;40232:8;40229:1;40202:25;40199:1;40196;40191:59;40077:1;40064:15;39923:346;;;-1:-1:-1;40302:13:0;40298:45;;40324:19;;-1:-1:-1;;;40324:19:0;;;;;;;;;;;40298:45;40360:13;:19;-1:-1:-1;59794: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:221::-;871:5;924:3;917:4;909:6;905:17;901:27;891:55;;942:1;939;932:12;891:55;964:79;1039:3;1030:6;1017:20;1010:4;1002:6;998:17;964:79;:::i;1054:186::-;1113:6;1166:2;1154:9;1145:7;1141:23;1137:32;1134:52;;;1182:1;1179;1172:12;1134:52;1205:29;1224:9;1205:29;:::i;1245:260::-;1313:6;1321;1374:2;1362:9;1353:7;1349:23;1345:32;1342:52;;;1390:1;1387;1380:12;1342:52;1413:29;1432:9;1413:29;:::i;:::-;1403:39;;1461:38;1495:2;1484:9;1480:18;1461:38;:::i;:::-;1451:48;;1245:260;;;;;:::o;1510:328::-;1587:6;1595;1603;1656:2;1644:9;1635:7;1631:23;1627:32;1624:52;;;1672:1;1669;1662:12;1624:52;1695:29;1714:9;1695:29;:::i;:::-;1685:39;;1743:38;1777:2;1766:9;1762:18;1743:38;:::i;:::-;1733:48;;1828:2;1817:9;1813:18;1800:32;1790:42;;1510:328;;;;;:::o;1843:666::-;1938:6;1946;1954;1962;2015:3;2003:9;1994:7;1990:23;1986:33;1983:53;;;2032:1;2029;2022:12;1983:53;2055:29;2074:9;2055:29;:::i;:::-;2045:39;;2103:38;2137:2;2126:9;2122:18;2103:38;:::i;:::-;2093:48;;2188:2;2177:9;2173:18;2160:32;2150:42;;2243:2;2232:9;2228:18;2215:32;2270:18;2262:6;2259:30;2256:50;;;2302:1;2299;2292:12;2256:50;2325:22;;2378:4;2370:13;;2366:27;-1:-1:-1;2356:55:1;;2407:1;2404;2397:12;2356:55;2430:73;2495:7;2490:2;2477:16;2472:2;2468;2464:11;2430:73;:::i;:::-;2420:83;;;1843:666;;;;;;;:::o;2514:315::-;2579:6;2587;2640:2;2628:9;2619:7;2615:23;2611:32;2608:52;;;2656:1;2653;2646:12;2608:52;2679:29;2698:9;2679:29;:::i;:::-;2669:39;;2758:2;2747:9;2743:18;2730:32;2771:28;2793:5;2771:28;:::i;:::-;2818:5;2808:15;;;2514:315;;;;;:::o;2834:254::-;2902:6;2910;2963:2;2951:9;2942:7;2938:23;2934:32;2931:52;;;2979:1;2976;2969:12;2931:52;3002:29;3021:9;3002:29;:::i;:::-;2992:39;3078:2;3063:18;;;;3050:32;;-1:-1:-1;;;2834:254:1:o;3093:245::-;3160:6;3213:2;3201:9;3192:7;3188:23;3184:32;3181:52;;;3229:1;3226;3219:12;3181:52;3261:9;3255:16;3280:28;3302:5;3280:28;:::i;3343:245::-;3401:6;3454:2;3442:9;3433:7;3429:23;3425:32;3422:52;;;3470:1;3467;3460:12;3422:52;3509:9;3496:23;3528:30;3552:5;3528:30;:::i;3593:249::-;3662:6;3715:2;3703:9;3694:7;3690:23;3686:32;3683:52;;;3731:1;3728;3721:12;3683:52;3763:9;3757:16;3782:30;3806:5;3782:30;:::i;3847:322::-;3916:6;3969:2;3957:9;3948:7;3944:23;3940:32;3937:52;;;3985:1;3982;3975:12;3937:52;4025:9;4012:23;4058:18;4050:6;4047:30;4044:50;;;4090:1;4087;4080:12;4044:50;4113;4155:7;4146:6;4135:9;4131:22;4113:50;:::i;4174:881::-;4299:6;4307;4315;4323;4331;4384:3;4372:9;4363:7;4359:23;4355:33;4352:53;;;4401:1;4398;4391:12;4352:53;4441:9;4428:23;4470:18;4511:2;4503:6;4500:14;4497:34;;;4527:1;4524;4517:12;4497:34;4550:50;4592:7;4583:6;4572:9;4568:22;4550:50;:::i;:::-;4540:60;;4653:2;4642:9;4638:18;4625:32;4609:48;;4682:2;4672:8;4669:16;4666:36;;;4698:1;4695;4688:12;4666:36;4721:52;4765:7;4754:8;4743:9;4739:24;4721:52;:::i;:::-;4711:62;;4826:2;4815:9;4811:18;4798:32;4782:48;;4855:2;4845:8;4842:16;4839:36;;;4871:1;4868;4861:12;4839:36;;4894:52;4938:7;4927:8;4916:9;4912:24;4894:52;:::i;:::-;4174:881;;;;-1:-1:-1;4884:62:1;;4993:2;4978:18;;4965:32;;-1:-1:-1;5044:3:1;5029:19;5016:33;;4174:881;-1:-1:-1;;;4174:881:1:o;5060:180::-;5119:6;5172:2;5160:9;5151:7;5147:23;5143:32;5140:52;;;5188:1;5185;5178:12;5140:52;-1:-1:-1;5211:23:1;;5060:180;-1:-1:-1;5060:180:1:o;5245:257::-;5286:3;5324:5;5318:12;5351:6;5346:3;5339:19;5367:63;5423:6;5416:4;5411:3;5407:14;5400:4;5393:5;5389:16;5367:63;:::i;:::-;5484:2;5463:15;-1:-1:-1;;5459:29:1;5450:39;;;;5491:4;5446:50;;5245:257;-1:-1:-1;;5245:257:1:o;5507:185::-;5549:3;5587:5;5581:12;5602:52;5647:6;5642:3;5635:4;5628:5;5624:16;5602:52;:::i;:::-;5670:16;;;;;5507:185;-1:-1:-1;;5507:185:1:o;5815:1301::-;6092:3;6121:1;6154:6;6148:13;6184:3;6206:1;6234:9;6230:2;6226:18;6216:28;;6294:2;6283:9;6279:18;6316;6306:61;;6360:4;6352:6;6348:17;6338:27;;6306:61;6386:2;6434;6426:6;6423:14;6403:18;6400:38;6397:165;;;-1:-1:-1;;;6461:33:1;;6517:4;6514:1;6507:15;6547:4;6468:3;6535:17;6397:165;6578:18;6605:104;;;;6723:1;6718:320;;;;6571:467;;6605:104;-1:-1:-1;;6638:24:1;;6626:37;;6683:16;;;;-1:-1:-1;6605:104:1;;6718:320;9388:1;9381:14;;;9425:4;9412:18;;6813:1;6827:165;6841:6;6838:1;6835:13;6827:165;;;6919:14;;6906:11;;;6899:35;6962:16;;;;6856:10;;6827:165;;;6831:3;;7021:6;7016:3;7012:16;7005:23;;6571:467;;;;;;;7054:56;7079:30;7105:3;7097:6;7079:30;:::i;:::-;-1:-1:-1;;;5757:20:1;;5802:1;5793:11;;5697:113;7054:56;7047:63;5815:1301;-1:-1:-1;;;;;5815:1301:1:o;7638:488::-;-1:-1:-1;;;;;7907:15:1;;;7889:34;;7959:15;;7954:2;7939:18;;7932:43;8006:2;7991:18;;7984:34;;;8054:3;8049:2;8034:18;;8027:31;;;7832:4;;8075:45;;8100:19;;8092:6;8075:45;:::i;:::-;8067:53;7638:488;-1:-1:-1;;;;;;7638:488:1:o;8563:219::-;8712:2;8701:9;8694:21;8675:4;8732:44;8772:2;8761:9;8757:18;8749:6;8732:44;:::i;9441:128::-;9481:3;9512:1;9508:6;9505:1;9502:13;9499:39;;;9518:18;;:::i;:::-;-1:-1:-1;9554:9:1;;9441:128::o;9574:217::-;9614:1;9640;9630:132;;9684:10;9679:3;9675:20;9672:1;9665:31;9719:4;9716:1;9709:15;9747:4;9744:1;9737:15;9630:132;-1:-1:-1;9776:9:1;;9574:217::o;9796:168::-;9836:7;9902:1;9898;9894:6;9890:14;9887:1;9884:21;9879:1;9872:9;9865:17;9861:45;9858:71;;;9909:18;;:::i;:::-;-1:-1:-1;9949:9:1;;9796:168::o;9969:125::-;10009:4;10037:1;10034;10031:8;10028:34;;;10042:18;;:::i;:::-;-1:-1:-1;10079:9:1;;9969:125::o;10099:258::-;10171:1;10181:113;10195:6;10192:1;10189:13;10181:113;;;10271:11;;;10265:18;10252:11;;;10245:39;10217:2;10210:10;10181:113;;;10312:6;10309:1;10306:13;10303:48;;;-1:-1:-1;;10347:1:1;10329:16;;10322:27;10099:258::o;10362:380::-;10441:1;10437:12;;;;10484;;;10505:61;;10559:4;10551:6;10547:17;10537:27;;10505:61;10612:2;10604:6;10601:14;10581:18;10578:38;10575:161;;;10658:10;10653:3;10649:20;10646:1;10639:31;10693:4;10690:1;10683:15;10721:4;10718:1;10711:15;10575:161;;10362:380;;;:::o;10747:135::-;10786:3;-1:-1:-1;;10807:17:1;;10804:43;;;10827:18;;:::i;:::-;-1:-1:-1;10874:1:1;10863:13;;10747:135::o;10887:127::-;10948:10;10943:3;10939:20;10936:1;10929:31;10979:4;10976:1;10969:15;11003:4;11000:1;10993:15;11019:127;11080:10;11075:3;11071:20;11068:1;11061:31;11111:4;11108:1;11101:15;11135:4;11132:1;11125:15;11151:118;11237:5;11230:13;11223:21;11216:5;11213:32;11203:60;;11259:1;11256;11249:12;11274:131;-1:-1:-1;;;;;;11348:32:1;;11338:43;;11328:71;;11395:1;11392;11385:12

Swarm Source

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