ETH Price: $2,513.98 (-1.45%)
Gas: 5.25 Gwei

Token

Dummy Friends (DFs)
 

Overview

Max Total Supply

899 DFs

Holders

233

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
1 DFs
0x60772458Ad83d6D06ae177EfE89f6BECcdB1bb59
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:
Dummyfriends

Compiler Version
v0.8.19+commit.7dd6d404

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

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

// SPDX-License-Identifier: MIT
// File: contracts/OperatorFilterer.sol


pragma solidity ^0.8.4;

/// @notice Optimized and flexible operator filterer to abide to OpenSea's
/// mandatory on-chain royalty enforcement in order for new collections to
/// receive royalties.
/// For more information, see:
/// See: https://github.com/ProjectOpenSea/operator-filter-registry
abstract contract OperatorFilterer {
    /// @dev The default OpenSea operator blocklist subscription.
    address internal constant _DEFAULT_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6;

    /// @dev The OpenSea operator filter registry.
    address internal constant _OPERATOR_FILTER_REGISTRY = 0x000000000000AAeB6D7670E522A718067333cd4E;

    /// @dev Registers the current contract to OpenSea's operator filter,
    /// and subscribe to the default OpenSea operator blocklist.
    /// Note: Will not revert nor update existing settings for repeated registration.
    function _registerForOperatorFiltering() internal virtual {
        _registerForOperatorFiltering(_DEFAULT_SUBSCRIPTION, true);
    }

    /// @dev Registers the current contract to OpenSea's operator filter.
    /// Note: Will not revert nor update existing settings for repeated registration.
    function _registerForOperatorFiltering(address subscriptionOrRegistrantToCopy, bool subscribe)
        internal
        virtual
    {
        /// @solidity memory-safe-assembly
        assembly {
            let functionSelector := 0x7d3e3dbe // `registerAndSubscribe(address,address)`.

            // Clean the upper 96 bits of `subscriptionOrRegistrantToCopy` in case they are dirty.
            subscriptionOrRegistrantToCopy := shr(96, shl(96, subscriptionOrRegistrantToCopy))

            for {} iszero(subscribe) {} {
                if iszero(subscriptionOrRegistrantToCopy) {
                    functionSelector := 0x4420e486 // `register(address)`.
                    break
                }
                functionSelector := 0xa0af2903 // `registerAndCopyEntries(address,address)`.
                break
            }
            // Store the function selector.
            mstore(0x00, shl(224, functionSelector))
            // Store the `address(this)`.
            mstore(0x04, address())
            // Store the `subscriptionOrRegistrantToCopy`.
            mstore(0x24, subscriptionOrRegistrantToCopy)
            // Register into the registry.
            if iszero(call(gas(), _OPERATOR_FILTER_REGISTRY, 0, 0x00, 0x44, 0x00, 0x04)) {
                // If the function selector has not been overwritten,
                // it is an out-of-gas error.
                if eq(shr(224, mload(0x00)), functionSelector) {
                    // To prevent gas under-estimation.
                    revert(0, 0)
                }
            }
            // Restore the part of the free memory pointer that was overwritten,
            // which is guaranteed to be zero, because of Solidity's memory size limits.
            mstore(0x24, 0)
        }
    }

    /// @dev Modifier to guard a function and revert if the caller is a blocked operator.
    modifier onlyAllowedOperator(address from) virtual {
        if (from != msg.sender) {
            if (!_isPriorityOperator(msg.sender)) {
                if (_operatorFilteringEnabled()) _revertIfBlocked(msg.sender);
            }
        }
        _;
    }

    /// @dev Modifier to guard a function from approving a blocked operator..
    modifier onlyAllowedOperatorApproval(address operator) virtual {
        if (!_isPriorityOperator(operator)) {
            if (_operatorFilteringEnabled()) _revertIfBlocked(operator);
        }
        _;
    }

    /// @dev Helper function that reverts if the `operator` is blocked by the registry.
    function _revertIfBlocked(address operator) private view {
        /// @solidity memory-safe-assembly
        assembly {
            // Store the function selector of `isOperatorAllowed(address,address)`,
            // shifted left by 6 bytes, which is enough for 8tb of memory.
            // We waste 6-3 = 3 bytes to save on 6 runtime gas (PUSH1 0x224 SHL).
            mstore(0x00, 0xc6171134001122334455)
            // Store the `address(this)`.
            mstore(0x1a, address())
            // Store the `operator`.
            mstore(0x3a, operator)

            // `isOperatorAllowed` always returns true if it does not revert.
            if iszero(staticcall(gas(), _OPERATOR_FILTER_REGISTRY, 0x16, 0x44, 0x00, 0x00)) {
                // Bubble up the revert if the staticcall reverts.
                returndatacopy(0x00, 0x00, returndatasize())
                revert(0x00, returndatasize())
            }

            // We'll skip checking if `from` is inside the blacklist.
            // Even though that can block transferring out of wrapper contracts,
            // we don't want tokens to be stuck.

            // Restore the part of the free memory pointer that was overwritten,
            // which is guaranteed to be zero, if less than 8tb of memory is used.
            mstore(0x3a, 0)
        }
    }

    /// @dev For deriving contracts to override, so that operator filtering
    /// can be turned on / off.
    /// Returns true by default.
    function _operatorFilteringEnabled() internal view virtual returns (bool) {
        return true;
    }

    /// @dev For deriving contracts to override, so that preferred marketplaces can
    /// skip operator filtering, helping users save gas.
    /// Returns false for all inputs by default.
    function _isPriorityOperator(address) internal view virtual returns (bool) {
        return false;
    }
}
// File: contracts/IERC721A.sol


// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        unchecked {
            if (_startTokenId() <= curr)
                if (curr < _currentIndex) {
                    uint256 packed = _packedOwnerships[curr];
                    // If not burned.
                    if (packed & _BITMASK_BURNED == 0) {
                        // Invariant:
                        // There will always be an initialized ownership slot
                        // (i.e. `ownership.addr != address(0) && ownership.burned == false`)
                        // before an unintialized ownership slot
                        // (i.e. `ownership.addr == address(0) && ownership.burned == false`)
                        // Hence, `curr` will not underflow.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed will be zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

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

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

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

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

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

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

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

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

        return _tokenApprovals[tokenId].value;
    }

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        address from = address(uint160(prevOwnershipPacked));

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            let length := sub(end, str)
            // Move the pointer 32 bytes leftwards to make room for the length.
            str := sub(str, 0x20)
            // Store the length.
            mstore(str, length)
        }
    }
}
// File: @openzeppelin/contracts/utils/introspection/IERC165.sol


// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

// File: @openzeppelin/contracts/utils/introspection/ERC165.sol


// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;


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

// File: @openzeppelin/contracts/interfaces/IERC2981.sol


// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;


/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

// File: @openzeppelin/contracts/token/common/ERC2981.sol


// OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;



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

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

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];

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

        uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

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

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

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

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

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

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

// File: @openzeppelin/contracts/utils/math/Math.sol


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

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

pragma solidity ^0.8.0;


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

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

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

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

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

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


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

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

// File: @openzeppelin/contracts/token/ERC20/extensions/draft-IERC20Permit.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/draft-IERC20Permit.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 Permit extension allowing approvals to be made via signatures, as defined in
 * https://eips.ethereum.org/EIPS/eip-2612[EIP-2612].
 *
 * Adds the {permit} method, which can be used to change an account's ERC20 allowance (see {IERC20-allowance}) by
 * presenting a message signed by the account. By not relying on {IERC20-approve}, the token holder account doesn't
 * need to send a transaction, and thus is not required to hold Ether at all.
 */
interface IERC20Permit {
    /**
     * @dev Sets `value` as the allowance of `spender` over ``owner``'s tokens,
     * given ``owner``'s signed approval.
     *
     * IMPORTANT: The same issues {IERC20-approve} has related to transaction
     * ordering also apply here.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `deadline` must be a timestamp in the future.
     * - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner`
     * over the EIP712-formatted function arguments.
     * - the signature must use ``owner``'s current nonce (see {nonces}).
     *
     * For more information on the signature format, see the
     * https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP
     * section].
     */
    function permit(
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

    /**
     * @dev Returns the current nonce for `owner`. This value must be
     * included whenever a signature is generated for {permit}.
     *
     * Every successful call to {permit} increases ``owner``'s nonce by one. This
     * prevents a signature from being used multiple times.
     */
    function nonces(address owner) external view returns (uint256);

    /**
     * @dev Returns the domain separator used in the encoding of the signature for {permit}, as defined by {EIP712}.
     */
    // solhint-disable-next-line func-name-mixedcase
    function DOMAIN_SEPARATOR() external view returns (bytes32);
}

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol


// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);

    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `to`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address to, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `from` to `to` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 amount
    ) external returns (bool);
}

// File: @openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol


// OpenZeppelin Contracts (last updated v4.8.0) (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;




