ETH Price: $2,618.66 (+7.26%)
 

Overview

Max Total Supply

318 BlurKnights

Holders

34

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
10 BlurKnights
0x64F8fBbD26be944DD3060d0a57aC8846FaA3B3A8
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:
BlurKnights

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-10-21
*/

// SPDX-License-Identifier: MIT

/*
  ____  _            _  __      _       _     _       
 | __ )| |_   _ _ __| |/ /_ __ (_) __ _| |__ | |_ ___ 
 |  _ \| | | | | '__| ' /| '_ \| |/ _` | '_ \| __/ __|
 | |_) | | |_| | |  | . \| | | | | (_| | | | | |_\__ \
 |____/|_|\__,_|_|  |_|\_\_| |_|_|\__, |_| |_|\__|___/
                                  |___/            
*/

// File: @openzeppelin/contracts/security/ReentrancyGuard.sol


// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

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


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

pragma solidity ^0.8.0;

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

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

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


// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;


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

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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

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

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

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

// File: contracts/IERC721A.sol


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

pragma solidity ^0.8.4;

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

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

    /**
     * The caller cannot approve to their own address.
     */
    error ApproveToCaller();

    /**
     * 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;

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

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

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

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

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

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

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

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

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

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

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

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


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

pragma solidity ^0.8.4;


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

/**
 * @title ERC721A
 *
 * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721)
 * Non-Fungible Token Standard, including the Metadata extension.
 * Optimized for lower gas during batch mints.
 *
 * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...)
 * starting from `_startTokenId()`.
 *
 * Assumptions:
 *
 * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is IERC721A {
    // Reference type for token approval.
    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 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 {
        if (operator == _msgSenderERC721A()) revert ApproveToCaller();

        _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]`.
        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 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 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 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.
            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`.
                )

                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 0x80 bytes to keep the free memory pointer 32-byte word aliged.
            // We will need 1 32-byte word to store the length,
            // and 3 32-byte words to store a maximum of 78 digits. Total: 0x20 + 3 * 0x20 = 0x80.
            str := add(mload(0x40), 0x80)
            // Update the free memory pointer to allocate.
            mstore(0x40, str)

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

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

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


pragma solidity ^0.8.4;


contract BlurKnights is ERC721A, Ownable, ReentrancyGuard {

    string public baseURI;

    uint256 public mintPrice = 0.0033 ether;
    uint256 public maxSupply = 3333;
    uint256 public maxPerWallet = 10;

    bool public saleActive;

    mapping (address => bool) public blacklistedMarketplaces;

    constructor() ERC721A("BlurKnights", "BlurKnights") {
         _mint(msg.sender, 1);
    }

    function mint(uint256 _amount) external payable nonReentrant {

        require(msg.value == _amount * mintPrice, "Incorrect amount of ETH sent in order to mint.");
        require(totalSupply() + _amount <= maxSupply, "Sorry, sold out.");
        require(tx.origin == msg.sender, "The caller is another contract");
        require(saleActive, "Sale is not live");
        require(numberMinted(msg.sender) + _amount <= maxPerWallet, "You have minted the max amount allowed per wallet.");

        _mint(msg.sender, _amount);
    }

    function toggleSale() external onlyOwner {
        saleActive = !saleActive;
    }

    function setBaseURI(string calldata baseURI_) external onlyOwner {
        baseURI = baseURI_;
    }

    function setMintPrice(uint256 _price) external onlyOwner {
        mintPrice = _price;
    }

    function numberMinted(address owner) public view returns (uint256) {
        return _numberMinted(owner);
    }

    function _baseURI() internal view virtual override returns (string memory) {
    return baseURI;
    }

    function withdraw() external onlyOwner nonReentrant {
        (bool success, ) = msg.sender.call{value: address(this).balance}("");
        require(success, "Transfer failed.");
    }

    function blacklistMarketplaces(address[] calldata _marketplace) external onlyOwner {
        for (uint256 i; i < _marketplace.length;) {
            address marketplace = _marketplace[i];
            blacklistedMarketplaces[marketplace] = true;
            unchecked {
                ++i;
            }
        }
    }
 
    function approve(address to, uint256 id) public virtual override {
        require(!blacklistedMarketplaces[to], "Opensea, LooksRare, Sudoswap and X2Y2 are not permited. Please use Blur.io");
        super.approve(to, id);
    }

    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(!blacklistedMarketplaces[operator], "Opensea, LooksRare, Sudoswap  and X2Y2 are not permited. Please use Blur.io");
        super.setApprovalForAll(operator, approved);
    }

    function _startTokenId() internal pure override returns (uint256) {
        return 1;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"id","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_marketplace","type":"address[]"}],"name":"blacklistMarketplaces","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"blacklistedMarketplaces","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"maxPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","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":"nonpayable","type":"function"},{"inputs":[],"name":"saleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setMintPrice","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":[],"name":"toggleSale","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":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052660bb9551fc24000600b55610d05600c55600a600d553480156200002757600080fd5b50604080518082018252600b8082526a426c75724b6e696768747360a81b6020808401828152855180870190965292855284015281519192916200006e91600291620001dc565b50805162000084906003906020840190620001dc565b50506001600055506200009733620000b1565b60016009819055620000ab90339062000103565b620002bf565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60005481620001255760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b1783179055828401908390839060008051602062001e098339815191528180a4600183015b818114620001b4578083600060008051602062001e09833981519152600080a46001016200018b565b5081620001d357604051622e076360e81b815260040160405180910390fd5b60005550505050565b828054620001ea9062000282565b90600052602060002090601f0160209004810192826200020e576000855562000259565b82601f106200022957805160ff191683800117855562000259565b8280016001018555821562000259579182015b82811115620002595782518255916020019190600101906200023c565b50620002679291506200026b565b5090565b5b808211156200026757600081556001016200026c565b600181811c908216806200029757607f821691505b60208210811415620002b957634e487b7160e01b600052602260045260246000fd5b50919050565b611b3a80620002cf6000396000f3fe6080604052600436106101cd5760003560e01c80636c0360eb116100f7578063a22cb46511610095578063dc33e68111610064578063dc33e681146104f0578063e985e9c514610510578063f2fde38b14610559578063f4a0a5281461057957600080fd5b8063a22cb4651461047a578063b88d4fde1461049a578063c87b56dd146104ba578063d5abeb01146104da57600080fd5b80637d8966e4116100d15780637d8966e41461041f5780638da5cb5b1461043457806395d89b4114610452578063a0712d681461046757600080fd5b80636c0360eb146103d557806370a08231146103ea578063715018a61461040a57600080fd5b80633ccfd60b1161016f5780636352211e1161013e5780636352211e14610365578063643443b7146103855780636817c76c146103a557806368428a1b146103bb57600080fd5b80633ccfd60b146102fa57806342842e0e1461030f578063453c23101461032f57806355f804b31461034557600080fd5b8063081812fc116101ab578063081812fc14610259578063095ea7b31461029157806318160ddd146102b357806323b872dd146102da57600080fd5b806301ffc9a7146101d257806304845e3e1461020757806306fdde0314610237575b600080fd5b3480156101de57600080fd5b506101f26101ed36600461187b565b610599565b60405190151581526020015b60405180910390f35b34801561021357600080fd5b506101f261022236600461163a565b600f6020526000908152604090205460ff1681565b34801561024357600080fd5b5061024c6105eb565b6040516101fe91906119c6565b34801561026557600080fd5b50610279610274366004611915565b61067d565b6040516001600160a01b0390911681526020016101fe565b34801561029d57600080fd5b506102b16102ac3660046117dc565b6106c1565b005b3480156102bf57600080fd5b5060015460005403600019015b6040519081526020016101fe565b3480156102e657600080fd5b506102b16102f5366004611688565b610776565b34801561030657600080fd5b506102b1610907565b34801561031b57600080fd5b506102b161032a366004611688565b610a1c565b34801561033b57600080fd5b506102cc600d5481565b34801561035157600080fd5b506102b16103603660046118b5565b610a3c565b34801561037157600080fd5b50610279610380366004611915565b610a72565b34801561039157600080fd5b506102b16103a0366004611806565b610a7d565b3480156103b157600080fd5b506102cc600b5481565b3480156103c757600080fd5b50600e546101f29060ff1681565b3480156103e157600080fd5b5061024c610b0b565b3480156103f657600080fd5b506102cc61040536600461163a565b610b99565b34801561041657600080fd5b506102b1610be8565b34801561042b57600080fd5b506102b1610c1e565b34801561044057600080fd5b506008546001600160a01b0316610279565b34801561045e57600080fd5b5061024c610c5c565b6102b1610475366004611915565b610c6b565b34801561048657600080fd5b506102b16104953660046117a0565b610eaf565b3480156104a657600080fd5b506102b16104b53660046116c4565b610f5c565b3480156104c657600080fd5b5061024c6104d5366004611915565b610fa6565b3480156104e657600080fd5b506102cc600c5481565b3480156104fc57600080fd5b506102cc61050b36600461163a565b61102b565b34801561051c57600080fd5b506101f261052b366004611655565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561056557600080fd5b506102b161057436600461163a565b611056565b34801561058557600080fd5b506102b1610594366004611915565b6110f1565b60006301ffc9a760e01b6001600160e01b0319831614806105ca57506380ac58cd60e01b6001600160e01b03198316145b806105e55750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600280546105fa90611a71565b80601f016020809104026020016040519081016040528092919081815260200182805461062690611a71565b80156106735780601f1061064857610100808354040283529160200191610673565b820191906000526020600020905b81548152906001019060200180831161065657829003601f168201915b5050505050905090565b600061068882611120565b6106a5576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6001600160a01b0382166000908152600f602052604090205460ff16156107685760405162461bcd60e51b815260206004820152604a60248201527f4f70656e7365612c204c6f6f6b73526172652c205375646f7377617020616e6460448201527f205832593220617265206e6f74207065726d697465642e20506c656173652075606482015269736520426c75722e696f60b01b608482015260a4015b60405180910390fd5b6107728282611155565b5050565b6000610781826111f5565b9050836001600160a01b0316816001600160a01b0316146107b45760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610801576107e4863361052b565b61080157604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661082857604051633a954ecd60e21b815260040160405180910390fd5b801561083357600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040902055600160e11b83166108be57600184016000818152600460205260409020546108bc5760005481146108bc5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b6008546001600160a01b031633146109315760405162461bcd60e51b815260040161075f906119d9565b600260095414156109845760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161075f565b6002600955604051600090339047908381818185875af1925050503d80600081146109cb576040519150601f19603f3d011682016040523d82523d6000602084013e6109d0565b606091505b5050905080610a145760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b604482015260640161075f565b506001600955565b610a3783838360405180602001604052806000815250610f5c565b505050565b6008546001600160a01b03163314610a665760405162461bcd60e51b815260040161075f906119d9565b610a37600a8383611585565b60006105e5826111f5565b6008546001600160a01b03163314610aa75760405162461bcd60e51b815260040161075f906119d9565b60005b81811015610a37576000838383818110610ac657610ac6611ac2565b9050602002016020810190610adb919061163a565b6001600160a01b03166000908152600f60205260409020805460ff19166001908117909155919091019050610aaa565b600a8054610b1890611a71565b80601f0160208091040260200160405190810160405280929190818152602001828054610b4490611a71565b8015610b915780601f10610b6657610100808354040283529160200191610b91565b820191906000526020600020905b815481529060010190602001808311610b7457829003601f168201915b505050505081565b60006001600160a01b038216610bc2576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b03163314610c125760405162461bcd60e51b815260040161075f906119d9565b610c1c600061125e565b565b6008546001600160a01b03163314610c485760405162461bcd60e51b815260040161075f906119d9565b600e805460ff19811660ff90911615179055565b6060600380546105fa90611a71565b60026009541415610cbe5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161075f565b6002600955600b54610cd09082611a26565b3414610d355760405162461bcd60e51b815260206004820152602e60248201527f496e636f727265637420616d6f756e74206f66204554482073656e7420696e2060448201526d37b93232b9103a379036b4b73a1760911b606482015260840161075f565b600c546001546000548391900360001901610d509190611a0e565b1115610d915760405162461bcd60e51b815260206004820152601060248201526f29b7b9393c961039b7b6321037baba1760811b604482015260640161075f565b323314610de05760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e74726163740000604482015260640161075f565b600e5460ff16610e255760405162461bcd60e51b815260206004820152601060248201526f53616c65206973206e6f74206c69766560801b604482015260640161075f565b600d5481610e323361102b565b610e3c9190611a0e565b1115610ea55760405162461bcd60e51b815260206004820152603260248201527f596f752068617665206d696e74656420746865206d617820616d6f756e742061604482015271363637bbb2b2103832b9103bb0b63632ba1760711b606482015260840161075f565b610a1433826112b0565b6001600160a01b0382166000908152600f602052604090205460ff1615610f525760405162461bcd60e51b815260206004820152604b60248201527f4f70656e7365612c204c6f6f6b73526172652c205375646f737761702020616e60448201527f64205832593220617265206e6f74207065726d697465642e20506c656173652060648201526a75736520426c75722e696f60a81b608482015260a40161075f565b61077282826113a7565b610f67848484610776565b6001600160a01b0383163b15610fa057610f838484848461143d565b610fa0576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060610fb182611120565b610fce57604051630a14c4b560e41b815260040160405180910390fd5b6000610fd8611534565b9050805160001415610ff95760405180602001604052806000815250611024565b8061100384611543565b60405160200161101492919061195a565b6040516020818303038152906040525b9392505050565b6001600160a01b0381166000908152600560205260408082205467ffffffffffffffff911c166105e5565b6008546001600160a01b031633146110805760405162461bcd60e51b815260040161075f906119d9565b6001600160a01b0381166110e55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161075f565b6110ee8161125e565b50565b6008546001600160a01b0316331461111b5760405162461bcd60e51b815260040161075f906119d9565b600b55565b600081600111158015611134575060005482105b80156105e5575050600090815260046020526040902054600160e01b161590565b600061116082610a72565b9050336001600160a01b038216146111995761117c813361052b565b611199576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600081806001116112455760005481101561124557600081815260046020526040902054600160e01b8116611243575b80611024575060001901600081815260046020526040902054611225565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054816112d15760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461138057808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101611348565b508161139e57604051622e076360e81b815260040160405180910390fd5b60005550505050565b6001600160a01b0382163314156113d15760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611472903390899088908890600401611989565b602060405180830381600087803b15801561148c57600080fd5b505af19250505080156114bc575060408051601f3d908101601f191682019092526114b991810190611898565b60015b611517573d8080156114ea576040519150601f19603f3d011682016040523d82523d6000602084013e6114ef565b606091505b50805161150f576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6060600a80546105fa90611a71565b604080516080019081905280825b600183039250600a81066030018353600a90048061156e57611573565b611551565b50819003601f19909101908152919050565b82805461159190611a71565b90600052602060002090601f0160209004810192826115b357600085556115f9565b82601f106115cc5782800160ff198235161785556115f9565b828001600101855582156115f9579182015b828111156115f95782358255916020019190600101906115de565b50611605929150611609565b5090565b5b80821115611605576000815560010161160a565b80356001600160a01b038116811461163557600080fd5b919050565b60006020828403121561164c57600080fd5b6110248261161e565b6000806040838503121561166857600080fd5b6116718361161e565b915061167f6020840161161e565b90509250929050565b60008060006060848603121561169d57600080fd5b6116a68461161e565b92506116b46020850161161e565b9150604084013590509250925092565b600080600080608085870312156116da57600080fd5b6116e38561161e565b93506116f16020860161161e565b925060408501359150606085013567ffffffffffffffff8082111561171557600080fd5b818701915087601f83011261172957600080fd5b81358181111561173b5761173b611ad8565b604051601f8201601f19908116603f0116810190838211818310171561176357611763611ad8565b816040528281528a602084870101111561177c57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080604083850312156117b357600080fd5b6117bc8361161e565b9150602083013580151581146117d157600080fd5b809150509250929050565b600080604083850312156117ef57600080fd5b6117f88361161e565b946020939093013593505050565b6000806020838503121561181957600080fd5b823567ffffffffffffffff8082111561183157600080fd5b818501915085601f83011261184557600080fd5b81358181111561185457600080fd5b8660208260051b850101111561186957600080fd5b60209290920196919550909350505050565b60006020828403121561188d57600080fd5b813561102481611aee565b6000602082840312156118aa57600080fd5b815161102481611aee565b600080602083850312156118c857600080fd5b823567ffffffffffffffff808211156118e057600080fd5b818501915085601f8301126118f457600080fd5b81358181111561190357600080fd5b86602082850101111561186957600080fd5b60006020828403121561192757600080fd5b5035919050565b60008151808452611946816020860160208601611a45565b601f01601f19169290920160200192915050565b6000835161196c818460208801611a45565b835190830190611980818360208801611a45565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906119bc9083018461192e565b9695505050505050565b602081526000611024602083018461192e565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115611a2157611a21611aac565b500190565b6000816000190483118215151615611a4057611a40611aac565b500290565b60005b83811015611a60578181015183820152602001611a48565b83811115610fa05750506000910152565b600181811c90821680611a8557607f821691505b60208210811415611aa657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146110ee57600080fdfea2646970667358221220974de1d6ef5f83cf2b94b0b0eb385eee329d5a667801cce2758cadf696a3b2d464736f6c63430008070033ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef

Deployed Bytecode

0x6080604052600436106101cd5760003560e01c80636c0360eb116100f7578063a22cb46511610095578063dc33e68111610064578063dc33e681146104f0578063e985e9c514610510578063f2fde38b14610559578063f4a0a5281461057957600080fd5b8063a22cb4651461047a578063b88d4fde1461049a578063c87b56dd146104ba578063d5abeb01146104da57600080fd5b80637d8966e4116100d15780637d8966e41461041f5780638da5cb5b1461043457806395d89b4114610452578063a0712d681461046757600080fd5b80636c0360eb146103d557806370a08231146103ea578063715018a61461040a57600080fd5b80633ccfd60b1161016f5780636352211e1161013e5780636352211e14610365578063643443b7146103855780636817c76c146103a557806368428a1b146103bb57600080fd5b80633ccfd60b146102fa57806342842e0e1461030f578063453c23101461032f57806355f804b31461034557600080fd5b8063081812fc116101ab578063081812fc14610259578063095ea7b31461029157806318160ddd146102b357806323b872dd146102da57600080fd5b806301ffc9a7146101d257806304845e3e1461020757806306fdde0314610237575b600080fd5b3480156101de57600080fd5b506101f26101ed36600461187b565b610599565b60405190151581526020015b60405180910390f35b34801561021357600080fd5b506101f261022236600461163a565b600f6020526000908152604090205460ff1681565b34801561024357600080fd5b5061024c6105eb565b6040516101fe91906119c6565b34801561026557600080fd5b50610279610274366004611915565b61067d565b6040516001600160a01b0390911681526020016101fe565b34801561029d57600080fd5b506102b16102ac3660046117dc565b6106c1565b005b3480156102bf57600080fd5b5060015460005403600019015b6040519081526020016101fe565b3480156102e657600080fd5b506102b16102f5366004611688565b610776565b34801561030657600080fd5b506102b1610907565b34801561031b57600080fd5b506102b161032a366004611688565b610a1c565b34801561033b57600080fd5b506102cc600d5481565b34801561035157600080fd5b506102b16103603660046118b5565b610a3c565b34801561037157600080fd5b50610279610380366004611915565b610a72565b34801561039157600080fd5b506102b16103a0366004611806565b610a7d565b3480156103b157600080fd5b506102cc600b5481565b3480156103c757600080fd5b50600e546101f29060ff1681565b3480156103e157600080fd5b5061024c610b0b565b3480156103f657600080fd5b506102cc61040536600461163a565b610b99565b34801561041657600080fd5b506102b1610be8565b34801561042b57600080fd5b506102b1610c1e565b34801561044057600080fd5b506008546001600160a01b0316610279565b34801561045e57600080fd5b5061024c610c5c565b6102b1610475366004611915565b610c6b565b34801561048657600080fd5b506102b16104953660046117a0565b610eaf565b3480156104a657600080fd5b506102b16104b53660046116c4565b610f5c565b3480156104c657600080fd5b5061024c6104d5366004611915565b610fa6565b3480156104e657600080fd5b506102cc600c5481565b3480156104fc57600080fd5b506102cc61050b36600461163a565b61102b565b34801561051c57600080fd5b506101f261052b366004611655565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561056557600080fd5b506102b161057436600461163a565b611056565b34801561058557600080fd5b506102b1610594366004611915565b6110f1565b60006301ffc9a760e01b6001600160e01b0319831614806105ca57506380ac58cd60e01b6001600160e01b03198316145b806105e55750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600280546105fa90611a71565b80601f016020809104026020016040519081016040528092919081815260200182805461062690611a71565b80156106735780601f1061064857610100808354040283529160200191610673565b820191906000526020600020905b81548152906001019060200180831161065657829003601f168201915b5050505050905090565b600061068882611120565b6106a5576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6001600160a01b0382166000908152600f602052604090205460ff16156107685760405162461bcd60e51b815260206004820152604a60248201527f4f70656e7365612c204c6f6f6b73526172652c205375646f7377617020616e6460448201527f205832593220617265206e6f74207065726d697465642e20506c656173652075606482015269736520426c75722e696f60b01b608482015260a4015b60405180910390fd5b6107728282611155565b5050565b6000610781826111f5565b9050836001600160a01b0316816001600160a01b0316146107b45760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610801576107e4863361052b565b61080157604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661082857604051633a954ecd60e21b815260040160405180910390fd5b801561083357600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040902055600160e11b83166108be57600184016000818152600460205260409020546108bc5760005481146108bc5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b6008546001600160a01b031633146109315760405162461bcd60e51b815260040161075f906119d9565b600260095414156109845760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161075f565b6002600955604051600090339047908381818185875af1925050503d80600081146109cb576040519150601f19603f3d011682016040523d82523d6000602084013e6109d0565b606091505b5050905080610a145760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b604482015260640161075f565b506001600955565b610a3783838360405180602001604052806000815250610f5c565b505050565b6008546001600160a01b03163314610a665760405162461bcd60e51b815260040161075f906119d9565b610a37600a8383611585565b60006105e5826111f5565b6008546001600160a01b03163314610aa75760405162461bcd60e51b815260040161075f906119d9565b60005b81811015610a37576000838383818110610ac657610ac6611ac2565b9050602002016020810190610adb919061163a565b6001600160a01b03166000908152600f60205260409020805460ff19166001908117909155919091019050610aaa565b600a8054610b1890611a71565b80601f0160208091040260200160405190810160405280929190818152602001828054610b4490611a71565b8015610b915780601f10610b6657610100808354040283529160200191610b91565b820191906000526020600020905b815481529060010190602001808311610b7457829003601f168201915b505050505081565b60006001600160a01b038216610bc2576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b03163314610c125760405162461bcd60e51b815260040161075f906119d9565b610c1c600061125e565b565b6008546001600160a01b03163314610c485760405162461bcd60e51b815260040161075f906119d9565b600e805460ff19811660ff90911615179055565b6060600380546105fa90611a71565b60026009541415610cbe5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161075f565b6002600955600b54610cd09082611a26565b3414610d355760405162461bcd60e51b815260206004820152602e60248201527f496e636f727265637420616d6f756e74206f66204554482073656e7420696e2060448201526d37b93232b9103a379036b4b73a1760911b606482015260840161075f565b600c546001546000548391900360001901610d509190611a0e565b1115610d915760405162461bcd60e51b815260206004820152601060248201526f29b7b9393c961039b7b6321037baba1760811b604482015260640161075f565b323314610de05760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e74726163740000604482015260640161075f565b600e5460ff16610e255760405162461bcd60e51b815260206004820152601060248201526f53616c65206973206e6f74206c69766560801b604482015260640161075f565b600d5481610e323361102b565b610e3c9190611a0e565b1115610ea55760405162461bcd60e51b815260206004820152603260248201527f596f752068617665206d696e74656420746865206d617820616d6f756e742061604482015271363637bbb2b2103832b9103bb0b63632ba1760711b606482015260840161075f565b610a1433826112b0565b6001600160a01b0382166000908152600f602052604090205460ff1615610f525760405162461bcd60e51b815260206004820152604b60248201527f4f70656e7365612c204c6f6f6b73526172652c205375646f737761702020616e60448201527f64205832593220617265206e6f74207065726d697465642e20506c656173652060648201526a75736520426c75722e696f60a81b608482015260a40161075f565b61077282826113a7565b610f67848484610776565b6001600160a01b0383163b15610fa057610f838484848461143d565b610fa0576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060610fb182611120565b610fce57604051630a14c4b560e41b815260040160405180910390fd5b6000610fd8611534565b9050805160001415610ff95760405180602001604052806000815250611024565b8061100384611543565b60405160200161101492919061195a565b6040516020818303038152906040525b9392505050565b6001600160a01b0381166000908152600560205260408082205467ffffffffffffffff911c166105e5565b6008546001600160a01b031633146110805760405162461bcd60e51b815260040161075f906119d9565b6001600160a01b0381166110e55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161075f565b6110ee8161125e565b50565b6008546001600160a01b0316331461111b5760405162461bcd60e51b815260040161075f906119d9565b600b55565b600081600111158015611134575060005482105b80156105e5575050600090815260046020526040902054600160e01b161590565b600061116082610a72565b9050336001600160a01b038216146111995761117c813361052b565b611199576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600081806001116112455760005481101561124557600081815260046020526040902054600160e01b8116611243575b80611024575060001901600081815260046020526040902054611225565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600054816112d15760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461138057808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101611348565b508161139e57604051622e076360e81b815260040160405180910390fd5b60005550505050565b6001600160a01b0382163314156113d15760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611472903390899088908890600401611989565b602060405180830381600087803b15801561148c57600080fd5b505af19250505080156114bc575060408051601f3d908101601f191682019092526114b991810190611898565b60015b611517573d8080156114ea576040519150601f19603f3d011682016040523d82523d6000602084013e6114ef565b606091505b50805161150f576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6060600a80546105fa90611a71565b604080516080019081905280825b600183039250600a81066030018353600a90048061156e57611573565b611551565b50819003601f19909101908152919050565b82805461159190611a71565b90600052602060002090601f0160209004810192826115b357600085556115f9565b82601f106115cc5782800160ff198235161785556115f9565b828001600101855582156115f9579182015b828111156115f95782358255916020019190600101906115de565b50611605929150611609565b5090565b5b80821115611605576000815560010161160a565b80356001600160a01b038116811461163557600080fd5b919050565b60006020828403121561164c57600080fd5b6110248261161e565b6000806040838503121561166857600080fd5b6116718361161e565b915061167f6020840161161e565b90509250929050565b60008060006060848603121561169d57600080fd5b6116a68461161e565b92506116b46020850161161e565b9150604084013590509250925092565b600080600080608085870312156116da57600080fd5b6116e38561161e565b93506116f16020860161161e565b925060408501359150606085013567ffffffffffffffff8082111561171557600080fd5b818701915087601f83011261172957600080fd5b81358181111561173b5761173b611ad8565b604051601f8201601f19908116603f0116810190838211818310171561176357611763611ad8565b816040528281528a602084870101111561177c57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080604083850312156117b357600080fd5b6117bc8361161e565b9150602083013580151581146117d157600080fd5b809150509250929050565b600080604083850312156117ef57600080fd5b6117f88361161e565b946020939093013593505050565b6000806020838503121561181957600080fd5b823567ffffffffffffffff8082111561183157600080fd5b818501915085601f83011261184557600080fd5b81358181111561185457600080fd5b8660208260051b850101111561186957600080fd5b60209290920196919550909350505050565b60006020828403121561188d57600080fd5b813561102481611aee565b6000602082840312156118aa57600080fd5b815161102481611aee565b600080602083850312156118c857600080fd5b823567ffffffffffffffff808211156118e057600080fd5b818501915085601f8301126118f457600080fd5b81358181111561190357600080fd5b86602082850101111561186957600080fd5b60006020828403121561192757600080fd5b5035919050565b60008151808452611946816020860160208601611a45565b601f01601f19169290920160200192915050565b6000835161196c818460208801611a45565b835190830190611980818360208801611a45565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906119bc9083018461192e565b9695505050505050565b602081526000611024602083018461192e565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115611a2157611a21611aac565b500190565b6000816000190483118215151615611a4057611a40611aac565b500290565b60005b83811015611a60578181015183820152602001611a48565b83811115610fa05750506000910152565b600181811c90821680611a8557607f821691505b60208210811415611aa657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146110ee57600080fdfea2646970667358221220974de1d6ef5f83cf2b94b0b0eb385eee329d5a667801cce2758cadf696a3b2d464736f6c63430008070033

Deployed Bytecode Sourcemap

57428:2654:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24977:639;;;;;;;;;;-1:-1:-1;24977:639:0;;;;;:::i;:::-;;:::i;:::-;;;6454:14:1;;6447:22;6429:41;;6417:2;6402:18;24977:639:0;;;;;;;;57681:56;;;;;;;;;;-1:-1:-1;57681:56:0;;;;;:::i;:::-;;;;;;;;;;;;;;;;25879:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;32362:218::-;;;;;;;;;;-1:-1:-1;32362:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;5752:32:1;;;5734:51;;5722:2;5707:18;32362:218:0;5588:203:1;59460:231:0;;;;;;;;;;-1:-1:-1;59460:231:0;;;;;:::i;:::-;;:::i;:::-;;21630:323;;;;;;;;;;-1:-1:-1;60070:1:0;21904:12;21691:7;21888:13;:28;-1:-1:-1;;21888:46:0;21630:323;;;11174:25:1;;;11162:2;11147:18;21630:323:0;11028:177:1;36069:2817:0;;;;;;;;;;-1:-1:-1;36069:2817:0;;;;;:::i;:::-;;:::i;58930:186::-;;;;;;;;;;;;;:::i;38982:185::-;;;;;;;;;;-1:-1:-1;38982:185:0;;;;;:::i;:::-;;:::i;57609:32::-;;;;;;;;;;;;;;;;58485:102;;;;;;;;;;-1:-1:-1;58485:102:0;;;;;:::i;:::-;;:::i;27272:152::-;;;;;;;;;;-1:-1:-1;27272:152:0;;;;;:::i;:::-;;:::i;59124:327::-;;;;;;;;;;-1:-1:-1;59124:327:0;;;;;:::i;:::-;;:::i;57525:39::-;;;;;;;;;;;;;;;;57650:22;;;;;;;;;;-1:-1:-1;57650:22:0;;;;;;;;57495:21;;;;;;;;;;;;;:::i;22814:233::-;;;;;;;;;;-1:-1:-1;22814:233:0;;;;;:::i;:::-;;:::i;5743:103::-;;;;;;;;;;;;;:::i;58393:84::-;;;;;;;;;;;;;:::i;5092:87::-;;;;;;;;;;-1:-1:-1;5165:6:0;;-1:-1:-1;;;;;5165:6:0;5092:87;;26055:104;;;;;;;;;;;;;:::i;57846:539::-;;;;;;:::i;:::-;;:::i;59699:279::-;;;;;;;;;;-1:-1:-1;59699:279:0;;;;;:::i;:::-;;:::i;39765:399::-;;;;;;;;;;-1:-1:-1;39765:399:0;;;;;:::i;:::-;;:::i;26265:318::-;;;;;;;;;;-1:-1:-1;26265:318:0;;;;;:::i;:::-;;:::i;57571:31::-;;;;;;;;;;;;;;;;58697:113;;;;;;;;;;-1:-1:-1;58697:113:0;;;;;:::i;:::-;;:::i;33385:164::-;;;;;;;;;;-1:-1:-1;33385:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;33506:25:0;;;33482:4;33506:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;33385:164;6001:201;;;;;;;;;;-1:-1:-1;6001:201:0;;;;;:::i;:::-;;:::i;58595:94::-;;;;;;;;;;-1:-1:-1;58595:94:0;;;;;:::i;:::-;;:::i;24977:639::-;25062:4;-1:-1:-1;;;;;;;;;25386:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;25463:25:0;;;25386:102;:179;;;-1:-1:-1;;;;;;;;;;25540:25:0;;;25386:179;25366:199;24977:639;-1:-1:-1;;24977:639:0:o;25879:100::-;25933:13;25966:5;25959:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25879:100;:::o;32362:218::-;32438:7;32463:16;32471:7;32463;:16::i;:::-;32458:64;;32488:34;;-1:-1:-1;;;32488:34:0;;;;;;;;;;;32458:64;-1:-1:-1;32542:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;32542:30:0;;32362:218::o;59460:231::-;-1:-1:-1;;;;;59545:27:0;;;;;;:23;:27;;;;;;;;59544:28;59536:115;;;;-1:-1:-1;;;59536:115:0;;10042:2:1;59536:115:0;;;10024:21:1;10081:2;10061:18;;;10054:30;10120:34;10100:18;;;10093:62;10191:34;10171:18;;;10164:62;-1:-1:-1;;;10242:19:1;;;10235:41;10293:19;;59536:115:0;;;;;;;;;59662:21;59676:2;59680;59662:13;:21::i;:::-;59460:231;;:::o;36069:2817::-;36203:27;36233;36252:7;36233:18;:27::i;:::-;36203:57;;36318:4;-1:-1:-1;;;;;36277:45:0;36293:19;-1:-1:-1;;;;;36277:45:0;;36273:86;;36331:28;;-1:-1:-1;;;36331:28:0;;;;;;;;;;;36273:86;36373:27;35183:24;;;:15;:24;;;;;35405:26;;55660:10;34808:30;;;-1:-1:-1;;;;;34501:28:0;;34786:20;;;34783:56;36559:180;;36652:43;36669:4;55660:10;33385:164;:::i;36652:43::-;36647:92;;36704:35;;-1:-1:-1;;;36704:35:0;;;;;;;;;;;36647:92;-1:-1:-1;;;;;36756:16:0;;36752:52;;36781:23;;-1:-1:-1;;;36781:23:0;;;;;;;;;;;36752:52;36953:15;36950:160;;;37093:1;37072:19;37065:30;36950:160;-1:-1:-1;;;;;37490:24:0;;;;;;;:18;:24;;;;;;37488:26;;-1:-1:-1;;37488:26:0;;;37559:22;;;;;;;;;37557:24;;-1:-1:-1;37557:24:0;;;30661:11;30636:23;30632:41;30619:63;-1:-1:-1;;;30619:63:0;37852:26;;;;:17;:26;;;;;:175;-1:-1:-1;;;38147:47:0;;38143:627;;38252:1;38242:11;;38220:19;38375:30;;;:17;:30;;;;;;38371:384;;38513:13;;38498:11;:28;38494:242;;38660:30;;;;:17;:30;;;;;:52;;;38494:242;38201:569;38143:627;38817:7;38813:2;-1:-1:-1;;;;;38798:27:0;38807:4;-1:-1:-1;;;;;38798:27:0;;;;;;;;;;;36192:2694;;;36069:2817;;;:::o;58930:186::-;5165:6;;-1:-1:-1;;;;;5165:6:0;55660:10;5312:23;5304:68;;;;-1:-1:-1;;;5304:68:0;;;;;;;:::i;:::-;2190:1:::1;2788:7;;:19;;2780:63;;;::::0;-1:-1:-1;;;2780:63:0;;10870:2:1;2780:63:0::1;::::0;::::1;10852:21:1::0;10909:2;10889:18;;;10882:30;10948:33;10928:18;;;10921:61;10999:18;;2780:63:0::1;10668:355:1::0;2780:63:0::1;2190:1;2921:7;:18:::0;59012:49:::2;::::0;58994:12:::2;::::0;59012:10:::2;::::0;59035:21:::2;::::0;58994:12;59012:49;58994:12;59012:49;59035:21;59012:10;:49:::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;58993:68;;;59080:7;59072:36;;;::::0;-1:-1:-1;;;59072:36:0;;9697:2:1;59072:36:0::2;::::0;::::2;9679:21:1::0;9736:2;9716:18;;;9709:30;-1:-1:-1;;;9755:18:1;;;9748:46;9811:18;;59072:36:0::2;9495:340:1::0;59072:36:0::2;-1:-1:-1::0;2146:1:0::1;3100:7;:22:::0;58930:186::o;38982:185::-;39120:39;39137:4;39143:2;39147:7;39120:39;;;;;;;;;;;;:16;:39::i;:::-;38982:185;;;:::o;58485:102::-;5165:6;;-1:-1:-1;;;;;5165:6:0;55660:10;5312:23;5304:68;;;;-1:-1:-1;;;5304:68:0;;;;;;;:::i;:::-;58561:18:::1;:7;58571:8:::0;;58561:18:::1;:::i;27272:152::-:0;27344:7;27387:27;27406:7;27387:18;:27::i;59124:327::-;5165:6;;-1:-1:-1;;;;;5165:6:0;55660:10;5312:23;5304:68;;;;-1:-1:-1;;;5304:68:0;;;;;;;:::i;:::-;59223:9:::1;59218:226;59234:23:::0;;::::1;59218:226;;;59275:19;59297:12;;59310:1;59297:15;;;;;;;:::i;:::-;;;;;;;;;;;;;;:::i;:::-;-1:-1:-1::0;;;;;59327:36:0::1;;::::0;;;:23:::1;:36;::::0;;;;:43;;-1:-1:-1;;59327:43:0::1;59366:4;59327:43:::0;;::::1;::::0;;;59414:3;;;::::1;::::0;-1:-1:-1;59218:226:0::1;;57495:21:::0;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;22814:233::-;22886:7;-1:-1:-1;;;;;22910:19:0;;22906:60;;22938:28;;-1:-1:-1;;;22938:28:0;;;;;;;;;;;22906:60;-1:-1:-1;;;;;;22984:25:0;;;;;:18;:25;;;;;;16973:13;22984:55;;22814:233::o;5743:103::-;5165:6;;-1:-1:-1;;;;;5165:6:0;55660:10;5312:23;5304:68;;;;-1:-1:-1;;;5304:68:0;;;;;;;:::i;:::-;5808:30:::1;5835:1;5808:18;:30::i;:::-;5743:103::o:0;58393:84::-;5165:6;;-1:-1:-1;;;;;5165:6:0;55660:10;5312:23;5304:68;;;;-1:-1:-1;;;5304:68:0;;;;;;;:::i;:::-;58459:10:::1;::::0;;-1:-1:-1;;58445:24:0;::::1;58459:10;::::0;;::::1;58458:11;58445:24;::::0;;58393:84::o;26055:104::-;26111:13;26144:7;26137:14;;;;;:::i;57846:539::-;2190:1;2788:7;;:19;;2780:63;;;;-1:-1:-1;;;2780:63:0;;10870:2:1;2780:63:0;;;10852:21:1;10909:2;10889:18;;;10882:30;10948:33;10928:18;;;10921:61;10999:18;;2780:63:0;10668:355:1;2780:63:0;2190:1;2921:7;:18;57951:9:::1;::::0;57941:19:::1;::::0;:7;:19:::1;:::i;:::-;57928:9;:32;57920:91;;;::::0;-1:-1:-1;;;57920:91:0;;6907:2:1;57920:91:0::1;::::0;::::1;6889:21:1::0;6946:2;6926:18;;;6919:30;6985:34;6965:18;;;6958:62;-1:-1:-1;;;7036:18:1;;;7029:44;7090:19;;57920:91:0::1;6705:410:1::0;57920:91:0::1;58057:9;::::0;60070:1;21904:12;21691:7;21888:13;58046:7;;21888:28;;-1:-1:-1;;21888:46:0;58030:23:::1;;;;:::i;:::-;:36;;58022:65;;;::::0;-1:-1:-1;;;58022:65:0;;8088:2:1;58022:65:0::1;::::0;::::1;8070:21:1::0;8127:2;8107:18;;;8100:30;-1:-1:-1;;;8146:18:1;;;8139:46;8202:18;;58022:65:0::1;7886:340:1::0;58022:65:0::1;58106:9;58119:10;58106:23;58098:66;;;::::0;-1:-1:-1;;;58098:66:0;;7729:2:1;58098:66:0::1;::::0;::::1;7711:21:1::0;7768:2;7748:18;;;7741:30;7807:32;7787:18;;;7780:60;7857:18;;58098:66:0::1;7527:354:1::0;58098:66:0::1;58183:10;::::0;::::1;;58175:39;;;::::0;-1:-1:-1;;;58175:39:0;;10525:2:1;58175:39:0::1;::::0;::::1;10507:21:1::0;10564:2;10544:18;;;10537:30;-1:-1:-1;;;10583:18:1;;;10576:46;10639:18;;58175:39:0::1;10323:340:1::0;58175:39:0::1;58271:12;;58260:7;58233:24;58246:10;58233:12;:24::i;:::-;:34;;;;:::i;:::-;:50;;58225:113;;;::::0;-1:-1:-1;;;58225:113:0;;8433:2:1;58225:113:0::1;::::0;::::1;8415:21:1::0;8472:2;8452:18;;;8445:30;8511:34;8491:18;;;8484:62;-1:-1:-1;;;8562:18:1;;;8555:48;8620:19;;58225:113:0::1;8231:414:1::0;58225:113:0::1;58351:26;58357:10;58369:7;58351:5;:26::i;59699:279::-:0;-1:-1:-1;;;;;59803:33:0;;;;;;:23;:33;;;;;;;;59802:34;59794:122;;;;-1:-1:-1;;;59794:122:0;;9213:2:1;59794:122:0;;;9195:21:1;9252:2;9232:18;;;9225:30;9291:34;9271:18;;;9264:62;9362:34;9342:18;;;9335:62;-1:-1:-1;;;9413:19:1;;;9406:42;9465:19;;59794:122:0;9011:479:1;59794:122:0;59927:43;59951:8;59961;59927:23;:43::i;39765:399::-;39932:31;39945:4;39951:2;39955:7;39932:12;:31::i;:::-;-1:-1:-1;;;;;39978:14:0;;;:19;39974:183;;40017:56;40048:4;40054:2;40058:7;40067:5;40017:30;:56::i;:::-;40012:145;;40101:40;;-1:-1:-1;;;40101:40:0;;;;;;;;;;;40012:145;39765:399;;;;:::o;26265:318::-;26338:13;26369:16;26377:7;26369;:16::i;:::-;26364:59;;26394:29;;-1:-1:-1;;;26394:29:0;;;;;;;;;;;26364:59;26436:21;26460:10;:8;:10::i;:::-;26436:34;;26494:7;26488:21;26513:1;26488:26;;:87;;;;;;;;;;;;;;;;;26541:7;26550:18;26560:7;26550:9;:18::i;:::-;26524:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;26488:87;26481:94;26265:318;-1:-1:-1;;;26265:318:0:o;58697:113::-;-1:-1:-1;;;;;23218:25:0;;58755:7;23218:25;;;:18;:25;;17111:2;23218:25;;;;16973:13;23218:50;;23217:82;58782:20;23129:178;6001:201;5165:6;;-1:-1:-1;;;;;5165:6:0;55660:10;5312:23;5304:68;;;;-1:-1:-1;;;5304:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;6090:22:0;::::1;6082:73;;;::::0;-1:-1:-1;;;6082:73:0;;7322:2:1;6082:73:0::1;::::0;::::1;7304:21:1::0;7361:2;7341:18;;;7334:30;7400:34;7380:18;;;7373:62;-1:-1:-1;;;7451:18:1;;;7444:36;7497:19;;6082:73:0::1;7120:402:1::0;6082:73:0::1;6166:28;6185:8;6166:18;:28::i;:::-;6001:201:::0;:::o;58595:94::-;5165:6;;-1:-1:-1;;;;;5165:6:0;55660:10;5312:23;5304:68;;;;-1:-1:-1;;;5304:68:0;;;;;;;:::i;:::-;58663:9:::1;:18:::0;58595:94::o;33807:282::-;33872:4;33928:7;60070:1;33909:26;;:66;;;;;33962:13;;33952:7;:23;33909:66;:153;;;;-1:-1:-1;;34013:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;34013:44:0;:49;;33807:282::o;31803:400::-;31884:13;31900:16;31908:7;31900;:16::i;:::-;31884:32;-1:-1:-1;55660:10:0;-1:-1:-1;;;;;31933:28:0;;;31929:175;;31981:44;31998:5;55660:10;33385:164;:::i;31981:44::-;31976:128;;32053:35;;-1:-1:-1;;;32053:35:0;;;;;;;;;;;31976:128;32116:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;32116:35:0;-1:-1:-1;;;;;32116:35:0;;;;;;;;;32167:28;;32116:24;;32167:28;;;;;;;31873:330;31803:400;;:::o;28427:1275::-;28494:7;28529;;60070:1;28578:23;28574:1061;;28631:13;;28624:4;:20;28620:1015;;;28669:14;28686:23;;;:17;:23;;;;;;-1:-1:-1;;;28775:24:0;;28771:845;;29440:113;29447:11;29440:113;;-1:-1:-1;;;29518:6:0;29500:25;;;;:17;:25;;;;;;29440:113;;28771:845;28646:989;28620:1015;29663:31;;-1:-1:-1;;;29663:31:0;;;;;;;;;;;6362:191;6455:6;;;-1:-1:-1;;;;;6472:17:0;;;-1:-1:-1;;;;;;6472:17:0;;;;;;;6505:40;;6455:6;;;6472:17;6455:6;;6505:40;;6436:16;;6505:40;6425:128;6362:191;:::o;43426:2454::-;43499:20;43522:13;43550;43546:44;;43572:18;;-1:-1:-1;;;43572:18:0;;;;;;;;;;;43546:44;-1:-1:-1;;;;;44078:22:0;;;;;;:18;:22;;;;17111:2;44078:22;;;:71;;44116:32;44104:45;;44078:71;;;44392:31;;;:17;:31;;;;;-1:-1:-1;31092:15:0;;31066:24;31062:46;30661:11;30636:23;30632:41;30629:52;30619:63;;44392:173;;44627:23;;;;44392:31;;44078:22;;45126:25;44078:22;;44979:335;45394:1;45380:12;45376:20;45334:346;45435:3;45426:7;45423:16;45334:346;;45653:7;45643:8;45640:1;45613:25;45610:1;45607;45602:59;45488:1;45475:15;45334:346;;;-1:-1:-1;45713:13:0;45709:45;;45735:19;;-1:-1:-1;;;45735:19:0;;;;;;;;;;;45709:45;45771:13;:19;-1:-1:-1;38982:185:0;;;:::o;32920:308::-;-1:-1:-1;;;;;33019:31:0;;55660:10;33019:31;33015:61;;;33059:17;;-1:-1:-1;;;33059:17:0;;;;;;;;;;;33015:61;55660:10;33089:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;33089:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;33089:60:0;;;;;;;;;;33165:55;;6429:41:1;;;33089:49:0;;55660:10;33165:55;;6402:18:1;33165:55:0;;;;;;;32920:308;;:::o;42248:716::-;42432:88;;-1:-1:-1;;;42432:88:0;;42411:4;;-1:-1:-1;;;;;42432:45:0;;;;;:88;;55660:10;;42499:4;;42505:7;;42514:5;;42432:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;42432:88:0;;;;;;;;-1:-1:-1;;42432:88:0;;;;;;;;;;;;:::i;:::-;;;42428:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;42715:13:0;;42711:235;;42761:40;;-1:-1:-1;;;42761:40:0;;;;;;;;;;;42711:235;42904:6;42898:13;42889:6;42885:2;42881:15;42874:38;42428:529;-1:-1:-1;;;;;;42591:64:0;-1:-1:-1;;;42591:64:0;;-1:-1:-1;42248:716:0;;;;;;:::o;58818:104::-;58878:13;58907:7;58900:14;;;;;:::i;55780:1581::-;56263:4;56257:11;;56270:4;56253:22;56349:17;;;;56253:22;56707:5;56689:428;56755:1;56750:3;56746:11;56739:18;;56926:2;56920:4;56916:13;56912:2;56908:22;56903:3;56895:36;57020:2;57010:13;;;57077:25;;57095:5;;57077:25;56689:428;;;-1:-1:-1;57147:13:0;;;-1:-1:-1;;57262:14:0;;;57324:19;;;57262:14;55780:1581;-1:-1:-1;55780:1581:0:o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:173:1;82:20;;-1:-1:-1;;;;;131:31:1;;121:42;;111:70;;177:1;174;167:12;111:70;14:173;;;:::o;192:186::-;251:6;304:2;292:9;283:7;279:23;275:32;272:52;;;320:1;317;310:12;272:52;343:29;362:9;343:29;:::i;383:260::-;451:6;459;512:2;500:9;491:7;487:23;483:32;480:52;;;528:1;525;518:12;480:52;551:29;570:9;551:29;:::i;:::-;541:39;;599:38;633:2;622:9;618:18;599:38;:::i;:::-;589:48;;383:260;;;;;:::o;648:328::-;725:6;733;741;794:2;782:9;773:7;769:23;765:32;762:52;;;810:1;807;800:12;762:52;833:29;852:9;833:29;:::i;:::-;823:39;;881:38;915:2;904:9;900:18;881:38;:::i;:::-;871:48;;966:2;955:9;951:18;938:32;928:42;;648:328;;;;;:::o;981:1138::-;1076:6;1084;1092;1100;1153:3;1141:9;1132:7;1128:23;1124:33;1121:53;;;1170:1;1167;1160:12;1121:53;1193:29;1212:9;1193:29;:::i;:::-;1183:39;;1241:38;1275:2;1264:9;1260:18;1241:38;:::i;:::-;1231:48;;1326:2;1315:9;1311:18;1298:32;1288:42;;1381:2;1370:9;1366:18;1353:32;1404:18;1445:2;1437:6;1434:14;1431:34;;;1461:1;1458;1451:12;1431:34;1499:6;1488:9;1484:22;1474:32;;1544:7;1537:4;1533:2;1529:13;1525:27;1515:55;;1566:1;1563;1556:12;1515:55;1602:2;1589:16;1624:2;1620;1617:10;1614:36;;;1630:18;;:::i;:::-;1705:2;1699:9;1673:2;1759:13;;-1:-1:-1;;1755:22:1;;;1779:2;1751:31;1747:40;1735:53;;;1803:18;;;1823:22;;;1800:46;1797:72;;;1849:18;;:::i;:::-;1889:10;1885:2;1878:22;1924:2;1916:6;1909:18;1964:7;1959:2;1954;1950;1946:11;1942:20;1939:33;1936:53;;;1985:1;1982;1975:12;1936:53;2041:2;2036;2032;2028:11;2023:2;2015:6;2011:15;1998:46;2086:1;2081:2;2076;2068:6;2064:15;2060:24;2053:35;2107:6;2097:16;;;;;;;981:1138;;;;;;;:::o;2124:347::-;2189:6;2197;2250:2;2238:9;2229:7;2225:23;2221:32;2218:52;;;2266:1;2263;2256:12;2218:52;2289:29;2308:9;2289:29;:::i;:::-;2279:39;;2368:2;2357:9;2353:18;2340:32;2415:5;2408:13;2401:21;2394:5;2391:32;2381:60;;2437:1;2434;2427:12;2381:60;2460:5;2450:15;;;2124:347;;;;;:::o;2476:254::-;2544:6;2552;2605:2;2593:9;2584:7;2580:23;2576:32;2573:52;;;2621:1;2618;2611:12;2573:52;2644:29;2663:9;2644:29;:::i;:::-;2634:39;2720:2;2705:18;;;;2692:32;;-1:-1:-1;;;2476:254:1:o;2735:615::-;2821:6;2829;2882:2;2870:9;2861:7;2857:23;2853:32;2850:52;;;2898:1;2895;2888:12;2850:52;2938:9;2925:23;2967:18;3008:2;3000:6;2997:14;2994:34;;;3024:1;3021;3014:12;2994:34;3062:6;3051:9;3047:22;3037:32;;3107:7;3100:4;3096:2;3092:13;3088:27;3078:55;;3129:1;3126;3119:12;3078:55;3169:2;3156:16;3195:2;3187:6;3184:14;3181:34;;;3211:1;3208;3201:12;3181:34;3264:7;3259:2;3249:6;3246:1;3242:14;3238:2;3234:23;3230:32;3227:45;3224:65;;;3285:1;3282;3275:12;3224:65;3316:2;3308:11;;;;;3338:6;;-1:-1:-1;2735:615:1;;-1:-1:-1;;;;2735:615:1:o;3355:245::-;3413:6;3466:2;3454:9;3445:7;3441:23;3437:32;3434:52;;;3482:1;3479;3472:12;3434:52;3521:9;3508:23;3540:30;3564:5;3540:30;:::i;3605:249::-;3674:6;3727:2;3715:9;3706:7;3702:23;3698:32;3695:52;;;3743:1;3740;3733:12;3695:52;3775:9;3769:16;3794:30;3818:5;3794:30;:::i;3859:592::-;3930:6;3938;3991:2;3979:9;3970:7;3966:23;3962:32;3959:52;;;4007:1;4004;3997:12;3959:52;4047:9;4034:23;4076:18;4117:2;4109:6;4106:14;4103:34;;;4133:1;4130;4123:12;4103:34;4171:6;4160:9;4156:22;4146:32;;4216:7;4209:4;4205:2;4201:13;4197:27;4187:55;;4238:1;4235;4228:12;4187:55;4278:2;4265:16;4304:2;4296:6;4293:14;4290:34;;;4320:1;4317;4310:12;4290:34;4365:7;4360:2;4351:6;4347:2;4343:15;4339:24;4336:37;4333:57;;;4386:1;4383;4376:12;4456:180;4515:6;4568:2;4556:9;4547:7;4543:23;4539:32;4536:52;;;4584:1;4581;4574:12;4536:52;-1:-1:-1;4607:23:1;;4456:180;-1:-1:-1;4456:180:1:o;4641:257::-;4682:3;4720:5;4714:12;4747:6;4742:3;4735:19;4763:63;4819:6;4812:4;4807:3;4803:14;4796:4;4789:5;4785:16;4763:63;:::i;:::-;4880:2;4859:15;-1:-1:-1;;4855:29:1;4846:39;;;;4887:4;4842:50;;4641:257;-1:-1:-1;;4641:257:1:o;4903:470::-;5082:3;5120:6;5114:13;5136:53;5182:6;5177:3;5170:4;5162:6;5158:17;5136:53;:::i;:::-;5252:13;;5211:16;;;;5274:57;5252:13;5211:16;5308:4;5296:17;;5274:57;:::i;:::-;5347:20;;4903:470;-1:-1:-1;;;;4903:470:1:o;5796:488::-;-1:-1:-1;;;;;6065:15:1;;;6047:34;;6117:15;;6112:2;6097:18;;6090:43;6164:2;6149:18;;6142:34;;;6212:3;6207:2;6192:18;;6185:31;;;5990:4;;6233:45;;6258:19;;6250:6;6233:45;:::i;:::-;6225:53;5796:488;-1:-1:-1;;;;;;5796:488:1:o;6481:219::-;6630:2;6619:9;6612:21;6593:4;6650:44;6690:2;6679:9;6675:18;6667:6;6650:44;:::i;8650:356::-;8852:2;8834:21;;;8871:18;;;8864:30;8930:34;8925:2;8910:18;;8903:62;8997:2;8982:18;;8650:356::o;11210:128::-;11250:3;11281:1;11277:6;11274:1;11271:13;11268:39;;;11287:18;;:::i;:::-;-1:-1:-1;11323:9:1;;11210:128::o;11343:168::-;11383:7;11449:1;11445;11441:6;11437:14;11434:1;11431:21;11426:1;11419:9;11412:17;11408:45;11405:71;;;11456:18;;:::i;:::-;-1:-1:-1;11496:9:1;;11343:168::o;11516:258::-;11588:1;11598:113;11612:6;11609:1;11606:13;11598:113;;;11688:11;;;11682:18;11669:11;;;11662:39;11634:2;11627:10;11598:113;;;11729:6;11726:1;11723:13;11720:48;;;-1:-1:-1;;11764:1:1;11746:16;;11739:27;11516:258::o;11779:380::-;11858:1;11854:12;;;;11901;;;11922:61;;11976:4;11968:6;11964:17;11954:27;;11922:61;12029:2;12021:6;12018:14;11998:18;11995:38;11992:161;;;12075:10;12070:3;12066:20;12063:1;12056:31;12110:4;12107:1;12100:15;12138:4;12135:1;12128:15;11992:161;;11779:380;;;:::o;12164:127::-;12225:10;12220:3;12216:20;12213:1;12206:31;12256:4;12253:1;12246:15;12280:4;12277:1;12270:15;12296:127;12357:10;12352:3;12348:20;12345:1;12338:31;12388:4;12385:1;12378:15;12412:4;12409:1;12402:15;12428:127;12489:10;12484:3;12480:20;12477:1;12470:31;12520:4;12517:1;12510:15;12544:4;12541:1;12534:15;12560:131;-1:-1:-1;;;;;;12634:32:1;;12624:43;;12614:71;;12681:1;12678;12671:12

Swarm Source

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