ETH Price: $3,305.19 (-1.79%)
Gas: 4.41 Gwei
 

Overview

Max Total Supply

1,820 MInc

Holders

87

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
imapnesslamp.eth
Balance
1 MInc
0xfb638f52f02b039da3e9ae058e3e2d860bb33eaa
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:
MonstersInc

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at Etherscan.io on 2022-09-26
*/

// 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 (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;


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

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

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

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

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

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

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

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

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

// File: erc721a/contracts/IERC721A.sol


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

pragma solidity ^0.8.4;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: erc721a/contracts/ERC721A.sol


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

pragma solidity ^0.8.4;


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        return _tokenApprovals[tokenId].value;
    }

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        address from = address(uint160(prevOwnershipPacked));

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: contracts/MonstersInc.sol


pragma solidity ^0.8.13;




contract MonstersInc is Ownable, ERC721A, ReentrancyGuard {
    constructor() ERC721A("Monsters Inc", "MInc") {}

    string private baseURI;

    bool public publicSaleActive;

    uint256 public constant maxMintPerTx = 20;
    uint256 public constant maxMintPerAddress = 50;
    uint256 public constant MAX_PUBLIC_SALE_AMOUNT = 5000;

    uint256 public mintPrice = 0.003 ether;

    mapping(address => uint256) public mintedPerAddress;
    string public baseUri;

    modifier callerIsUser () {
        require(msg.sender == tx.origin, "Not allowed");
        _;
    }

    modifier whenPublicSaleActive() {
        require(publicSaleActive, "Public sale is not active");
        _;
    }

    function togglePublicSale() external onlyOwner {
        publicSaleActive = !publicSaleActive;
    }

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

    function setBaseUri(string memory _base) external onlyOwner {
        baseUri = _base;
    }

    function ownerMint(uint256 quantity) external onlyOwner callerIsUser {
        uint256 mintedAmount = totalSupply();

        require(mintedAmount + quantity <= MAX_PUBLIC_SALE_AMOUNT, "Minting would exceed max supply");

        _safeMint(msg.sender, quantity);
    }

    function mint(uint256 quantity) external payable callerIsUser whenPublicSaleActive nonReentrant {
        uint256 mintedAmount = totalSupply();

        require(mintedAmount + quantity <= MAX_PUBLIC_SALE_AMOUNT, "Minting would exceed max supply");
        require(quantity <= maxMintPerTx, "Token amount should not exceed maxMintPerTx");
        require(quantity + mintedPerAddress[msg.sender] <= maxMintPerAddress, "Sender address cannot mint more than maxMintPerAddress");
     
        if (mintedAmount >= 2500) {
            require(msg.value >= quantity * mintPrice, "Not enough ether sent");
        }

        mintedPerAddress[msg.sender] += quantity;

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"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":[],"name":"MAX_PUBLIC_SALE_AMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseUri","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"maxMintPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintedPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"publicSaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_base","type":"string"}],"name":"setBaseUri","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":"togglePublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawMoney","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052660aa87bee538000600c553480156200001c57600080fd5b506040518060400160405280600c81526020016b4d6f6e737465727320496e6360a01b815250604051806040016040528060048152602001634d496e6360e01b8152506200007962000073620000b760201b60201c565b620000bb565b81516200008e9060039060208501906200010b565b508051620000a49060049060208401906200010b565b50506000600190815560095550620001ed565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b8280546200011990620001b1565b90600052602060002090601f0160209004810192826200013d576000855562000188565b82601f106200015857805160ff191683800117855562000188565b8280016001018555821562000188579182015b82811115620001885782518255916020019190600101906200016b565b50620001969291506200019a565b5090565b5b808211156200019657600081556001016200019b565b600181811c90821680620001c657607f821691505b602082108103620001e757634e487b7160e01b600052602260045260246000fd5b50919050565b61192880620001fd6000396000f3fe6080604052600436106101c25760003560e01c80639abc8320116100f7578063bc8893b411610095578063e222c7f911610064578063e222c7f914610489578063e985e9c51461049e578063f19e75d4146104e7578063f2fde38b1461050757600080fd5b8063bc8893b41461040d578063c87b56dd14610427578063d445b97814610447578063de7fcb1d1461047457600080fd5b8063a22cb465116100d1578063a22cb465146103af578063ac446002146103cf578063b48a0539146103e4578063b88d4fde146103fa57600080fd5b80639abc832014610367578063a0712d681461037c578063a0bcfc7f1461038f57600080fd5b8063572849c41161016457806370a082311161013e57806370a08231146102ff578063715018a61461031f5780638da5cb5b1461033457806395d89b411461035257600080fd5b8063572849c4146102b45780636352211e146102c95780636817c76c146102e957600080fd5b8063095ea7b3116101a0578063095ea7b31461025657806318160ddd1461026b57806323b872dd1461028e57806342842e0e146102a157600080fd5b806301ffc9a7146101c757806306fdde03146101fc578063081812fc1461021e575b600080fd5b3480156101d357600080fd5b506101e76101e23660046114d4565b610527565b60405190151581526020015b60405180910390f35b34801561020857600080fd5b50610211610579565b6040516101f39190611549565b34801561022a57600080fd5b5061023e61023936600461155c565b61060b565b6040516001600160a01b0390911681526020016101f3565b610269610264366004611591565b61064f565b005b34801561027757600080fd5b50600254600154035b6040519081526020016101f3565b61026961029c3660046115bb565b6106ef565b6102696102af3660046115bb565b610887565b3480156102c057600080fd5b50610280603281565b3480156102d557600080fd5b5061023e6102e436600461155c565b6108a7565b3480156102f557600080fd5b50610280600c5481565b34801561030b57600080fd5b5061028061031a3660046115f7565b6108b2565b34801561032b57600080fd5b50610269610901565b34801561034057600080fd5b506000546001600160a01b031661023e565b34801561035e57600080fd5b50610211610915565b34801561037357600080fd5b50610211610924565b61026961038a36600461155c565b6109b2565b34801561039b57600080fd5b506102696103aa36600461169e565b610c8d565b3480156103bb57600080fd5b506102696103ca3660046116e7565b610cac565b3480156103db57600080fd5b50610269610d18565b3480156103f057600080fd5b5061028061138881565b610269610408366004611723565b610e0a565b34801561041957600080fd5b50600b546101e79060ff1681565b34801561043357600080fd5b5061021161044236600461155c565b610e54565b34801561045357600080fd5b506102806104623660046115f7565b600d6020526000908152604090205481565b34801561048057600080fd5b50610280601481565b34801561049557600080fd5b50610269610ed8565b3480156104aa57600080fd5b506101e76104b936600461179f565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b3480156104f357600080fd5b5061026961050236600461155c565b610ef4565b34801561051357600080fd5b506102696105223660046115f7565b610faf565b60006301ffc9a760e01b6001600160e01b03198316148061055857506380ac58cd60e01b6001600160e01b03198316145b806105735750635b5e139f60e01b6001600160e01b03198316145b92915050565b606060038054610588906117d2565b80601f01602080910402602001604051908101604052809291908181526020018280546105b4906117d2565b80156106015780601f106105d657610100808354040283529160200191610601565b820191906000526020600020905b8154815290600101906020018083116105e457829003601f168201915b5050505050905090565b600061061682611028565b610633576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b600061065a826108a7565b9050336001600160a01b038216146106935761067681336104b9565b610693576040516367d9dca160e11b815260040160405180910390fd5b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006106fa82611050565b9050836001600160a01b0316816001600160a01b03161461072d5760405162a1148160e81b815260040160405180910390fd5b60008281526007602052604090208054338082146001600160a01b0388169091141761077a5761075d86336104b9565b61077a57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0385166107a157604051633a954ecd60e21b815260040160405180910390fd5b80156107ac57600082555b6001600160a01b038681166000908152600660205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260056020526040812091909155600160e11b8416900361083e5760018401600081815260056020526040812054900361083c57600154811461083c5760008181526005602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b6108a283838360405180602001604052806000815250610e0a565b505050565b600061057382611050565b60006001600160a01b0382166108db576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526006602052604090205467ffffffffffffffff1690565b6109096110b7565b6109136000611111565b565b606060048054610588906117d2565b600e8054610931906117d2565b80601f016020809104026020016040519081016040528092919081815260200182805461095d906117d2565b80156109aa5780601f1061097f576101008083540402835291602001916109aa565b820191906000526020600020905b81548152906001019060200180831161098d57829003601f168201915b505050505081565b3332146109f45760405162461bcd60e51b815260206004820152600b60248201526a139bdd08185b1b1bddd95960aa1b60448201526064015b60405180910390fd5b600b5460ff16610a465760405162461bcd60e51b815260206004820152601960248201527f5075626c69632073616c65206973206e6f74206163746976650000000000000060448201526064016109eb565b600260095403610a985760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109eb565b60026009556000610aac6002546001540390565b9050611388610abb8383611822565b1115610b095760405162461bcd60e51b815260206004820152601f60248201527f4d696e74696e6720776f756c6420657863656564206d617820737570706c790060448201526064016109eb565b6014821115610b6e5760405162461bcd60e51b815260206004820152602b60248201527f546f6b656e20616d6f756e742073686f756c64206e6f7420657863656564206d60448201526a0c2f09ad2dce8a0cae4a8f60ab1b60648201526084016109eb565b336000908152600d6020526040902054603290610b8b9084611822565b1115610bf85760405162461bcd60e51b815260206004820152603660248201527f53656e64657220616464726573732063616e6e6f74206d696e74206d6f7265206044820152757468616e206d61784d696e745065724164647265737360501b60648201526084016109eb565b6109c48110610c5557600c54610c0e908361183a565b341015610c555760405162461bcd60e51b8152602060048201526015602482015274139bdd08195b9bdd59da08195d1a195c881cd95b9d605a1b60448201526064016109eb565b336000908152600d602052604081208054849290610c74908490611822565b90915550610c8490503383611161565b50506001600955565b610c956110b7565b8051610ca890600e906020840190611425565b5050565b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610d206110b7565b600260095403610d725760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109eb565b6002600955604051600090339047908381818185875af1925050503d8060008114610db9576040519150601f19603f3d011682016040523d82523d6000602084013e610dbe565b606091505b5050905080610e025760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b60448201526064016109eb565b506001600955565b610e158484846106ef565b6001600160a01b0383163b15610e4e57610e318484848461117b565b610e4e576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060610e5f82611028565b610e7c57604051630a14c4b560e41b815260040160405180910390fd5b6000610e86611267565b90508051600003610ea65760405180602001604052806000815250610ed1565b80610eb084611276565b604051602001610ec1929190611859565b6040516020818303038152906040525b9392505050565b610ee06110b7565b600b805460ff19811660ff90911615179055565b610efc6110b7565b333214610f395760405162461bcd60e51b815260206004820152600b60248201526a139bdd08185b1b1bddd95960aa1b60448201526064016109eb565b6000610f486002546001540390565b9050611388610f578383611822565b1115610fa55760405162461bcd60e51b815260206004820152601f60248201527f4d696e74696e6720776f756c6420657863656564206d617820737570706c790060448201526064016109eb565b610ca83383611161565b610fb76110b7565b6001600160a01b03811661101c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109eb565b61102581611111565b50565b600060015482108015610573575050600090815260056020526040902054600160e01b161590565b60008160015481101561109e5760008181526005602052604081205490600160e01b8216900361109c575b80600003610ed157506000190160008181526005602052604090205461107b565b505b604051636f96cda160e11b815260040160405180910390fd5b6000546001600160a01b031633146109135760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109eb565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ca88282604051806020016040528060008152506112ba565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906111b0903390899088908890600401611898565b6020604051808303816000875af19250505080156111eb575060408051601f3d908101601f191682019092526111e8918101906118d5565b60015b611249573d808015611219576040519150601f19603f3d011682016040523d82523d6000602084013e61121e565b606091505b508051600003611241576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600e8054610588906117d2565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a9004806112905750819003601f19909101908152919050565b6112c48383611327565b6001600160a01b0383163b156108a2576001548281035b6112ee600086838060010194508661117b565b61130b576040516368d2bf6b60e11b815260040160405180910390fd5b8181106112db57816001541461132057600080fd5b5050505050565b600154600082900361134c5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526006602090815260408083208054680100000000000000018802019055848352600590915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146113fb57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016113c3565b508160000361141c57604051622e076360e81b815260040160405180910390fd5b60015550505050565b828054611431906117d2565b90600052602060002090601f0160209004810192826114535760008555611499565b82601f1061146c57805160ff1916838001178555611499565b82800160010185558215611499579182015b8281111561149957825182559160200191906001019061147e565b506114a59291506114a9565b5090565b5b808211156114a557600081556001016114aa565b6001600160e01b03198116811461102557600080fd5b6000602082840312156114e657600080fd5b8135610ed1816114be565b60005b8381101561150c5781810151838201526020016114f4565b83811115610e4e5750506000910152565b600081518084526115358160208601602086016114f1565b601f01601f19169290920160200192915050565b602081526000610ed1602083018461151d565b60006020828403121561156e57600080fd5b5035919050565b80356001600160a01b038116811461158c57600080fd5b919050565b600080604083850312156115a457600080fd5b6115ad83611575565b946020939093013593505050565b6000806000606084860312156115d057600080fd5b6115d984611575565b92506115e760208501611575565b9150604084013590509250925092565b60006020828403121561160957600080fd5b610ed182611575565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561164357611643611612565b604051601f8501601f19908116603f0116810190828211818310171561166b5761166b611612565b8160405280935085815286868601111561168457600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156116b057600080fd5b813567ffffffffffffffff8111156116c757600080fd5b8201601f810184136116d857600080fd5b61125f84823560208401611628565b600080604083850312156116fa57600080fd5b61170383611575565b91506020830135801515811461171857600080fd5b809150509250929050565b6000806000806080858703121561173957600080fd5b61174285611575565b935061175060208601611575565b925060408501359150606085013567ffffffffffffffff81111561177357600080fd5b8501601f8101871361178457600080fd5b61179387823560208401611628565b91505092959194509250565b600080604083850312156117b257600080fd5b6117bb83611575565b91506117c960208401611575565b90509250929050565b600181811c908216806117e657607f821691505b60208210810361180657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156118355761183561180c565b500190565b60008160001904831182151516156118545761185461180c565b500290565b6000835161186b8184602088016114f1565b83519083019061187f8183602088016114f1565b64173539b7b760d91b9101908152600501949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906118cb9083018461151d565b9695505050505050565b6000602082840312156118e757600080fd5b8151610ed1816114be56fea264697066735822122019b5e0eda33063cdadd50f0b7c9af04eaae818b12f720a6bf9090b092a53813864736f6c634300080d0033