/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    function safePermit(
        IERC20Permit token,
        address owner,
        address spender,
        uint256 value,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal {
        uint256 nonceBefore = token.nonces(owner);
        token.permit(owner, spender, value, deadline, v, r, s);
        uint256 nonceAfter = token.nonces(owner);
        require(nonceAfter == nonceBefore + 1, "SafeERC20: permit did not succeed");
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address-functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

// File: @openzeppelin/contracts/utils/cryptography/MerkleProof.sol


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

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Tree proofs.
 *
 * The tree and the proofs can be generated using our
 * https://github.com/OpenZeppelin/merkle-tree[JavaScript library].
 * You will find a quickstart guide in the readme.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 * OpenZeppelin's JavaScript library generates merkle trees that are safe
 * against this attack out of the box.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be simultaneously proven to be a part of a merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction
     * proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another
     * leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false
     * respectively.
     *
     * CAUTION: Not all merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree
     * is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the
     * tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}.
     *
     * CAUTION: Not all merkle trees admit multiproofs. See {processMultiProof} for details.
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

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


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

pragma solidity ^0.8.0;

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

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

// File: @openzeppelin/contracts/finance/PaymentSplitter.sol


// OpenZeppelin Contracts (last updated v4.8.0) (finance/PaymentSplitter.sol)

pragma solidity ^0.8.0;




/**
 * @title PaymentSplitter
 * @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware
 * that the Ether will be split in this way, since it is handled transparently by the contract.
 *
 * The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each
 * account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim
 * an amount proportional to the percentage of total shares they were assigned. The distribution of shares is set at the
 * time of contract deployment and can't be updated thereafter.
 *
 * `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the
 * accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release}
 * function.
 *
 * NOTE: This contract assumes that ERC20 tokens will behave similarly to native tokens (Ether). Rebasing tokens, and
 * tokens that apply fees during transfers, are likely to not be supported as expected. If in doubt, we encourage you
 * to run tests before sending real value to this contract.
 */
contract PaymentSplitter is Context {
    event PayeeAdded(address account, uint256 shares);
    event PaymentReleased(address to, uint256 amount);
    event ERC20PaymentReleased(IERC20 indexed token, address to, uint256 amount);
    event PaymentReceived(address from, uint256 amount);

    uint256 private _totalShares;
    uint256 private _totalReleased;

    mapping(address => uint256) private _shares;
    mapping(address => uint256) private _released;
    address[] private _payees;

    mapping(IERC20 => uint256) private _erc20TotalReleased;
    mapping(IERC20 => mapping(address => uint256)) private _erc20Released;

    /**
     * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at
     * the matching position in the `shares` array.
     *
     * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no
     * duplicates in `payees`.
     */
    constructor(address[] memory payees, uint256[] memory shares_) payable {
        require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch");
        require(payees.length > 0, "PaymentSplitter: no payees");

        for (uint256 i = 0; i < payees.length; i++) {
            _addPayee(payees[i], shares_[i]);
        }
    }

    /**
     * @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully
     * reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the
     * reliability of the events, and not the actual splitting of Ether.
     *
     * To learn more about this see the Solidity documentation for
     * https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback
     * functions].
     */
    receive() external payable virtual {
        emit PaymentReceived(_msgSender(), msg.value);
    }

    /**
     * @dev Getter for the total shares held by payees.
     */
    function totalShares() public view returns (uint256) {
        return _totalShares;
    }

    /**
     * @dev Getter for the total amount of Ether already released.
     */
    function totalReleased() public view returns (uint256) {
        return _totalReleased;
    }

    /**
     * @dev Getter for the total amount of `token` already released. `token` should be the address of an IERC20
     * contract.
     */
    function totalReleased(IERC20 token) public view returns (uint256) {
        return _erc20TotalReleased[token];
    }

    /**
     * @dev Getter for the amount of shares held by an account.
     */
    function shares(address account) public view returns (uint256) {
        return _shares[account];
    }

    /**
     * @dev Getter for the amount of Ether already released to a payee.
     */
    function released(address account) public view returns (uint256) {
        return _released[account];
    }

    /**
     * @dev Getter for the amount of `token` tokens already released to a payee. `token` should be the address of an
     * IERC20 contract.
     */
    function released(IERC20 token, address account) public view returns (uint256) {
        return _erc20Released[token][account];
    }

    /**
     * @dev Getter for the address of the payee number `index`.
     */
    function payee(uint256 index) public view returns (address) {
        return _payees[index];
    }

    /**
     * @dev Getter for the amount of payee's releasable Ether.
     */
    function releasable(address account) public view returns (uint256) {
        uint256 totalReceived = address(this).balance + totalReleased();
        return _pendingPayment(account, totalReceived, released(account));
    }

    /**
     * @dev Getter for the amount of payee's releasable `token` tokens. `token` should be the address of an
     * IERC20 contract.
     */
    function releasable(IERC20 token, address account) public view returns (uint256) {
        uint256 totalReceived = token.balanceOf(address(this)) + totalReleased(token);
        return _pendingPayment(account, totalReceived, released(token, account));
    }

    /**
     * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the
     * total shares and their previous withdrawals.
     */
    function release(address payable account) public virtual {
        require(_shares[account] > 0, "PaymentSplitter: account has no shares");

        uint256 payment = releasable(account);

        require(payment != 0, "PaymentSplitter: account is not due payment");

        // _totalReleased is the sum of all values in _released.
        // If "_totalReleased += payment" does not overflow, then "_released[account] += payment" cannot overflow.
        _totalReleased += payment;
        unchecked {
            _released[account] += payment;
        }

        Address.sendValue(account, payment);
        emit PaymentReleased(account, payment);
    }

    /**
     * @dev Triggers a transfer to `account` of the amount of `token` tokens they are owed, according to their
     * percentage of the total shares and their previous withdrawals. `token` must be the address of an IERC20
     * contract.
     */
    function release(IERC20 token, address account) public virtual {
        require(_shares[account] > 0, "PaymentSplitter: account has no shares");

        uint256 payment = releasable(token, account);

        require(payment != 0, "PaymentSplitter: account is not due payment");

        // _erc20TotalReleased[token] is the sum of all values in _erc20Released[token].
        // If "_erc20TotalReleased[token] += payment" does not overflow, then "_erc20Released[token][account] += payment"
        // cannot overflow.
        _erc20TotalReleased[token] += payment;
        unchecked {
            _erc20Released[token][account] += payment;
        }

        SafeERC20.safeTransfer(token, account, payment);
        emit ERC20PaymentReleased(token, account, payment);
    }

    /**
     * @dev internal logic for computing the pending payment of an `account` given the token historical balances and
     * already released amounts.
     */
    function _pendingPayment(
        address account,
        uint256 totalReceived,
        uint256 alreadyReleased
    ) private view returns (uint256) {
        return (totalReceived * _shares[account]) / _totalShares - alreadyReleased;
    }

    /**
     * @dev Add a new payee to the contract.
     * @param account The address of the payee to add.
     * @param shares_ The number of shares owned by the payee.
     */
    function _addPayee(address account, uint256 shares_) private {
        require(account != address(0), "PaymentSplitter: account is the zero address");
        require(shares_ > 0, "PaymentSplitter: shares are 0");
        require(_shares[account] == 0, "PaymentSplitter: account already has shares");

        _payees.push(account);
        _shares[account] = shares_;
        _totalShares = _totalShares + shares_;
        emit PayeeAdded(account, shares_);
    }
}

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


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

pragma solidity ^0.8.0;


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

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

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

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

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

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

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

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

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

// File: contracts/Dummyfriends.sol


pragma solidity ^0.8.0;









contract Dummyfriends is ERC721A, ERC2981, OperatorFilterer , Ownable{
    using Strings for uint256;

    string public baseURI;
    string public baseExtension = ".json";
    string public notRevealedUri;
    uint256 public cost_whitelist = 0.003 ether;
    uint256 public cost_public = 0.004 ether;
    uint256 public maxSupply = 3333;
    uint256 public maxMintAmount = 3;
    uint256 public nftPerAddressLimit = 3;
    bool public paused = false;
    bool public revealed = false;
    bool public onlyWhitelisted = true;
 
    mapping(address => bool) whitelistedAddresses;
    mapping(address => uint256) public addressMintedBalance;
    mapping(address => uint256) private _freeMints;

    bool public operatorFilteringEnabled = true;


  constructor(
    string memory _name,
    string memory _symbol,
    string memory _initBaseURI,
    string memory _initNotRevealedUri
  ) ERC721A(_name, _symbol) {
    setBaseURI(_initBaseURI);
    setNotRevealedURI(_initNotRevealedUri);

    _registerForOperatorFiltering();
    _setDefaultRoyalty(msg.sender, 500);
    
    _safeMint(msg.sender, 20);
  }

  
  function mint(uint256 _mintAmount) external payable {
    require(!paused, "the contract is paused");
    uint256 supply = totalSupply();
    uint256 ownerMintedCount = addressMintedBalance[msg.sender];

    require(_mintAmount > 0, "need to mint at least 1 NFT");
    require(_mintAmount <= maxMintAmount, "max mint amount per session exceeded");
    require(supply + _mintAmount <= maxSupply, "max NFT limit exceeded");
    require(ownerMintedCount + _mintAmount <= nftPerAddressLimit, "max NFT per address exceeded");

    if (msg.sender != owner()) {
       if(onlyWhitelisted == true) {
            require(isWhitelisted(msg.sender), "user is not whitelisted");          
        }

        uint256 payForCount = _mintAmount;
        uint256 freeMintCount = _freeMints[msg.sender];

        if (freeMintCount < 1) 
        {
            if (_mintAmount > 1) 
            {
                payForCount = _mintAmount - 1;
            } 
            else 
            {
                payForCount = 0;
            }

            _freeMints[msg.sender] = 1;
        }

        if(onlyWhitelisted == true)
        {
           require(msg.value >= cost_whitelist * payForCount, "insufficient funds");
        }
        else
        {
           require(msg.value >= cost_public * payForCount, "insufficient funds");
        }
       
        
    }

     addressMintedBalance[msg.sender] = ownerMintedCount + _mintAmount ;
     _safeMint(msg.sender, _mintAmount);

  }


  function getFreeMints(address owner) external view returns (uint256) {
    return _freeMints[owner];
  }

  function Custom_owner(address _to, uint256 _mintAmount) public payable {

    if (_to == owner()) 
    {
      require(!paused, "the contract is paused");
      uint256 supply = totalSupply();
      require(_mintAmount > 0, "need to mint at least 1 NFT");
      require(supply + _mintAmount <= maxSupply, "max NFT limit exceeded");

      uint256 ownerMintedCount = addressMintedBalance[_to];
      addressMintedBalance[_to] = ownerMintedCount + _mintAmount ;
      _safeMint(_to, _mintAmount);
    }
   

  }
  


  function isWhitelisted(address _whitelistedAddress) public view returns(bool) {
    bool userIsWhitelisted = whitelistedAddresses[_whitelistedAddress];
    return userIsWhitelisted;
}

  function supportsInterface(bytes4 interfaceId)
    public
    view
    virtual
    override(ERC721A, ERC2981)
    returns (bool)
  {
    return
      ERC721A.supportsInterface(interfaceId) ||
      ERC2981.supportsInterface(interfaceId);
  }

  function _operatorFilteringEnabled() internal view override returns (bool) {
    return operatorFilteringEnabled;
  }

  function _isPriorityOperator(address operator)
    internal
    pure
    override
    returns (bool)
  {
    return operator == address(0x1E0049783F008A0085193E00003D00cd54003c71);
  }

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

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

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

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

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

  function setDefaultRoyalty(address receiver, uint96 feeNumerator)
    public
    onlyOwner
  {
    _setDefaultRoyalty(receiver, feeNumerator);
  }

   function setOperatorFilteringEnabled(bool value) public onlyOwner {
    operatorFilteringEnabled = value;
  }


      // internal
  function _baseURI() internal view virtual override returns (string memory) {
    return baseURI;
  }
  
    function tokenURI(uint256 tokenId)
    public
    view
    virtual
    override
    returns (string memory)
  {
    require(
      _exists(tokenId),
      "ERC721Metadata: URI query for nonexistent token"
    );

    string memory currentBaseURI;
    
    if(revealed == false)
     {
       currentBaseURI = notRevealedUri;     
     }
     else
     {
       currentBaseURI = _baseURI();
     }

     tokenId++;

    return bytes(currentBaseURI).length > 0
        ? string(abi.encodePacked(currentBaseURI, tokenId.toString(), baseExtension))
        : "";
  }

    /// @dev walletOf() function shouldn't be called on-chain due to gas consumption
    function walletOf() public view returns(uint256[] memory){
        address _owner = msg.sender;
        uint256 numberOfOwnedNFT = balanceOf(_owner);
        uint256[] memory ownerIds = new uint256[](numberOfOwnedNFT);

       /* for(uint256 index = 0; index < numberOfOwnedNFT; index++){
            ownerIds[index] = tokenOfOwnerByIndex(_owner, index);
        }*/

        return ownerIds;
    }

     //only owner
  function reveal() public onlyOwner {
      revealed = true;
  }
  
  function setNftPerAddressLimit(uint256 _limit) public onlyOwner {
    nftPerAddressLimit = _limit;
  }
  
  function setCost_whitelist(uint256 _newCost) public onlyOwner {
    cost_whitelist = _newCost;
  }
  function setCost_public(uint256 _newCost) public onlyOwner {
    cost_public = _newCost;
  }

  function setmaxMintAmount(uint256 _newmaxMintAmount) public onlyOwner {
    maxMintAmount = _newmaxMintAmount;
  }

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

  function setBaseExtension(string memory _newBaseExtension) public onlyOwner {
    baseExtension = _newBaseExtension;
  }
  
  function setNotRevealedURI(string memory _notRevealedURI) public onlyOwner {
    notRevealedUri = _notRevealedURI;
  }

  function pause(bool _state) public onlyOwner {
    paused = _state;
  }
  
  function setOnlyWhitelisted(bool _state) public onlyOwner {
    onlyWhitelisted = _state;
  }
  

  function whitelistUsers(address[] calldata toAddAddresses) 
    external onlyOwner
    {
        for (uint i = 0; i < toAddAddresses.length; i++) {
            whitelistedAddresses[toAddAddresses[i]] = true;
        }
    }


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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_initBaseURI","type":"string"},{"internalType":"string","name":"_initNotRevealedUri","type":"string"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"Custom_owner","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"addressMintedBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseExtension","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost_public","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost_whitelist","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"}],"name":"getFreeMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"address","name":"_whitelistedAddress","type":"address"}],"name":"isWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmount","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":"_mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"nftPerAddressLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"notRevealedUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"onlyWhitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operatorFilteringEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"bool","name":"_state","type":"bool"}],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"_newBaseExtension","type":"string"}],"name":"setBaseExtension","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCost","type":"uint256"}],"name":"setCost_public","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newCost","type":"uint256"}],"name":"setCost_whitelist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint96","name":"feeNumerator","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_limit","type":"uint256"}],"name":"setNftPerAddressLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_notRevealedURI","type":"string"}],"name":"setNotRevealedURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setOnlyWhitelisted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"value","type":"bool"}],"name":"setOperatorFilteringEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newmaxMintAmount","type":"uint256"}],"name":"setmaxMintAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"walletOf","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"toAddAddresses","type":"address[]"}],"name":"whitelistUsers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60c06040526005608090815264173539b7b760d91b60a052600c90620000269082620006a6565b50660aa87bee538000600e55660e35fa931a0000600f55610d05601055600360118190556012556013805462ffffff1916620100001790556017805460ff191660011790553480156200007857600080fd5b50604051620030f6380380620030f68339810160408190526200009b9162000829565b83836002620000ab8382620006a6565b506003620000ba8282620006a6565b50506000805550620000cc3362000111565b620000d78262000163565b620000e2816200017f565b620000ec62000197565b620000fa336101f4620001ba565b62000107336014620002bf565b505050506200096b565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6200016d620002e1565b600b6200017b8282620006a6565b5050565b62000189620002e1565b600d6200017b8282620006a6565b620001b8733cc6cdda760b79bafa08df41ecfa224f810dceb660016200033d565b565b6127106001600160601b03821611156200022e5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b038216620002865760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640162000225565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600855565b6200017b828260405180602001604052806000815250620003b760201b60201c565b600a546001600160a01b03163314620001b85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640162000225565b6001600160a01b0390911690637d3e3dbe816200036d5782620003665750634420e4866200036d565b5063a0af29035b8060e01b60005230600452826024526004600060446000806daaeb6d7670e522a718067333cd4e5af1620003ad578060005160e01c03620003ad57600080fd5b5060006024525050565b620003c383836200042e565b6001600160a01b0383163b1562000429576000548281035b6001810190620003f1906000908790866200050e565b6200040f576040516368d2bf6b60e11b815260040160405180910390fd5b818110620003db5781600054146200042657600080fd5b50505b505050565b6000805490829003620004545760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b17831790558284019083908390600080516020620030d68339815191528180a4600183015b818114620004e35780836000600080516020620030d6833981519152600080a4600101620004ba565b50816000036200050557604051622e076360e81b815260040160405180910390fd5b60005550505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029062000545903390899088908890600401620008e2565b6020604051808303816000875af192505050801562000583575060408051601f3d908101601f19168201909252620005809181019062000938565b60015b620005e5573d808015620005b4576040519150601f19603f3d011682016040523d82523d6000602084013e620005b9565b606091505b508051600003620005dd576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200062d57607f821691505b6020821081036200064e57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200042957600081815260208120601f850160051c810160208610156200067d5750805b601f850160051c820191505b818110156200069e5782815560010162000689565b505050505050565b81516001600160401b03811115620006c257620006c262000602565b620006da81620006d3845462000618565b8462000654565b602080601f831160018114620007125760008415620006f95750858301515b600019600386901b1c1916600185901b1785556200069e565b600085815260208120601f198616915b82811015620007435788860151825594840194600190910190840162000722565b5085821015620007625787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60005b838110156200078f57818101518382015260200162000775565b50506000910152565b600082601f830112620007aa57600080fd5b81516001600160401b0380821115620007c757620007c762000602565b604051601f8301601f19908116603f01168101908282118183101715620007f257620007f262000602565b816040528381528660208588010111156200080c57600080fd5b6200081f84602083016020890162000772565b9695505050505050565b600080600080608085870312156200084057600080fd5b84516001600160401b03808211156200085857600080fd5b620008668883890162000798565b955060208701519150808211156200087d57600080fd5b6200088b8883890162000798565b94506040870151915080821115620008a257600080fd5b620008b08883890162000798565b93506060870151915080821115620008c757600080fd5b50620008d68782880162000798565b91505092959194509250565b600060018060a01b038087168352808616602084015250836040830152608060608301528251806080840152620009218160a085016020870162000772565b601f01601f19169190910160a00195945050505050565b6000602082840312156200094b57600080fd5b81516001600160e01b0319811681146200096457600080fd5b9392505050565b61275b806200097b6000396000f3fe6080604052600436106102c95760003560e01c80637f00c7a611610175578063c6682862116100dc578063e985e9c511610095578063f2c4ce1e1161006f578063f2c4ce1e14610857578063f2fde38b14610877578063f48b898914610897578063fb796e6c146108ad57600080fd5b8063e985e9c5146107e1578063edec5f2714610801578063efee35681461082157600080fd5b8063c668286214610736578063c87b56dd1461074b578063d0eb26b01461076b578063d5abeb011461078b578063da3ef23f146107a1578063df831218146107c157600080fd5b8063a0712d681161012e578063a0712d68146106a5578063a22cb465146106b8578063a475b5dd146106d8578063b7c0b8e8146106ed578063b88d4fde1461070d578063ba7d2c761461072057600080fd5b80637f00c7a6146105fd57806381d852691461061d57806383a974a2146106305780638da5cb5b1461065257806395d89b41146106705780639c70b5121461068557600080fd5b806323b872dd1161023457806351830227116101ed5780636352211e116101c75780636352211e146105935780636c0360eb146105b357806370a08231146105c8578063715018a6146105e857600080fd5b8063518302271461053a57806355f804b3146105595780635c975abb1461057957600080fd5b806323b872dd146104675780632a55205a1461047a5780633af32abf146104b95780633c952764146104f25780633ccfd60b1461051257806342842e0e1461052757600080fd5b8063081c8c4411610286578063081c8c44146103c3578063095ea7b3146103d857806318160ddd146103eb57806318cae269146104045780631da3e34914610431578063239c70ae1461045157600080fd5b806301ffc9a7146102ce57806302329a291461030357806303006d381461032557806304634d8d1461034957806306fdde0314610369578063081812fc1461038b575b600080fd5b3480156102da57600080fd5b506102ee6102e936600461201a565b6108c7565b60405190151581526020015b60405180910390f35b34801561030f57600080fd5b5061032361031e36600461204c565b6108e7565b005b34801561033157600080fd5b5061033b600e5481565b6040519081526020016102fa565b34801561035557600080fd5b5061032361036436600461207e565b610902565b34801561037557600080fd5b5061037e610918565b6040516102fa9190612111565b34801561039757600080fd5b506103ab6103a6366004612124565b6109aa565b6040516001600160a01b0390911681526020016102fa565b3480156103cf57600080fd5b5061037e6109ee565b6103236103e636600461213d565b610a7c565b3480156103f757600080fd5b506001546000540361033b565b34801561041057600080fd5b5061033b61041f366004612167565b60156020526000908152604090205481565b34801561043d57600080fd5b5061032361044c366004612124565b610aad565b34801561045d57600080fd5b5061033b60115481565b610323610475366004612182565b610aba565b34801561048657600080fd5b5061049a6104953660046121be565b610afd565b604080516001600160a01b0390931683526020830191909152016102fa565b3480156104c557600080fd5b506102ee6104d4366004612167565b6001600160a01b031660009081526014602052604090205460ff1690565b3480156104fe57600080fd5b5061032361050d36600461204c565b610ba9565b34801561051e57600080fd5b50610323610bcd565b610323610535366004612182565b610c2d565b34801561054657600080fd5b506013546102ee90610100900460ff1681565b34801561056557600080fd5b5061032361057436600461226c565b610c6a565b34801561058557600080fd5b506013546102ee9060ff1681565b34801561059f57600080fd5b506103ab6105ae366004612124565b610c7e565b3480156105bf57600080fd5b5061037e610c89565b3480156105d457600080fd5b5061033b6105e3366004612167565b610c96565b3480156105f457600080fd5b50610323610ce5565b34801561060957600080fd5b50610323610618366004612124565b610cf9565b61032361062b36600461213d565b610d06565b34801561063c57600080fd5b50610645610e76565b6040516102fa91906122b5565b34801561065e57600080fd5b50600a546001600160a01b03166103ab565b34801561067c57600080fd5b5061037e610ed3565b34801561069157600080fd5b506013546102ee9062010000900460ff1681565b6103236106b3366004612124565b610ee2565b3480156106c457600080fd5b506103236106d33660046122f9565b611267565b3480156106e457600080fd5b50610323611293565b3480156106f957600080fd5b5061032361070836600461204c565b6112ac565b61032361071b36600461232c565b6112c7565b34801561072c57600080fd5b5061033b60125481565b34801561074257600080fd5b5061037e61130c565b34801561075757600080fd5b5061037e610766366004612124565b611319565b34801561077757600080fd5b50610323610786366004612124565b61149c565b34801561079757600080fd5b5061033b60105481565b3480156107ad57600080fd5b506103236107bc36600461226c565b6114a9565b3480156107cd57600080fd5b506103236107dc366004612124565b6114bd565b3480156107ed57600080fd5b506102ee6107fc3660046123a8565b6114ca565b34801561080d57600080fd5b5061032361081c3660046123d2565b6114f8565b34801561082d57600080fd5b5061033b61083c366004612167565b6001600160a01b031660009081526016602052604090205490565b34801561086357600080fd5b5061032361087236600461226c565b611572565b34801561088357600080fd5b50610323610892366004612167565b611586565b3480156108a357600080fd5b5061033b600f5481565b3480156108b957600080fd5b506017546102ee9060ff1681565b60006108d2826115fc565b806108e157506108e18261164a565b92915050565b6108ef61167f565b6013805460ff1916911515919091179055565b61090a61167f565b61091482826116d9565b5050565b60606002805461092790612447565b80601f016020809104026020016040519081016040528092919081815260200182805461095390612447565b80156109a05780601f10610975576101008083540402835291602001916109a0565b820191906000526020600020905b81548152906001019060200180831161098357829003601f168201915b5050505050905090565b60006109b5826117d6565b6109d2576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600d80546109fb90612447565b80601f0160208091040260200160405190810160405280929190818152602001828054610a2790612447565b8015610a745780601f10610a4957610100808354040283529160200191610a74565b820191906000526020600020905b815481529060010190602001808311610a5757829003601f168201915b505050505081565b81610a86816117fd565b610a9e5760175460ff1615610a9e57610a9e8161181f565b610aa88383611863565b505050565b610ab561167f565b600e55565b826001600160a01b0381163314610aec57610ad4336117fd565b610aec5760175460ff1615610aec57610aec3361181f565b610af7848484611903565b50505050565b60008281526009602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610b725750604080518082019091526008546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610b91906001600160601b031687612497565b610b9b91906124ae565b915196919550909350505050565b610bb161167f565b60138054911515620100000262ff000019909216919091179055565b610bd561167f565b604051600090339047908381818185875af1925050503d8060008114610c17576040519150601f19603f3d011682016040523d82523d6000602084013e610c1c565b606091505b5050905080610c2a57600080fd5b50565b826001600160a01b0381163314610c5f57610c47336117fd565b610c5f5760175460ff1615610c5f57610c5f3361181f565b610af7848484611a9c565b610c7261167f565b600b6109148282612516565b60006108e182611ab7565b600b80546109fb90612447565b60006001600160a01b038216610cbf576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610ced61167f565b610cf76000611b1e565b565b610d0161167f565b601155565b600a546001600160a01b03166001600160a01b0316826001600160a01b0316036109145760135460ff1615610d7b5760405162461bcd60e51b81526020600482015260166024820152751d1a194818dbdb9d1c9858dd081a5cc81c185d5cd95960521b60448201526064015b60405180910390fd5b6000610d8a6001546000540390565b905060008211610ddc5760405162461bcd60e51b815260206004820152601b60248201527f6e65656420746f206d696e74206174206c656173742031204e465400000000006044820152606401610d72565b601054610de983836125d6565b1115610e305760405162461bcd60e51b81526020600482015260166024820152751b585e08139195081b1a5b5a5d08195e18d95959195960521b6044820152606401610d72565b6001600160a01b038316600090815260156020526040902054610e5383826125d6565b6001600160a01b038516600090815260156020526040902055610af78484611b70565b6060336000610e8482610c96565b905060008167ffffffffffffffff811115610ea157610ea16121e0565b604051908082528060200260200182016040528015610eca578160200160208202803683370190505b50949350505050565b60606003805461092790612447565b60135460ff1615610f2e5760405162461bcd60e51b81526020600482015260166024820152751d1a194818dbdb9d1c9858dd081a5cc81c185d5cd95960521b6044820152606401610d72565b6000610f3d6001546000540390565b3360009081526015602052604090205490915082610f9d5760405162461bcd60e51b815260206004820152601b60248201527f6e65656420746f206d696e74206174206c656173742031204e465400000000006044820152606401610d72565b601154831115610ffb5760405162461bcd60e51b8152602060048201526024808201527f6d6178206d696e7420616d6f756e74207065722073657373696f6e20657863656044820152631959195960e21b6064820152608401610d72565b60105461100884846125d6565b111561104f5760405162461bcd60e51b81526020600482015260166024820152751b585e08139195081b1a5b5a5d08195e18d95959195960521b6044820152606401610d72565b60125461105c84836125d6565b11156110aa5760405162461bcd60e51b815260206004820152601c60248201527f6d6178204e4654207065722061646472657373206578636565646564000000006044820152606401610d72565b600a546001600160a01b031633146112405760135462010000900460ff161515600103611130573360009081526014602052604090205460ff166111305760405162461bcd60e51b815260206004820152601760248201527f75736572206973206e6f742077686974656c69737465640000000000000000006044820152606401610d72565b336000908152601660205260409020548390600181101561117f5760018511156111665761115f6001866125e9565b915061116b565b600091505b336000908152601660205260409020600190555b60135462010000900460ff1615156001036111eb5781600e546111a29190612497565b3410156111e65760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b6044820152606401610d72565b61123d565b81600f546111f99190612497565b34101561123d5760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b6044820152606401610d72565b50505b61124a83826125d6565b33600081815260156020526040902091909155610aa89084611b70565b81611271816117fd565b6112895760175460ff1615611289576112898161181f565b610aa88383611b8a565b61129b61167f565b6013805461ff001916610100179055565b6112b461167f565b6017805460ff1916911515919091179055565b836001600160a01b03811633146112f9576112e1336117fd565b6112f95760175460ff16156112f9576112f93361181f565b61130585858585611bf6565b5050505050565b600c80546109fb90612447565b6060611324826117d6565b6113885760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610d72565b601354606090610100900460ff16151560000361143157600d80546113ac90612447565b80601f01602080910402602001604051908101604052809291908181526020018280546113d890612447565b80156114255780601f106113fa57610100808354040283529160200191611425565b820191906000526020600020905b81548152906001019060200180831161140857829003601f168201915b5050505050905061143c565b611439611c3a565b90505b82611446816125fc565b93505060008151116114675760405180602001604052806000815250611495565b8061147184611c49565b600c60405160200161148593929190612615565b6040516020818303038152906040525b9392505050565b6114a461167f565b601255565b6114b161167f565b600c6109148282612516565b6114c561167f565b600f55565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b61150061167f565b60005b81811015610aa857600160146000858585818110611523576115236126b5565b90506020020160208101906115389190612167565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061156a816125fc565b915050611503565b61157a61167f565b600d6109148282612516565b61158e61167f565b6001600160a01b0381166115f35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d72565b610c2a81611b1e565b60006301ffc9a760e01b6001600160e01b03198316148061162d57506380ac58cd60e01b6001600160e01b03198316145b806108e15750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b0319821663152a902d60e11b14806108e157506301ffc9a760e01b6001600160e01b03198316146108e1565b600a546001600160a01b03163314610cf75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d72565b6127106001600160601b03821611156117475760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610d72565b6001600160a01b03821661179d5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610d72565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600855565b60008054821080156108e1575050600090815260046020526040902054600160e01b161590565b6001600160a01b0316731e0049783f008a0085193e00003d00cd54003c711490565b69c617113400112233445560005230601a5280603a52600080604460166daaeb6d7670e522a718067333cd4e5afa61185b573d6000803e3d6000fd5b6000603a5250565b600061186e82610c7e565b9050336001600160a01b038216146118a75761188a81336114ca565b6118a7576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061190e82611ab7565b9050836001600160a01b0316816001600160a01b0316146119415760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b0388169091141761198e5761197186336114ca565b61198e57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0385166119b557604051633a954ecd60e21b815260040160405180910390fd5b80156119c057600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003611a5257600184016000818152600460205260408120549003611a50576000548114611a505760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b610aa8838383604051806020016040528060008152506112c7565b600081600054811015611b055760008181526004602052604081205490600160e01b82169003611b03575b80600003611495575060001901600081815260046020526040902054611ae2565b505b604051636f96cda160e11b815260040160405180910390fd5b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610914828260405180602001604052806000815250611cdc565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611c01848484610aba565b6001600160a01b0383163b15610af757611c1d84848484611d42565b610af7576040516368d2bf6b60e11b815260040160405180910390fd5b6060600b805461092790612447565b60606000611c5683611e2e565b600101905060008167ffffffffffffffff811115611c7657611c766121e0565b6040519080825280601f01601f191660200182016040528015611ca0576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084611caa57509392505050565b611ce68383611f06565b6001600160a01b0383163b15610aa8576000548281035b611d106000868380600101945086611d42565b611d2d576040516368d2bf6b60e11b815260040160405180910390fd5b818110611cfd57816000541461130557600080fd5b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611d779033908990889088906004016126cb565b6020604051808303816000875af1925050508015611db2575060408051601f3d908101601f19168201909252611daf91810190612708565b60015b611e10573d808015611de0576040519150601f19603f3d011682016040523d82523d6000602084013e611de5565b606091505b508051600003611e08576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310611e6d5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611e99576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310611eb757662386f26fc10000830492506010015b6305f5e1008310611ecf576305f5e100830492506008015b6127108310611ee357612710830492506004015b60648310611ef5576064830492506002015b600a83106108e15760010192915050565b6000805490829003611f2b5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b818114611fda57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101611fa2565b5081600003611ffb57604051622e076360e81b815260040160405180910390fd5b60005550505050565b6001600160e01b031981168114610c2a57600080fd5b60006020828403121561202c57600080fd5b813561149581612004565b8035801515811461204757600080fd5b919050565b60006020828403121561205e57600080fd5b61149582612037565b80356001600160a01b038116811461204757600080fd5b6000806040838503121561209157600080fd5b61209a83612067565b915060208301356001600160601b03811681146120b657600080fd5b809150509250929050565b60005b838110156120dc5781810151838201526020016120c4565b50506000910152565b600081518084526120fd8160208601602086016120c1565b601f01601f19169290920160200192915050565b60208152600061149560208301846120e5565b60006020828403121561213657600080fd5b5035919050565b6000806040838503121561215057600080fd5b61215983612067565b946020939093013593505050565b60006020828403121561217957600080fd5b61149582612067565b60008060006060848603121561219757600080fd5b6121a084612067565b92506121ae60208501612067565b9150604084013590509250925092565b600080604083850312156121d157600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612211576122116121e0565b604051601f8501601f19908116603f01168101908282118183101715612239576122396121e0565b8160405280935085815286868601111561225257600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561227e57600080fd5b813567ffffffffffffffff81111561229557600080fd5b8201601f810184136122a657600080fd5b611e26848235602084016121f6565b6020808252825182820181905260009190848201906040850190845b818110156122ed578351835292840192918401916001016122d1565b50909695505050505050565b6000806040838503121561230c57600080fd5b61231583612067565b915061232360208401612037565b90509250929050565b6000806000806080858703121561234257600080fd5b61234b85612067565b935061235960208601612067565b925060408501359150606085013567ffffffffffffffff81111561237c57600080fd5b8501601f8101871361238d57600080fd5b61239c878235602084016121f6565b91505092959194509250565b600080604083850312156123bb57600080fd5b6123c483612067565b915061232360208401612067565b600080602083850312156123e557600080fd5b823567ffffffffffffffff808211156123fd57600080fd5b818501915085601f83011261241157600080fd5b81358181111561242057600080fd5b8660208260051b850101111561243557600080fd5b60209290920196919550909350505050565b600181811c9082168061245b57607f821691505b60208210810361247b57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176108e1576108e1612481565b6000826124cb57634e487b7160e01b600052601260045260246000fd5b500490565b601f821115610aa857600081815260208120601f850160051c810160208610156124f75750805b601f850160051c820191505b81811015611a9457828155600101612503565b815167ffffffffffffffff811115612530576125306121e0565b6125448161253e8454612447565b846124d0565b602080601f83116001811461257957600084156125615750858301515b600019600386901b1c1916600185901b178555611a94565b600085815260208120601f198616915b828110156125a857888601518255948401946001909101908401612589565b50858210156125c65787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b808201808211156108e1576108e1612481565b818103818111156108e1576108e1612481565b60006001820161260e5761260e612481565b5060010190565b6000845160206126288285838a016120c1565b85519184019161263b8184848a016120c1565b855492019160009061264c81612447565b600182811680156126645760018114612679576126a5565b60ff19841687528215158302870194506126a5565b896000528560002060005b8481101561269d57815489820152908301908701612684565b505082870194505b50929a9950505050505050505050565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906126fe908301846120e5565b9695505050505050565b60006020828403121561271a57600080fd5b81516114958161200456fea2646970667358221220e2f50b0c3053e153e75ef110feec994f925e85c1c2e20cc52358776ca3357a1e64736f6c63430008130033ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000000d44756d6d7920467269656e64730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034446730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002268747470733a2f2f64756d6d79667269656e64732e78797a2f4e46542f6a736f6e2f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002668747470733a2f2f64756d6d79667269656e64732e78797a2f4e46542f6a736f6e5f7265762f0000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102c95760003560e01c80637f00c7a611610175578063c6682862116100dc578063e985e9c511610095578063f2c4ce1e1161006f578063f2c4ce1e14610857578063f2fde38b14610877578063f48b898914610897578063fb796e6c146108ad57600080fd5b8063e985e9c5146107e1578063edec5f2714610801578063efee35681461082157600080fd5b8063c668286214610736578063c87b56dd1461074b578063d0eb26b01461076b578063d5abeb011461078b578063da3ef23f146107a1578063df831218146107c157600080fd5b8063a0712d681161012e578063a0712d68146106a5578063a22cb465146106b8578063a475b5dd146106d8578063b7c0b8e8146106ed578063b88d4fde1461070d578063ba7d2c761461072057600080fd5b80637f00c7a6146105fd57806381d852691461061d57806383a974a2146106305780638da5cb5b1461065257806395d89b41146106705780639c70b5121461068557600080fd5b806323b872dd1161023457806351830227116101ed5780636352211e116101c75780636352211e146105935780636c0360eb146105b357806370a08231146105c8578063715018a6146105e857600080fd5b8063518302271461053a57806355f804b3146105595780635c975abb1461057957600080fd5b806323b872dd146104675780632a55205a1461047a5780633af32abf146104b95780633c952764146104f25780633ccfd60b1461051257806342842e0e1461052757600080fd5b8063081c8c4411610286578063081c8c44146103c3578063095ea7b3146103d857806318160ddd146103eb57806318cae269146104045780631da3e34914610431578063239c70ae1461045157600080fd5b806301ffc9a7146102ce57806302329a291461030357806303006d381461032557806304634d8d1461034957806306fdde0314610369578063081812fc1461038b575b600080fd5b3480156102da57600080fd5b506102ee6102e936600461201a565b6108c7565b60405190151581526020015b60405180910390f35b34801561030f57600080fd5b5061032361031e36600461204c565b6108e7565b005b34801561033157600080fd5b5061033b600e5481565b6040519081526020016102fa565b34801561035557600080fd5b5061032361036436600461207e565b610902565b34801561037557600080fd5b5061037e610918565b6040516102fa9190612111565b34801561039757600080fd5b506103ab6103a6366004612124565b6109aa565b6040516001600160a01b0390911681526020016102fa565b3480156103cf57600080fd5b5061037e6109ee565b6103236103e636600461213d565b610a7c565b3480156103f757600080fd5b506001546000540361033b565b34801561041057600080fd5b5061033b61041f366004612167565b60156020526000908152604090205481565b34801561043d57600080fd5b5061032361044c366004612124565b610aad565b34801561045d57600080fd5b5061033b60115481565b610323610475366004612182565b610aba565b34801561048657600080fd5b5061049a6104953660046121be565b610afd565b604080516001600160a01b0390931683526020830191909152016102fa565b3480156104c557600080fd5b506102ee6104d4366004612167565b6001600160a01b031660009081526014602052604090205460ff1690565b3480156104fe57600080fd5b5061032361050d36600461204c565b610ba9565b34801561051e57600080fd5b50610323610bcd565b610323610535366004612182565b610c2d565b34801561054657600080fd5b506013546102ee90610100900460ff1681565b34801561056557600080fd5b5061032361057436600461226c565b610c6a565b34801561058557600080fd5b506013546102ee9060ff1681565b34801561059f57600080fd5b506103ab6105ae366004612124565b610c7e565b3480156105bf57600080fd5b5061037e610c89565b3480156105d457600080fd5b5061033b6105e3366004612167565b610c96565b3480156105f457600080fd5b50610323610ce5565b34801561060957600080fd5b50610323610618366004612124565b610cf9565b61032361062b36600461213d565b610d06565b34801561063c57600080fd5b50610645610e76565b6040516102fa91906122b5565b34801561065e57600080fd5b50600a546001600160a01b03166103ab565b34801561067c57600080fd5b5061037e610ed3565b34801561069157600080fd5b506013546102ee9062010000900460ff1681565b6103236106b3366004612124565b610ee2565b3480156106c457600080fd5b506103236106d33660046122f9565b611267565b3480156106e457600080fd5b50610323611293565b3480156106f957600080fd5b5061032361070836600461204c565b6112ac565b61032361071b36600461232c565b6112c7565b34801561072c57600080fd5b5061033b60125481565b34801561074257600080fd5b5061037e61130c565b34801561075757600080fd5b5061037e610766366004612124565b611319565b34801561077757600080fd5b50610323610786366004612124565b61149c565b34801561079757600080fd5b5061033b60105481565b3480156107ad57600080fd5b506103236107bc36600461226c565b6114a9565b3480156107cd57600080fd5b506103236107dc366004612124565b6114bd565b3480156107ed57600080fd5b506102ee6107fc3660046123a8565b6114ca565b34801561080d57600080fd5b5061032361081c3660046123d2565b6114f8565b34801561082d57600080fd5b5061033b61083c366004612167565b6001600160a01b031660009081526016602052604090205490565b34801561086357600080fd5b5061032361087236600461226c565b611572565b34801561088357600080fd5b50610323610892366004612167565b611586565b3480156108a357600080fd5b5061033b600f5481565b3480156108b957600080fd5b506017546102ee9060ff1681565b60006108d2826115fc565b806108e157506108e18261164a565b92915050565b6108ef61167f565b6013805460ff1916911515919091179055565b61090a61167f565b61091482826116d9565b5050565b60606002805461092790612447565b80601f016020809104026020016040519081016040528092919081815260200182805461095390612447565b80156109a05780601f10610975576101008083540402835291602001916109a0565b820191906000526020600020905b81548152906001019060200180831161098357829003601f168201915b5050505050905090565b60006109b5826117d6565b6109d2576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600d80546109fb90612447565b80601f0160208091040260200160405190810160405280929190818152602001828054610a2790612447565b8015610a745780601f10610a4957610100808354040283529160200191610a74565b820191906000526020600020905b815481529060010190602001808311610a5757829003601f168201915b505050505081565b81610a86816117fd565b610a9e5760175460ff1615610a9e57610a9e8161181f565b610aa88383611863565b505050565b610ab561167f565b600e55565b826001600160a01b0381163314610aec57610ad4336117fd565b610aec5760175460ff1615610aec57610aec3361181f565b610af7848484611903565b50505050565b60008281526009602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610b725750604080518082019091526008546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610b91906001600160601b031687612497565b610b9b91906124ae565b915196919550909350505050565b610bb161167f565b60138054911515620100000262ff000019909216919091179055565b610bd561167f565b604051600090339047908381818185875af1925050503d8060008114610c17576040519150601f19603f3d011682016040523d82523d6000602084013e610c1c565b606091505b5050905080610c2a57600080fd5b50565b826001600160a01b0381163314610c5f57610c47336117fd565b610c5f5760175460ff1615610c5f57610c5f3361181f565b610af7848484611a9c565b610c7261167f565b600b6109148282612516565b60006108e182611ab7565b600b80546109fb90612447565b60006001600160a01b038216610cbf576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610ced61167f565b610cf76000611b1e565b565b610d0161167f565b601155565b600a546001600160a01b03166001600160a01b0316826001600160a01b0316036109145760135460ff1615610d7b5760405162461bcd60e51b81526020600482015260166024820152751d1a194818dbdb9d1c9858dd081a5cc81c185d5cd95960521b60448201526064015b60405180910390fd5b6000610d8a6001546000540390565b905060008211610ddc5760405162461bcd60e51b815260206004820152601b60248201527f6e65656420746f206d696e74206174206c656173742031204e465400000000006044820152606401610d72565b601054610de983836125d6565b1115610e305760405162461bcd60e51b81526020600482015260166024820152751b585e08139195081b1a5b5a5d08195e18d95959195960521b6044820152606401610d72565b6001600160a01b038316600090815260156020526040902054610e5383826125d6565b6001600160a01b038516600090815260156020526040902055610af78484611b70565b6060336000610e8482610c96565b905060008167ffffffffffffffff811115610ea157610ea16121e0565b604051908082528060200260200182016040528015610eca578160200160208202803683370190505b50949350505050565b60606003805461092790612447565b60135460ff1615610f2e5760405162461bcd60e51b81526020600482015260166024820152751d1a194818dbdb9d1c9858dd081a5cc81c185d5cd95960521b6044820152606401610d72565b6000610f3d6001546000540390565b3360009081526015602052604090205490915082610f9d5760405162461bcd60e51b815260206004820152601b60248201527f6e65656420746f206d696e74206174206c656173742031204e465400000000006044820152606401610d72565b601154831115610ffb5760405162461bcd60e51b8152602060048201526024808201527f6d6178206d696e7420616d6f756e74207065722073657373696f6e20657863656044820152631959195960e21b6064820152608401610d72565b60105461100884846125d6565b111561104f5760405162461bcd60e51b81526020600482015260166024820152751b585e08139195081b1a5b5a5d08195e18d95959195960521b6044820152606401610d72565b60125461105c84836125d6565b11156110aa5760405162461bcd60e51b815260206004820152601c60248201527f6d6178204e4654207065722061646472657373206578636565646564000000006044820152606401610d72565b600a546001600160a01b031633146112405760135462010000900460ff161515600103611130573360009081526014602052604090205460ff166111305760405162461bcd60e51b815260206004820152601760248201527f75736572206973206e6f742077686974656c69737465640000000000000000006044820152606401610d72565b336000908152601660205260409020548390600181101561117f5760018511156111665761115f6001866125e9565b915061116b565b600091505b336000908152601660205260409020600190555b60135462010000900460ff1615156001036111eb5781600e546111a29190612497565b3410156111e65760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b6044820152606401610d72565b61123d565b81600f546111f99190612497565b34101561123d5760405162461bcd60e51b8152602060048201526012602482015271696e73756666696369656e742066756e647360701b6044820152606401610d72565b50505b61124a83826125d6565b33600081815260156020526040902091909155610aa89084611b70565b81611271816117fd565b6112895760175460ff1615611289576112898161181f565b610aa88383611b8a565b61129b61167f565b6013805461ff001916610100179055565b6112b461167f565b6017805460ff1916911515919091179055565b836001600160a01b03811633146112f9576112e1336117fd565b6112f95760175460ff16156112f9576112f93361181f565b61130585858585611bf6565b5050505050565b600c80546109fb90612447565b6060611324826117d6565b6113885760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610d72565b601354606090610100900460ff16151560000361143157600d80546113ac90612447565b80601f01602080910402602001604051908101604052809291908181526020018280546113d890612447565b80156114255780601f106113fa57610100808354040283529160200191611425565b820191906000526020600020905b81548152906001019060200180831161140857829003601f168201915b5050505050905061143c565b611439611c3a565b90505b82611446816125fc565b93505060008151116114675760405180602001604052806000815250611495565b8061147184611c49565b600c60405160200161148593929190612615565b6040516020818303038152906040525b9392505050565b6114a461167f565b601255565b6114b161167f565b600c6109148282612516565b6114c561167f565b600f55565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b61150061167f565b60005b81811015610aa857600160146000858585818110611523576115236126b5565b90506020020160208101906115389190612167565b6001600160a01b031681526020810191909152604001600020805460ff19169115159190911790558061156a816125fc565b915050611503565b61157a61167f565b600d6109148282612516565b61158e61167f565b6001600160a01b0381166115f35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610d72565b610c2a81611b1e565b60006301ffc9a760e01b6001600160e01b03198316148061162d57506380ac58cd60e01b6001600160e01b03198316145b806108e15750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b0319821663152a902d60e11b14806108e157506301ffc9a760e01b6001600160e01b03198316146108e1565b600a546001600160a01b03163314610cf75760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610d72565b6127106001600160601b03821611156117475760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610d72565b6001600160a01b03821661179d5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610d72565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600855565b60008054821080156108e1575050600090815260046020526040902054600160e01b161590565b6001600160a01b0316731e0049783f008a0085193e00003d00cd54003c711490565b69c617113400112233445560005230601a5280603a52600080604460166daaeb6d7670e522a718067333cd4e5afa61185b573d6000803e3d6000fd5b6000603a5250565b600061186e82610c7e565b9050336001600160a01b038216146118a75761188a81336114ca565b6118a7576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600061190e82611ab7565b9050836001600160a01b0316816001600160a01b0316146119415760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b0388169091141761198e5761197186336114ca565b61198e57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0385166119b557604051633a954ecd60e21b815260040160405180910390fd5b80156119c057600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003611a5257600184016000818152600460205260408120549003611a50576000548114611a505760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b610aa8838383604051806020016040528060008152506112c7565b600081600054811015611b055760008181526004602052604081205490600160e01b82169003611b03575b80600003611495575060001901600081815260046020526040902054611ae2565b505b604051636f96cda160e11b815260040160405180910390fd5b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610914828260405180602001604052806000815250611cdc565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611c01848484610aba565b6001600160a01b0383163b15610af757611c1d84848484611d42565b610af7576040516368d2bf6b60e11b815260040160405180910390fd5b6060600b805461092790612447565b60606000611c5683611e2e565b600101905060008167ffffffffffffffff811115611c7657611c766121e0565b6040519080825280601f01601f191660200182016040528015611ca0576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084611caa57509392505050565b611ce68383611f06565b6001600160a01b0383163b15610aa8576000548281035b611d106000868380600101945086611d42565b611d2d576040516368d2bf6b60e11b815260040160405180910390fd5b818110611cfd57816000541461130557600080fd5b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611d779033908990889088906004016126cb565b6020604051808303816000875af1925050508015611db2575060408051601f3d908101601f19168201909252611daf91810190612708565b60015b611e10573d808015611de0576040519150601f19603f3d011682016040523d82523d6000602084013e611de5565b606091505b508051600003611e08576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310611e6d5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310611e99576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310611eb757662386f26fc10000830492506010015b6305f5e1008310611ecf576305f5e100830492506008015b6127108310611ee357612710830492506004015b60648310611ef5576064830492506002015b600a83106108e15760010192915050565b6000805490829003611f2b5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b818114611fda57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101611fa2565b5081600003611ffb57604051622e076360e81b815260040160405180910390fd5b60005550505050565b6001600160e01b031981168114610c2a57600080fd5b60006020828403121561202c57600080fd5b813561149581612004565b8035801515811461204757600080fd5b919050565b60006020828403121561205e57600080fd5b61149582612037565b80356001600160a01b038116811461204757600080fd5b6000806040838503121561209157600080fd5b61209a83612067565b915060208301356001600160601b03811681146120b657600080fd5b809150509250929050565b60005b838110156120dc5781810151838201526020016120c4565b50506000910152565b600081518084526120fd8160208601602086016120c1565b601f01601f19169290920160200192915050565b60208152600061149560208301846120e5565b60006020828403121561213657600080fd5b5035919050565b6000806040838503121561215057600080fd5b61215983612067565b946020939093013593505050565b60006020828403121561217957600080fd5b61149582612067565b60008060006060848603121561219757600080fd5b6121a084612067565b92506121ae60208501612067565b9150604084013590509250925092565b600080604083850312156121d157600080fd5b50508035926020909101359150565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612211576122116121e0565b604051601f8501601f19908116603f01168101908282118183101715612239576122396121e0565b8160405280935085815286868601111561225257600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561227e57600080fd5b813567ffffffffffffffff81111561229557600080fd5b8201601f810184136122a657600080fd5b611e26848235602084016121f6565b6020808252825182820181905260009190848201906040850190845b818110156122ed578351835292840192918401916001016122d1565b50909695505050505050565b6000806040838503121561230c57600080fd5b61231583612067565b915061232360208401612037565b90509250929050565b6000806000806080858703121561234257600080fd5b61234b85612067565b935061235960208601612067565b925060408501359150606085013567ffffffffffffffff81111561237c57600080fd5b8501601f8101871361238d57600080fd5b61239c878235602084016121f6565b91505092959194509250565b600080604083850312156123bb57600080fd5b6123c483612067565b915061232360208401612067565b600080602083850312156123e557600080fd5b823567ffffffffffffffff808211156123fd57600080fd5b818501915085601f83011261241157600080fd5b81358181111561242057600080fd5b8660208260051b850101111561243557600080fd5b60209290920196919550909350505050565b600181811c9082168061245b57607f821691505b60208210810361247b57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176108e1576108e1612481565b6000826124cb57634e487b7160e01b600052601260045260246000fd5b500490565b601f821115610aa857600081815260208120601f850160051c810160208610156124f75750805b601f850160051c820191505b81811015611a9457828155600101612503565b815167ffffffffffffffff811115612530576125306121e0565b6125448161253e8454612447565b846124d0565b602080601f83116001811461257957600084156125615750858301515b600019600386901b1c1916600185901b178555611a94565b600085815260208120601f198616915b828110156125a857888601518255948401946001909101908401612589565b50858210156125c65787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b808201808211156108e1576108e1612481565b818103818111156108e1576108e1612481565b60006001820161260e5761260e612481565b5060010190565b6000845160206126288285838a016120c1565b85519184019161263b8184848a016120c1565b855492019160009061264c81612447565b600182811680156126645760018114612679576126a5565b60ff19841687528215158302870194506126a5565b896000528560002060005b8481101561269d57815489820152908301908701612684565b505082870194505b50929a9950505050505050505050565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906126fe908301846120e5565b9695505050505050565b60006020828403121561271a57600080fd5b81516114958161200456fea2646970667358221220e2f50b0c3053e153e75ef110feec994f925e85c1c2e20cc52358776ca3357a1e64736f6c63430008130033

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

