ETH Price: $3,381.10 (-0.78%)
Gas: 4 Gwei

Token

DegenFaces (DF)
 

Overview

Max Total Supply

777 DF

Holders

519

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
1 DF
0xbf11349b63c396fc77f525ebb3c06d6a01deed84
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:
DegenFaces

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

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

// SPDX-License-Identifier: GPL-3.0


pragma solidity ^0.8.7;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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


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


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

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);

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

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

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

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

contract DegenFaces is ERC721A, DefaultOperatorFilterer {
    uint256 public maxSupply = 777;
    uint256 maxPerTx = 10;    
    uint256 price = 0.002 ether;
    uint256 royalty = 25;
    mapping(uint256 => uint256) blockFree;
    mapping(address => bool) minted;
    bool free;
    bool pause;

    function mint_faces(uint256 amount) payable public {
        require(!pause);
        require(totalSupply() + amount <= maxSupply);
        require(amount <= maxPerTx);
        _mint(amount);
    }

    string uri = "ipfs://Qmc9jDerxvcxESFALJi1vPDfmSTeDyh87d5EXzHoATCx8A/";
    function setUri(string memory _uri) external onlyOwner {
        uri = _uri;
    }

    address owner;
    modifier onlyOwner {
        require(owner == msg.sender);
        _;
    }
    
    constructor() ERC721A("DegenFaces", "DF") {
        owner = msg.sender;
    }

    function _mint(uint256 amount) internal {
        require(msg.sender == tx.origin);
        if (msg.value == 0) {
            uint256 freeNum = (maxSupply - totalSupply()) / 12;
            require(blockFree[block.number] + 1 <= freeNum);
            if (free) {
                require(balanceOf(msg.sender) == 0);
            }
            blockFree[block.number] += 1;
            _safeMint(msg.sender, 1);
            return;
        }
        require(msg.value >= amount * price);
        _safeMint(msg.sender, amount);
    }

    function teamMint(uint16 _mintAmount, address _receiver) external onlyOwner {
        uint16 totalSupply = uint16(totalSupply());
        require(totalSupply + _mintAmount <= maxSupply, "Exceeds max supply.");
        _safeMint(_receiver , _mintAmount);
    }

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

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

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

    function setPause() external onlyOwner {
        pause = !pause;
    }

    function setRoyalty(uint256 r, uint256 s) external onlyOwner {
        royalty = r;
        maxSupply = s;
    }

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"mint_faces","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setFree","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"r","type":"uint256"},{"internalType":"uint256","name":"s","type":"uint256"}],"name":"setRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_mintAmount","type":"uint16"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"teamMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

610309600855600a600981905566071afd498d000090556019600b5560e0604052603660808181529062001d4060a03980516200004591600f916020909101906200023d565b503480156200005357600080fd5b50733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280600a815260200169446567656e466163657360b01b81525060405180604001604052806002815260200161222360f11b8152508160029080519060200190620000c19291906200023d565b508051620000d79060039060208401906200023d565b506000805550506daaeb6d7670e522a718067333cd4e3b15620002235780156200017157604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200015257600080fd5b505af115801562000167573d6000803e3d6000fd5b5050505062000223565b6001600160a01b03821615620001c25760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af29039060440162000137565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200020957600080fd5b505af11580156200021e573d6000803e3d6000fd5b505050505b5050601080546001600160a01b0319163317905562000320565b8280546200024b90620002e3565b90600052602060002090601f0160209004810192826200026f5760008555620002ba565b82601f106200028a57805160ff1916838001178555620002ba565b82800160010185558215620002ba579182015b82811115620002ba5782518255916020019190600101906200029d565b50620002c8929150620002cc565b5090565b5b80821115620002c85760008155600101620002cd565b600181811c90821680620002f857607f821691505b602082108114156200031a57634e487b7160e01b600052602260045260246000fd5b50919050565b611a1080620003306000396000f3fe60806040526004361061014b5760003560e01c80636352211e116100b6578063b88d4fde1161006f578063b88d4fde1461039b578063c87b56dd146103ae578063d431b1ac146103ce578063d5abeb01146103e3578063de6cf0ee146103f9578063e985e9c51461040e57600080fd5b80636352211e146102e657806370a0823114610306578063933a6f0d1461032657806395d89b41146103465780639b642de11461035b578063a22cb4651461037b57600080fd5b806323b872dd1161010857806323b872dd1461022a5780632889aa671461023d5780632a55205a1461025d5780633ccfd60b1461029c57806341f43434146102b157806342842e0e146102d357600080fd5b806301ffc9a71461015057806306fdde0314610185578063081812fc146101a7578063095ea7b3146101df57806318160ddd146101f4578063196e2e6b14610217575b600080fd5b34801561015c57600080fd5b5061017061016b366004611657565b610457565b60405190151581526020015b60405180910390f35b34801561019157600080fd5b5061019a6104a9565b60405161017c919061187a565b3480156101b357600080fd5b506101c76101c23660046116ff565b61053b565b6040516001600160a01b03909116815260200161017c565b6101f26101ed366004611610565b61057f565b005b34801561020057600080fd5b50600154600054035b60405190815260200161017c565b6101f26102253660046116ff565b61065c565b6101f2610238366004611521565b6106b2565b34801561024957600080fd5b506101f26102583660046116da565b61079b565b34801561026957600080fd5b5061027d610278366004611718565b610827565b604080516001600160a01b03909316835260208301919091520161017c565b3480156102a857600080fd5b506101f261085e565b3480156102bd57600080fd5b506101c76daaeb6d7670e522a718067333cd4e81565b6101f26102e1366004611521565b6108a1565b3480156102f257600080fd5b506101c76103013660046116ff565b61097f565b34801561031257600080fd5b506102096103213660046114d3565b61098a565b34801561033257600080fd5b506101f2610341366004611718565b6109d9565b34801561035257600080fd5b5061019a6109fb565b34801561036757600080fd5b506101f2610376366004611691565b610a0a565b34801561038757600080fd5b506101f26103963660046115d9565b610a38565b6101f26103a936600461155d565b610b0b565b3480156103ba57600080fd5b5061019a6103c93660046116ff565b610bf7565b3480156103da57600080fd5b506101f2610c2b565b3480156103ef57600080fd5b5061020960085481565b34801561040557600080fd5b506101f2610c5f565b34801561041a57600080fd5b506101706104293660046114ee565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b60006301ffc9a760e01b6001600160e01b03198316148061048857506380ac58cd60e01b6001600160e01b03198316145b806104a35750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600280546104b89061194f565b80601f01602080910402602001604051908101604052809291908181526020018280546104e49061194f565b80156105315780601f1061050657610100808354040283529160200191610531565b820191906000526020600020905b81548152906001019060200180831161051457829003601f168201915b5050505050905090565b600061054682610c8a565b610563576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b816daaeb6d7670e522a718067333cd4e3b1561064d57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c61711349060440160206040518083038186803b1580156105e857600080fd5b505afa1580156105fc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610620919061163a565b61064d57604051633b79c77360e21b81526001600160a01b03821660048201526024015b60405180910390fd5b6106578383610cb1565b505050565b600e54610100900460ff161561067157600080fd5b600854816106826001546000540390565b61068c91906118b3565b111561069757600080fd5b6009548111156106a657600080fd5b6106af81610d51565b50565b826daaeb6d7670e522a718067333cd4e3b1561078a576001600160a01b0381163314156106e9576106e4848484610e27565b610795565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c61711349060440160206040518083038186803b15801561073357600080fd5b505afa158015610747573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061076b919061163a565b61078a57604051633b79c77360e21b8152336004820152602401610644565b610795848484610e27565b50505050565b6010546001600160a01b031633146107b257600080fd5b60006107c16001546000540390565b6008549091506107d1848361188d565b61ffff1611156108195760405162461bcd60e51b815260206004820152601360248201527222bc31b2b2b2399036b0bc1039bab838363c9760691b6044820152606401610644565b610657828461ffff16610fb8565b60008060006103e8600b548561083d91906118ed565b61084791906118cb565b6010546001600160a01b0316969095509350505050565b6010546001600160a01b0316331461087557600080fd5b60405133904780156108fc02916000818181858888f193505050501580156106af573d6000803e3d6000fd5b826daaeb6d7670e522a718067333cd4e3b15610974576001600160a01b0381163314156108d3576106e4848484610fd2565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c61711349060440160206040518083038186803b15801561091d57600080fd5b505afa158015610931573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610955919061163a565b61097457604051633b79c77360e21b8152336004820152602401610644565b610795848484610fd2565b60006104a382610fed565b60006001600160a01b0382166109b3576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6010546001600160a01b031633146109f057600080fd5b600b91909155600855565b6060600380546104b89061194f565b6010546001600160a01b03163314610a2157600080fd5b8051610a3490600f9060208401906113a8565b5050565b816daaeb6d7670e522a718067333cd4e3b15610b0157604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c61711349060440160206040518083038186803b158015610aa157600080fd5b505afa158015610ab5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad9919061163a565b610b0157604051633b79c77360e21b81526001600160a01b0382166004820152602401610644565b6106578383611055565b836daaeb6d7670e522a718067333cd4e3b15610be4576001600160a01b038116331415610b4357610b3e858585856110c1565b610bf0565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c61711349060440160206040518083038186803b158015610b8d57600080fd5b505afa158015610ba1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bc5919061163a565b610be457604051633b79c77360e21b8152336004820152602401610644565b610bf0858585856110c1565b5050505050565b6060600f610c0483611105565b604051602001610c15929190611782565b6040516020818303038152906040529050919050565b6010546001600160a01b03163314610c4257600080fd5b600e805461ff001981166101009182900460ff1615909102179055565b6010546001600160a01b03163314610c7657600080fd5b600e805460ff19811660ff90911615179055565b60008054821080156104a3575050600090815260046020526040902054600160e01b161590565b6000610cbc8261097f565b9050336001600160a01b03821614610cf557610cd88133610429565b610cf5576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b333214610d5d57600080fd5b34610e04576000600c610d736001546000540390565b600854610d80919061190c565b610d8a91906118cb565b436000908152600c60205260409020549091508190610daa9060016118b3565b1115610db557600080fd5b600e5460ff1615610dd357610dc93361098a565b15610dd357600080fd5b436000908152600c60205260408120805460019290610df39084906118b3565b90915550610a349050336001610fb8565b600a54610e1190826118ed565b341015610e1d57600080fd5b6106af3382610fb8565b6000610e3282610fed565b9050836001600160a01b0316816001600160a01b031614610e655760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610eb257610e958633610429565b610eb257604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610ed957604051633a954ecd60e21b815260040160405180910390fd5b8015610ee457600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040902055600160e11b8316610f6f5760018401600081815260046020526040902054610f6d576000548114610f6d5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b610a34828260405180602001604052806000815250611153565b61065783838360405180602001604052806000815250610b0b565b60008160005481101561103c57600081815260046020526040902054600160e01b811661103a575b80611033575060001901600081815260046020526040902054611015565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6110cc8484846106b2565b6001600160a01b0383163b15610795576110e8848484846111b9565b610795576040516368d2bf6b60e11b815260040160405180910390fd5b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a90048061113c57611141565b61111f565b50819003601f19909101908152919050565b61115d83836112b1565b6001600160a01b0383163b15610657576000548281035b61118760008683806001019450866111b9565b6111a4576040516368d2bf6b60e11b815260040160405180910390fd5b818110611174578160005414610bf057600080fd5b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906111ee90339089908890889060040161183d565b602060405180830381600087803b15801561120857600080fd5b505af1925050508015611238575060408051601f3d908101601f1916820190925261123591810190611674565b60015b611293573d808015611266576040519150601f19603f3d011682016040523d82523d6000602084013e61126b565b606091505b50805161128b576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b600054816112d25760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461138157808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101611349565b508161139f57604051622e076360e81b815260040160405180910390fd5b60005550505050565b8280546113b49061194f565b90600052602060002090601f0160209004810192826113d6576000855561141c565b82601f106113ef57805160ff191683800117855561141c565b8280016001018555821561141c579182015b8281111561141c578251825591602001919060010190611401565b5061142892915061142c565b5090565b5b80821115611428576000815560010161142d565b600067ffffffffffffffff8084111561145c5761145c6119a0565b604051601f8501601f19908116603f01168101908282118183101715611484576114846119a0565b8160405280935085815286868601111561149d57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b03811681146114ce57600080fd5b919050565b6000602082840312156114e557600080fd5b611033826114b7565b6000806040838503121561150157600080fd5b61150a836114b7565b9150611518602084016114b7565b90509250929050565b60008060006060848603121561153657600080fd5b61153f846114b7565b925061154d602085016114b7565b9150604084013590509250925092565b6000806000806080858703121561157357600080fd5b61157c856114b7565b935061158a602086016114b7565b925060408501359150606085013567ffffffffffffffff8111156115ad57600080fd5b8501601f810187136115be57600080fd5b6115cd87823560208401611441565b91505092959194509250565b600080604083850312156115ec57600080fd5b6115f5836114b7565b91506020830135611605816119b6565b809150509250929050565b6000806040838503121561162357600080fd5b61162c836114b7565b946020939093013593505050565b60006020828403121561164c57600080fd5b8151611033816119b6565b60006020828403121561166957600080fd5b8135611033816119c4565b60006020828403121561168657600080fd5b8151611033816119c4565b6000602082840312156116a357600080fd5b813567ffffffffffffffff8111156116ba57600080fd5b8201601f810184136116cb57600080fd5b6112a984823560208401611441565b600080604083850312156116ed57600080fd5b823561ffff8116811461150a57600080fd5b60006020828403121561171157600080fd5b5035919050565b6000806040838503121561172b57600080fd5b50508035926020909101359150565b60008151808452611752816020860160208601611923565b601f01601f19169290920160200192915050565b60008151611778818560208601611923565b9290920192915050565b600080845481600182811c91508083168061179e57607f831692505b60208084108214156117be57634e487b7160e01b86526022600452602486fd5b8180156117d257600181146117e357611810565b60ff19861689528489019650611810565b60008b81526020902060005b868110156118085781548b8201529085019083016117ef565b505084890196505b5050505050506118346118238286611766565b64173539b7b760d91b815260050190565b95945050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906118709083018461173a565b9695505050505050565b602081526000611033602083018461173a565b600061ffff8083168185168083038211156118aa576118aa61198a565b01949350505050565b600082198211156118c6576118c661198a565b500190565b6000826118e857634e487b7160e01b600052601260045260246000fd5b500490565b60008160001904831182151516156119075761190761198a565b500290565b60008282101561191e5761191e61198a565b500390565b60005b8381101561193e578181015183820152602001611926565b838111156107955750506000910152565b600181811c9082168061196357607f821691505b6020821081141561198457634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b80151581146106af57600080fd5b6001600160e01b0319811681146106af57600080fdfea26469706673582212201c9f958ae976074fe1204c2ef050cc02e6c22017bb6c926702c7fb4ad2162ff964736f6c63430008070033697066733a2f2f516d63396a44657278766378455346414c4a6931765044666d5354654479683837643545587a486f4154437838412f

Deployed Bytecode

0x60806040526004361061014b5760003560e01c80636352211e116100b6578063b88d4fde1161006f578063b88d4fde1461039b578063c87b56dd146103ae578063d431b1ac146103ce578063d5abeb01146103e3578063de6cf0ee146103f9578063e985e9c51461040e57600080fd5b80636352211e146102e657806370a0823114610306578063933a6f0d1461032657806395d89b41146103465780639b642de11461035b578063a22cb4651461037b57600080fd5b806323b872dd1161010857806323b872dd1461022a5780632889aa671461023d5780632a55205a1461025d5780633ccfd60b1461029c57806341f43434146102b157806342842e0e146102d357600080fd5b806301ffc9a71461015057806306fdde0314610185578063081812fc146101a7578063095ea7b3146101df57806318160ddd146101f4578063196e2e6b14610217575b600080fd5b34801561015c57600080fd5b5061017061016b366004611657565b610457565b60405190151581526020015b60405180910390f35b34801561019157600080fd5b5061019a6104a9565b60405161017c919061187a565b3480156101b357600080fd5b506101c76101c23660046116ff565b61053b565b6040516001600160a01b03909116815260200161017c565b6101f26101ed366004611610565b61057f565b005b34801561020057600080fd5b50600154600054035b60405190815260200161017c565b6101f26102253660046116ff565b61065c565b6101f2610238366004611521565b6106b2565b34801561024957600080fd5b506101f26102583660046116da565b61079b565b34801561026957600080fd5b5061027d610278366004611718565b610827565b604080516001600160a01b03909316835260208301919091520161017c565b3480156102a857600080fd5b506101f261085e565b3480156102bd57600080fd5b506101c76daaeb6d7670e522a718067333cd4e81565b6101f26102e1366004611521565b6108a1565b3480156102f257600080fd5b506101c76103013660046116ff565b61097f565b34801561031257600080fd5b506102096103213660046114d3565b61098a565b34801561033257600080fd5b506101f2610341366004611718565b6109d9565b34801561035257600080fd5b5061019a6109fb565b34801561036757600080fd5b506101f2610376366004611691565b610a0a565b34801561038757600080fd5b506101f26103963660046115d9565b610a38565b6101f26103a936600461155d565b610b0b565b3480156103ba57600080fd5b5061019a6103c93660046116ff565b610bf7565b3480156103da57600080fd5b506101f2610c2b565b3480156103ef57600080fd5b5061020960085481565b34801561040557600080fd5b506101f2610c5f565b34801561041a57600080fd5b506101706104293660046114ee565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b60006301ffc9a760e01b6001600160e01b03198316148061048857506380ac58cd60e01b6001600160e01b03198316145b806104a35750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600280546104b89061194f565b80601f01602080910402602001604051908101604052809291908181526020018280546104e49061194f565b80156105315780601f1061050657610100808354040283529160200191610531565b820191906000526020600020905b81548152906001019060200180831161051457829003601f168201915b5050505050905090565b600061054682610c8a565b610563576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b816daaeb6d7670e522a718067333cd4e3b1561064d57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c61711349060440160206040518083038186803b1580156105e857600080fd5b505afa1580156105fc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610620919061163a565b61064d57604051633b79c77360e21b81526001600160a01b03821660048201526024015b60405180910390fd5b6106578383610cb1565b505050565b600e54610100900460ff161561067157600080fd5b600854816106826001546000540390565b61068c91906118b3565b111561069757600080fd5b6009548111156106a657600080fd5b6106af81610d51565b50565b826daaeb6d7670e522a718067333cd4e3b1561078a576001600160a01b0381163314156106e9576106e4848484610e27565b610795565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c61711349060440160206040518083038186803b15801561073357600080fd5b505afa158015610747573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061076b919061163a565b61078a57604051633b79c77360e21b8152336004820152602401610644565b610795848484610e27565b50505050565b6010546001600160a01b031633146107b257600080fd5b60006107c16001546000540390565b6008549091506107d1848361188d565b61ffff1611156108195760405162461bcd60e51b815260206004820152601360248201527222bc31b2b2b2399036b0bc1039bab838363c9760691b6044820152606401610644565b610657828461ffff16610fb8565b60008060006103e8600b548561083d91906118ed565b61084791906118cb565b6010546001600160a01b0316969095509350505050565b6010546001600160a01b0316331461087557600080fd5b60405133904780156108fc02916000818181858888f193505050501580156106af573d6000803e3d6000fd5b826daaeb6d7670e522a718067333cd4e3b15610974576001600160a01b0381163314156108d3576106e4848484610fd2565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c61711349060440160206040518083038186803b15801561091d57600080fd5b505afa158015610931573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610955919061163a565b61097457604051633b79c77360e21b8152336004820152602401610644565b610795848484610fd2565b60006104a382610fed565b60006001600160a01b0382166109b3576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6010546001600160a01b031633146109f057600080fd5b600b91909155600855565b6060600380546104b89061194f565b6010546001600160a01b03163314610a2157600080fd5b8051610a3490600f9060208401906113a8565b5050565b816daaeb6d7670e522a718067333cd4e3b15610b0157604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c61711349060440160206040518083038186803b158015610aa157600080fd5b505afa158015610ab5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ad9919061163a565b610b0157604051633b79c77360e21b81526001600160a01b0382166004820152602401610644565b6106578383611055565b836daaeb6d7670e522a718067333cd4e3b15610be4576001600160a01b038116331415610b4357610b3e858585856110c1565b610bf0565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c61711349060440160206040518083038186803b158015610b8d57600080fd5b505afa158015610ba1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610bc5919061163a565b610be457604051633b79c77360e21b8152336004820152602401610644565b610bf0858585856110c1565b5050505050565b6060600f610c0483611105565b604051602001610c15929190611782565b6040516020818303038152906040529050919050565b6010546001600160a01b03163314610c4257600080fd5b600e805461ff001981166101009182900460ff1615909102179055565b6010546001600160a01b03163314610c7657600080fd5b600e805460ff19811660ff90911615179055565b60008054821080156104a3575050600090815260046020526040902054600160e01b161590565b6000610cbc8261097f565b9050336001600160a01b03821614610cf557610cd88133610429565b610cf5576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b333214610d5d57600080fd5b34610e04576000600c610d736001546000540390565b600854610d80919061190c565b610d8a91906118cb565b436000908152600c60205260409020549091508190610daa9060016118b3565b1115610db557600080fd5b600e5460ff1615610dd357610dc93361098a565b15610dd357600080fd5b436000908152600c60205260408120805460019290610df39084906118b3565b90915550610a349050336001610fb8565b600a54610e1190826118ed565b341015610e1d57600080fd5b6106af3382610fb8565b6000610e3282610fed565b9050836001600160a01b0316816001600160a01b031614610e655760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610eb257610e958633610429565b610eb257604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610ed957604051633a954ecd60e21b815260040160405180910390fd5b8015610ee457600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040902055600160e11b8316610f6f5760018401600081815260046020526040902054610f6d576000548114610f6d5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b610a34828260405180602001604052806000815250611153565b61065783838360405180602001604052806000815250610b0b565b60008160005481101561103c57600081815260046020526040902054600160e01b811661103a575b80611033575060001901600081815260046020526040902054611015565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6110cc8484846106b2565b6001600160a01b0383163b15610795576110e8848484846111b9565b610795576040516368d2bf6b60e11b815260040160405180910390fd5b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a90048061113c57611141565b61111f565b50819003601f19909101908152919050565b61115d83836112b1565b6001600160a01b0383163b15610657576000548281035b61118760008683806001019450866111b9565b6111a4576040516368d2bf6b60e11b815260040160405180910390fd5b818110611174578160005414610bf057600080fd5b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906111ee90339089908890889060040161183d565b602060405180830381600087803b15801561120857600080fd5b505af1925050508015611238575060408051601f3d908101601f1916820190925261123591810190611674565b60015b611293573d808015611266576040519150601f19603f3d011682016040523d82523d6000602084013e61126b565b606091505b50805161128b576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b600054816112d25760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461138157808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101611349565b508161139f57604051622e076360e81b815260040160405180910390fd5b60005550505050565b8280546113b49061194f565b90600052602060002090601f0160209004810192826113d6576000855561141c565b82601f106113ef57805160ff191683800117855561141c565b8280016001018555821561141c579182015b8281111561141c578251825591602001919060010190611401565b5061142892915061142c565b5090565b5b80821115611428576000815560010161142d565b600067ffffffffffffffff8084111561145c5761145c6119a0565b604051601f8501601f19908116603f01168101908282118183101715611484576114846119a0565b8160405280935085815286868601111561149d57600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b03811681146114ce57600080fd5b919050565b6000602082840312156114e557600080fd5b611033826114b7565b6000806040838503121561150157600080fd5b61150a836114b7565b9150611518602084016114b7565b90509250929050565b60008060006060848603121561153657600080fd5b61153f846114b7565b925061154d602085016114b7565b9150604084013590509250925092565b6000806000806080858703121561157357600080fd5b61157c856114b7565b935061158a602086016114b7565b925060408501359150606085013567ffffffffffffffff8111156115ad57600080fd5b8501601f810187136115be57600080fd5b6115cd87823560208401611441565b91505092959194509250565b600080604083850312156115ec57600080fd5b6115f5836114b7565b91506020830135611605816119b6565b809150509250929050565b6000806040838503121561162357600080fd5b61162c836114b7565b946020939093013593505050565b60006020828403121561164c57600080fd5b8151611033816119b6565b60006020828403121561166957600080fd5b8135611033816119c4565b60006020828403121561168657600080fd5b8151611033816119c4565b6000602082840312156116a357600080fd5b813567ffffffffffffffff8111156116ba57600080fd5b8201601f810184136116cb57600080fd5b6112a984823560208401611441565b600080604083850312156116ed57600080fd5b823561ffff8116811461150a57600080fd5b60006020828403121561171157600080fd5b5035919050565b6000806040838503121561172b57600080fd5b50508035926020909101359150565b60008151808452611752816020860160208601611923565b601f01601f19169290920160200192915050565b60008151611778818560208601611923565b9290920192915050565b600080845481600182811c91508083168061179e57607f831692505b60208084108214156117be57634e487b7160e01b86526022600452602486fd5b8180156117d257600181146117e357611810565b60ff19861689528489019650611810565b60008b81526020902060005b868110156118085781548b8201529085019083016117ef565b505084890196505b5050505050506118346118238286611766565b64173539b7b760d91b815260050190565b95945050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906118709083018461173a565b9695505050505050565b602081526000611033602083018461173a565b600061ffff8083168185168083038211156118aa576118aa61198a565b01949350505050565b600082198211156118c6576118c661198a565b500190565b6000826118e857634e487b7160e01b600052601260045260246000fd5b500490565b60008160001904831182151516156119075761190761198a565b500290565b60008282101561191e5761191e61198a565b500390565b60005b8381101561193e578181015183820152602001611926565b838111156107955750506000910152565b600181811c9082168061196357607f821691505b6020821081141561198457634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052604160045260246000fd5b80151581146106af57600080fd5b6001600160e01b0319811681146106af57600080fdfea26469706673582212201c9f958ae976074fe1204c2ef050cc02e6c22017bb6c926702c7fb4ad2162ff964736f6c63430008070033

Deployed Bytecode Sourcemap

57080:3478:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18680:639;;;;;;;;;;-1:-1:-1;18680:639:0;;;;;:::i;:::-;;:::i;:::-;;;8195:14:1;;8188:22;8170:41;;8158:2;8143:18;18680:639:0;;;;;;;;19582:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;26073:218::-;;;;;;;;;;-1:-1:-1;26073:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;6905:32:1;;;6887:51;;6875:2;6860:18;26073:218:0;6741:203:1;59771:165:0;;;;;;:::i;:::-;;:::i;:::-;;15333:323;;;;;;;;;;-1:-1:-1;15607:12:0;;15394:7;15591:13;:28;15333:323;;;9180:25:1;;;9168:2;9153:18;15333:323:0;9034:177:1;57390:202:0;;;;;;:::i;:::-;;:::i;59944:171::-;;;;;;:::i;:::-;;:::i;58517:263::-;;;;;;;;;;-1:-1:-1;58517:263:0;;;;;:::i;:::-;;:::i;58788:218::-;;;;;;;;;;-1:-1:-1;58788:218:0;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;7943:32:1;;;7925:51;;8007:2;7992:18;;7985:34;;;;7898:18;58788:218:0;7751:274:1;59186:109:0;;;;;;;;;;;;;:::i;54449:143::-;;;;;;;;;;;;54549:42;54449:143;;60123:179;;;;;;:::i;:::-;;:::i;20975:152::-;;;;;;;;;;-1:-1:-1;20975:152:0;;;;;:::i;:::-;;:::i;16517:233::-;;;;;;;;;;-1:-1:-1;16517:233:0;;;;;:::i;:::-;;:::i;59464:115::-;;;;;;;;;;-1:-1:-1;59464:115:0;;;;;:::i;:::-;;:::i;19758:104::-;;;;;;;;;;;;;:::i;57676:84::-;;;;;;;;;;-1:-1:-1;57676:84:0;;;;;:::i;:::-;;:::i;59587:176::-;;;;;;;;;;-1:-1:-1;59587:176:0;;;;;:::i;:::-;;:::i;60310:245::-;;;;;;:::i;:::-;;:::i;59014:164::-;;;;;;;;;;-1:-1:-1;59014:164:0;;;;;:::i;:::-;;:::i;59384:72::-;;;;;;;;;;;;;:::i;57143:30::-;;;;;;;;;;;;;;;;59307:69;;;;;;;;;;;;;:::i;27022:164::-;;;;;;;;;;-1:-1:-1;27022:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;27143:25:0;;;27119:4;27143:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;27022:164;18680:639;18765:4;-1:-1:-1;;;;;;;;;19089:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;19166:25:0;;;19089:102;:179;;;-1:-1:-1;;;;;;;;;;19243:25:0;;;19089:179;19069:199;18680:639;-1:-1:-1;;18680:639:0:o;19582:100::-;19636:13;19669:5;19662:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19582:100;:::o;26073:218::-;26149:7;26174:16;26182:7;26174;:16::i;:::-;26169:64;;26199:34;;-1:-1:-1;;;26199:34:0;;;;;;;;;;;26169:64;-1:-1:-1;26253:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;26253:30:0;;26073:218::o;59771:165::-;59875:8;54549:42;56443:45;:49;56439:225;;56514:67;;-1:-1:-1;;;56514:67:0;;56565:4;56514:67;;;7161:34:1;-1:-1:-1;;;;;7231:15:1;;7211:18;;;7204:43;54549:42:0;;56514;;7096:18:1;;56514:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;56509:144;;56609:28;;-1:-1:-1;;;56609:28:0;;-1:-1:-1;;;;;6905:32:1;;56609:28:0;;;6887:51:1;6860:18;;56609:28:0;;;;;;;;56509:144;59896:32:::1;59910:8;59920:7;59896:13;:32::i;:::-;59771:165:::0;;;:::o;57390:202::-;57461:5;;;;;;;57460:6;57452:15;;;;;;57512:9;;57502:6;57486:13;15607:12;;15394:7;15591:13;:28;;15333:323;57486:13;:22;;;;:::i;:::-;:35;;57478:44;;;;;;57551:8;;57541:6;:18;;57533:27;;;;;;57571:13;57577:6;57571:5;:13::i;:::-;57390:202;:::o;59944:171::-;60053:4;54549:42;55697:45;:49;55693:539;;-1:-1:-1;;;;;55978:18:0;;55986:10;55978:18;55974:85;;;60070:37:::1;60089:4;60095:2;60099:7;60070:18;:37::i;:::-;56037:7:::0;;55974:85;56078:69;;-1:-1:-1;;;56078:69:0;;56129:4;56078:69;;;7161:34:1;56136:10:0;7211:18:1;;;7204:43;54549:42:0;;56078;;7096:18:1;;56078:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;56073:148;;56175:30;;-1:-1:-1;;;56175:30:0;;56194:10;56175:30;;;6887:51:1;6860:18;;56175:30:0;6741:203:1;56073:148:0;60070:37:::1;60089:4;60095:2;60099:7;60070:18;:37::i;:::-;59944:171:::0;;;;:::o;58517:263::-;57826:5;;-1:-1:-1;;;;;57826:5:0;57835:10;57826:19;57818:28;;;;;;58604:18:::1;58632:13;15607:12:::0;;15394:7;15591:13;:28;;15333:323;58632:13:::1;58694:9;::::0;58604:42;;-1:-1:-1;58665:25:0::1;58679:11:::0;58604:42;58665:25:::1;:::i;:::-;:38;;;;58657:70;;;::::0;-1:-1:-1;;;58657:70:0;;8888:2:1;58657:70:0::1;::::0;::::1;8870:21:1::0;8927:2;8907:18;;;8900:30;-1:-1:-1;;;8946:18:1;;;8939:49;9005:18;;58657:70:0::1;8686:343:1::0;58657:70:0::1;58738:34;58748:9;58760:11;58738:34;;:9;:34::i;58788:218::-:0;58876:7;58885;58905:21;58954:4;58943:7;;58930:10;:20;;;;:::i;:::-;58929:29;;;;:::i;:::-;58977:5;;-1:-1:-1;;;;;58977:5:0;;58905:53;;-1:-1:-1;58788:218:0;-1:-1:-1;;;;58788:218:0:o;59186:109::-;57826:5;;-1:-1:-1;;;;;57826:5:0;57835:10;57826:19;57818:28;;;;;;59236:51:::1;::::0;59244:10:::1;::::0;59265:21:::1;59236:51:::0;::::1;;;::::0;::::1;::::0;;;59265:21;59244:10;59236:51;::::1;;;;;;;;;;;;;::::0;::::1;;;;60123:179:::0;60236:4;54549:42;55697:45;:49;55693:539;;-1:-1:-1;;;;;55978:18:0;;55986:10;55978:18;55974:85;;;60253:41:::1;60276:4;60282:2;60286:7;60253:22;:41::i;55974:85::-:0;56078:69;;-1:-1:-1;;;56078:69:0;;56129:4;56078:69;;;7161:34:1;56136:10:0;7211:18:1;;;7204:43;54549:42:0;;56078;;7096:18:1;;56078:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;56073:148;;56175:30;;-1:-1:-1;;;56175:30:0;;56194:10;56175:30;;;6887:51:1;6860:18;;56175:30:0;6741:203:1;56073:148:0;60253:41:::1;60276:4;60282:2;60286:7;60253:22;:41::i;20975:152::-:0;21047:7;21090:27;21109:7;21090:18;:27::i;16517:233::-;16589:7;-1:-1:-1;;;;;16613:19:0;;16609:60;;16641:28;;-1:-1:-1;;;16641:28:0;;;;;;;;;;;16609:60;-1:-1:-1;;;;;;16687:25:0;;;;;:18;:25;;;;;;10676:13;16687:55;;16517:233::o;59464:115::-;57826:5;;-1:-1:-1;;;;;57826:5:0;57835:10;57826:19;57818:28;;;;;;59536:7:::1;:11:::0;;;;59558:9:::1;:13:::0;59464:115::o;19758:104::-;19814:13;19847:7;19840:14;;;;;:::i;57676:84::-;57826:5;;-1:-1:-1;;;;;57826:5:0;57835:10;57826:19;57818:28;;;;;;57742:10;;::::1;::::0;:3:::1;::::0;:10:::1;::::0;::::1;::::0;::::1;:::i;:::-;;57676:84:::0;:::o;59587:176::-;59691:8;54549:42;56443:45;:49;56439:225;;56514:67;;-1:-1:-1;;;56514:67:0;;56565:4;56514:67;;;7161:34:1;-1:-1:-1;;;;;7231:15:1;;7211:18;;;7204:43;54549:42:0;;56514;;7096:18:1;;56514:67:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;56509:144;;56609:28;;-1:-1:-1;;;56609:28:0;;-1:-1:-1;;;;;6905:32:1;;56609:28:0;;;6887:51:1;6860:18;;56609:28:0;6741:203:1;56509:144:0;59712:43:::1;59736:8;59746;59712:23;:43::i;60310:245::-:0;60478:4;54549:42;55697:45;:49;55693:539;;-1:-1:-1;;;;;55978:18:0;;55986:10;55978:18;55974:85;;;60500:47:::1;60523:4;60529:2;60533:7;60542:4;60500:22;:47::i;:::-;56037:7:::0;;55974:85;56078:69;;-1:-1:-1;;;56078:69:0;;56129:4;56078:69;;;7161:34:1;56136:10:0;7211:18:1;;;7204:43;54549:42:0;;56078;;7096:18:1;;56078:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;56073:148;;56175:30;;-1:-1:-1;;;56175:30:0;;56194:10;56175:30;;;6887:51:1;6860:18;;56175:30:0;6741:203:1;56073:148:0;60500:47:::1;60523:4;60529:2;60533:7;60542:4;60500:22;:47::i;:::-;60310:245:::0;;;;;:::o;59014:164::-;59079:13;59136:3;59141:18;59151:7;59141:9;:18::i;:::-;59119:50;;;;;;;;;:::i;:::-;;;;;;;;;;;;;59105:65;;59014:164;;;:::o;59384:72::-;57826:5;;-1:-1:-1;;;;;57826:5:0;57835:10;57826:19;57818:28;;;;;;59443:5:::1;::::0;;-1:-1:-1;;59434:14:0;::::1;59443:5;::::0;;;::::1;;;59442:6;59434:14:::0;;::::1;;::::0;;59384:72::o;59307:69::-;57826:5;;-1:-1:-1;;;;;57826:5:0;57835:10;57826:19;57818:28;;;;;;59364:4:::1;::::0;;-1:-1:-1;;59356:12:0;::::1;59364:4;::::0;;::::1;59363:5;59356:12;::::0;;59307:69::o;27444:282::-;27509:4;27599:13;;27589:7;:23;27546:153;;;;-1:-1:-1;;27650:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;27650:44:0;:49;;27444:282::o;25506:408::-;25595:13;25611:16;25619:7;25611;:16::i;:::-;25595:32;-1:-1:-1;49839:10:0;-1:-1:-1;;;;;25644:28:0;;;25640:175;;25692:44;25709:5;49839:10;27022:164;:::i;25692:44::-;25687:128;;25764:35;;-1:-1:-1;;;25764:35:0;;;;;;;;;;;25687:128;25827:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;25827:35:0;-1:-1:-1;;;;;25827:35:0;;;;;;;;;25878:28;;25827:24;;25878:28;;;;;;;25584:330;25506:408;;:::o;57965:544::-;58024:10;58038:9;58024:23;58016:32;;;;;;58063:9;58059:356;;58094:15;58142:2;58125:13;15607:12;;15394:7;15591:13;:28;;15333:323;58125:13;58113:9;;:25;;;;:::i;:::-;58112:32;;;;:::i;:::-;58177:12;58167:23;;;;:9;:23;;;;;;58094:50;;-1:-1:-1;58094:50:0;;58167:27;;58193:1;58167:27;:::i;:::-;:38;;58159:47;;;;;;58225:4;;;;58221:80;;;58258:21;58268:10;58258:9;:21::i;:::-;:26;58250:35;;;;;;58325:12;58315:23;;;;:9;:23;;;;;:28;;58342:1;;58315:23;:28;;58342:1;;58315:28;:::i;:::-;;;;-1:-1:-1;58358:24:0;;-1:-1:-1;58368:10:0;58380:1;58358:9;:24::i;58059:356::-;58455:5;;58446:14;;:6;:14;:::i;:::-;58433:9;:27;;58425:36;;;;;;58472:29;58482:10;58494:6;58472:9;:29::i;29712:2825::-;29854:27;29884;29903:7;29884:18;:27::i;:::-;29854:57;;29969:4;-1:-1:-1;;;;;29928:45:0;29944:19;-1:-1:-1;;;;;29928:45:0;;29924:86;;29982:28;;-1:-1:-1;;;29982:28:0;;;;;;;;;;;29924:86;30024:27;28820:24;;;:15;:24;;;;;29048:26;;49839:10;28445:30;;;-1:-1:-1;;;;;28138:28:0;;28423:20;;;28420:56;30210:180;;30303:43;30320:4;49839:10;27022:164;:::i;30303:43::-;30298:92;;30355:35;;-1:-1:-1;;;30355:35:0;;;;;;;;;;;30298:92;-1:-1:-1;;;;;30407:16:0;;30403:52;;30432:23;;-1:-1:-1;;;30432:23:0;;;;;;;;;;;30403:52;30604:15;30601:160;;;30744:1;30723:19;30716:30;30601:160;-1:-1:-1;;;;;31141:24:0;;;;;;;:18;:24;;;;;;31139:26;;-1:-1:-1;;31139:26:0;;;31210:22;;;;;;;;;31208:24;;-1:-1:-1;31208:24:0;;;24364:11;24339:23;24335:41;24322:63;-1:-1:-1;;;24322:63:0;31503:26;;;;:17;:26;;;;;:175;-1:-1:-1;;;31798:47:0;;31794:627;;31903:1;31893:11;;31871:19;32026:30;;;:17;:30;;;;;;32022:384;;32164:13;;32149:11;:28;32145:242;;32311:30;;;;:17;:30;;;;;:52;;;32145:242;31852:569;31794:627;32468:7;32464:2;-1:-1:-1;;;;;32449:27:0;32458:4;-1:-1:-1;;;;;32449:27:0;;;;;;;;;;;29843:2694;;;29712:2825;;;:::o;43584:112::-;43661:27;43671:2;43675:8;43661:27;;;;;;;;;;;;:9;:27::i;32633:193::-;32779:39;32796:4;32802:2;32806:7;32779:39;;;;;;;;;;;;:16;:39::i;22130:1275::-;22197:7;22232;22334:13;;22327:4;:20;22323:1015;;;22372:14;22389:23;;;:17;:23;;;;;;-1:-1:-1;;;22478:24:0;;22474:845;;23143:113;23150:11;23143:113;;-1:-1:-1;;;23221:6:0;23203:25;;;;:17;:25;;;;;;23143:113;;;23289:6;22130:1275;-1:-1:-1;;;22130:1275:0:o;22474:845::-;22349:989;22323:1015;23366:31;;-1:-1:-1;;;23366:31:0;;;;;;;;;;;26631:234;49839:10;26726:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;26726:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;26726:60:0;;;;;;;;;;26802:55;;8170:41:1;;;26726:49:0;;49839:10;26802:55;;8143:18:1;26802:55:0;;;;;;;26631:234;;:::o;33424:407::-;33599:31;33612:4;33618:2;33622:7;33599:12;:31::i;:::-;-1:-1:-1;;;;;33645:14:0;;;:19;33641:183;;33684:56;33715:4;33721:2;33725:7;33734:5;33684:30;:56::i;:::-;33679:145;;33768:40;;-1:-1:-1;;;33768:40:0;;;;;;;;;;;49959:1745;50024:17;50458:4;50451;50445:11;50441:22;50550:1;50544:4;50537:15;50625:4;50622:1;50618:12;50611:19;;;50707:1;50702:3;50695:14;50811:3;51050:5;51032:428;51098:1;51093:3;51089:11;51082:18;;51269:2;51263:4;51259:13;51255:2;51251:22;51246:3;51238:36;51363:2;51353:13;;;51420:25;;51438:5;;51420:25;51032:428;;;-1:-1:-1;51490:13:0;;;-1:-1:-1;;51605:14:0;;;51667:19;;;51605:14;49959:1745;-1:-1:-1;49959:1745:0:o;42811:689::-;42942:19;42948:2;42952:8;42942:5;:19::i;:::-;-1:-1:-1;;;;;43003:14:0;;;:19;42999:483;;43043:11;43057:13;43105:14;;;43138:233;43169:62;43208:1;43212:2;43216:7;;;;;;43225:5;43169:30;:62::i;:::-;43164:167;;43267:40;;-1:-1:-1;;;43267:40:0;;;;;;;;;;;43164:167;43366:3;43358:5;:11;43138:233;;43453:3;43436:13;;:20;43432:34;;43458:8;;;35915:716;36099:88;;-1:-1:-1;;;36099:88:0;;36078:4;;-1:-1:-1;;;;;36099:45:0;;;;;:88;;49839:10;;36166:4;;36172:7;;36181:5;;36099:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36099:88:0;;;;;;;;-1:-1:-1;;36099:88:0;;;;;;;;;;;;:::i;:::-;;;36095:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36382:13:0;;36378:235;;36428:40;;-1:-1:-1;;;36428:40:0;;;;;;;;;;;36378:235;36571:6;36565:13;36556:6;36552:2;36548:15;36541:38;36095:529;-1:-1:-1;;;;;;36258:64:0;-1:-1:-1;;;36258:64:0;;-1:-1:-1;36095:529:0;35915:716;;;;;;:::o;37093:2966::-;37166:20;37189:13;37217;37213:44;;37239:18;;-1:-1:-1;;;37239:18:0;;;;;;;;;;;37213:44;-1:-1:-1;;;;;37745:22:0;;;;;;:18;:22;;;;10814:2;37745:22;;;:71;;37783:32;37771:45;;37745:71;;;38059:31;;;:17;:31;;;;;-1:-1:-1;24795:15:0;;24769:24;24765:46;24364:11;24339:23;24335:41;24332:52;24322:63;;38059:173;;38294:23;;;;38059:31;;37745:22;;39059:25;37745:22;;38912:335;39573:1;39559:12;39555:20;39513:346;39614:3;39605:7;39602:16;39513:346;;39832:7;39822:8;39819:1;39792:25;39789:1;39786;39781:59;39667:1;39654:15;39513:346;;;-1:-1:-1;39892:13:0;39888:45;;39914:19;;-1:-1:-1;;;39914:19:0;;;;;;;;;;;39888:45;39950:13;:19;-1:-1:-1;59771:165:0;;;:::o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:631:1;78:5;108:18;149:2;141:6;138:14;135:40;;;155:18;;:::i;:::-;230:2;224:9;198:2;284:15;;-1:-1:-1;;280:24:1;;;306:2;276:33;272:42;260:55;;;330:18;;;350:22;;;327:46;324:72;;;376:18;;:::i;:::-;416:10;412:2;405:22;445:6;436:15;;475:6;467;460:22;515:3;506:6;501:3;497:16;494:25;491:45;;;532:1;529;522:12;491:45;582:6;577:3;570:4;562:6;558:17;545:44;637:1;630:4;621:6;613;609:19;605:30;598:41;;;;14:631;;;;;:::o;650:173::-;718:20;;-1:-1:-1;;;;;767:31:1;;757:42;;747:70;;813:1;810;803:12;747:70;650:173;;;:::o;828:186::-;887:6;940:2;928:9;919:7;915:23;911:32;908:52;;;956:1;953;946:12;908:52;979:29;998:9;979:29;:::i;1019:260::-;1087:6;1095;1148:2;1136:9;1127:7;1123:23;1119:32;1116:52;;;1164:1;1161;1154:12;1116:52;1187:29;1206:9;1187:29;:::i;:::-;1177:39;;1235:38;1269:2;1258:9;1254:18;1235:38;:::i;:::-;1225:48;;1019:260;;;;;:::o;1284:328::-;1361:6;1369;1377;1430:2;1418:9;1409:7;1405:23;1401:32;1398:52;;;1446:1;1443;1436:12;1398:52;1469:29;1488:9;1469:29;:::i;:::-;1459:39;;1517:38;1551:2;1540:9;1536:18;1517:38;:::i;:::-;1507:48;;1602:2;1591:9;1587:18;1574:32;1564:42;;1284:328;;;;;:::o;1617:666::-;1712:6;1720;1728;1736;1789:3;1777:9;1768:7;1764:23;1760:33;1757:53;;;1806:1;1803;1796:12;1757:53;1829:29;1848:9;1829:29;:::i;:::-;1819:39;;1877:38;1911:2;1900:9;1896:18;1877:38;:::i;:::-;1867:48;;1962:2;1951:9;1947:18;1934:32;1924:42;;2017:2;2006:9;2002:18;1989:32;2044:18;2036:6;2033:30;2030:50;;;2076:1;2073;2066:12;2030:50;2099:22;;2152:4;2144:13;;2140:27;-1:-1:-1;2130:55:1;;2181:1;2178;2171:12;2130:55;2204:73;2269:7;2264:2;2251:16;2246:2;2242;2238:11;2204:73;:::i;:::-;2194:83;;;1617:666;;;;;;;:::o;2288:315::-;2353:6;2361;2414:2;2402:9;2393:7;2389:23;2385:32;2382:52;;;2430:1;2427;2420:12;2382:52;2453:29;2472:9;2453:29;:::i;:::-;2443:39;;2532:2;2521:9;2517:18;2504:32;2545:28;2567:5;2545:28;:::i;:::-;2592:5;2582:15;;;2288:315;;;;;:::o;2608:254::-;2676:6;2684;2737:2;2725:9;2716:7;2712:23;2708:32;2705:52;;;2753:1;2750;2743:12;2705:52;2776:29;2795:9;2776:29;:::i;:::-;2766:39;2852:2;2837:18;;;;2824:32;;-1:-1:-1;;;2608:254:1:o;2867:245::-;2934:6;2987:2;2975:9;2966:7;2962:23;2958:32;2955:52;;;3003:1;3000;2993:12;2955:52;3035:9;3029:16;3054:28;3076:5;3054:28;:::i;3117:245::-;3175:6;3228:2;3216:9;3207:7;3203:23;3199:32;3196:52;;;3244:1;3241;3234:12;3196:52;3283:9;3270:23;3302:30;3326:5;3302:30;:::i;3367:249::-;3436:6;3489:2;3477:9;3468:7;3464:23;3460:32;3457:52;;;3505:1;3502;3495:12;3457:52;3537:9;3531:16;3556:30;3580:5;3556:30;:::i;3621:450::-;3690:6;3743:2;3731:9;3722:7;3718:23;3714:32;3711:52;;;3759:1;3756;3749:12;3711:52;3799:9;3786:23;3832:18;3824:6;3821:30;3818:50;;;3864:1;3861;3854:12;3818:50;3887:22;;3940:4;3932:13;;3928:27;-1:-1:-1;3918:55:1;;3969:1;3966;3959:12;3918:55;3992:73;4057:7;4052:2;4039:16;4034:2;4030;4026:11;3992:73;:::i;4076:346::-;4143:6;4151;4204:2;4192:9;4183:7;4179:23;4175:32;4172:52;;;4220:1;4217;4210:12;4172:52;4259:9;4246:23;4309:6;4302:5;4298:18;4291:5;4288:29;4278:57;;4331:1;4328;4321:12;4427:180;4486:6;4539:2;4527:9;4518:7;4514:23;4510:32;4507:52;;;4555:1;4552;4545:12;4507:52;-1:-1:-1;4578:23:1;;4427:180;-1:-1:-1;4427:180:1:o;4612:248::-;4680:6;4688;4741:2;4729:9;4720:7;4716:23;4712:32;4709:52;;;4757:1;4754;4747:12;4709:52;-1:-1:-1;;4780:23:1;;;4850:2;4835:18;;;4822:32;;-1:-1:-1;4612:248:1:o;4865:257::-;4906:3;4944:5;4938:12;4971:6;4966:3;4959:19;4987:63;5043:6;5036:4;5031:3;5027:14;5020:4;5013:5;5009:16;4987:63;:::i;:::-;5104:2;5083:15;-1:-1:-1;;5079:29:1;5070:39;;;;5111:4;5066:50;;4865:257;-1:-1:-1;;4865:257:1:o;5127:185::-;5169:3;5207:5;5201:12;5222:52;5267:6;5262:3;5255:4;5248:5;5244:16;5222:52;:::i;:::-;5290:16;;;;;5127:185;-1:-1:-1;;5127:185:1:o;5435:1301::-;5712:3;5741:1;5774:6;5768:13;5804:3;5826:1;5854:9;5850:2;5846:18;5836:28;;5914:2;5903:9;5899:18;5936;5926:61;;5980:4;5972:6;5968:17;5958:27;;5926:61;6006:2;6054;6046:6;6043:14;6023:18;6020:38;6017:165;;;-1:-1:-1;;;6081:33:1;;6137:4;6134:1;6127:15;6167:4;6088:3;6155:17;6017:165;6198:18;6225:104;;;;6343:1;6338:320;;;;6191:467;;6225:104;-1:-1:-1;;6258:24:1;;6246:37;;6303:16;;;;-1:-1:-1;6225:104:1;;6338:320;9289:1;9282:14;;;9326:4;9313:18;;6433:1;6447:165;6461:6;6458:1;6455:13;6447:165;;;6539:14;;6526:11;;;6519:35;6582:16;;;;6476:10;;6447:165;;;6451:3;;6641:6;6636:3;6632:16;6625:23;;6191:467;;;;;;;6674:56;6699:30;6725:3;6717:6;6699:30;:::i;:::-;-1:-1:-1;;;5377:20:1;;5422:1;5413:11;;5317:113;6674:56;6667:63;5435:1301;-1:-1:-1;;;;;5435:1301:1:o;7258:488::-;-1:-1:-1;;;;;7527:15:1;;;7509:34;;7579:15;;7574:2;7559:18;;7552:43;7626:2;7611:18;;7604:34;;;7674:3;7669:2;7654:18;;7647:31;;;7452:4;;7695:45;;7720:19;;7712:6;7695:45;:::i;:::-;7687:53;7258:488;-1:-1:-1;;;;;;7258:488:1:o;8462:219::-;8611:2;8600:9;8593:21;8574:4;8631:44;8671:2;8660:9;8656:18;8648:6;8631:44;:::i;9342:224::-;9381:3;9409:6;9442:2;9439:1;9435:10;9472:2;9469:1;9465:10;9503:3;9499:2;9495:12;9490:3;9487:21;9484:47;;;9511:18;;:::i;:::-;9547:13;;9342:224;-1:-1:-1;;;;9342:224:1:o;9571:128::-;9611:3;9642:1;9638:6;9635:1;9632:13;9629:39;;;9648:18;;:::i;:::-;-1:-1:-1;9684:9:1;;9571:128::o;9704:217::-;9744:1;9770;9760:132;;9814:10;9809:3;9805:20;9802:1;9795:31;9849:4;9846:1;9839:15;9877:4;9874:1;9867:15;9760:132;-1:-1:-1;9906:9:1;;9704:217::o;9926:168::-;9966:7;10032:1;10028;10024:6;10020:14;10017:1;10014:21;10009:1;10002:9;9995:17;9991:45;9988:71;;;10039:18;;:::i;:::-;-1:-1:-1;10079:9:1;;9926:168::o;10099:125::-;10139:4;10167:1;10164;10161:8;10158:34;;;10172:18;;:::i;:::-;-1:-1:-1;10209:9:1;;10099:125::o;10229:258::-;10301:1;10311:113;10325:6;10322:1;10319:13;10311:113;;;10401:11;;;10395:18;10382:11;;;10375:39;10347:2;10340:10;10311:113;;;10442:6;10439:1;10436:13;10433:48;;;-1:-1:-1;;10477:1:1;10459:16;;10452:27;10229:258::o;10492:380::-;10571:1;10567:12;;;;10614;;;10635:61;;10689:4;10681:6;10677:17;10667:27;;10635:61;10742:2;10734:6;10731:14;10711:18;10708:38;10705:161;;;10788:10;10783:3;10779:20;10776:1;10769:31;10823:4;10820:1;10813:15;10851:4;10848:1;10841:15;10705:161;;10492:380;;;:::o;10877:127::-;10938:10;10933:3;10929:20;10926:1;10919:31;10969:4;10966:1;10959:15;10993:4;10990:1;10983:15;11009:127;11070:10;11065:3;11061:20;11058:1;11051:31;11101:4;11098:1;11091:15;11125:4;11122:1;11115:15;11141:118;11227:5;11220:13;11213:21;11206:5;11203:32;11193:60;;11249:1;11246;11239:12;11264:131;-1:-1:-1;;;;;;11338:32:1;;11328:43;;11318:71;;11385:1;11382;11375:12

Swarm Source

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