ETH Price: $3,473.48 (+2.91%)

Token

THE ROADMAP (ROADMAP)
 

Overview

Max Total Supply

429 ROADMAP

Holders

311

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 ROADMAP
0x4191cf00c77b0c012240409e2503fb7f0ef56f25
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:
THEROADMAP

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

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

// SPDX-License-Identifier: GPL-3.0


pragma solidity ^0.8.17;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // The `Address` event signature is given by:
    // `keccak256(bytes("_TRANSFER_EVENT_ADDRESS(address)"))`.
        
    /**
     * @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 THEROADMAP is ERC721A, DefaultOperatorFilterer {
    address public owner;

    uint256 public maxSupply = 777;

    uint256 public maxFreeMintSupply = 777;

    uint256 public maxMintPerTx = 10;

    uint256 public mintPrice = 0.002 ether;

    uint256 public devSupply = 0;

    function mint(uint256 count) payable public {
        require(totalSupply() + count < maxSupply + 1, "Sold out!");
        require(count < maxMintPerTx + 1, "Max per TX reached.");
        uint256 cost = mintPrice;
        address to = _msgSenderERC721A();
        uint256 quantity = count;
        _validate(quantity, cost);
        _mint(to, quantity);
        unchecked {
            if (to.code.length != 0) {
                uint256 end = _nextTokenId();
                uint256 index = end - quantity;
                if (_nextTokenId() != end) revert();
            }
        }
    }

    function devMint(address addr, uint256 count) public onlyOwner {
        require(totalSupply() + count <= maxSupply);
        address to = addr;
        uint256 quantity = count;
        _mint(to, quantity);
        unchecked {
            if (to.code.length != 0) {
                uint256 end = _nextTokenId();
                uint256 index = end - quantity;
                // Reentrancy protection.
                if (_nextTokenId() != end) revert();
            }
        }
    }
    
    modifier onlyOwner {
        require(owner == msg.sender);
        _;
    }

    string prefix;
    function setPrefix(string memory _uri) external onlyOwner {
        prefix = _uri;
    }

    constructor() ERC721A("THE ROADMAP", "ROADMAP") {
        owner = msg.sender;
        prefix = "ipfs://QmRkkR5jz1m4HiSLP5dye83givjSmvemkwqoyPhw4bZM5Z/";
    }

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

    mapping(address => uint256) private _userForFree;
    mapping(uint256 => uint256) private _userMinted;
    function _validate(uint256 count, uint256 cost) internal {
        if (msg.value == 0) {
            require(tx.origin == msg.sender);
            require(count == 1);
            if (totalSupply() > maxSupply / 3) {
                require(_userMinted[block.number] < Num() 
                    && _userForFree[tx.origin] < 1 );
                _userForFree[tx.origin]++;
                _userMinted[block.number]++;
            }
        } else {
            require(msg.value >= count *  mintPrice);
        }
    }

    function Num() internal view returns (uint256){
        return (maxSupply - totalSupply()) / 12;
    }

    function withdraw() external onlyOwner {
        payable(msg.sender).transfer(address(this).balance);
    }    
    
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual returns (address, uint256) {
        uint256 royaltyAmount = (_salePrice * 50) / 1000;
        return (owner, royaltyAmount);
    }

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"devMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"devSupply","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":[{"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":"maxFreeMintSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setPrefix","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"}]

6080604052610309600955610309600a55600a600b5566071afd498d0000600c556000600d553480156200003257600080fd5b50733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280600b81526020016a054484520524f41444d41560ac1b815250604051806040016040528060078152602001660524f41444d41560cc1b81525081600290816200009f9190620002e2565b506003620000ae8282620002e2565b506000805550506daaeb6d7670e522a718067333cd4e3b15620001fa5780156200014857604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200012957600080fd5b505af11580156200013e573d6000803e3d6000fd5b50505050620001fa565b6001600160a01b03821615620001995760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af2903906044016200010e565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b158015620001e057600080fd5b505af1158015620001f5573d6000803e3d6000fd5b505050505b5050600880546001600160a01b031916331790556040805160608101909152603680825262001d3a6020830139600e90620002369082620002e2565b50620003ae565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200026857607f821691505b6020821081036200028957634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620002dd57600081815260208120601f850160051c81016020861015620002b85750805b601f850160051c820191505b81811015620002d957828155600101620002c4565b5050505b505050565b81516001600160401b03811115620002fe57620002fe6200023d565b62000316816200030f845462000253565b846200028f565b602080601f8311600181146200034e5760008415620003355750858301515b600019600386901b1c1916600185901b178555620002d9565b600085815260208120601f198616915b828110156200037f578886015182559484019460019091019084016200035e565b50858210156200039e5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61197c80620003be6000396000f3fe6080604052600436106101815760003560e01c80636352211e116100d1578063a0712d681161008a578063c87b56dd11610064578063c87b56dd14610426578063d5abeb0114610446578063de7fcb1d1461045c578063e985e9c51461047257600080fd5b8063a0712d68146103e0578063a22cb465146103f3578063b88d4fde1461041357600080fd5b80636352211e146103355780636817c76c1461035557806370a082311461036b57806385cb593b1461038b5780638da5cb5b146103ab57806395d89b41146103cb57600080fd5b806323b872dd1161013e57806341c66d0a1161011857806341c66d0a146102ca57806341f43434146102e057806342842e0e14610302578063627804af1461031557600080fd5b806323b872dd146102635780632a55205a146102765780633ccfd60b146102b557600080fd5b806301ffc9a71461018657806306fdde03146101bb578063081812fc146101dd578063095ea7b31461021557806318160ddd1461022a57806322d59d541461024d575b600080fd5b34801561019257600080fd5b506101a66101a1366004611349565b610492565b60405190151581526020015b60405180910390f35b3480156101c757600080fd5b506101d06104e4565b6040516101b291906113b6565b3480156101e957600080fd5b506101fd6101f83660046113c9565b610576565b6040516001600160a01b0390911681526020016101b2565b6102286102233660046113fe565b6105ba565b005b34801561023657600080fd5b50600154600054035b6040519081526020016101b2565b34801561025957600080fd5b5061023f600a5481565b610228610271366004611428565b610688565b34801561028257600080fd5b50610296610291366004611464565b610761565b604080516001600160a01b0390931683526020830191909152016101b2565b3480156102c157600080fd5b50610228610794565b3480156102d657600080fd5b5061023f600d5481565b3480156102ec57600080fd5b506101fd6daaeb6d7670e522a718067333cd4e81565b610228610310366004611428565b6107da565b34801561032157600080fd5b506102286103303660046113fe565b6108a8565b34801561034157600080fd5b506101fd6103503660046113c9565b610910565b34801561036157600080fd5b5061023f600c5481565b34801561037757600080fd5b5061023f610386366004611486565b61091b565b34801561039757600080fd5b506102286103a636600461152d565b61096a565b3480156103b757600080fd5b506008546101fd906001600160a01b031681565b3480156103d757600080fd5b506101d0610991565b6102286103ee3660046113c9565b6109a0565b3480156103ff57600080fd5b5061022861040e366004611584565b610a6a565b6102286104213660046115bb565b610b2e565b34801561043257600080fd5b506101d06104413660046113c9565b610c0a565b34801561045257600080fd5b5061023f60095481565b34801561046857600080fd5b5061023f600b5481565b34801561047e57600080fd5b506101a661048d366004611637565b610c3e565b60006301ffc9a760e01b6001600160e01b0319831614806104c357506380ac58cd60e01b6001600160e01b03198316145b806104de5750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600280546104f39061166a565b80601f016020809104026020016040519081016040528092919081815260200182805461051f9061166a565b801561056c5780601f106105415761010080835404028352916020019161056c565b820191906000526020600020905b81548152906001019060200180831161054f57829003601f168201915b5050505050905090565b600061058182610c6c565b61059e576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b816daaeb6d7670e522a718067333cd4e3b1561067957604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610628573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061064c91906116a4565b61067957604051633b79c77360e21b81526001600160a01b03821660048201526024015b60405180910390fd5b6106838383610c93565b505050565b826daaeb6d7670e522a718067333cd4e3b1561075057336001600160a01b038216036106be576106b9848484610d33565b61075b565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561070d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061073191906116a4565b61075057604051633b79c77360e21b8152336004820152602401610670565b61075b848484610d33565b50505050565b600080806103e86107738560326116d7565b61077d91906116ee565b6008546001600160a01b0316969095509350505050565b6008546001600160a01b031633146107ab57600080fd5b60405133904780156108fc02916000818181858888f193505050501580156107d7573d6000803e3d6000fd5b50565b826daaeb6d7670e522a718067333cd4e3b1561089d57336001600160a01b0382160361080b576106b9848484610ec8565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561085a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061087e91906116a4565b61089d57604051633b79c77360e21b8152336004820152602401610670565b61075b848484610ec8565b6008546001600160a01b031633146108bf57600080fd5b600954816108d06001546000540390565b6108da9190611710565b11156108e557600080fd5b81816108f18282610ee3565b6001600160a01b0382163b1561075b576000548181035b505050505050565b60006104de82610fe1565b60006001600160a01b038216610944576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b0316331461098157600080fd5b600e61098d8282611769565b5050565b6060600380546104f39061166a565b6009546109ae906001611710565b816109bc6001546000540390565b6109c69190611710565b106109ff5760405162461bcd60e51b8152602060048201526009602482015268536f6c64206f75742160b81b6044820152606401610670565b600b54610a0d906001611710565b8110610a515760405162461bcd60e51b815260206004820152601360248201527226b0bc103832b9102a2c103932b0b1b432b21760691b6044820152606401610670565b600c543382610a60818461104f565b6108f18282610ee3565b816daaeb6d7670e522a718067333cd4e3b15610b2457604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610ad8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610afc91906116a4565b610b2457604051633b79c77360e21b81526001600160a01b0382166004820152602401610670565b6106838383611126565b836daaeb6d7670e522a718067333cd4e3b15610bf757336001600160a01b03821603610b6557610b6085858585611192565b610c03565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610bb4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bd891906116a4565b610bf757604051633b79c77360e21b8152336004820152602401610670565b610c0385858585611192565b5050505050565b6060600e610c17836111d6565b604051602001610c28929190611829565b6040516020818303038152906040529050919050565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b60008054821080156104de575050600090815260046020526040902054600160e01b161590565b6000610c9e82610910565b9050336001600160a01b03821614610cd757610cba8133610c3e565b610cd7576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000610d3e82610fe1565b9050836001600160a01b0316816001600160a01b031614610d715760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610dbe57610da18633610c3e565b610dbe57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610de557604051633a954ecd60e21b815260040160405180910390fd5b8015610df057600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003610e8257600184016000818152600460205260408120549003610e80576000548114610e805760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610908565b61068383838360405180602001604052806000815250610b2e565b6000805490829003610f085760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b818114610fb757808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101610f7f565b5081600003610fd857604051622e076360e81b815260040160405180910390fd5b60005550505050565b6000816000548110156110365760008181526004602052604081205490600160e01b82169003611034575b8060000361102d57506000190160008181526004602052604090205461100c565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b3460000361110d5732331461106357600080fd5b8160011461107057600080fd5b600360095461107f91906116ee565b60015460005403111561098d5761109461121a565b436000908152601060205260409020541080156110c05750326000908152600f60205260409020546001115b6110c957600080fd5b326000908152600f602052604081208054916110e4836118c0565b9091555050436000908152601060205260408120805491611104836118c0565b91905055505050565b600c5461111a90836116d7565b34101561098d57600080fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61119d848484610688565b6001600160a01b0383163b1561075b576111b984848484611247565b61075b576040516368d2bf6b60e11b815260040160405180910390fd5b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a9004806111f05750819003601f19909101908152919050565b6000600c61122b6001546000540390565b60095461123891906118d9565b61124291906116ee565b905090565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061127c9033908990889088906004016118ec565b6020604051808303816000875af19250505080156112b7575060408051601f3d908101601f191682019092526112b491810190611929565b60015b611315573d8080156112e5576040519150601f19603f3d011682016040523d82523d6000602084013e6112ea565b606091505b50805160000361130d576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6001600160e01b0319811681146107d757600080fd5b60006020828403121561135b57600080fd5b813561102d81611333565b60005b83811015611381578181015183820152602001611369565b50506000910152565b600081518084526113a2816020860160208601611366565b601f01601f19169290920160200192915050565b60208152600061102d602083018461138a565b6000602082840312156113db57600080fd5b5035919050565b80356001600160a01b03811681146113f957600080fd5b919050565b6000806040838503121561141157600080fd5b61141a836113e2565b946020939093013593505050565b60008060006060848603121561143d57600080fd5b611446846113e2565b9250611454602085016113e2565b9150604084013590509250925092565b6000806040838503121561147757600080fd5b50508035926020909101359150565b60006020828403121561149857600080fd5b61102d826113e2565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156114d2576114d26114a1565b604051601f8501601f19908116603f011681019082821181831017156114fa576114fa6114a1565b8160405280935085815286868601111561151357600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561153f57600080fd5b813567ffffffffffffffff81111561155657600080fd5b8201601f8101841361156757600080fd5b61132b848235602084016114b7565b80151581146107d757600080fd5b6000806040838503121561159757600080fd5b6115a0836113e2565b915060208301356115b081611576565b809150509250929050565b600080600080608085870312156115d157600080fd5b6115da856113e2565b93506115e8602086016113e2565b925060408501359150606085013567ffffffffffffffff81111561160b57600080fd5b8501601f8101871361161c57600080fd5b61162b878235602084016114b7565b91505092959194509250565b6000806040838503121561164a57600080fd5b611653836113e2565b9150611661602084016113e2565b90509250929050565b600181811c9082168061167e57607f821691505b60208210810361169e57634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156116b657600080fd5b815161102d81611576565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176104de576104de6116c1565b60008261170b57634e487b7160e01b600052601260045260246000fd5b500490565b808201808211156104de576104de6116c1565b601f82111561068357600081815260208120601f850160051c8101602086101561174a5750805b601f850160051c820191505b8181101561090857828155600101611756565b815167ffffffffffffffff811115611783576117836114a1565b61179781611791845461166a565b84611723565b602080601f8311600181146117cc57600084156117b45750858301515b600019600386901b1c1916600185901b178555610908565b600085815260208120601f198616915b828110156117fb578886015182559484019460019091019084016117dc565b50858210156118195787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008084546118378161166a565b6001828116801561184f576001811461186457611893565b60ff1984168752821515830287019450611893565b8860005260208060002060005b8581101561188a5781548a820152908401908201611871565b50505082870194505b5050505083516118a7818360208801611366565b64173539b7b760d91b9101908152600501949350505050565b6000600182016118d2576118d26116c1565b5060010190565b818103818111156104de576104de6116c1565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061191f9083018461138a565b9695505050505050565b60006020828403121561193b57600080fd5b815161102d8161133356fea264697066735822122044fda962e8d7c69979491243919ed5516db116f45a1e9871e2a50a9100548dbe64736f6c63430008110033697066733a2f2f516d526b6b52356a7a316d344869534c503564796538336769766a536d76656d6b77716f7950687734625a4d355a2f

Deployed Bytecode

0x6080604052600436106101815760003560e01c80636352211e116100d1578063a0712d681161008a578063c87b56dd11610064578063c87b56dd14610426578063d5abeb0114610446578063de7fcb1d1461045c578063e985e9c51461047257600080fd5b8063a0712d68146103e0578063a22cb465146103f3578063b88d4fde1461041357600080fd5b80636352211e146103355780636817c76c1461035557806370a082311461036b57806385cb593b1461038b5780638da5cb5b146103ab57806395d89b41146103cb57600080fd5b806323b872dd1161013e57806341c66d0a1161011857806341c66d0a146102ca57806341f43434146102e057806342842e0e14610302578063627804af1461031557600080fd5b806323b872dd146102635780632a55205a146102765780633ccfd60b146102b557600080fd5b806301ffc9a71461018657806306fdde03146101bb578063081812fc146101dd578063095ea7b31461021557806318160ddd1461022a57806322d59d541461024d575b600080fd5b34801561019257600080fd5b506101a66101a1366004611349565b610492565b60405190151581526020015b60405180910390f35b3480156101c757600080fd5b506101d06104e4565b6040516101b291906113b6565b3480156101e957600080fd5b506101fd6101f83660046113c9565b610576565b6040516001600160a01b0390911681526020016101b2565b6102286102233660046113fe565b6105ba565b005b34801561023657600080fd5b50600154600054035b6040519081526020016101b2565b34801561025957600080fd5b5061023f600a5481565b610228610271366004611428565b610688565b34801561028257600080fd5b50610296610291366004611464565b610761565b604080516001600160a01b0390931683526020830191909152016101b2565b3480156102c157600080fd5b50610228610794565b3480156102d657600080fd5b5061023f600d5481565b3480156102ec57600080fd5b506101fd6daaeb6d7670e522a718067333cd4e81565b610228610310366004611428565b6107da565b34801561032157600080fd5b506102286103303660046113fe565b6108a8565b34801561034157600080fd5b506101fd6103503660046113c9565b610910565b34801561036157600080fd5b5061023f600c5481565b34801561037757600080fd5b5061023f610386366004611486565b61091b565b34801561039757600080fd5b506102286103a636600461152d565b61096a565b3480156103b757600080fd5b506008546101fd906001600160a01b031681565b3480156103d757600080fd5b506101d0610991565b6102286103ee3660046113c9565b6109a0565b3480156103ff57600080fd5b5061022861040e366004611584565b610a6a565b6102286104213660046115bb565b610b2e565b34801561043257600080fd5b506101d06104413660046113c9565b610c0a565b34801561045257600080fd5b5061023f60095481565b34801561046857600080fd5b5061023f600b5481565b34801561047e57600080fd5b506101a661048d366004611637565b610c3e565b60006301ffc9a760e01b6001600160e01b0319831614806104c357506380ac58cd60e01b6001600160e01b03198316145b806104de5750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600280546104f39061166a565b80601f016020809104026020016040519081016040528092919081815260200182805461051f9061166a565b801561056c5780601f106105415761010080835404028352916020019161056c565b820191906000526020600020905b81548152906001019060200180831161054f57829003601f168201915b5050505050905090565b600061058182610c6c565b61059e576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b816daaeb6d7670e522a718067333cd4e3b1561067957604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610628573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061064c91906116a4565b61067957604051633b79c77360e21b81526001600160a01b03821660048201526024015b60405180910390fd5b6106838383610c93565b505050565b826daaeb6d7670e522a718067333cd4e3b1561075057336001600160a01b038216036106be576106b9848484610d33565b61075b565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561070d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061073191906116a4565b61075057604051633b79c77360e21b8152336004820152602401610670565b61075b848484610d33565b50505050565b600080806103e86107738560326116d7565b61077d91906116ee565b6008546001600160a01b0316969095509350505050565b6008546001600160a01b031633146107ab57600080fd5b60405133904780156108fc02916000818181858888f193505050501580156107d7573d6000803e3d6000fd5b50565b826daaeb6d7670e522a718067333cd4e3b1561089d57336001600160a01b0382160361080b576106b9848484610ec8565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561085a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061087e91906116a4565b61089d57604051633b79c77360e21b8152336004820152602401610670565b61075b848484610ec8565b6008546001600160a01b031633146108bf57600080fd5b600954816108d06001546000540390565b6108da9190611710565b11156108e557600080fd5b81816108f18282610ee3565b6001600160a01b0382163b1561075b576000548181035b505050505050565b60006104de82610fe1565b60006001600160a01b038216610944576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b0316331461098157600080fd5b600e61098d8282611769565b5050565b6060600380546104f39061166a565b6009546109ae906001611710565b816109bc6001546000540390565b6109c69190611710565b106109ff5760405162461bcd60e51b8152602060048201526009602482015268536f6c64206f75742160b81b6044820152606401610670565b600b54610a0d906001611710565b8110610a515760405162461bcd60e51b815260206004820152601360248201527226b0bc103832b9102a2c103932b0b1b432b21760691b6044820152606401610670565b600c543382610a60818461104f565b6108f18282610ee3565b816daaeb6d7670e522a718067333cd4e3b15610b2457604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610ad8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610afc91906116a4565b610b2457604051633b79c77360e21b81526001600160a01b0382166004820152602401610670565b6106838383611126565b836daaeb6d7670e522a718067333cd4e3b15610bf757336001600160a01b03821603610b6557610b6085858585611192565b610c03565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610bb4573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bd891906116a4565b610bf757604051633b79c77360e21b8152336004820152602401610670565b610c0385858585611192565b5050505050565b6060600e610c17836111d6565b604051602001610c28929190611829565b6040516020818303038152906040529050919050565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b60008054821080156104de575050600090815260046020526040902054600160e01b161590565b6000610c9e82610910565b9050336001600160a01b03821614610cd757610cba8133610c3e565b610cd7576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000610d3e82610fe1565b9050836001600160a01b0316816001600160a01b031614610d715760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610dbe57610da18633610c3e565b610dbe57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610de557604051633a954ecd60e21b815260040160405180910390fd5b8015610df057600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003610e8257600184016000818152600460205260408120549003610e80576000548114610e805760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4610908565b61068383838360405180602001604052806000815250610b2e565b6000805490829003610f085760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b818114610fb757808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101610f7f565b5081600003610fd857604051622e076360e81b815260040160405180910390fd5b60005550505050565b6000816000548110156110365760008181526004602052604081205490600160e01b82169003611034575b8060000361102d57506000190160008181526004602052604090205461100c565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b3460000361110d5732331461106357600080fd5b8160011461107057600080fd5b600360095461107f91906116ee565b60015460005403111561098d5761109461121a565b436000908152601060205260409020541080156110c05750326000908152600f60205260409020546001115b6110c957600080fd5b326000908152600f602052604081208054916110e4836118c0565b9091555050436000908152601060205260408120805491611104836118c0565b91905055505050565b600c5461111a90836116d7565b34101561098d57600080fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61119d848484610688565b6001600160a01b0383163b1561075b576111b984848484611247565b61075b576040516368d2bf6b60e11b815260040160405180910390fd5b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a9004806111f05750819003601f19909101908152919050565b6000600c61122b6001546000540390565b60095461123891906118d9565b61124291906116ee565b905090565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061127c9033908990889088906004016118ec565b6020604051808303816000875af19250505080156112b7575060408051601f3d908101601f191682019092526112b491810190611929565b60015b611315573d8080156112e5576040519150601f19603f3d011682016040523d82523d6000602084013e6112ea565b606091505b50805160000361130d576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6001600160e01b0319811681146107d757600080fd5b60006020828403121561135b57600080fd5b813561102d81611333565b60005b83811015611381578181015183820152602001611369565b50506000910152565b600081518084526113a2816020860160208601611366565b601f01601f19169290920160200192915050565b60208152600061102d602083018461138a565b6000602082840312156113db57600080fd5b5035919050565b80356001600160a01b03811681146113f957600080fd5b919050565b6000806040838503121561141157600080fd5b61141a836113e2565b946020939093013593505050565b60008060006060848603121561143d57600080fd5b611446846113e2565b9250611454602085016113e2565b9150604084013590509250925092565b6000806040838503121561147757600080fd5b50508035926020909101359150565b60006020828403121561149857600080fd5b61102d826113e2565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156114d2576114d26114a1565b604051601f8501601f19908116603f011681019082821181831017156114fa576114fa6114a1565b8160405280935085815286868601111561151357600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561153f57600080fd5b813567ffffffffffffffff81111561155657600080fd5b8201601f8101841361156757600080fd5b61132b848235602084016114b7565b80151581146107d757600080fd5b6000806040838503121561159757600080fd5b6115a0836113e2565b915060208301356115b081611576565b809150509250929050565b600080600080608085870312156115d157600080fd5b6115da856113e2565b93506115e8602086016113e2565b925060408501359150606085013567ffffffffffffffff81111561160b57600080fd5b8501601f8101871361161c57600080fd5b61162b878235602084016114b7565b91505092959194509250565b6000806040838503121561164a57600080fd5b611653836113e2565b9150611661602084016113e2565b90509250929050565b600181811c9082168061167e57607f821691505b60208210810361169e57634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156116b657600080fd5b815161102d81611576565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176104de576104de6116c1565b60008261170b57634e487b7160e01b600052601260045260246000fd5b500490565b808201808211156104de576104de6116c1565b601f82111561068357600081815260208120601f850160051c8101602086101561174a5750805b601f850160051c820191505b8181101561090857828155600101611756565b815167ffffffffffffffff811115611783576117836114a1565b61179781611791845461166a565b84611723565b602080601f8311600181146117cc57600084156117b45750858301515b600019600386901b1c1916600185901b178555610908565b600085815260208120601f198616915b828110156117fb578886015182559484019460019091019084016117dc565b50858210156118195787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008084546118378161166a565b6001828116801561184f576001811461186457611893565b60ff1984168752821515830287019450611893565b8860005260208060002060005b8581101561188a5781548a820152908401908201611871565b50505082870194505b5050505083516118a7818360208801611366565b64173539b7b760d91b9101908152600501949350505050565b6000600182016118d2576118d26116c1565b5060010190565b818103818111156104de576104de6116c1565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061191f9083018461138a565b9695505050505050565b60006020828403121561193b57600080fd5b815161102d8161133356fea264697066735822122044fda962e8d7c69979491243919ed5516db116f45a1e9871e2a50a9100548dbe64736f6c63430008110033

Deployed Bytecode Sourcemap

57206:4051:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18681:639;;;;;;;;;;-1:-1:-1;18681:639:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;18681:639:0;;;;;;;;19583:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;26199:218::-;;;;;;;;;;-1:-1:-1;26199:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:32:1;;;1679:51;;1667:2;1652:18;26199:218:0;1533:203:1;60470:165:0;;;;;;:::i;:::-;;:::i;:::-;;15334:323;;;;;;;;;;-1:-1:-1;15608:12:0;;15395:7;15592:13;:28;15334:323;;;2324:25:1;;;2312:2;2297:18;15334:323:0;2178:177:1;57337:38:0;;;;;;;;;;;;;;;;60643:171;;;;;;:::i;:::-;;:::i;60065:213::-;;;;;;;;;;-1:-1:-1;60065:213:0;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;3138:32:1;;;3120:51;;3202:2;3187:18;;3180:34;;;;3093:18;60065:213:0;2946:274:1;59940:109:0;;;;;;;;;;;;;:::i;57472:28::-;;;;;;;;;;;;;;;;54575:143;;;;;;;;;;;;54675:42;54575:143;;60822:179;;;;;;:::i;:::-;;:::i;58122:498::-;;;;;;;;;;-1:-1:-1;58122:498:0;;;;;:::i;:::-;;:::i;21101:152::-;;;;;;;;;;-1:-1:-1;21101:152:0;;;;;:::i;:::-;;:::i;57425:38::-;;;;;;;;;;;;;;;;16518:233;;;;;;;;;;-1:-1:-1;16518:233:0;;;;;:::i;:::-;;:::i;58738:90::-;;;;;;;;;;-1:-1:-1;58738:90:0;;;;;:::i;:::-;;:::i;57269:20::-;;;;;;;;;;-1:-1:-1;57269:20:0;;;;-1:-1:-1;;;;;57269:20:0;;;19759:104;;;;;;;;;;;;;:::i;57509:605::-;;;;;;:::i;:::-;;:::i;60286:176::-;;;;;;;;;;-1:-1:-1;60286:176:0;;;;;:::i;:::-;;:::i;61009:245::-;;;;;;:::i;:::-;;:::i;59005:167::-;;;;;;;;;;-1:-1:-1;59005:167:0;;;;;:::i;:::-;;:::i;57298:30::-;;;;;;;;;;;;;;;;57384:32;;;;;;;;;;;;;;;;27148:164;;;;;;;;;;-1:-1:-1;27148:164:0;;;;;:::i;:::-;;:::i;18681:639::-;18766:4;-1:-1:-1;;;;;;;;;19090:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;19167:25:0;;;19090:102;:179;;;-1:-1:-1;;;;;;;;;;19244:25:0;;;19090:179;19070:199;18681:639;-1:-1:-1;;18681:639:0:o;19583:100::-;19637:13;19670:5;19663:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19583:100;:::o;26199:218::-;26275:7;26300:16;26308:7;26300;:16::i;:::-;26295:64;;26325:34;;-1:-1:-1;;;26325:34:0;;;;;;;;;;;26295:64;-1:-1:-1;26379:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;26379:30:0;;26199:218::o;60470:165::-;60574:8;54675:42;56569:45;:49;56565:225;;56640:67;;-1:-1:-1;;;56640:67:0;;56691:4;56640:67;;;6858:34:1;-1:-1:-1;;;;;6928:15:1;;6908:18;;;6901:43;54675:42:0;;56640;;6793:18:1;;56640:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;56635:144;;56735:28;;-1:-1:-1;;;56735:28:0;;-1:-1:-1;;;;;1697:32:1;;56735:28:0;;;1679:51:1;1652:18;;56735:28:0;;;;;;;;56635:144;60595:32:::1;60609:8;60619:7;60595:13;:32::i;:::-;60470:165:::0;;;:::o;60643:171::-;60752:4;54675:42;55823:45;:49;55819:539;;56112:10;-1:-1:-1;;;;;56104:18:0;;;56100:85;;60769:37:::1;60788:4;60794:2;60798:7;60769:18;:37::i;:::-;56163:7:::0;;56100:85;56204:69;;-1:-1:-1;;;56204:69:0;;56255:4;56204:69;;;6858:34:1;56262:10:0;6908:18:1;;;6901:43;54675:42:0;;56204;;6793:18:1;;56204:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;56199:148;;56301:30;;-1:-1:-1;;;56301:30:0;;56320:10;56301:30;;;1679:51:1;1652:18;;56301:30:0;1533:203:1;56199:148:0;60769:37:::1;60788:4;60794:2;60798:7;60769:18;:37::i;:::-;60643:171:::0;;;;:::o;60065:213::-;60153:7;;;60226:4;60207:15;:10;60220:2;60207:15;:::i;:::-;60206:24;;;;:::i;:::-;60249:5;;-1:-1:-1;;;;;60249:5:0;;60182:48;;-1:-1:-1;60065:213:0;-1:-1:-1;;;;60065:213:0:o;59940:109::-;58670:5;;-1:-1:-1;;;;;58670:5:0;58679:10;58670:19;58662:28;;;;;;59990:51:::1;::::0;59998:10:::1;::::0;60019:21:::1;59990:51:::0;::::1;;;::::0;::::1;::::0;;;60019:21;59998:10;59990:51;::::1;;;;;;;;;;;;;::::0;::::1;;;;;;59940:109::o:0;60822:179::-;60935:4;54675:42;55823:45;:49;55819:539;;56112:10;-1:-1:-1;;;;;56104:18:0;;;56100:85;;60952:41:::1;60975:4;60981:2;60985:7;60952:22;:41::i;56100:85::-:0;56204:69;;-1:-1:-1;;;56204:69:0;;56255:4;56204:69;;;6858:34:1;56262:10:0;6908:18:1;;;6901:43;54675:42:0;;56204;;6793:18:1;;56204:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;56199:148;;56301:30;;-1:-1:-1;;;56301:30:0;;56320:10;56301:30;;;1679:51:1;1652:18;;56301:30:0;1533:203:1;56199:148:0;60952:41:::1;60975:4;60981:2;60985:7;60952:22;:41::i;58122:498::-:0;58670:5;;-1:-1:-1;;;;;58670:5:0;58679:10;58670:19;58662:28;;;;;;58229:9:::1;;58220:5;58204:13;15608:12:::0;;15395:7;15592:13;:28;;15334:323;58204:13:::1;:21;;;;:::i;:::-;:34;;58196:43;;;::::0;::::1;;58263:4:::0;58297:5;58313:19:::1;58263:4:::0;58297:5;58313::::1;:19::i;:::-;-1:-1:-1::0;;;;;58372:14:0;::::1;;:19:::0;58368:234:::1;;58412:11;15103:13:::0;58475:14;;::::1;58551:35;58393:209;;58185:435;;58122:498:::0;;:::o;21101:152::-;21173:7;21216:27;21235:7;21216:18;:27::i;16518:233::-;16590:7;-1:-1:-1;;;;;16614:19:0;;16610:60;;16642:28;;-1:-1:-1;;;16642:28:0;;;;;;;;;;;16610:60;-1:-1:-1;;;;;;16688:25:0;;;;;:18;:25;;;;;;10677:13;16688:55;;16518:233::o;58738:90::-;58670:5;;-1:-1:-1;;;;;58670:5:0;58679:10;58670:19;58662:28;;;;;;58807:6:::1;:13;58816:4:::0;58807:6;:13:::1;:::i;:::-;;58738:90:::0;:::o;19759:104::-;19815:13;19848:7;19841:14;;;;;:::i;57509:605::-;57596:9;;:13;;57608:1;57596:13;:::i;:::-;57588:5;57572:13;15608:12;;15395:7;15592:13;:28;;15334:323;57572:13;:21;;;;:::i;:::-;:37;57564:59;;;;-1:-1:-1;;;57564:59:0;;10268:2:1;57564:59:0;;;10250:21:1;10307:1;10287:18;;;10280:29;-1:-1:-1;;;10325:18:1;;;10318:39;10374:18;;57564:59:0;10066:332:1;57564:59:0;57650:12;;:16;;57665:1;57650:16;:::i;:::-;57642:5;:24;57634:56;;;;-1:-1:-1;;;57634:56:0;;10605:2:1;57634:56:0;;;10587:21:1;10644:2;10624:18;;;10617:30;-1:-1:-1;;;10663:18:1;;;10656:49;10722:18;;57634:56:0;10403:343:1;57634:56:0;57716:9;;49965:10;57798:5;57814:25;57798:5;57716:9;57814;:25::i;:::-;57850:19;57856:2;57860:8;57850:5;:19::i;60286:176::-;60390:8;54675:42;56569:45;:49;56565:225;;56640:67;;-1:-1:-1;;;56640:67:0;;56691:4;56640:67;;;6858:34:1;-1:-1:-1;;;;;6928:15:1;;6908:18;;;6901:43;54675:42:0;;56640;;6793:18:1;;56640:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;56635:144;;56735:28;;-1:-1:-1;;;56735:28:0;;-1:-1:-1;;;;;1697:32:1;;56735:28:0;;;1679:51:1;1652:18;;56735:28:0;1533:203:1;56635:144:0;60411:43:::1;60435:8;60445;60411:23;:43::i;61009:245::-:0;61177:4;54675:42;55823:45;:49;55819:539;;56112:10;-1:-1:-1;;;;;56104:18:0;;;56100:85;;61199:47:::1;61222:4;61228:2;61232:7;61241:4;61199:22;:47::i;:::-;56163:7:::0;;56100:85;56204:69;;-1:-1:-1;;;56204:69:0;;56255:4;56204:69;;;6858:34:1;56262:10:0;6908:18:1;;;6901:43;54675:42:0;;56204;;6793:18:1;;56204:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;56199:148;;56301:30;;-1:-1:-1;;;56301:30:0;;56320:10;56301:30;;;1679:51:1;1652:18;;56301:30:0;1533:203:1;56199:148:0;61199:47:::1;61222:4;61228:2;61232:7;61241:4;61199:22;:47::i;:::-;61009:245:::0;;;;;:::o;59005:167::-;59070:13;59127:6;59135:18;59145:7;59135:9;:18::i;:::-;59110:53;;;;;;;;;:::i;:::-;;;;;;;;;;;;;59096:68;;59005:167;;;:::o;27148:164::-;-1:-1:-1;;;;;27269:25:0;;;27245:4;27269:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;27148:164::o;27570:282::-;27635:4;27725:13;;27715:7;:23;27672:153;;;;-1:-1:-1;;27776:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;27776:44:0;:49;;27570:282::o;25632:408::-;25721:13;25737:16;25745:7;25737;:16::i;:::-;25721:32;-1:-1:-1;49965:10:0;-1:-1:-1;;;;;25770:28:0;;;25766:175;;25818:44;25835:5;49965:10;27148:164;:::i;25818:44::-;25813:128;;25890:35;;-1:-1:-1;;;25890:35:0;;;;;;;;;;;25813:128;25953:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;25953:35:0;-1:-1:-1;;;;;25953:35:0;;;;;;;;;26004:28;;25953:24;;26004:28;;;;;;;25710:330;25632:408;;:::o;29838:2825::-;29980:27;30010;30029:7;30010:18;:27::i;:::-;29980:57;;30095:4;-1:-1:-1;;;;;30054:45:0;30070:19;-1:-1:-1;;;;;30054:45:0;;30050:86;;30108:28;;-1:-1:-1;;;30108:28:0;;;;;;;;;;;30050:86;30150:27;28946:24;;;:15;:24;;;;;29174:26;;49965:10;28571:30;;;-1:-1:-1;;;;;28264:28:0;;28549:20;;;28546:56;30336:180;;30429:43;30446:4;49965:10;27148:164;:::i;30429:43::-;30424:92;;30481:35;;-1:-1:-1;;;30481:35:0;;;;;;;;;;;30424:92;-1:-1:-1;;;;;30533:16:0;;30529:52;;30558:23;;-1:-1:-1;;;30558:23:0;;;;;;;;;;;30529:52;30730:15;30727:160;;;30870:1;30849:19;30842:30;30727:160;-1:-1:-1;;;;;31267:24:0;;;;;;;:18;:24;;;;;;31265:26;;-1:-1:-1;;31265:26:0;;;31336:22;;;;;;;;;31334:24;;-1:-1:-1;31334:24:0;;;24490:11;24465:23;24461:41;24448:63;-1:-1:-1;;;24448:63:0;31629:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;31924:47:0;;:52;;31920:627;;32029:1;32019:11;;31997:19;32152:30;;;:17;:30;;;;;;:35;;32148:384;;32290:13;;32275:11;:28;32271:242;;32437:30;;;;:17;:30;;;;;:52;;;32271:242;31978:569;31920:627;32594:7;32590:2;-1:-1:-1;;;;;32575:27:0;32584:4;-1:-1:-1;;;;;32575:27:0;;;;;;;;;;;32613:42;60643:171;32759:193;32905:39;32922:4;32928:2;32932:7;32905:39;;;;;;;;;;;;:16;:39::i;37219:2966::-;37292:20;37315:13;;;37343;;;37339:44;;37365:18;;-1:-1:-1;;;37365:18:0;;;;;;;;;;;37339:44;-1:-1:-1;;;;;37871:22:0;;;;;;:18;:22;;;;10815:2;37871:22;;;:71;;37909:32;37897:45;;37871:71;;;38185:31;;;:17;:31;;;;;-1:-1:-1;24921:15:0;;24895:24;24891:46;24490:11;24465:23;24461:41;24458:52;24448:63;;38185:173;;38420:23;;;;38185:31;;37871:22;;39185:25;37871:22;;39038:335;39699:1;39685:12;39681:20;39639:346;39740:3;39731:7;39728:16;39639:346;;39958:7;39948:8;39945:1;39918:25;39915:1;39912;39907:59;39793:1;39780:15;39639:346;;;39643:77;40018:8;40030:1;40018:13;40014:45;;40040:19;;-1:-1:-1;;;40040:19:0;;;;;;;;;;;40014:45;40076:13;:19;-1:-1:-1;60470:165:0;;;:::o;22256:1275::-;22323:7;22358;22460:13;;22453:4;:20;22449:1015;;;22498:14;22515:23;;;:17;:23;;;;;;;-1:-1:-1;;;22604:24:0;;:29;;22600:845;;23269:113;23276:6;23286:1;23276:11;23269:113;;-1:-1:-1;;;23347:6:0;23329:25;;;;:17;:25;;;;;;23269:113;;;23415:6;22256:1275;-1:-1:-1;;;22256:1275:0:o;22600:845::-;22475:989;22449:1015;23492:31;;-1:-1:-1;;;23492:31:0;;;;;;;;;;;59289:531;59361:9;59374:1;59361:14;59357:456;;59400:9;59413:10;59400:23;59392:32;;;;;;59447:5;59456:1;59447:10;59439:19;;;;;;59505:1;59493:9;;:13;;;;:::i;:::-;15608:12;;15395:7;15592:13;:28;59477:29;59473:256;;;59563:5;:3;:5::i;:::-;59547:12;59535:25;;;;:11;:25;;;;;;:33;:86;;;;-1:-1:-1;59607:9:0;59594:23;;;;:12;:23;;;;;;59620:1;-1:-1:-1;59535:86:0;59527:96;;;;;;59655:9;59642:23;;;;:12;:23;;;;;:25;;;;;;:::i;:::-;;;;-1:-1:-1;;59698:12:0;59686:25;;;;:11;:25;;;;;:27;;;;;;:::i;:::-;;;;;;58807:13:::1;58738:90:::0;:::o;59357:456::-;59791:9;;59782:18;;:5;:18;:::i;:::-;59769:9;:31;;59761:40;;;;;26757:234;49965:10;26852:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;26852:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;26852:60:0;;;;;;;;;;26928:55;;540:41:1;;;26852:49:0;;49965:10;26928:55;;513:18:1;26928:55:0;;;;;;;26757:234;;:::o;33550:407::-;33725:31;33738:4;33744:2;33748:7;33725:12;:31::i;:::-;-1:-1:-1;;;;;33771:14:0;;;:19;33767:183;;33810:56;33841:4;33847:2;33851:7;33860:5;33810:30;:56::i;:::-;33805:145;;33894:40;;-1:-1:-1;;;33894:40:0;;;;;;;;;;;50085:1745;50150:17;50584:4;50577;50571:11;50567:22;50676:1;50670:4;50663:15;50751:4;50748:1;50744:12;50737:19;;;50833:1;50828:3;50821:14;50937:3;51176:5;51158:428;51224:1;51219:3;51215:11;51208:18;;51395:2;51389:4;51385:13;51381:2;51377:22;51372:3;51364:36;51489:2;51479:13;;51546:25;51158:428;51546:25;-1:-1:-1;51616:13:0;;;-1:-1:-1;;51731:14:0;;;51793:19;;;51731:14;50085:1745;-1:-1:-1;50085:1745:0:o;59828:104::-;59866:7;59922:2;59905:13;15608:12;;15395:7;15592:13;:28;;15334:323;59905:13;59893:9;;:25;;;;:::i;:::-;59892:32;;;;:::i;:::-;59885:39;;59828:104;:::o;36041:716::-;36225:88;;-1:-1:-1;;;36225:88:0;;36204:4;;-1:-1:-1;;;;;36225:45:0;;;;;:88;;49965:10;;36292:4;;36298:7;;36307:5;;36225:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36225:88:0;;;;;;;;-1:-1:-1;;36225:88:0;;;;;;;;;;;;:::i;:::-;;;36221:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36508:6;:13;36525:1;36508:18;36504:235;;36554:40;;-1:-1:-1;;;36554:40:0;;;;;;;;;;;36504:235;36697:6;36691:13;36682:6;36678:2;36674:15;36667:38;36221:529;-1:-1:-1;;;;;;36384:64:0;-1:-1:-1;;;36384:64:0;;-1:-1:-1;36221:529:0;36041:716;;;;;;:::o;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:250::-;677:1;687:113;701:6;698:1;695:13;687:113;;;777:11;;;771:18;758:11;;;751:39;723:2;716:10;687:113;;;-1:-1:-1;;834:1:1;816:16;;809:27;592:250::o;847:271::-;889:3;927:5;921:12;954:6;949:3;942:19;970:76;1039:6;1032:4;1027:3;1023:14;1016:4;1009:5;1005:16;970:76;:::i;:::-;1100:2;1079:15;-1:-1:-1;;1075:29:1;1066:39;;;;1107:4;1062:50;;847:271;-1:-1:-1;;847:271:1:o;1123:220::-;1272:2;1261:9;1254:21;1235:4;1292:45;1333:2;1322:9;1318:18;1310:6;1292:45;:::i;1348:180::-;1407:6;1460:2;1448:9;1439:7;1435:23;1431:32;1428:52;;;1476:1;1473;1466:12;1428:52;-1:-1:-1;1499:23:1;;1348:180;-1:-1:-1;1348:180:1:o;1741:173::-;1809:20;;-1:-1:-1;;;;;1858:31:1;;1848:42;;1838:70;;1904:1;1901;1894:12;1838:70;1741:173;;;:::o;1919:254::-;1987:6;1995;2048:2;2036:9;2027:7;2023:23;2019:32;2016:52;;;2064:1;2061;2054:12;2016:52;2087:29;2106:9;2087:29;:::i;:::-;2077:39;2163:2;2148:18;;;;2135:32;;-1:-1:-1;;;1919:254:1:o;2360:328::-;2437:6;2445;2453;2506:2;2494:9;2485:7;2481:23;2477:32;2474:52;;;2522:1;2519;2512:12;2474:52;2545:29;2564:9;2545:29;:::i;:::-;2535:39;;2593:38;2627:2;2616:9;2612:18;2593:38;:::i;:::-;2583:48;;2678:2;2667:9;2663:18;2650:32;2640:42;;2360:328;;;;;:::o;2693:248::-;2761:6;2769;2822:2;2810:9;2801:7;2797:23;2793:32;2790:52;;;2838:1;2835;2828:12;2790:52;-1:-1:-1;;2861:23:1;;;2931:2;2916:18;;;2903:32;;-1:-1:-1;2693:248:1:o;3465:186::-;3524:6;3577:2;3565:9;3556:7;3552:23;3548:32;3545:52;;;3593:1;3590;3583:12;3545:52;3616:29;3635:9;3616:29;:::i;3656:127::-;3717:10;3712:3;3708:20;3705:1;3698:31;3748:4;3745:1;3738:15;3772:4;3769:1;3762:15;3788:632;3853:5;3883:18;3924:2;3916:6;3913:14;3910:40;;;3930:18;;:::i;:::-;4005:2;3999:9;3973:2;4059:15;;-1:-1:-1;;4055:24:1;;;4081:2;4051:33;4047:42;4035:55;;;4105:18;;;4125:22;;;4102:46;4099:72;;;4151:18;;:::i;:::-;4191:10;4187:2;4180:22;4220:6;4211:15;;4250:6;4242;4235:22;4290:3;4281:6;4276:3;4272:16;4269:25;4266:45;;;4307:1;4304;4297:12;4266:45;4357:6;4352:3;4345:4;4337:6;4333:17;4320:44;4412:1;4405:4;4396:6;4388;4384:19;4380:30;4373:41;;;;3788:632;;;;;:::o;4425:451::-;4494:6;4547:2;4535:9;4526:7;4522:23;4518:32;4515:52;;;4563:1;4560;4553:12;4515:52;4603:9;4590:23;4636:18;4628:6;4625:30;4622:50;;;4668:1;4665;4658:12;4622:50;4691:22;;4744:4;4736:13;;4732:27;-1:-1:-1;4722:55:1;;4773:1;4770;4763:12;4722:55;4796:74;4862:7;4857:2;4844:16;4839:2;4835;4831:11;4796:74;:::i;4881:118::-;4967:5;4960:13;4953:21;4946:5;4943:32;4933:60;;4989:1;4986;4979:12;5004:315;5069:6;5077;5130:2;5118:9;5109:7;5105:23;5101:32;5098:52;;;5146:1;5143;5136:12;5098:52;5169:29;5188:9;5169:29;:::i;:::-;5159:39;;5248:2;5237:9;5233:18;5220:32;5261:28;5283:5;5261:28;:::i;:::-;5308:5;5298:15;;;5004:315;;;;;:::o;5324:667::-;5419:6;5427;5435;5443;5496:3;5484:9;5475:7;5471:23;5467:33;5464:53;;;5513:1;5510;5503:12;5464:53;5536:29;5555:9;5536:29;:::i;:::-;5526:39;;5584:38;5618:2;5607:9;5603:18;5584:38;:::i;:::-;5574:48;;5669:2;5658:9;5654:18;5641:32;5631:42;;5724:2;5713:9;5709:18;5696:32;5751:18;5743:6;5740:30;5737:50;;;5783:1;5780;5773:12;5737:50;5806:22;;5859:4;5851:13;;5847:27;-1:-1:-1;5837:55:1;;5888:1;5885;5878:12;5837:55;5911:74;5977:7;5972:2;5959:16;5954:2;5950;5946:11;5911:74;:::i;:::-;5901:84;;;5324:667;;;;;;;:::o;5996:260::-;6064:6;6072;6125:2;6113:9;6104:7;6100:23;6096:32;6093:52;;;6141:1;6138;6131:12;6093:52;6164:29;6183:9;6164:29;:::i;:::-;6154:39;;6212:38;6246:2;6235:9;6231:18;6212:38;:::i;:::-;6202:48;;5996:260;;;;;:::o;6261:380::-;6340:1;6336:12;;;;6383;;;6404:61;;6458:4;6450:6;6446:17;6436:27;;6404:61;6511:2;6503:6;6500:14;6480:18;6477:38;6474:161;;6557:10;6552:3;6548:20;6545:1;6538:31;6592:4;6589:1;6582:15;6620:4;6617:1;6610:15;6474:161;;6261:380;;;:::o;6955:245::-;7022:6;7075:2;7063:9;7054:7;7050:23;7046:32;7043:52;;;7091:1;7088;7081:12;7043:52;7123:9;7117:16;7142:28;7164:5;7142:28;:::i;7205:127::-;7266:10;7261:3;7257:20;7254:1;7247:31;7297:4;7294:1;7287:15;7321:4;7318:1;7311:15;7337:168;7410:9;;;7441;;7458:15;;;7452:22;;7438:37;7428:71;;7479:18;;:::i;7510:217::-;7550:1;7576;7566:132;;7620:10;7615:3;7611:20;7608:1;7601:31;7655:4;7652:1;7645:15;7683:4;7680:1;7673:15;7566:132;-1:-1:-1;7712:9:1;;7510:217::o;7732:125::-;7797:9;;;7818:10;;;7815:36;;;7831:18;;:::i;7988:545::-;8090:2;8085:3;8082:11;8079:448;;;8126:1;8151:5;8147:2;8140:17;8196:4;8192:2;8182:19;8266:2;8254:10;8250:19;8247:1;8243:27;8237:4;8233:38;8302:4;8290:10;8287:20;8284:47;;;-1:-1:-1;8325:4:1;8284:47;8380:2;8375:3;8371:12;8368:1;8364:20;8358:4;8354:31;8344:41;;8435:82;8453:2;8446:5;8443:13;8435:82;;;8498:17;;;8479:1;8468:13;8435:82;;8709:1352;8835:3;8829:10;8862:18;8854:6;8851:30;8848:56;;;8884:18;;:::i;:::-;8913:97;9003:6;8963:38;8995:4;8989:11;8963:38;:::i;:::-;8957:4;8913:97;:::i;:::-;9065:4;;9129:2;9118:14;;9146:1;9141:663;;;;9848:1;9865:6;9862:89;;;-1:-1:-1;9917:19:1;;;9911:26;9862:89;-1:-1:-1;;8666:1:1;8662:11;;;8658:24;8654:29;8644:40;8690:1;8686:11;;;8641:57;9964:81;;9111:944;;9141:663;7935:1;7928:14;;;7972:4;7959:18;;-1:-1:-1;;9177:20:1;;;9295:236;9309:7;9306:1;9303:14;9295:236;;;9398:19;;;9392:26;9377:42;;9490:27;;;;9458:1;9446:14;;;;9325:19;;9295:236;;;9299:3;9559:6;9550:7;9547:19;9544:201;;;9620:19;;;9614:26;-1:-1:-1;;9703:1:1;9699:14;;;9715:3;9695:24;9691:37;9687:42;9672:58;9657:74;;9544:201;-1:-1:-1;;;;;9791:1:1;9775:14;;;9771:22;9758:36;;-1:-1:-1;8709:1352:1:o;10751:1187::-;11028:3;11057:1;11090:6;11084:13;11120:36;11146:9;11120:36;:::i;:::-;11175:1;11192:18;;;11219:133;;;;11366:1;11361:356;;;;11185:532;;11219:133;-1:-1:-1;;11252:24:1;;11240:37;;11325:14;;11318:22;11306:35;;11297:45;;;-1:-1:-1;11219:133:1;;11361:356;11392:6;11389:1;11382:17;11422:4;11467:2;11464:1;11454:16;11492:1;11506:165;11520:6;11517:1;11514:13;11506:165;;;11598:14;;11585:11;;;11578:35;11641:16;;;;11535:10;;11506:165;;;11510:3;;;11700:6;11695:3;11691:16;11684:23;;11185:532;;;;;11748:6;11742:13;11764:68;11823:8;11818:3;11811:4;11803:6;11799:17;11764:68;:::i;:::-;-1:-1:-1;;;11854:18:1;;11881:22;;;11930:1;11919:13;;10751:1187;-1:-1:-1;;;;10751:1187:1:o;11943:135::-;11982:3;12003:17;;;12000:43;;12023:18;;:::i;:::-;-1:-1:-1;12070:1:1;12059:13;;11943:135::o;12083:128::-;12150:9;;;12171:11;;;12168:37;;;12185:18;;:::i;12216:489::-;-1:-1:-1;;;;;12485:15:1;;;12467:34;;12537:15;;12532:2;12517:18;;12510:43;12584:2;12569:18;;12562:34;;;12632:3;12627:2;12612:18;;12605:31;;;12410:4;;12653:46;;12679:19;;12671:6;12653:46;:::i;:::-;12645:54;12216:489;-1:-1:-1;;;;;;12216:489:1:o;12710:249::-;12779:6;12832:2;12820:9;12811:7;12807:23;12803:32;12800:52;;;12848:1;12845;12838:12;12800:52;12880:9;12874:16;12899:30;12923:5;12899:30;:::i

Swarm Source

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