000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000000d44756d6d7920467269656e64730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034446730000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002268747470733a2f2f64756d6d79667269656e64732e78797a2f4e46542f6a736f6e2f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002668747470733a2f2f64756d6d79667269656e64732e78797a2f4e46542f6a736f6e5f7265762f0000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): Dummy Friends
Arg [1] : _symbol (string): DFs
Arg [2] : _initBaseURI (string): https://dummyfriends.xyz/NFT/json/
Arg [3] : _initNotRevealedUri (string): https://dummyfriends.xyz/NFT/json_rev/

-----Encoded View---------------
14 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000080
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000100
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000160
Arg [4] : 000000000000000000000000000000000000000000000000000000000000000d
Arg [5] : 44756d6d7920467269656e647300000000000000000000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000003
Arg [7] : 4446730000000000000000000000000000000000000000000000000000000000
Arg [8] : 0000000000000000000000000000000000000000000000000000000000000022
Arg [9] : 68747470733a2f2f64756d6d79667269656e64732e78797a2f4e46542f6a736f
Arg [10] : 6e2f000000000000000000000000000000000000000000000000000000000000
Arg [11] : 0000000000000000000000000000000000000000000000000000000000000026
Arg [12] : 68747470733a2f2f64756d6d79667269656e64732e78797a2f4e46542f6a736f
Arg [13] : 6e5f7265762f0000000000000000000000000000000000000000000000000000