Deployed Bytecode

0x6080604052600436106101c25760003560e01c80639abc8320116100f7578063bc8893b411610095578063e222c7f911610064578063e222c7f914610489578063e985e9c51461049e578063f19e75d4146104e7578063f2fde38b1461050757600080fd5b8063bc8893b41461040d578063c87b56dd14610427578063d445b97814610447578063de7fcb1d1461047457600080fd5b8063a22cb465116100d1578063a22cb465146103af578063ac446002146103cf578063b48a0539146103e4578063b88d4fde146103fa57600080fd5b80639abc832014610367578063a0712d681461037c578063a0bcfc7f1461038f57600080fd5b8063572849c41161016457806370a082311161013e57806370a08231146102ff578063715018a61461031f5780638da5cb5b1461033457806395d89b411461035257600080fd5b8063572849c4146102b45780636352211e146102c95780636817c76c146102e957600080fd5b8063095ea7b3116101a0578063095ea7b31461025657806318160ddd1461026b57806323b872dd1461028e57806342842e0e146102a157600080fd5b806301ffc9a7146101c757806306fdde03146101fc578063081812fc1461021e575b600080fd5b3480156101d357600080fd5b506101e76101e23660046114d4565b610527565b60405190151581526020015b60405180910390f35b34801561020857600080fd5b50610211610579565b6040516101f39190611549565b34801561022a57600080fd5b5061023e61023936600461155c565b61060b565b6040516001600160a01b0390911681526020016101f3565b610269610264366004611591565b61064f565b005b34801561027757600080fd5b50600254600154035b6040519081526020016101f3565b61026961029c3660046115bb565b6106ef565b6102696102af3660046115bb565b610887565b3480156102c057600080fd5b50610280603281565b3480156102d557600080fd5b5061023e6102e436600461155c565b6108a7565b3480156102f557600080fd5b50610280600c5481565b34801561030b57600080fd5b5061028061031a3660046115f7565b6108b2565b34801561032b57600080fd5b50610269610901565b34801561034057600080fd5b506000546001600160a01b031661023e565b34801561035e57600080fd5b50610211610915565b34801561037357600080fd5b50610211610924565b61026961038a36600461155c565b6109b2565b34801561039b57600080fd5b506102696103aa36600461169e565b610c8d565b3480156103bb57600080fd5b506102696103ca3660046116e7565b610cac565b3480156103db57600080fd5b50610269610d18565b3480156103f057600080fd5b5061028061138881565b610269610408366004611723565b610e0a565b34801561041957600080fd5b50600b546101e79060ff1681565b34801561043357600080fd5b5061021161044236600461155c565b610e54565b34801561045357600080fd5b506102806104623660046115f7565b600d6020526000908152604090205481565b34801561048057600080fd5b50610280601481565b34801561049557600080fd5b50610269610ed8565b3480156104aa57600080fd5b506101e76104b936600461179f565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b3480156104f357600080fd5b5061026961050236600461155c565b610ef4565b34801561051357600080fd5b506102696105223660046115f7565b610faf565b60006301ffc9a760e01b6001600160e01b03198316148061055857506380ac58cd60e01b6001600160e01b03198316145b806105735750635b5e139f60e01b6001600160e01b03198316145b92915050565b606060038054610588906117d2565b80601f01602080910402602001604051908101604052809291908181526020018280546105b4906117d2565b80156106015780601f106105d657610100808354040283529160200191610601565b820191906000526020600020905b8154815290600101906020018083116105e457829003601f168201915b5050505050905090565b600061061682611028565b610633576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b600061065a826108a7565b9050336001600160a01b038216146106935761067681336104b9565b610693576040516367d9dca160e11b815260040160405180910390fd5b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006106fa82611050565b9050836001600160a01b0316816001600160a01b03161461072d5760405162a1148160e81b815260040160405180910390fd5b60008281526007602052604090208054338082146001600160a01b0388169091141761077a5761075d86336104b9565b61077a57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b0385166107a157604051633a954ecd60e21b815260040160405180910390fd5b80156107ac57600082555b6001600160a01b038681166000908152600660205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260056020526040812091909155600160e11b8416900361083e5760018401600081815260056020526040812054900361083c57600154811461083c5760008181526005602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b6108a283838360405180602001604052806000815250610e0a565b505050565b600061057382611050565b60006001600160a01b0382166108db576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526006602052604090205467ffffffffffffffff1690565b6109096110b7565b6109136000611111565b565b606060048054610588906117d2565b600e8054610931906117d2565b80601f016020809104026020016040519081016040528092919081815260200182805461095d906117d2565b80156109aa5780601f1061097f576101008083540402835291602001916109aa565b820191906000526020600020905b81548152906001019060200180831161098d57829003601f168201915b505050505081565b3332146109f45760405162461bcd60e51b815260206004820152600b60248201526a139bdd08185b1b1bddd95960aa1b60448201526064015b60405180910390fd5b600b5460ff16610a465760405162461bcd60e51b815260206004820152601960248201527f5075626c69632073616c65206973206e6f74206163746976650000000000000060448201526064016109eb565b600260095403610a985760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109eb565b60026009556000610aac6002546001540390565b9050611388610abb8383611822565b1115610b095760405162461bcd60e51b815260206004820152601f60248201527f4d696e74696e6720776f756c6420657863656564206d617820737570706c790060448201526064016109eb565b6014821115610b6e5760405162461bcd60e51b815260206004820152602b60248201527f546f6b656e20616d6f756e742073686f756c64206e6f7420657863656564206d60448201526a0c2f09ad2dce8a0cae4a8f60ab1b60648201526084016109eb565b336000908152600d6020526040902054603290610b8b9084611822565b1115610bf85760405162461bcd60e51b815260206004820152603660248201527f53656e64657220616464726573732063616e6e6f74206d696e74206d6f7265206044820152757468616e206d61784d696e745065724164647265737360501b60648201526084016109eb565b6109c48110610c5557600c54610c0e908361183a565b341015610c555760405162461bcd60e51b8152602060048201526015602482015274139bdd08195b9bdd59da08195d1a195c881cd95b9d605a1b60448201526064016109eb565b336000908152600d602052604081208054849290610c74908490611822565b90915550610c8490503383611161565b50506001600955565b610c956110b7565b8051610ca890600e906020840190611425565b5050565b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610d206110b7565b600260095403610d725760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016109eb565b6002600955604051600090339047908381818185875af1925050503d8060008114610db9576040519150601f19603f3d011682016040523d82523d6000602084013e610dbe565b606091505b5050905080610e025760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b60448201526064016109eb565b506001600955565b610e158484846106ef565b6001600160a01b0383163b15610e4e57610e318484848461117b565b610e4e576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060610e5f82611028565b610e7c57604051630a14c4b560e41b815260040160405180910390fd5b6000610e86611267565b90508051600003610ea65760405180602001604052806000815250610ed1565b80610eb084611276565b604051602001610ec1929190611859565b6040516020818303038152906040525b9392505050565b610ee06110b7565b600b805460ff19811660ff90911615179055565b610efc6110b7565b333214610f395760405162461bcd60e51b815260206004820152600b60248201526a139bdd08185b1b1bddd95960aa1b60448201526064016109eb565b6000610f486002546001540390565b9050611388610f578383611822565b1115610fa55760405162461bcd60e51b815260206004820152601f60248201527f4d696e74696e6720776f756c6420657863656564206d617820737570706c790060448201526064016109eb565b610ca83383611161565b610fb76110b7565b6001600160a01b03811661101c5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109eb565b61102581611111565b50565b600060015482108015610573575050600090815260056020526040902054600160e01b161590565b60008160015481101561109e5760008181526005602052604081205490600160e01b8216900361109c575b80600003610ed157506000190160008181526005602052604090205461107b565b505b604051636f96cda160e11b815260040160405180910390fd5b6000546001600160a01b031633146109135760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016109eb565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b610ca88282604051806020016040528060008152506112ba565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906111b0903390899088908890600401611898565b6020604051808303816000875af19250505080156111eb575060408051601f3d908101601f191682019092526111e8918101906118d5565b60015b611249573d808015611219576040519150601f19603f3d011682016040523d82523d6000602084013e61121e565b606091505b508051600003611241576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600e8054610588906117d2565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a9004806112905750819003601f19909101908152919050565b6112c48383611327565b6001600160a01b0383163b156108a2576001548281035b6112ee600086838060010194508661117b565b61130b576040516368d2bf6b60e11b815260040160405180910390fd5b8181106112db57816001541461132057600080fd5b5050505050565b600154600082900361134c5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526006602090815260408083208054680100000000000000018802019055848352600590915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146113fb57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016113c3565b508160000361141c57604051622e076360e81b815260040160405180910390fd5b60015550505050565b828054611431906117d2565b90600052602060002090601f0160209004810192826114535760008555611499565b82601f1061146c57805160ff1916838001178555611499565b82800160010185558215611499579182015b8281111561149957825182559160200191906001019061147e565b506114a59291506114a9565b5090565b5b808211156114a557600081556001016114aa565b6001600160e01b03198116811461102557600080fd5b6000602082840312156114e657600080fd5b8135610ed1816114be565b60005b8381101561150c5781810151838201526020016114f4565b83811115610e4e5750506000910152565b600081518084526115358160208601602086016114f1565b601f01601f19169290920160200192915050565b602081526000610ed1602083018461151d565b60006020828403121561156e57600080fd5b5035919050565b80356001600160a01b038116811461158c57600080fd5b919050565b600080604083850312156115a457600080fd5b6115ad83611575565b946020939093013593505050565b6000806000606084860312156115d057600080fd5b6115d984611575565b92506115e760208501611575565b9150604084013590509250925092565b60006020828403121561160957600080fd5b610ed182611575565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561164357611643611612565b604051601f8501601f19908116603f0116810190828211818310171561166b5761166b611612565b8160405280935085815286868601111561168457600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156116b057600080fd5b813567ffffffffffffffff8111156116c757600080fd5b8201601f810184136116d857600080fd5b61125f84823560208401611628565b600080604083850312156116fa57600080fd5b61170383611575565b91506020830135801515811461171857600080fd5b809150509250929050565b6000806000806080858703121561173957600080fd5b61174285611575565b935061175060208601611575565b925060408501359150606085013567ffffffffffffffff81111561177357600080fd5b8501601f8101871361178457600080fd5b61179387823560208401611628565b91505092959194509250565b600080604083850312156117b257600080fd5b6117bb83611575565b91506117c960208401611575565b90509250929050565b600181811c908216806117e657607f821691505b60208210810361180657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156118355761183561180c565b500190565b60008160001904831182151516156118545761185461180c565b500290565b6000835161186b8184602088016114f1565b83519083019061187f8183602088016114f1565b64173539b7b760d91b9101908152600501949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906118cb9083018461151d565b9695505050505050565b6000602082840312156118e757600080fd5b8151610ed1816114be56fea264697066735822122019b5e0eda33063cdadd50f0b7c9af04eaae818b12f720a6bf9090b092a53813864736f6c634300080d0033