Deployed Bytecode Sourcemap

120523:8144:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;124035:251;;;;;;;;;;-1:-1:-1;124035:251:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;124035:251:0;;;;;;;;128056:73;;;;;;;;;;-1:-1:-1;128056:73:0;;;;;:::i;:::-;;:::i;:::-;;120740:43;;;;;;;;;;;;;;;;;;;1088:25:1;;;1076:2;1061:18;120740:43:0;942:177:1;125660:151:0;;;;;;;;;;-1:-1:-1;125660:151:0;;;;;:::i;:::-;;:::i;25071:100::-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;31562:218::-;;;;;;;;;;-1:-1:-1;31562:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;2778:32:1;;;2760:51;;2748:2;2733:18;31562:218:0;2614:203:1;120705:28:0;;;;;;;;;;;;;:::i;124817:191::-;;;;;;:::i;:::-;;:::i;20822:323::-;;;;;;;;;;-1:-1:-1;21096:12:0;;20883:7;21080:13;:28;20822:323;;121122:55;;;;;;;;;;-1:-1:-1;121122:55:0;;;;;:::i;:::-;;;;;;;;;;;;;;127370:100;;;;;;;;;;-1:-1:-1;127370:100:0;;;;;:::i;:::-;;:::i;120875:32::-;;;;;;;;;;;;;;;;125014:194;;;;;;:::i;:::-;;:::i;61698:442::-;;;;;;;;;;-1:-1:-1;61698:442:0;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;4050:32:1;;;4032:51;;4114:2;4099:18;;4092:34;;;;4005:18;61698:442:0;3858:274:1;123843:186:0;;;;;;;;;;-1:-1:-1;123843:186:0;;;;;:::i;:::-;-1:-1:-1;;;;;123953:41:0;123915:4;123953:41;;;:20;:41;;;;;;;;;123843:186;128137:95;;;;;;;;;;-1:-1:-1;128137:95:0;;;;;:::i;:::-;;:::i;128481:183::-;;;;;;;;;;;;;:::i;125214:202::-;;;;;;:::i;:::-;;:::i;120991:28::-;;;;;;;;;;-1:-1:-1;120991:28:0;;;;;;;;;;;127696:98;;;;;;;;;;-1:-1:-1;127696:98:0;;;;;:::i;:::-;;:::i;120958:26::-;;;;;;;;;;-1:-1:-1;120958:26:0;;;;;;;;26464:152;;;;;;;;;;-1:-1:-1;26464:152:0;;;;;:::i;:::-;;:::i;120633:21::-;;;;;;;;;;;;;:::i;22006:233::-;;;;;;;;;;-1:-1:-1;22006:233:0;;;;;:::i;:::-;;:::i;119622:103::-;;;;;;;;;;;;;:::i;127574:116::-;;;;;;;;;;-1:-1:-1;127574:116:0;;;;;:::i;:::-;;:::i;123307:524::-;;;;;;:::i;:::-;;:::i;126752:408::-;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;118974:87::-;;;;;;;;;;-1:-1:-1;119047:6:0;;-1:-1:-1;;;;;119047:6:0;118974:87;;25247:104;;;;;;;;;;;;;:::i;121026:34::-;;;;;;;;;;-1:-1:-1;121026:34:0;;;;;;;;;;;121671:1516;;;;;;:::i;:::-;;:::i;124614:197::-;;;;;;;;;;-1:-1:-1;124614:197:0;;;;;:::i;:::-;;:::i;127185:65::-;;;;;;;;;;;;;:::i;125818:111::-;;;;;;;;;;-1:-1:-1;125818:111:0;;;;;:::i;:::-;;:::i;125422:232::-;;;;;;:::i;:::-;;:::i;120914:37::-;;;;;;;;;;;;;;;;120661;;;;;;;;;;;;;:::i;126068:590::-;;;;;;;;;;-1:-1:-1;126068:590:0;;;;;:::i;:::-;;:::i;127258:104::-;;;;;;;;;;-1:-1:-1;127258:104:0;;;;;:::i;:::-;;:::i;120837:31::-;;;;;;;;;;;;;;;;127800:122;;;;;;;;;;-1:-1:-1;127800:122:0;;;;;:::i;:::-;;:::i;127474:94::-;;;;;;;;;;-1:-1:-1;127474:94:0;;;;;:::i;:::-;;:::i;32511:164::-;;;;;;;;;;-1:-1:-1;32511:164:0;;;;;:::i;:::-;;:::i;128242:229::-;;;;;;;;;;-1:-1:-1;128242:229:0;;;;;:::i;:::-;;:::i;123195:106::-;;;;;;;;;;-1:-1:-1;123195:106:0;;;;;:::i;:::-;-1:-1:-1;;;;;123278:17:0;123255:7;123278:17;;;:10;:17;;;;;;;123195:106;127930:120;;;;;;;;;;-1:-1:-1;127930:120:0;;;;;:::i;:::-;;:::i;119880:201::-;;;;;;;;;;-1:-1:-1;119880:201:0;;;;;:::i;:::-;;:::i;120790:40::-;;;;;;;;;;;;;;;;121239:43;;;;;;;;;;-1:-1:-1;121239:43:0;;;;;;;;124035:251;124163:4;124193:38;124219:11;124193:25;:38::i;:::-;:87;;;;124242:38;124268:11;124242:25;:38::i;:::-;124179:101;124035:251;-1:-1:-1;;124035:251:0:o;128056:73::-;118860:13;:11;:13::i;:::-;128108:6:::1;:15:::0;;-1:-1:-1;;128108:15:0::1;::::0;::::1;;::::0;;;::::1;::::0;;128056:73::o;125660:151::-;118860:13;:11;:13::i;:::-;125763:42:::1;125782:8;125792:12;125763:18;:42::i;:::-;125660:151:::0;;:::o;25071:100::-;25125:13;25158:5;25151:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25071:100;:::o;31562:218::-;31638:7;31663:16;31671:7;31663;:16::i;:::-;31658:64;;31688:34;;-1:-1:-1;;;31688:34:0;;;;;;;;;;;31658:64;-1:-1:-1;31742:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;31742:30:0;;31562:218::o;120705:28::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;124817:191::-;124950:8;3623:29;3643:8;3623:19;:29::i;:::-;3618:122;;124381:24;;;;3669:59;;;3702:26;3719:8;3702:16;:26::i;:::-;124970:32:::1;124984:8;124994:7;124970:13;:32::i;:::-;124817:191:::0;;;:::o;127370:100::-;118860:13;:11;:13::i;:::-;127439:14:::1;:25:::0;127370:100::o;125014:194::-;125152:4;-1:-1:-1;;;;;3258:18:0;;3266:10;3258:18;3254:184;;3298:31;3318:10;3298:19;:31::i;:::-;3293:134;;124381:24;;;;3350:61;;;3383:28;3400:10;3383:16;:28::i;:::-;125165:37:::1;125184:4;125190:2;125194:7;125165:18;:37::i;:::-;125014:194:::0;;;;:::o;61698:442::-;61795:7;61853:27;;;:17;:27;;;;;;;;61824:56;;;;;;;;;-1:-1:-1;;;;;61824:56:0;;;;;-1:-1:-1;;;61824:56:0;;;-1:-1:-1;;;;;61824:56:0;;;;;;;;61795:7;;61893:92;;-1:-1:-1;61944:29:0;;;;;;;;;61954:19;61944:29;-1:-1:-1;;;;;61944:29:0;;;;-1:-1:-1;;;61944:29:0;;-1:-1:-1;;;;;61944:29:0;;;;;61893:92;62035:23;;;;61997:21;;62506:5;;62022:36;;-1:-1:-1;;;;;62022:36:0;:10;:36;:::i;:::-;62021:58;;;;:::i;:::-;62100:16;;;;;-1:-1:-1;61698:442:0;;-1:-1:-1;;;;61698:442:0:o;128137:95::-;118860:13;:11;:13::i;:::-;128202:15:::1;:24:::0;;;::::1;;::::0;::::1;-1:-1:-1::0;;128202:24:0;;::::1;::::0;;;::::1;::::0;;128137:95::o;128481:183::-;118860:13;:11;:13::i;:::-;128547:82:::1;::::0;128529:12:::1;::::0;128555:10:::1;::::0;128593:21:::1;::::0;128529:12;128547:82;128529:12;128547:82;128593:21;128555:10;128547:82:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;128528:101;;;128648:7;128640:16;;;::::0;::::1;;128517:147;128481:183::o:0;125214:202::-;125356:4;-1:-1:-1;;;;;3258:18:0;;3266:10;3258:18;3254:184;;3298:31;3318:10;3298:19;:31::i;:::-;3293:134;;124381:24;;;;3350:61;;;3383:28;3400:10;3383:16;:28::i;:::-;125369:41:::1;125392:4;125398:2;125402:7;125369:22;:41::i;127696:98::-:0;118860:13;:11;:13::i;:::-;127767:7:::1;:21;127777:11:::0;127767:7;:21:::1;:::i;26464:152::-:0;26536:7;26579:27;26598:7;26579:18;:27::i;120633:21::-;;;;;;;:::i;22006:233::-;22078:7;-1:-1:-1;;;;;22102:19:0;;22098:60;;22130:28;;-1:-1:-1;;;22130:28:0;;;;;;;;;;;22098:60;-1:-1:-1;;;;;;22176:25:0;;;;;:18;:25;;;;;;16165:13;22176:55;;22006:233::o;119622:103::-;118860:13;:11;:13::i;:::-;119687:30:::1;119714:1;119687:18;:30::i;:::-;119622:103::o:0;127574:116::-;118860:13;:11;:13::i;:::-;127651::::1;:33:::0;127574:116::o;123307:524::-;119047:6;;-1:-1:-1;;;;;119047:6:0;-1:-1:-1;;;;;123391:14:0;:3;-1:-1:-1;;;;;123391:14:0;;123387:432;;123431:6;;;;123430:7;123422:42;;;;-1:-1:-1;;;123422:42:0;;11475:2:1;123422:42:0;;;11457:21:1;11514:2;11494:18;;;11487:30;-1:-1:-1;;;11533:18:1;;;11526:52;11595:18;;123422:42:0;;;;;;;;;123473:14;123490:13;21096:12;;20883:7;21080:13;:28;;20822:323;123490:13;123473:30;;123534:1;123520:11;:15;123512:55;;;;-1:-1:-1;;;123512:55:0;;11826:2:1;123512:55:0;;;11808:21:1;11865:2;11845:18;;;11838:30;11904:29;11884:18;;;11877:57;11951:18;;123512:55:0;11624:351:1;123512:55:0;123608:9;;123584:20;123593:11;123584:6;:20;:::i;:::-;:33;;123576:68;;;;-1:-1:-1;;;123576:68:0;;12312:2:1;123576:68:0;;;12294:21:1;12351:2;12331:18;;;12324:30;-1:-1:-1;;;12370:18:1;;;12363:52;12432:18;;123576:68:0;12110:346:1;123576:68:0;-1:-1:-1;;;;;123682:25:0;;123655:24;123682:25;;;:20;:25;;;;;;123744:30;123763:11;123682:25;123744:30;:::i;:::-;-1:-1:-1;;;;;123716:25:0;;;;;;:20;:25;;;;;:58;123784:27;123737:3;123799:11;123784:9;:27::i;126752:408::-;126792:16;126837:10;126820:14;126885:17;126837:10;126885:9;:17::i;:::-;126858:44;;126913:25;126955:16;126941:31;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;126941:31:0;-1:-1:-1;126913:59:0;126752:408;-1:-1:-1;;;;126752:408:0:o;25247:104::-;25303:13;25336:7;25329:14;;;;;:::i;121671:1516::-;121739:6;;;;121738:7;121730:42;;;;-1:-1:-1;;;121730:42:0;;11475:2:1;121730:42:0;;;11457:21:1;11514:2;11494:18;;;11487:30;-1:-1:-1;;;11533:18:1;;;11526:52;11595:18;;121730:42:0;11273:346:1;121730:42:0;121779:14;121796:13;21096:12;;20883:7;21080:13;:28;;20822:323;121796:13;121864:10;121816:24;121843:32;;;:20;:32;;;;;;121779:30;;-1:-1:-1;121892:15:0;121884:55;;;;-1:-1:-1;;;121884:55:0;;11826:2:1;121884:55:0;;;11808:21:1;11865:2;11845:18;;;11838:30;11904:29;11884:18;;;11877:57;11951:18;;121884:55:0;11624:351:1;121884:55:0;121969:13;;121954:11;:28;;121946:77;;;;-1:-1:-1;;;121946:77:0;;12663:2:1;121946:77:0;;;12645:21:1;12702:2;12682:18;;;12675:30;12741:34;12721:18;;;12714:62;-1:-1:-1;;;12792:18:1;;;12785:34;12836:19;;121946:77:0;12461:400:1;121946:77:0;122062:9;;122038:20;122047:11;122038:6;:20;:::i;:::-;:33;;122030:68;;;;-1:-1:-1;;;122030:68:0;;12312:2:1;122030:68:0;;;12294:21:1;12351:2;12331:18;;;12324:30;-1:-1:-1;;;12370:18:1;;;12363:52;12432:18;;122030:68:0;12110:346:1;122030:68:0;122147:18;;122113:30;122132:11;122113:16;:30;:::i;:::-;:52;;122105:93;;;;-1:-1:-1;;;122105:93:0;;13068:2:1;122105:93:0;;;13050:21:1;13107:2;13087:18;;;13080:30;13146;13126:18;;;13119:58;13194:18;;122105:93:0;12866:352:1;122105:93:0;119047:6;;-1:-1:-1;;;;;119047:6:0;122211:10;:21;122207:855;;122247:15;;;;;;;:23;;122266:4;122247:23;122244:126;;122309:10;123915:4;123953:41;;;:20;:41;;;;;;;;122287:61;;;;-1:-1:-1;;;122287:61:0;;13425:2:1;122287:61:0;;;13407:21:1;13464:2;13444:18;;;13437:30;13503:25;13483:18;;;13476:53;13546:18;;122287:61:0;13223:347:1;122287:61:0;122461:10;122382:19;122450:22;;;:10;:22;;;;;;122404:11;;122505:1;122489:17;;122485:285;;;122551:1;122537:11;:15;122533:183;;;122601:15;122615:1;122601:11;:15;:::i;:::-;122587:29;;122533:183;;;122699:1;122685:15;;122533:183;122743:10;122732:22;;;;:10;:22;;;;;122757:1;122732:26;;122485:285;122785:15;;;;;;;:23;;122804:4;122785:23;122782:254;;122871:11;122854:14;;:28;;;;:::i;:::-;122841:9;:41;;122833:72;;;;-1:-1:-1;;;122833:72:0;;13910:2:1;122833:72:0;;;13892:21:1;13949:2;13929:18;;;13922:30;-1:-1:-1;;;13968:18:1;;;13961:48;14026:18;;122833:72:0;13708:342:1;122833:72:0;122782:254;;;122990:11;122976;;:25;;;;:::i;:::-;122963:9;:38;;122955:69;;;;-1:-1:-1;;;122955:69:0;;13910:2:1;122955:69:0;;;13892:21:1;13949:2;13929:18;;;13922:30;-1:-1:-1;;;13968:18:1;;;13961:48;14026:18;;122955:69:0;13708:342:1;122955:69:0;122234:828;;122207:855;123106:30;123125:11;123106:16;:30;:::i;:::-;123092:10;123071:32;;;;:20;:32;;;;;:65;;;;123145:34;;123167:11;123145:9;:34::i;124614:197::-;124742:8;3623:29;3643:8;3623:19;:29::i;:::-;3618:122;;124381:24;;;;3669:59;;;3702:26;3719:8;3702:16;:26::i;:::-;124762:43:::1;124786:8;124796;124762:23;:43::i;127185:65::-:0;118860:13;:11;:13::i;:::-;127229:8:::1;:15:::0;;-1:-1:-1;;127229:15:0::1;;;::::0;;127185:65::o;125818:111::-;118860:13;:11;:13::i;:::-;125891:24:::1;:32:::0;;-1:-1:-1;;125891:32:0::1;::::0;::::1;;::::0;;;::::1;::::0;;125818:111::o;125422:232::-;125588:4;-1:-1:-1;;;;;3258:18:0;;3266:10;3258:18;3254:184;;3298:31;3318:10;3298:19;:31::i;:::-;3293:134;;124381:24;;;;3350:61;;;3383:28;3400:10;3383:16;:28::i;:::-;125601:47:::1;125624:4;125630:2;125634:7;125643:4;125601:22;:47::i;:::-;125422:232:::0;;;;;:::o;120661:37::-;;;;;;;:::i;126068:590::-;126166:13;126207:16;126215:7;126207;:16::i;:::-;126191:97;;;;-1:-1:-1;;;126191:97:0;;14257:2:1;126191:97:0;;;14239:21:1;14296:2;14276:18;;;14269:30;14335:34;14315:18;;;14308:62;-1:-1:-1;;;14386:18:1;;;14379:45;14441:19;;126191:97:0;14055:411:1;126191:97:0;126341:8;;126297:28;;126341:8;;;;;:17;;126353:5;126341:17;126338:147;;126393:14;126376:31;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;126338:147;;;126466:10;:8;:10::i;:::-;126449:27;;126338:147;126494:9;;;;:::i;:::-;;;;126550:1;126525:14;126519:28;:32;:133;;;;;;;;;;;;;;;;;126587:14;126603:18;:7;:16;:18::i;:::-;126623:13;126570:67;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;126519:133;126512:140;126068:590;-1:-1:-1;;;126068:590:0:o;127258:104::-;118860:13;:11;:13::i;:::-;127329:18:::1;:27:::0;127258:104::o;127800:122::-;118860:13;:11;:13::i;:::-;127883::::1;:33;127899:17:::0;127883:13;:33:::1;:::i;127474:94::-:0;118860:13;:11;:13::i;:::-;127540:11:::1;:22:::0;127474:94::o;32511:164::-;-1:-1:-1;;;;;32632:25:0;;;32608:4;32632:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;32511:164::o;128242:229::-;118860:13;:11;:13::i;:::-;128347:6:::1;128342:122;128359:25:::0;;::::1;128342:122;;;128448:4;128406:20;:39;128427:14;;128442:1;128427:17;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;128406:39:0::1;::::0;;::::1;::::0;::::1;::::0;;;;;;-1:-1:-1;128406:39:0;:46;;-1:-1:-1;;128406:46:0::1;::::0;::::1;;::::0;;;::::1;::::0;;128386:3;::::1;::::0;::::1;:::i;:::-;;;;128342:122;;127930:120:::0;118860:13;:11;:13::i;:::-;128012:14:::1;:32;128029:15:::0;128012:14;:32:::1;:::i;119880:201::-:0;118860:13;:11;:13::i;:::-;-1:-1:-1;;;;;119969:22:0;::::1;119961:73;;;::::0;-1:-1:-1;;;119961:73:0;;16206:2:1;119961:73:0::1;::::0;::::1;16188:21:1::0;16245:2;16225:18;;;16218:30;16284:34;16264:18;;;16257:62;-1:-1:-1;;;16335:18:1;;;16328:36;16381:19;;119961:73:0::1;16004:402:1::0;119961:73:0::1;120045:28;120064:8;120045:18;:28::i;24169:639::-:0;24254:4;-1:-1:-1;;;;;;;;;24578:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;24655:25:0;;;24578:102;:179;;;-1:-1:-1;;;;;;;;24732:25:0;-1:-1:-1;;;24732:25:0;;24169:639::o;61428:215::-;61530:4;-1:-1:-1;;;;;;61554:41:0;;-1:-1:-1;;;61554:41:0;;:81;;-1:-1:-1;;;;;;;;;;59089:40:0;;;61599:36;58980:157;119139:132;119047:6;;-1:-1:-1;;;;;119047:6:0;108890:10;119203:23;119195:68;;;;-1:-1:-1;;;119195:68:0;;16613:2:1;119195:68:0;;;16595:21:1;;;16632:18;;;16625:30;16691:34;16671:18;;;16664:62;16743:18;;119195:68:0;16411:356:1;62790:332:0;62506:5;-1:-1:-1;;;;;62893:33:0;;;;62885:88;;;;-1:-1:-1;;;62885:88:0;;16974:2:1;62885:88:0;;;16956:21:1;17013:2;16993:18;;;16986:30;17052:34;17032:18;;;17025:62;-1:-1:-1;;;17103:18:1;;;17096:40;17153:19;;62885:88:0;16772:406:1;62885:88:0;-1:-1:-1;;;;;62992:22:0;;62984:60;;;;-1:-1:-1;;;62984:60:0;;17385:2:1;62984:60:0;;;17367:21:1;17424:2;17404:18;;;17397:30;17463:27;17443:18;;;17436:55;17508:18;;62984:60:0;17183:349:1;62984:60:0;63079:35;;;;;;;;;-1:-1:-1;;;;;63079:35:0;;;;;;-1:-1:-1;;;;;63079:35:0;;;;;;;;;;-1:-1:-1;;;63057:57:0;;;;:19;:57;62790:332::o;32933:282::-;32998:4;33088:13;;33078:7;:23;33035:153;;;;-1:-1:-1;;33139:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;33139:44:0;:49;;32933:282::o;124417:191::-;-1:-1:-1;;;;;124539:63:0;124559:42;124539:63;;124417:191::o;3856:1359::-;4249:22;4243:4;4236:36;4342:9;4336:4;4329:23;4417:8;4411:4;4404:22;4594:4;4588;4582;4576;4549:25;4542:5;4531:68;4521:274;;4715:16;4709:4;4703;4688:44;4763:16;4757:4;4750:30;4521:274;5195:1;5189:4;5182:15;3856:1359;:::o;30995:408::-;31084:13;31100:16;31108:7;31100;:16::i;:::-;31084:32;-1:-1:-1;108890:10:0;-1:-1:-1;;;;;31133:28:0;;;31129:175;;31181:44;31198:5;108890:10;32511:164;:::i;31181:44::-;31176:128;;31253:35;;-1:-1:-1;;;31253:35:0;;;;;;;;;;;31176:128;31316:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;31316:35:0;-1:-1:-1;;;;;31316:35:0;;;;;;;;;31367:28;;31316:24;;31367:28;;;;;;;31073:330;30995:408;;:::o;35201:2825::-;35343:27;35373;35392:7;35373:18;:27::i;:::-;35343:57;;35458:4;-1:-1:-1;;;;;35417:45:0;35433:19;-1:-1:-1;;;;;35417:45:0;;35413:86;;35471:28;;-1:-1:-1;;;35471:28:0;;;;;;;;;;;35413:86;35513:27;34309:24;;;:15;:24;;;;;34537:26;;108890:10;33934:30;;;-1:-1:-1;;;;;33627:28:0;;33912:20;;;33909:56;35699:180;;35792:43;35809:4;108890:10;32511:164;:::i;35792:43::-;35787:92;;35844:35;;-1:-1:-1;;;35844:35:0;;;;;;;;;;;35787:92;-1:-1:-1;;;;;35896:16:0;;35892:52;;35921:23;;-1:-1:-1;;;35921:23:0;;;;;;;;;;;35892:52;36093:15;36090:160;;;36233:1;36212:19;36205:30;36090:160;-1:-1:-1;;;;;36630:24:0;;;;;;;:18;:24;;;;;;36628:26;;-1:-1:-1;;36628:26:0;;;36699:22;;;;;;;;;36697:24;;-1:-1:-1;36697:24:0;;;29853:11;29828:23;29824:41;29811:63;-1:-1:-1;;;29811:63:0;36992:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;37287:47:0;;:52;;37283:627;;37392:1;37382:11;;37360:19;37515:30;;;:17;:30;;;;;;:35;;37511:384;;37653:13;;37638:11;:28;37634:242;;37800:30;;;;:17;:30;;;;;:52;;;37634:242;37341:569;37283:627;37957:7;37953:2;-1:-1:-1;;;;;37938:27:0;37947:4;-1:-1:-1;;;;;37938:27:0;;;;;;;;;;;37976:42;35332:2694;;;35201:2825;;;:::o;38122:193::-;38268:39;38285:4;38291:2;38295:7;38268:39;;;;;;;;;;;;:16;:39::i;27619:1275::-;27686:7;27721;27823:13;;27816:4;:20;27812:1015;;;27861:14;27878:23;;;:17;:23;;;;;;;-1:-1:-1;;;27967:24:0;;:29;;27963:845;;28632:113;28639:6;28649:1;28639:11;28632:113;;-1:-1:-1;;;28710:6:0;28692:25;;;;:17;:25;;;;;;28632:113;;27963:845;27838:989;27812:1015;28855:31;;-1:-1:-1;;;28855:31:0;;;;;;;;;;;120241:191;120334:6;;;-1:-1:-1;;;;;120351:17:0;;;-1:-1:-1;;;;;;120351:17:0;;;;;;;120384:40;;120334:6;;;120351:17;120334:6;;120384:40;;120315:16;;120384:40;120304:128;120241:191;:::o;49073:112::-;49150:27;49160:2;49164:8;49150:27;;;;;;;;;;;;:9;:27::i;32120:234::-;108890:10;32215:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;32215:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;32215:60:0;;;;;;;;;;32291:55;;540:41:1;;;32215:49:0;;108890:10;32291:55;;513:18:1;32291:55:0;;;;;;;32120:234;;:::o;38913:407::-;39088:31;39101:4;39107:2;39111:7;39088:12;:31::i;:::-;-1:-1:-1;;;;;39134:14:0;;;:19;39130:183;;39173:56;39204:4;39210:2;39214:7;39223:5;39173:30;:56::i;:::-;39168:145;;39257:40;;-1:-1:-1;;;39257:40:0;;;;;;;;;;;125956:102;126016:13;126045:7;126038:14;;;;;:::i;77500:716::-;77556:13;77607:14;77624:17;77635:5;77624:10;:17::i;:::-;77644:1;77624:21;77607:38;;77660:20;77694:6;77683:18;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;77683:18:0;-1:-1:-1;77660:41:0;-1:-1:-1;77825:28:0;;;77841:2;77825:28;77882:288;-1:-1:-1;;77914:5:0;-1:-1:-1;;;78051:2:0;78040:14;;78035:30;77914:5;78022:44;78112:2;78103:11;;;-1:-1:-1;78133:21:0;77882:288;78133:21;-1:-1:-1;78191:6:0;77500:716;-1:-1:-1;;;77500:716:0:o;48300:689::-;48431:19;48437:2;48441:8;48431:5;:19::i;:::-;-1:-1:-1;;;;;48492:14:0;;;:19;48488:483;;48532:11;48546:13;48594:14;;;48627:233;48658:62;48697:1;48701:2;48705:7;;;;;;48714:5;48658:30;:62::i;:::-;48653:167;;48756:40;;-1:-1:-1;;;48756:40:0;;;;;;;;;;;48653:167;48855:3;48847:5;:11;48627:233;;48942:3;48925:13;;:20;48921:34;;48947:8;;;41404:716;41588:88;;-1:-1:-1;;;41588:88:0;;41567:4;;-1:-1:-1;;;;;41588:45:0;;;;;:88;;108890:10;;41655:4;;41661:7;;41670:5;;41588:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;41588:88:0;;;;;;;;-1:-1:-1;;41588:88:0;;;;;;;;;;;;:::i;:::-;;;41584:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;41871:6;:13;41888:1;41871:18;41867:235;;41917:40;;-1:-1:-1;;;41917:40:0;;;;;;;;;;;41867:235;42060:6;42054:13;42045:6;42041:2;42037:15;42030:38;41584:529;-1:-1:-1;;;;;;41747:64:0;-1:-1:-1;;;41747:64:0;;-1:-1:-1;41584:529:0;41404:716;;;;;;:::o;74366:922::-;74419:7;;-1:-1:-1;;;74497:15:0;;74493:102;;-1:-1:-1;;;74533:15:0;;;-1:-1:-1;74577:2:0;74567:12;74493:102;74622:6;74613:5;:15;74609:102;;74658:6;74649:15;;;-1:-1:-1;74693:2:0;74683:12;74609:102;74738:6;74729:5;:15;74725:102;;74774:6;74765:15;;;-1:-1:-1;74809:2:0;74799:12;74725:102;74854:5;74845;:14;74841:99;;74889:5;74880:14;;;-1:-1:-1;74923:1:0;74913:11;74841:99;74967:5;74958;:14;74954:99;;75002:5;74993:14;;;-1:-1:-1;75036:1:0;75026:11;74954:99;75080:5;75071;:14;75067:99;;75115:5;75106:14;;;-1:-1:-1;75149:1:0;75139:11;75067:99;75193:5;75184;:14;75180:66;;75229:1;75219:11;75274:6;74366:922;-1:-1:-1;;74366:922:0:o;42582:2966::-;42655:20;42678:13;;;42706;;;42702:44;;42728:18;;-1:-1:-1;;;42728:18:0;;;;;;;;;;;42702:44;-1:-1:-1;;;;;43234:22:0;;;;;;:18;:22;;;;16303:2;43234:22;;;:71;;43272:32;43260:45;;43234:71;;;43548:31;;;:17;:31;;;;;-1:-1:-1;30284:15:0;;30258:24;30254:46;29853:11;29828:23;29824:41;29821:52;29811:63;;43548:173;;43783:23;;;;43548:31;;43234:22;;44548:25;43234:22;;44401:335;45062:1;45048:12;45044:20;45002:346;45103:3;45094:7;45091:16;45002:346;;45321:7;45311:8;45308:1;45281:25;45278:1;45275;45270:59;45156:1;45143:15;45002:346;;;45006:77;45381:8;45393:1;45381:13;45377:45;;45403:19;;-1:-1:-1;;;45403:19:0;;;;;;;;;;;45377:45;45439:13;:19;-1:-1:-1;124817:191:0;;;:::o;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:160::-;657:20;;713:13;;706:21;696:32;;686:60;;742:1;739;732:12;686:60;592:160;;;:::o;757:180::-;813:6;866:2;854:9;845:7;841:23;837:32;834:52;;;882:1;879;872:12;834:52;905:26;921:9;905:26;:::i;1124:173::-;1192:20;;-1:-1:-1;;;;;1241:31:1;;1231:42;;1221:70;;1287:1;1284;1277:12;1302:366;1369:6;1377;1430:2;1418:9;1409:7;1405:23;1401:32;1398:52;;;1446:1;1443;1436:12;1398:52;1469:29;1488:9;1469:29;:::i;:::-;1459:39;;1548:2;1537:9;1533:18;1520:32;-1:-1:-1;;;;;1585:5:1;1581:38;1574:5;1571:49;1561:77;;1634:1;1631;1624:12;1561:77;1657:5;1647:15;;;1302:366;;;;;:::o;1673:250::-;1758:1;1768:113;1782:6;1779:1;1776:13;1768:113;;;1858:11;;;1852:18;1839:11;;;1832:39;1804:2;1797:10;1768:113;;;-1:-1:-1;;1915:1:1;1897:16;;1890:27;1673:250::o;1928:271::-;1970:3;2008:5;2002:12;2035:6;2030:3;2023:19;2051:76;2120:6;2113:4;2108:3;2104:14;2097:4;2090:5;2086:16;2051:76;:::i;:::-;2181:2;2160:15;-1:-1:-1;;2156:29:1;2147:39;;;;2188:4;2143:50;;1928:271;-1:-1:-1;;1928:271:1:o;2204:220::-;2353:2;2342:9;2335:21;2316:4;2373:45;2414:2;2403:9;2399:18;2391:6;2373:45;:::i;2429:180::-;2488:6;2541:2;2529:9;2520:7;2516:23;2512:32;2509:52;;;2557:1;2554;2547:12;2509:52;-1:-1:-1;2580:23:1;;2429:180;-1:-1:-1;2429:180:1:o;2822:254::-;2890:6;2898;2951:2;2939:9;2930:7;2926:23;2922:32;2919:52;;;2967:1;2964;2957:12;2919:52;2990:29;3009:9;2990:29;:::i;:::-;2980:39;3066:2;3051:18;;;;3038:32;;-1:-1:-1;;;2822:254:1:o;3081:186::-;3140:6;3193:2;3181:9;3172:7;3168:23;3164:32;3161:52;;;3209:1;3206;3199:12;3161:52;3232:29;3251:9;3232:29;:::i;3272:328::-;3349:6;3357;3365;3418:2;3406:9;3397:7;3393:23;3389:32;3386:52;;;3434:1;3431;3424:12;3386:52;3457:29;3476:9;3457:29;:::i;:::-;3447:39;;3505:38;3539:2;3528:9;3524:18;3505:38;:::i;:::-;3495:48;;3590:2;3579:9;3575:18;3562:32;3552:42;;3272:328;;;;;:::o;3605:248::-;3673:6;3681;3734:2;3722:9;3713:7;3709:23;3705:32;3702:52;;;3750:1;3747;3740:12;3702:52;-1:-1:-1;;3773:23:1;;;3843:2;3828:18;;;3815:32;;-1:-1:-1;3605:248:1:o;4137:127::-;4198:10;4193:3;4189:20;4186:1;4179:31;4229:4;4226:1;4219:15;4253:4;4250:1;4243:15;4269:632;4334:5;4364:18;4405:2;4397:6;4394:14;4391:40;;;4411:18;;:::i;:::-;4486:2;4480:9;4454:2;4540:15;;-1:-1:-1;;4536:24:1;;;4562:2;4532:33;4528:42;4516:55;;;4586:18;;;4606:22;;;4583:46;4580:72;;;4632:18;;:::i;:::-;4672:10;4668:2;4661:22;4701:6;4692:15;;4731:6;4723;4716:22;4771:3;4762:6;4757:3;4753:16;4750:25;4747:45;;;4788:1;4785;4778:12;4747:45;4838:6;4833:3;4826:4;4818:6;4814:17;4801:44;4893:1;4886:4;4877:6;4869;4865:19;4861:30;4854:41;;;;4269:632;;;;;:::o;4906:451::-;4975:6;5028:2;5016:9;5007:7;5003:23;4999:32;4996:52;;;5044:1;5041;5034:12;4996:52;5084:9;5071:23;5117:18;5109:6;5106:30;5103:50;;;5149:1;5146;5139:12;5103:50;5172:22;;5225:4;5217:13;;5213:27;-1:-1:-1;5203:55:1;;5254:1;5251;5244:12;5203:55;5277:74;5343:7;5338:2;5325:16;5320:2;5316;5312:11;5277:74;:::i;5362:632::-;5533:2;5585:21;;;5655:13;;5558:18;;;5677:22;;;5504:4;;5533:2;5756:15;;;;5730:2;5715:18;;;5504:4;5799:169;5813:6;5810:1;5807:13;5799:169;;;5874:13;;5862:26;;5943:15;;;;5908:12;;;;5835:1;5828:9;5799:169;;;-1:-1:-1;5985:3:1;;5362:632;-1:-1:-1;;;;;;5362:632:1:o;5999:254::-;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:35;6243:2;6232:9;6228:18;6212:35;:::i;:::-;6202:45;;5999:254;;;;;:::o;6258:667::-;6353:6;6361;6369;6377;6430:3;6418:9;6409:7;6405:23;6401:33;6398:53;;;6447:1;6444;6437:12;6398:53;6470:29;6489:9;6470:29;:::i;:::-;6460:39;;6518:38;6552:2;6541:9;6537:18;6518:38;:::i;:::-;6508:48;;6603:2;6592:9;6588:18;6575:32;6565:42;;6658:2;6647:9;6643:18;6630:32;6685:18;6677:6;6674:30;6671:50;;;6717:1;6714;6707:12;6671:50;6740:22;;6793:4;6785:13;;6781:27;-1:-1:-1;6771:55:1;;6822:1;6819;6812:12;6771:55;6845:74;6911:7;6906:2;6893:16;6888:2;6884;6880:11;6845:74;:::i;:::-;6835:84;;;6258:667;;;;;;;:::o;6930:260::-;6998:6;7006;7059:2;7047:9;7038:7;7034:23;7030:32;7027:52;;;7075:1;7072;7065:12;7027:52;7098:29;7117:9;7098:29;:::i;:::-;7088:39;;7146:38;7180:2;7169:9;7165:18;7146:38;:::i;7195:615::-;7281:6;7289;7342:2;7330:9;7321:7;7317:23;7313:32;7310:52;;;7358:1;7355;7348:12;7310:52;7398:9;7385:23;7427:18;7468:2;7460:6;7457:14;7454:34;;;7484:1;7481;7474:12;7454:34;7522:6;7511:9;7507:22;7497:32;;7567:7;7560:4;7556:2;7552:13;7548:27;7538:55;;7589:1;7586;7579:12;7538:55;7629:2;7616:16;7655:2;7647:6;7644:14;7641:34;;;7671:1;7668;7661:12;7641:34;7724:7;7719:2;7709:6;7706:1;7702:14;7698:2;7694:23;7690:32;7687:45;7684:65;;;7745:1;7742;7735:12;7684:65;7776:2;7768:11;;;;;7798:6;;-1:-1:-1;7195:615:1;;-1:-1:-1;;;;7195:615:1:o;7815:380::-;7894:1;7890:12;;;;7937;;;7958:61;;8012:4;8004:6;8000:17;7990:27;;7958:61;8065:2;8057:6;8054:14;8034:18;8031:38;8028:161;;8111:10;8106:3;8102:20;8099:1;8092:31;8146:4;8143:1;8136:15;8174:4;8171:1;8164:15;8028:161;;7815:380;;;:::o;8200:127::-;8261:10;8256:3;8252:20;8249:1;8242:31;8292:4;8289:1;8282:15;8316:4;8313:1;8306:15;8332:168;8405:9;;;8436;;8453:15;;;8447:22;;8433:37;8423:71;;8474:18;;:::i;8637:217::-;8677:1;8703;8693:132;;8747:10;8742:3;8738:20;8735:1;8728:31;8782:4;8779:1;8772:15;8810:4;8807:1;8800:15;8693:132;-1:-1:-1;8839:9:1;;8637:217::o;9195:545::-;9297:2;9292:3;9289:11;9286:448;;;9333:1;9358:5;9354:2;9347:17;9403:4;9399:2;9389:19;9473:2;9461:10;9457:19;9454:1;9450:27;9444:4;9440:38;9509:4;9497:10;9494:20;9491:47;;;-1:-1:-1;9532:4:1;9491:47;9587:2;9582:3;9578:12;9575:1;9571:20;9565:4;9561:31;9551:41;;9642:82;9660:2;9653:5;9650:13;9642:82;;;9705:17;;;9686:1;9675:13;9642:82;;9916:1352;10042:3;10036:10;10069:18;10061:6;10058:30;10055:56;;;10091:18;;:::i;:::-;10120:97;10210:6;10170:38;10202:4;10196:11;10170:38;:::i;:::-;10164:4;10120:97;:::i;:::-;10272:4;;10336:2;10325:14;;10353:1;10348:663;;;;11055:1;11072:6;11069:89;;;-1:-1:-1;11124:19:1;;;11118:26;11069:89;-1:-1:-1;;9873:1:1;9869:11;;;9865:24;9861:29;9851:40;9897:1;9893:11;;;9848:57;11171:81;;10318:944;;10348:663;9142:1;9135:14;;;9179:4;9166:18;;-1:-1:-1;;10384:20:1;;;10502:236;10516:7;10513:1;10510:14;10502:236;;;10605:19;;;10599:26;10584:42;;10697:27;;;;10665:1;10653:14;;;;10532:19;;10502:236;;;10506:3;10766:6;10757:7;10754:19;10751:201;;;10827:19;;;10821:26;-1:-1:-1;;10910:1:1;10906:14;;;10922:3;10902:24;10898:37;10894:42;10879:58;10864:74;;10751:201;-1:-1:-1;;;;;10998:1:1;10982:14;;;10978:22;10965:36;;-1:-1:-1;9916:1352:1:o;11980:125::-;12045:9;;;12066:10;;;12063:36;;;12079:18;;:::i;13575:128::-;13642:9;;;13663:11;;;13660:37;;;13677:18;;:::i;14471:135::-;14510:3;14531:17;;;14528:43;;14551:18;;:::i;:::-;-1:-1:-1;14598:1:1;14587:13;;14471:135::o;14611:1256::-;14835:3;14873:6;14867:13;14899:4;14912:64;14969:6;14964:3;14959:2;14951:6;14947:15;14912:64;:::i;:::-;15039:13;;14998:16;;;;15061:68;15039:13;14998:16;15096:15;;;15061:68;:::i;:::-;15218:13;;15151:20;;;15191:1;;15256:36;15218:13;15256:36;:::i;:::-;15311:1;15328:18;;;15355:141;;;;15510:1;15505:337;;;;15321:521;;15355:141;-1:-1:-1;;15390:24:1;;15376:39;;15467:16;;15460:24;15446:39;;15435:51;;;-1:-1:-1;15355:141:1;;15505:337;15536:6;15533:1;15526:17;15584:2;15581:1;15571:16;15609:1;15623:169;15637:8;15634:1;15631:15;15623:169;;;15719:14;;15704:13;;;15697:37;15762:16;;;;15654:10;;15623:169;;;15627:3;;15823:8;15816:5;15812:20;15805:27;;15321:521;-1:-1:-1;15858:3:1;;14611:1256;-1:-1:-1;;;;;;;;;;14611:1256:1:o;15872:127::-;15933:10;15928:3;15924:20;15921:1;15914:31;15964:4;15961:1;15954:15;15988:4;15985:1;15978:15;17537:489;-1:-1:-1;;;;;17806:15:1;;;17788:34;;17858:15;;17853:2;17838:18;;17831:43;17905:2;17890:18;;17883:34;;;17953:3;17948:2;17933:18;;17926:31;;;17731:4;;17974:46;;18000:19;;17992:6;17974:46;:::i;:::-;17966:54;17537:489;-1:-1:-1;;;;;;17537:489:1:o;18031:249::-;18100:6;18153:2;18141:9;18132:7;18128:23;18124:32;18121:52;;;18169:1;18166;18159:12;18121:52;18201:9;18195:16;18220:30;18244:5;18220:30;:::i

Swarm Source

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