Deployed Bytecode Sourcemap

57903:2253:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24789:639;;;;;;;;;;-1:-1:-1;24789:639:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;24789:639:0;;;;;;;;25691:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;32191:218::-;;;;;;;;;;-1:-1:-1;32191:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1692:32:1;;;1674:51;;1662:2;1647:18;32191:218:0;1528:203:1;31624:408:0;;;;;;:::i;:::-;;:::i;:::-;;21442:323;;;;;;;;;;-1:-1:-1;21716:12:0;;21700:13;;:28;21442:323;;;2319:25:1;;;2307:2;2292:18;21442:323:0;2173:177:1;35830:2825:0;;;;;;:::i;:::-;;:::i;38751:193::-;;;;;;:::i;:::-;;:::i;58140:46::-;;;;;;;;;;;;58184:2;58140:46;;27093:152;;;;;;;;;;-1:-1:-1;27093:152:0;;;;;:::i;:::-;;:::i;58255:38::-;;;;;;;;;;;;;;;;22626:233;;;;;;;;;;-1:-1:-1;22626:233:0;;;;;:::i;:::-;;:::i;5568:103::-;;;;;;;;;;;;;:::i;4920:87::-;;;;;;;;;;-1:-1:-1;4966:7:0;4993:6;-1:-1:-1;;;;;4993:6:0;4920:87;;25867:104;;;;;;;;;;;;;:::i;58360:21::-;;;;;;;;;;;;;:::i;59236:720::-;;;;;;:::i;:::-;;:::i;58852:94::-;;;;;;;;;;-1:-1:-1;58852:94:0;;;;;:::i;:::-;;:::i;32749:234::-;;;;;;;;;;-1:-1:-1;32749:234:0;;;;;:::i;:::-;;:::i;59962:191::-;;;;;;;;;;;;;:::i;58193:53::-;;;;;;;;;;;;58242:4;58193:53;;39542:407;;;;;;:::i;:::-;;:::i;58055:28::-;;;;;;;;;;-1:-1:-1;58055:28:0;;;;;;;;26077:327;;;;;;;;;;-1:-1:-1;26077:327:0;;;;;:::i;:::-;;:::i;58302:51::-;;;;;;;;;;-1:-1:-1;58302:51:0;;;;;:::i;:::-;;;;;;;;;;;;;;58092:41;;;;;;;;;;;;58131:2;58092:41;;58626:102;;;;;;;;;;;;;:::i;33140:164::-;;;;;;;;;;-1:-1:-1;33140:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;33261:25:0;;;33237:4;33261:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;33140:164;58954:274;;;;;;;;;;-1:-1:-1;58954:274:0;;;;;:::i;:::-;;:::i;5826:201::-;;;;;;;;;;-1:-1:-1;5826:201:0;;;;;:::i;:::-;;:::i;24789:639::-;24874:4;-1:-1:-1;;;;;;;;;25198:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;25275:25:0;;;25198:102;:179;;;-1:-1:-1;;;;;;;;;;25352:25:0;;;25198:179;25178:199;24789:639;-1:-1:-1;;24789:639:0:o;25691:100::-;25745:13;25778:5;25771:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25691:100;:::o;32191:218::-;32267:7;32292:16;32300:7;32292;:16::i;:::-;32287:64;;32317:34;;-1:-1:-1;;;32317:34:0;;;;;;;;;;;32287:64;-1:-1:-1;32371:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;32371:30:0;;32191:218::o;31624:408::-;31713:13;31729:16;31737:7;31729;:16::i;:::-;31713:32;-1:-1:-1;55957:10:0;-1:-1:-1;;;;;31762:28:0;;;31758:175;;31810:44;31827:5;55957:10;33140:164;:::i;31810:44::-;31805:128;;31882:35;;-1:-1:-1;;;31882:35:0;;;;;;;;;;;31805:128;31945:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;31945:35:0;-1:-1:-1;;;;;31945:35:0;;;;;;;;;31996:28;;31945:24;;31996:28;;;;;;;31702:330;31624:408;;:::o;35830:2825::-;35972:27;36002;36021:7;36002:18;:27::i;:::-;35972:57;;36087:4;-1:-1:-1;;;;;36046:45:0;36062:19;-1:-1:-1;;;;;36046:45:0;;36042:86;;36100:28;;-1:-1:-1;;;36100:28:0;;;;;;;;;;;36042:86;36142:27;34938:24;;;:15;:24;;;;;35166:26;;55957:10;34563:30;;;-1:-1:-1;;;;;34256:28:0;;34541:20;;;34538:56;36328:180;;36421:43;36438:4;55957:10;33140:164;:::i;36421:43::-;36416:92;;36473:35;;-1:-1:-1;;;36473:35:0;;;;;;;;;;;36416:92;-1:-1:-1;;;;;36525:16:0;;36521:52;;36550:23;;-1:-1:-1;;;36550:23:0;;;;;;;;;;;36521:52;36722:15;36719:160;;;36862:1;36841:19;36834:30;36719:160;-1:-1:-1;;;;;37259:24:0;;;;;;;:18;:24;;;;;;37257:26;;-1:-1:-1;;37257:26:0;;;37328:22;;;;;;;;;37326:24;;-1:-1:-1;37326:24:0;;;30482:11;30457:23;30453:41;30440:63;-1:-1:-1;;;30440:63:0;37621:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;37916:47:0;;:52;;37912:627;;38021:1;38011:11;;37989:19;38144:30;;;:17;:30;;;;;;:35;;38140:384;;38282:13;;38267:11;:28;38263:242;;38429:30;;;;:17;:30;;;;;:52;;;38263:242;37970:569;37912:627;38586:7;38582:2;-1:-1:-1;;;;;38567:27:0;38576:4;-1:-1:-1;;;;;38567:27:0;;;;;;;;;;;35961:2694;;;35830:2825;;;:::o;38751:193::-;38897:39;38914:4;38920:2;38924:7;38897:39;;;;;;;;;;;;:16;:39::i;:::-;38751:193;;;:::o;27093:152::-;27165:7;27208:27;27227:7;27208:18;:27::i;22626:233::-;22698:7;-1:-1:-1;;;;;22722:19:0;;22718:60;;22750:28;;-1:-1:-1;;;22750:28:0;;;;;;;;;;;22718:60;-1:-1:-1;;;;;;22796:25:0;;;;;:18;:25;;;;;;16785:13;22796:55;;22626:233::o;5568:103::-;4806:13;:11;:13::i;:::-;5633:30:::1;5660:1;5633:18;:30::i;:::-;5568:103::o:0;25867:104::-;25923:13;25956:7;25949:14;;;;;:::i;58360:21::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;59236:720::-;58434:10;58448:9;58434:23;58426:47;;;;-1:-1:-1;;;58426:47:0;;5980:2:1;58426:47:0;;;5962:21:1;6019:2;5999:18;;;5992:30;-1:-1:-1;;;6038:18:1;;;6031:41;6089:18;;58426:47:0;;;;;;;;;58552:16:::1;::::0;::::1;;58544:54;;;::::0;-1:-1:-1;;;58544:54:0;;6320:2:1;58544:54:0::1;::::0;::::1;6302:21:1::0;6359:2;6339:18;;;6332:30;6398:27;6378:18;;;6371:55;6443:18;;58544:54:0::1;6118:349:1::0;58544:54:0::1;1845:1:::2;2443:7;;:19:::0;2435:63:::2;;;::::0;-1:-1:-1;;;2435:63:0;;6674:2:1;2435:63:0::2;::::0;::::2;6656:21:1::0;6713:2;6693:18;;;6686:30;6752:33;6732:18;;;6725:61;6803:18;;2435:63:0::2;6472:355:1::0;2435:63:0::2;1845:1;2576:7;:18:::0;59343:20:::3;59366:13;21716:12:::0;;21700:13;;:28;;21442:323;59366:13:::3;59343:36:::0;-1:-1:-1;58242:4:0::3;59400:23;59415:8:::0;59343:36;59400:23:::3;:::i;:::-;:49;;59392:93;;;::::0;-1:-1:-1;;;59392:93:0;;7299:2:1;59392:93:0::3;::::0;::::3;7281:21:1::0;7338:2;7318:18;;;7311:30;7377:33;7357:18;;;7350:61;7428:18;;59392:93:0::3;7097:355:1::0;59392:93:0::3;58131:2;59504:8;:24;;59496:80;;;::::0;-1:-1:-1;;;59496:80:0;;7659:2:1;59496:80:0::3;::::0;::::3;7641:21:1::0;7698:2;7678:18;;;7671:30;7737:34;7717:18;;;7710:62;-1:-1:-1;;;7788:18:1;;;7781:41;7839:19;;59496:80:0::3;7457:407:1::0;59496:80:0::3;59623:10;59606:28;::::0;;;:16:::3;:28;::::0;;;;;58184:2:::3;::::0;59595:39:::3;::::0;:8;:39:::3;:::i;:::-;:60;;59587:127;;;::::0;-1:-1:-1;;;59587:127:0;;8071:2:1;59587:127:0::3;::::0;::::3;8053:21:1::0;8110:2;8090:18;;;8083:30;8149:34;8129:18;;;8122:62;-1:-1:-1;;;8200:18:1;;;8193:52;8262:19;;59587:127:0::3;7869:418:1::0;59587:127:0::3;59752:4;59736:12;:20;59732:120;;59805:9;::::0;59794:20:::3;::::0;:8;:20:::3;:::i;:::-;59781:9;:33;;59773:67;;;::::0;-1:-1:-1;;;59773:67:0;;8667:2:1;59773:67:0::3;::::0;::::3;8649:21:1::0;8706:2;8686:18;;;8679:30;-1:-1:-1;;;8725:18:1;;;8718:51;8786:18;;59773:67:0::3;8465:345:1::0;59773:67:0::3;59881:10;59864:28;::::0;;;:16:::3;:28;::::0;;;;:40;;59896:8;;59864:28;:40:::3;::::0;59896:8;;59864:40:::3;:::i;:::-;::::0;;;-1:-1:-1;59917:31:0::3;::::0;-1:-1:-1;59927:10:0::3;59939:8:::0;59917:9:::3;:31::i;:::-;-1:-1:-1::0;;1801:1:0::2;2755:7;:22:::0;59236:720::o;58852:94::-;4806:13;:11;:13::i;:::-;58923:15;;::::1;::::0;:7:::1;::::0;:15:::1;::::0;::::1;::::0;::::1;:::i;:::-;;58852:94:::0;:::o;32749:234::-;55957:10;32844:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;32844:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;32844:60:0;;;;;;;;;;32920:55;;540:41:1;;;32844:49:0;;55957:10;32920:55;;513:18:1;32920:55:0;;;;;;;32749:234;;:::o;59962:191::-;4806:13;:11;:13::i;:::-;1845:1:::1;2443:7;;:19:::0;2435:63:::1;;;::::0;-1:-1:-1;;;2435:63:0;;6674:2:1;2435:63:0::1;::::0;::::1;6656:21:1::0;6713:2;6693:18;;;6686:30;6752:33;6732:18;;;6725:61;6803:18;;2435:63:0::1;6472:355:1::0;2435:63:0::1;1845:1;2576:7;:18:::0;60049:49:::2;::::0;60031:12:::2;::::0;60049:10:::2;::::0;60072:21:::2;::::0;60031:12;60049:49;60031:12;60049:49;60072:21;60049:10;:49:::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;60030:68;;;60117:7;60109:36;;;::::0;-1:-1:-1;;;60109:36:0;;9227:2:1;60109:36:0::2;::::0;::::2;9209:21:1::0;9266:2;9246:18;;;9239:30;-1:-1:-1;;;9285:18:1;;;9278:46;9341:18;;60109:36:0::2;9025:340:1::0;60109:36:0::2;-1:-1:-1::0;1801:1:0::1;2755:7;:22:::0;59962:191::o;39542:407::-;39717:31;39730:4;39736:2;39740:7;39717:12;:31::i;:::-;-1:-1:-1;;;;;39763:14:0;;;:19;39759:183;;39802:56;39833:4;39839:2;39843:7;39852:5;39802:30;:56::i;:::-;39797:145;;39886:40;;-1:-1:-1;;;39886:40:0;;;;;;;;;;;39797:145;39542:407;;;;:::o;26077:327::-;26150:13;26181:16;26189:7;26181;:16::i;:::-;26176:59;;26206:29;;-1:-1:-1;;;26206:29:0;;;;;;;;;;;26176:59;26248:21;26272:10;:8;:10::i;:::-;26248:34;;26306:7;26300:21;26325:1;26300:26;:96;;;;;;;;;;;;;;;;;26353:7;26362:18;26372:7;26362:9;:18::i;:::-;26336:54;;;;;;;;;:::i;:::-;;;;;;;;;;;;;26300:96;26293:103;26077:327;-1:-1:-1;;;26077:327:0:o;58626:102::-;4806:13;:11;:13::i;:::-;58704:16:::1;::::0;;-1:-1:-1;;58684:36:0;::::1;58704:16;::::0;;::::1;58703:17;58684:36;::::0;;58626:102::o;58954:274::-;4806:13;:11;:13::i;:::-;58434:10:::1;58448:9;58434:23;58426:47;;;::::0;-1:-1:-1;;;58426:47:0;;5980:2:1;58426:47:0::1;::::0;::::1;5962:21:1::0;6019:2;5999:18;;;5992:30;-1:-1:-1;;;6038:18:1;;;6031:41;6089:18;;58426:47:0::1;5778:335:1::0;58426:47:0::1;59034:20:::2;59057:13;21716:12:::0;;21700:13;;:28;;21442:323;59057:13:::2;59034:36:::0;-1:-1:-1;58242:4:0::2;59091:23;59106:8:::0;59034:36;59091:23:::2;:::i;:::-;:49;;59083:93;;;::::0;-1:-1:-1;;;59083:93:0;;7299:2:1;59083:93:0::2;::::0;::::2;7281:21:1::0;7338:2;7318:18;;;7311:30;7377:33;7357:18;;;7350:61;7428:18;;59083:93:0::2;7097:355:1::0;59083:93:0::2;59189:31;59199:10;59211:8;59189:9;:31::i;5826:201::-:0;4806:13;:11;:13::i;:::-;-1:-1:-1;;;;;5915:22:0;::::1;5907:73;;;::::0;-1:-1:-1;;;5907:73:0;;10214:2:1;5907:73:0::1;::::0;::::1;10196:21:1::0;10253:2;10233:18;;;10226:30;10292:34;10272:18;;;10265:62;-1:-1:-1;;;10343:18:1;;;10336:36;10389:19;;5907:73:0::1;10012:402:1::0;5907:73:0::1;5991:28;6010:8;5991:18;:28::i;:::-;5826:201:::0;:::o;33562:282::-;33627:4;33717:13;;33707:7;:23;33664:153;;;;-1:-1:-1;;33768:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;33768:44:0;:49;;33562:282::o;28248:1275::-;28315:7;28350;28452:13;;28445:4;:20;28441:1015;;;28490:14;28507:23;;;:17;:23;;;;;;;-1:-1:-1;;;28596:24:0;;:29;;28592:845;;29261:113;29268:6;29278:1;29268:11;29261:113;;-1:-1:-1;;;29339:6:0;29321:25;;;;:17;:25;;;;;;29261:113;;28592:845;28467:989;28441:1015;29484:31;;-1:-1:-1;;;29484:31:0;;;;;;;;;;;5085:132;4966:7;4993:6;-1:-1:-1;;;;;4993:6:0;55957:10;5149:23;5141:68;;;;-1:-1:-1;;;5141:68:0;;10621:2:1;5141:68:0;;;10603:21:1;;;10640:18;;;10633:30;10699:34;10679:18;;;10672:62;10751:18;;5141:68:0;10419:356:1;6187:191:0;6261:16;6280:6;;-1:-1:-1;;;;;6297:17:0;;;-1:-1:-1;;;;;;6297:17:0;;;;;;6330:40;;6280:6;;;;;;;6330:40;;6261:16;6330:40;6250:128;6187:191;:::o;49702:112::-;49779:27;49789:2;49793:8;49779:27;;;;;;;;;;;;:9;:27::i;42033:716::-;42217:88;;-1:-1:-1;;;42217:88:0;;42196:4;;-1:-1:-1;;;;;42217:45:0;;;;;:88;;55957:10;;42284:4;;42290:7;;42299:5;;42217:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;42217:88:0;;;;;;;;-1:-1:-1;;42217:88:0;;;;;;;;;;;;:::i;:::-;;;42213:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;42500:6;:13;42517:1;42500:18;42496:235;;42546:40;;-1:-1:-1;;;42546:40:0;;;;;;;;;;;42496:235;42689:6;42683:13;42674:6;42670:2;42666:15;42659:38;42213:529;-1:-1:-1;;;;;;42376:64:0;-1:-1:-1;;;42376:64:0;;-1:-1:-1;42213:529:0;42033:716;;;;;;:::o;58736:108::-;58796:13;58829:7;58822:14;;;;;:::i;56077:1745::-;56142:17;56576:4;56569;56563:11;56559:22;56668:1;56662:4;56655:15;56743:4;56740:1;56736:12;56729:19;;;56825:1;56820:3;56813:14;56929:3;57168:5;57150:428;57216:1;57211:3;57207:11;57200:18;;57387:2;57381:4;57377:13;57373:2;57369:22;57364:3;57356:36;57481:2;57471:13;;57538:25;57150:428;57538:25;-1:-1:-1;57608:13:0;;;-1:-1:-1;;57723:14:0;;;57785:19;;;57723:14;56077:1745;-1:-1:-1;56077:1745:0:o;48929:689::-;49060:19;49066:2;49070:8;49060:5;:19::i;:::-;-1:-1:-1;;;;;49121:14:0;;;:19;49117:483;;49175:13;;49223:14;;;49256:233;49287:62;49326:1;49330:2;49334:7;;;;;;49343:5;49287:30;:62::i;:::-;49282:167;;49385:40;;-1:-1:-1;;;49385:40:0;;;;;;;;;;;49282:167;49484:3;49476:5;:11;49256:233;;49571:3;49554:13;;:20;49550:34;;49576:8;;;49550:34;49142:458;;48929:689;;;:::o;43211:2966::-;43307:13;;43284:20;43335:13;;;43331:44;;43357:18;;-1:-1:-1;;;43357:18:0;;;;;;;;;;;43331:44;-1:-1:-1;;;;;43863:22:0;;;;;;:18;:22;;;;16923:2;43863:22;;;:71;;43901:32;43889:45;;43863:71;;;44177:31;;;:17;:31;;;;;-1:-1:-1;30913:15:0;;30887:24;30883:46;30482:11;30457:23;30453:41;30450:52;30440:63;;44177:173;;44412:23;;;;44177:31;;43863:22;;45177:25;43863:22;;45030:335;45691:1;45677:12;45673:20;45631:346;45732:3;45723:7;45720:16;45631:346;;45950:7;45940:8;45937:1;45910:25;45907:1;45904;45899:59;45785:1;45772:15;45631:346;;;45635:77;46010:8;46022:1;46010:13;46006:45;;46032:19;;-1:-1:-1;;;46032:19:0;;;;;;;;;;;46006:45;46068:13;:19;-1:-1:-1;38751:193:0;;;:::o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:131:1;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:258::-;664:1;674:113;688:6;685:1;682:13;674:113;;;764:11;;;758:18;745:11;;;738:39;710:2;703:10;674:113;;;805:6;802:1;799:13;796:48;;;-1:-1:-1;;840:1:1;822:16;;815:27;592:258::o;855:::-;897:3;935:5;929:12;962:6;957:3;950:19;978:63;1034:6;1027:4;1022:3;1018:14;1011:4;1004:5;1000:16;978:63;:::i;:::-;1095:2;1074:15;-1:-1:-1;;1070:29:1;1061:39;;;;1102:4;1057:50;;855:258;-1:-1:-1;;855:258:1:o;1118:220::-;1267:2;1256:9;1249:21;1230:4;1287:45;1328:2;1317:9;1313:18;1305:6;1287:45;:::i;1343:180::-;1402:6;1455:2;1443:9;1434:7;1430:23;1426:32;1423:52;;;1471:1;1468;1461:12;1423:52;-1:-1:-1;1494:23:1;;1343:180;-1:-1:-1;1343:180:1:o;1736:173::-;1804:20;;-1:-1:-1;;;;;1853:31:1;;1843:42;;1833:70;;1899:1;1896;1889:12;1833:70;1736:173;;;:::o;1914:254::-;1982:6;1990;2043:2;2031:9;2022:7;2018:23;2014:32;2011:52;;;2059:1;2056;2049:12;2011:52;2082:29;2101:9;2082:29;:::i;:::-;2072:39;2158:2;2143:18;;;;2130:32;;-1:-1:-1;;;1914:254:1:o;2355:328::-;2432:6;2440;2448;2501:2;2489:9;2480:7;2476:23;2472:32;2469:52;;;2517:1;2514;2507:12;2469:52;2540:29;2559:9;2540:29;:::i;:::-;2530:39;;2588:38;2622:2;2611:9;2607:18;2588:38;:::i;:::-;2578:48;;2673:2;2662:9;2658:18;2645:32;2635:42;;2355:328;;;;;:::o;2688:186::-;2747:6;2800:2;2788:9;2779:7;2775:23;2771:32;2768:52;;;2816:1;2813;2806:12;2768:52;2839:29;2858:9;2839:29;:::i;2879:127::-;2940:10;2935:3;2931:20;2928:1;2921:31;2971:4;2968:1;2961:15;2995:4;2992:1;2985:15;3011:632;3076:5;3106:18;3147:2;3139:6;3136:14;3133:40;;;3153:18;;:::i;:::-;3228:2;3222:9;3196:2;3282:15;;-1:-1:-1;;3278:24:1;;;3304:2;3274:33;3270:42;3258:55;;;3328:18;;;3348:22;;;3325:46;3322:72;;;3374:18;;:::i;:::-;3414:10;3410:2;3403:22;3443:6;3434:15;;3473:6;3465;3458:22;3513:3;3504:6;3499:3;3495:16;3492:25;3489:45;;;3530:1;3527;3520:12;3489:45;3580:6;3575:3;3568:4;3560:6;3556:17;3543:44;3635:1;3628:4;3619:6;3611;3607:19;3603:30;3596:41;;;;3011:632;;;;;:::o;3648:451::-;3717:6;3770:2;3758:9;3749:7;3745:23;3741:32;3738:52;;;3786:1;3783;3776:12;3738:52;3826:9;3813:23;3859:18;3851:6;3848:30;3845:50;;;3891:1;3888;3881:12;3845:50;3914:22;;3967:4;3959:13;;3955:27;-1:-1:-1;3945:55:1;;3996:1;3993;3986:12;3945:55;4019:74;4085:7;4080:2;4067:16;4062:2;4058;4054:11;4019:74;:::i;4104:347::-;4169:6;4177;4230:2;4218:9;4209:7;4205:23;4201:32;4198:52;;;4246:1;4243;4236:12;4198:52;4269:29;4288:9;4269:29;:::i;:::-;4259:39;;4348:2;4337:9;4333:18;4320:32;4395:5;4388:13;4381:21;4374:5;4371:32;4361:60;;4417:1;4414;4407:12;4361:60;4440:5;4430:15;;;4104:347;;;;;:::o;4456:667::-;4551:6;4559;4567;4575;4628:3;4616:9;4607:7;4603:23;4599:33;4596:53;;;4645:1;4642;4635:12;4596:53;4668:29;4687:9;4668:29;:::i;:::-;4658:39;;4716:38;4750:2;4739:9;4735:18;4716:38;:::i;:::-;4706:48;;4801:2;4790:9;4786:18;4773:32;4763:42;;4856:2;4845:9;4841:18;4828:32;4883:18;4875:6;4872:30;4869:50;;;4915:1;4912;4905:12;4869:50;4938:22;;4991:4;4983:13;;4979:27;-1:-1:-1;4969:55:1;;5020:1;5017;5010:12;4969:55;5043:74;5109:7;5104:2;5091:16;5086:2;5082;5078:11;5043:74;:::i;:::-;5033:84;;;4456:667;;;;;;;:::o;5128:260::-;5196:6;5204;5257:2;5245:9;5236:7;5232:23;5228:32;5225:52;;;5273:1;5270;5263:12;5225:52;5296:29;5315:9;5296:29;:::i;:::-;5286:39;;5344:38;5378:2;5367:9;5363:18;5344:38;:::i;:::-;5334:48;;5128:260;;;;;:::o;5393:380::-;5472:1;5468:12;;;;5515;;;5536:61;;5590:4;5582:6;5578:17;5568:27;;5536:61;5643:2;5635:6;5632:14;5612:18;5609:38;5606:161;;5689:10;5684:3;5680:20;5677:1;5670:31;5724:4;5721:1;5714:15;5752:4;5749:1;5742:15;5606:161;;5393:380;;;:::o;6832:127::-;6893:10;6888:3;6884:20;6881:1;6874:31;6924:4;6921:1;6914:15;6948:4;6945:1;6938:15;6964:128;7004:3;7035:1;7031:6;7028:1;7025:13;7022:39;;;7041:18;;:::i;:::-;-1:-1:-1;7077:9:1;;6964:128::o;8292:168::-;8332:7;8398:1;8394;8390:6;8386:14;8383:1;8380:21;8375:1;8368:9;8361:17;8357:45;8354:71;;;8405:18;;:::i;:::-;-1:-1:-1;8445:9:1;;8292:168::o;9370:637::-;9650:3;9688:6;9682:13;9704:53;9750:6;9745:3;9738:4;9730:6;9726:17;9704:53;:::i;:::-;9820:13;;9779:16;;;;9842:57;9820:13;9779:16;9876:4;9864:17;;9842:57;:::i;:::-;-1:-1:-1;;;9921:20:1;;9950:22;;;9999:1;9988:13;;9370:637;-1:-1:-1;;;;9370:637:1:o;10780:489::-;-1:-1:-1;;;;;11049:15:1;;;11031:34;;11101:15;;11096:2;11081:18;;11074:43;11148:2;11133:18;;11126:34;;;11196:3;11191:2;11176:18;;11169:31;;;10974:4;;11217:46;;11243:19;;11235:6;11217:46;:::i;:::-;11209:54;10780:489;-1:-1:-1;;;;;;10780:489:1:o;11274:249::-;11343:6;11396:2;11384:9;11375:7;11371:23;11367:32;11364:52;;;11412:1;11409;11402:12;11364:52;11444:9;11438:16;11463:30;11487:5;11463:30;:::i

Swarm Source

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