ETH Price: $2,643.47 (+2.29%)

Token

Cosmic Muffins (MUFFINS)
 

Overview

Max Total Supply

200 MUFFINS

Holders

36

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
jimmyt.eth
Balance
1 MUFFINS
0xd6e4f9693c05d8af67a40f1ccbc16318f6a5c524
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:
CosmicMuffins

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity Multiple files format)

File 2 of 6: CosmicMuffins.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

/*
 *    ________  ________  ________  _____ ______   ___  ________               
 *   |\   ____\|\   __  \|\   ____\|\   _ \  _   \|\  \|\   ____\              
 *   \ \  \___|\ \  \|\  \ \  \___|\ \  \\\__\ \  \ \  \ \  \___|              
 *    \ \  \    \ \  \\\  \ \_____  \ \  \\|__| \  \ \  \ \  \                 
 *     \ \  \____\ \  \\\  \|____|\  \ \  \    \ \  \ \  \ \  \____            
 *      \ \_______\ \_______\____\_\  \ \__\    \ \__\ \__\ \_______\          
 *       \|_______|\|_______|\_________\|__|     \|__|\|__|\|_______|          
 *                          \|_________|                                                                                             
 *    _____ ______   ___  ___  ________ ________ ___  ________   ________      
 *   |\   _ \  _   \|\  \|\  \|\  _____\\  _____\\  \|\   ___  \|\   ____\     
 *   \ \  \\\__\ \  \ \  \\\  \ \  \__/\ \  \__/\ \  \ \  \\ \  \ \  \___|_    
 *    \ \  \\|__| \  \ \  \\\  \ \   __\\ \   __\\ \  \ \  \\ \  \ \_____  \   
 *     \ \  \    \ \  \ \  \\\  \ \  \_| \ \  \_| \ \  \ \  \\ \  \|____|\  \  
 *      \ \__\    \ \__\ \_______\ \__\   \ \__\   \ \__\ \__\\ \__\____\_\  \ 
 *       \|__|     \|__|\|_______|\|__|    \|__|    \|__|\|__| \|__|\_________\
 *                                                                 \|_________|
 *   Creator/author/artist @brokenreality
 *   Dev @notmokk
*/

import "./Ownable.sol";
import "./ReentrancyGuard.sol";
import "./ERC721A.sol";

contract CosmicMuffins is ERC721A, Ownable, ReentrancyGuard {

    struct SaleConfig {
        uint32 publicSaleStartTime;
        uint64 publicPrice;
    }

    SaleConfig public saleConfig;

    constructor() ERC721A("Cosmic Muffins", "MUFFINS") {}

    modifier callerIsUser() {
        require(tx.origin == msg.sender, "The caller is another contract");
        _;
    }

    function mint(uint256 quantity) external payable callerIsUser {
        SaleConfig memory config = saleConfig;
        uint256 publicPrice = uint256(config.publicPrice);
        uint256 publicSaleStartTime = uint256(config.publicSaleStartTime);
        require(block.timestamp >= publicSaleStartTime, "Sale has not started");
        _safeMint(msg.sender, quantity);
        refundIfOver(publicPrice*quantity);
    }

    function refundIfOver(uint256 price) private {
        require(msg.value >= price, "Need to send more ETH.");
        if (msg.value > price) {
            payable(msg.sender).transfer(msg.value - price);
        }
    }

    // metadata URI
    string private _baseTokenURI;

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

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

    function setPublicSaleStartTime(uint32 timestamp) external onlyOwner {
        saleConfig.publicSaleStartTime = timestamp;
    }

    function setPublicPrice(uint64 price) external onlyOwner {
        saleConfig.publicPrice = price;
    }

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

    function getOwnershipData(uint256 tokenId)  external view returns (TokenOwnership memory) {
        return _ownershipOf(tokenId);
    }

}

File 1 of 6: Context.sol
// SPDX-License-Identifier: MIT
// 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 3 of 6: ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.1.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        string memory baseURI = _baseURI();
        string memory cUri = bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, _toString(tokenId))) : '';
        return string(abi.encodePacked(cUri, ".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 virtual override {
        address owner = ownerOf(tokenId);

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

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

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

        return _tokenApprovals[tokenId].value;
    }

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

        _operatorApprovals[_msgSenderERC721A()][operator] = approved;
        emit ApprovalForAll(_msgSenderERC721A(), operator, approved);
    }

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

            // Use assembly to loop and emit the `Transfer` event for gas savings.
            assembly {
                // Mask `to` to the lower 160 bits, in case the upper bits somehow aren't clean.
                toMasked := and(to, _BITMASK_ADDRESS)
                // Emit the `Transfer` event.
                log4(
                    0, // Start of data (0, since no data).
                    0, // End of data (0, since no data).
                    _TRANSFER_EVENT_SIGNATURE, // Signature.
                    0, // `address(0)`.
                    toMasked, // `to`.
                    startTokenId // `tokenId`.
                )

                for {
                    let tokenId := add(startTokenId, 1)
                } iszero(eq(tokenId, end)) {
                    tokenId := add(tokenId, 1)
                } {
                    // Emit the `Transfer` event. Similar to above.
                    log4(0, 0, _TRANSFER_EVENT_SIGNATURE, 0, toMasked, tokenId)
                }
            }
            if (toMasked == 0) revert MintToZeroAddress();

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

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

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

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

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

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

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

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

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

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

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

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

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

        address from = address(uint160(prevOwnershipPacked));

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Converts a uint256 to its ASCII string decimal representation.
     */
    function _toString(uint256 value) internal pure virtual returns (string memory ptr) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit),
            // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged.
            // We will need 1 32-byte word to store the length,
            // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128.
            ptr := add(mload(0x40), 128)
            // Update the free memory pointer to allocate.
            mstore(0x40, ptr)

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

            // We write the string from the rightmost digit to the leftmost digit.
            // The following is essentially a do-while loop that also handles the zero case.
            // Costs a bit more than early returning for the zero case,
            // but cheaper in terms of deployment and overall runtime costs.
            for {
                // Initialize and perform the first pass without check.
                let temp := value
                // Move the pointer 1 byte leftwards to point to an empty character slot.
                ptr := sub(ptr, 1)
                // Write the character to the pointer.
                // The ASCII index of the '0' character is 48.
                mstore8(ptr, add(48, mod(temp, 10)))
                temp := div(temp, 10)
            } temp {
                // Keep dividing `temp` until zero.
                temp := div(temp, 10)
            } {
                // Body of the for loop.
                ptr := sub(ptr, 1)
                mstore8(ptr, add(48, mod(temp, 10)))
            }

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

File 4 of 6: IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.1.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 5 of 6: Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)

pragma solidity ^0.8.0;

import "./Context.sol";

/**
 * @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 6 of 6: ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// 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;
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getOwnershipData","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleConfig","outputs":[{"internalType":"uint32","name":"publicSaleStartTime","type":"uint32"},{"internalType":"uint64","name":"publicPrice","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"price","type":"uint64"}],"name":"setPublicPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint32","name":"timestamp","type":"uint32"}],"name":"setPublicSaleStartTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawMoney","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b50604080518082018252600e81526d436f736d6963204d756666696e7360901b6020808301918252835180850190945260078452664d554646494e5360c81b9084015281519192916200006791600291620000ec565b5080516200007d906003906020840190620000ec565b505060008055506200008f336200009a565b6001600955620001cf565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620000fa9062000192565b90600052602060002090601f0160209004810192826200011e576000855562000169565b82601f106200013957805160ff191683800117855562000169565b8280016001018555821562000169579182015b82811115620001695782518255916020019190600101906200014c565b50620001779291506200017b565b5090565b5b808211156200017757600081556001016200017c565b600181811c90821680620001a757607f821691505b60208210811415620001c957634e487b7160e01b600052602260045260246000fd5b50919050565b611a0880620001df6000396000f3fe60806040526004361061018b5760003560e01c8063715018a6116100d6578063a22cb4651161007f578063c87b56dd11610059578063c87b56dd146104b7578063e985e9c5146104d7578063f2fde38b1461052057600080fd5b8063a22cb46514610462578063ac44600214610482578063b88d4fde1461049757600080fd5b80639231ab2a116100b05780639231ab2a146103cd57806395d89b411461043a578063a0712d681461044f57600080fd5b8063715018a6146103445780638da5cb5b1461035957806390aa0b0f1461037757600080fd5b806323b872dd116101385780635fd84c28116101125780635fd84c28146102e45780636352211e1461030457806370a082311461032457600080fd5b806323b872dd1461028457806342842e0e146102a457806355f804b3146102c457600080fd5b8063095ea7b311610169578063095ea7b31461021f5780630c29dbae1461024157806318160ddd1461026157600080fd5b806301ffc9a71461019057806306fdde03146101c5578063081812fc146101e7575b600080fd5b34801561019c57600080fd5b506101b06101ab366004611521565b610540565b60405190151581526020015b60405180910390f35b3480156101d157600080fd5b506101da6105dd565b6040516101bc9190611596565b3480156101f357600080fd5b506102076102023660046115a9565b61066f565b6040516001600160a01b0390911681526020016101bc565b34801561022b57600080fd5b5061023f61023a3660046115de565b6106cc565b005b34801561024d57600080fd5b5061023f61025c366004611608565b610792565b34801561026d57600080fd5b50600154600054035b6040519081526020016101bc565b34801561029057600080fd5b5061023f61029f366004611632565b6107ca565b3480156102b057600080fd5b5061023f6102bf366004611632565b6109a7565b3480156102d057600080fd5b5061023f6102df36600461166e565b6109c7565b3480156102f057600080fd5b5061023f6102ff3660046116e0565b6109db565b34801561031057600080fd5b5061020761031f3660046115a9565b6109ff565b34801561033057600080fd5b5061027661033f366004611706565b610a0a565b34801561035057600080fd5b5061023f610a72565b34801561036557600080fd5b506008546001600160a01b0316610207565b34801561038357600080fd5b50600a546103a89063ffffffff811690640100000000900467ffffffffffffffff1682565b6040805163ffffffff909316835267ffffffffffffffff9091166020830152016101bc565b3480156103d957600080fd5b506103ed6103e83660046115a9565b610a86565b6040516101bc919081516001600160a01b0316815260208083015167ffffffffffffffff169082015260408083015115159082015260609182015162ffffff169181019190915260800190565b34801561044657600080fd5b506101da610ab3565b61023f61045d3660046115a9565b610ac2565b34801561046e57600080fd5b5061023f61047d366004611721565b610bba565b34801561048e57600080fd5b5061023f610c69565b3480156104a357600080fd5b5061023f6104b2366004611773565b610d69565b3480156104c357600080fd5b506101da6104d23660046115a9565b610dad565b3480156104e357600080fd5b506101b06104f236600461184f565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561052c57600080fd5b5061023f61053b366004611706565b610e71565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614806105a357507f80ac58cd000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b806105d757507f5b5e139f000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b6060600280546105ec90611882565b80601f016020809104026020016040519081016040528092919081815260200182805461061890611882565b80156106655780601f1061063a57610100808354040283529160200191610665565b820191906000526020600020905b81548152906001019060200180831161064857829003601f168201915b5050505050905090565b600061067a82610f01565b6106b0576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006106d7826109ff565b9050336001600160a01b03821614610729576106f381336104f2565b610729576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082815260066020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b61079a610f28565b600a805467ffffffffffffffff909216640100000000026bffffffffffffffff0000000019909216919091179055565b60006107d582610f82565b9050836001600160a01b0316816001600160a01b031614610822576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b038816909114176108885761085286336104f2565b610888576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b0385166108c8576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80156108d357600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040902055600160e11b831661095e576001840160008181526004602052604090205461095c57600054811461095c5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b6109c283838360405180602001604052806000815250610d69565b505050565b6109cf610f28565b6109c2600b8383611472565b6109e3610f28565b600a805463ffffffff191663ffffffff92909216919091179055565b60006105d782610f82565b60006001600160a01b038216610a4c576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610a7a610f28565b610a846000611003565b565b6040805160808101825260008082526020820181905291810182905260608101919091526105d782611062565b6060600380546105ec90611882565b323314610b165760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e7472616374000060448201526064015b60405180910390fd5b60408051808201909152600a5463ffffffff811680835264010000000090910467ffffffffffffffff16602083018190529042811115610b985760405162461bcd60e51b815260206004820152601460248201527f53616c6520686173206e6f7420737461727465640000000000000000000000006044820152606401610b0d565b610ba233856110da565b610bb4610baf85846118d3565b6110f8565b50505050565b6001600160a01b038216331415610bfd576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610c71610f28565b60026009541415610cc45760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b0d565b6002600955604051600090339047908381818185875af1925050503d8060008114610d0b576040519150601f19603f3d011682016040523d82523d6000602084013e610d10565b606091505b5050905080610d615760405162461bcd60e51b815260206004820152601060248201527f5472616e73666572206661696c65642e000000000000000000000000000000006044820152606401610b0d565b506001600955565b610d748484846107ca565b6001600160a01b0383163b15610bb457610d9084848484611186565b610bb4576040516368d2bf6b60e11b815260040160405180910390fd5b6060610db882610f01565b610dee576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610df861127d565b90506000815160001415610e1b5760405180602001604052806000815250610e46565b81610e258561128c565b604051602001610e369291906118f2565b6040516020818303038152906040525b905080604051602001610e599190611921565b60405160208183030381529060405292505050919050565b610e79610f28565b6001600160a01b038116610ef55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b0d565b610efe81611003565b50565b60008054821080156105d7575050600090815260046020526040902054600160e01b161590565b6008546001600160a01b03163314610a845760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b0d565b600081600054811015610fd157600081815260046020526040902054600160e01b8116610fcf575b80610fc8575060001901600081815260046020526040902054610faa565b9392505050565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600880546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040805160808101825260008082526020820181905291810182905260608101919091526105d761109283610f82565b604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b6110f48282604051806020016040528060008152506112db565b5050565b803410156111485760405162461bcd60e51b815260206004820152601660248201527f4e65656420746f2073656e64206d6f7265204554482e000000000000000000006044820152606401610b0d565b80341115610efe57336108fc61115e8334611962565b6040518115909202916000818181858888f193505050501580156110f4573d6000803e3d6000fd5b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906111bb903390899088908890600401611979565b602060405180830381600087803b1580156111d557600080fd5b505af1925050508015611205575060408051601f3d908101601f19168201909252611202918101906119b5565b60015b611260573d808015611233576040519150601f19603f3d011682016040523d82523d6000602084013e611238565b606091505b508051611258576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6060600b80546105ec90611882565b604080516080810191829052607f0190826030600a8206018353600a90045b80156112c957600183039250600a81066030018353600a90046112ab565b50819003601f19909101908152919050565b6112e58383611348565b6001600160a01b0383163b156109c2576000548281035b61130f6000868380600101945086611186565b61132c576040516368d2bf6b60e11b815260040160405180910390fd5b8181106112fc57816000541461134157600080fd5b5050505050565b60005481611382576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461143157808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016113f9565b5081611469576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005550505050565b82805461147e90611882565b90600052602060002090601f0160209004810192826114a057600085556114e6565b82601f106114b95782800160ff198235161785556114e6565b828001600101855582156114e6579182015b828111156114e65782358255916020019190600101906114cb565b506114f29291506114f6565b5090565b5b808211156114f257600081556001016114f7565b6001600160e01b031981168114610efe57600080fd5b60006020828403121561153357600080fd5b8135610fc88161150b565b60005b83811015611559578181015183820152602001611541565b83811115610bb45750506000910152565b6000815180845261158281602086016020860161153e565b601f01601f19169290920160200192915050565b602081526000610fc8602083018461156a565b6000602082840312156115bb57600080fd5b5035919050565b80356001600160a01b03811681146115d957600080fd5b919050565b600080604083850312156115f157600080fd5b6115fa836115c2565b946020939093013593505050565b60006020828403121561161a57600080fd5b813567ffffffffffffffff81168114610fc857600080fd5b60008060006060848603121561164757600080fd5b611650846115c2565b925061165e602085016115c2565b9150604084013590509250925092565b6000806020838503121561168157600080fd5b823567ffffffffffffffff8082111561169957600080fd5b818501915085601f8301126116ad57600080fd5b8135818111156116bc57600080fd5b8660208285010111156116ce57600080fd5b60209290920196919550909350505050565b6000602082840312156116f257600080fd5b813563ffffffff81168114610fc857600080fd5b60006020828403121561171857600080fd5b610fc8826115c2565b6000806040838503121561173457600080fd5b61173d836115c2565b91506020830135801515811461175257600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561178957600080fd5b611792856115c2565b93506117a0602086016115c2565b925060408501359150606085013567ffffffffffffffff808211156117c457600080fd5b818701915087601f8301126117d857600080fd5b8135818111156117ea576117ea61175d565b604051601f8201601f19908116603f011681019083821181831017156118125761181261175d565b816040528281528a602084870101111561182b57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561186257600080fd5b61186b836115c2565b9150611879602084016115c2565b90509250929050565b600181811c9082168061189657607f821691505b602082108114156118b757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156118ed576118ed6118bd565b500290565b6000835161190481846020880161153e565b83519083019061191881836020880161153e565b01949350505050565b6000825161193381846020870161153e565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000920191825250600501919050565b600082821015611974576119746118bd565b500390565b60006001600160a01b038087168352808616602084015250836040830152608060608301526119ab608083018461156a565b9695505050505050565b6000602082840312156119c757600080fd5b8151610fc88161150b56fea2646970667358221220e088938d1d7f2daa410d73092b1e7e7de3f917aaf880f25710ec683a4043d4d164736f6c63430008090033

Deployed Bytecode

0x60806040526004361061018b5760003560e01c8063715018a6116100d6578063a22cb4651161007f578063c87b56dd11610059578063c87b56dd146104b7578063e985e9c5146104d7578063f2fde38b1461052057600080fd5b8063a22cb46514610462578063ac44600214610482578063b88d4fde1461049757600080fd5b80639231ab2a116100b05780639231ab2a146103cd57806395d89b411461043a578063a0712d681461044f57600080fd5b8063715018a6146103445780638da5cb5b1461035957806390aa0b0f1461037757600080fd5b806323b872dd116101385780635fd84c28116101125780635fd84c28146102e45780636352211e1461030457806370a082311461032457600080fd5b806323b872dd1461028457806342842e0e146102a457806355f804b3146102c457600080fd5b8063095ea7b311610169578063095ea7b31461021f5780630c29dbae1461024157806318160ddd1461026157600080fd5b806301ffc9a71461019057806306fdde03146101c5578063081812fc146101e7575b600080fd5b34801561019c57600080fd5b506101b06101ab366004611521565b610540565b60405190151581526020015b60405180910390f35b3480156101d157600080fd5b506101da6105dd565b6040516101bc9190611596565b3480156101f357600080fd5b506102076102023660046115a9565b61066f565b6040516001600160a01b0390911681526020016101bc565b34801561022b57600080fd5b5061023f61023a3660046115de565b6106cc565b005b34801561024d57600080fd5b5061023f61025c366004611608565b610792565b34801561026d57600080fd5b50600154600054035b6040519081526020016101bc565b34801561029057600080fd5b5061023f61029f366004611632565b6107ca565b3480156102b057600080fd5b5061023f6102bf366004611632565b6109a7565b3480156102d057600080fd5b5061023f6102df36600461166e565b6109c7565b3480156102f057600080fd5b5061023f6102ff3660046116e0565b6109db565b34801561031057600080fd5b5061020761031f3660046115a9565b6109ff565b34801561033057600080fd5b5061027661033f366004611706565b610a0a565b34801561035057600080fd5b5061023f610a72565b34801561036557600080fd5b506008546001600160a01b0316610207565b34801561038357600080fd5b50600a546103a89063ffffffff811690640100000000900467ffffffffffffffff1682565b6040805163ffffffff909316835267ffffffffffffffff9091166020830152016101bc565b3480156103d957600080fd5b506103ed6103e83660046115a9565b610a86565b6040516101bc919081516001600160a01b0316815260208083015167ffffffffffffffff169082015260408083015115159082015260609182015162ffffff169181019190915260800190565b34801561044657600080fd5b506101da610ab3565b61023f61045d3660046115a9565b610ac2565b34801561046e57600080fd5b5061023f61047d366004611721565b610bba565b34801561048e57600080fd5b5061023f610c69565b3480156104a357600080fd5b5061023f6104b2366004611773565b610d69565b3480156104c357600080fd5b506101da6104d23660046115a9565b610dad565b3480156104e357600080fd5b506101b06104f236600461184f565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561052c57600080fd5b5061023f61053b366004611706565b610e71565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614806105a357507f80ac58cd000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b806105d757507f5b5e139f000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b6060600280546105ec90611882565b80601f016020809104026020016040519081016040528092919081815260200182805461061890611882565b80156106655780601f1061063a57610100808354040283529160200191610665565b820191906000526020600020905b81548152906001019060200180831161064857829003601f168201915b5050505050905090565b600061067a82610f01565b6106b0576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006106d7826109ff565b9050336001600160a01b03821614610729576106f381336104f2565b610729576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082815260066020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b61079a610f28565b600a805467ffffffffffffffff909216640100000000026bffffffffffffffff0000000019909216919091179055565b60006107d582610f82565b9050836001600160a01b0316816001600160a01b031614610822576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b038816909114176108885761085286336104f2565b610888576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b0385166108c8576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80156108d357600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040902055600160e11b831661095e576001840160008181526004602052604090205461095c57600054811461095c5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b6109c283838360405180602001604052806000815250610d69565b505050565b6109cf610f28565b6109c2600b8383611472565b6109e3610f28565b600a805463ffffffff191663ffffffff92909216919091179055565b60006105d782610f82565b60006001600160a01b038216610a4c576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610a7a610f28565b610a846000611003565b565b6040805160808101825260008082526020820181905291810182905260608101919091526105d782611062565b6060600380546105ec90611882565b323314610b165760405162461bcd60e51b815260206004820152601e60248201527f5468652063616c6c657220697320616e6f7468657220636f6e7472616374000060448201526064015b60405180910390fd5b60408051808201909152600a5463ffffffff811680835264010000000090910467ffffffffffffffff16602083018190529042811115610b985760405162461bcd60e51b815260206004820152601460248201527f53616c6520686173206e6f7420737461727465640000000000000000000000006044820152606401610b0d565b610ba233856110da565b610bb4610baf85846118d3565b6110f8565b50505050565b6001600160a01b038216331415610bfd576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610c71610f28565b60026009541415610cc45760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610b0d565b6002600955604051600090339047908381818185875af1925050503d8060008114610d0b576040519150601f19603f3d011682016040523d82523d6000602084013e610d10565b606091505b5050905080610d615760405162461bcd60e51b815260206004820152601060248201527f5472616e73666572206661696c65642e000000000000000000000000000000006044820152606401610b0d565b506001600955565b610d748484846107ca565b6001600160a01b0383163b15610bb457610d9084848484611186565b610bb4576040516368d2bf6b60e11b815260040160405180910390fd5b6060610db882610f01565b610dee576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610df861127d565b90506000815160001415610e1b5760405180602001604052806000815250610e46565b81610e258561128c565b604051602001610e369291906118f2565b6040516020818303038152906040525b905080604051602001610e599190611921565b60405160208183030381529060405292505050919050565b610e79610f28565b6001600160a01b038116610ef55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b0d565b610efe81611003565b50565b60008054821080156105d7575050600090815260046020526040902054600160e01b161590565b6008546001600160a01b03163314610a845760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b0d565b600081600054811015610fd157600081815260046020526040902054600160e01b8116610fcf575b80610fc8575060001901600081815260046020526040902054610faa565b9392505050565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600880546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040805160808101825260008082526020820181905291810182905260608101919091526105d761109283610f82565b604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b6110f48282604051806020016040528060008152506112db565b5050565b803410156111485760405162461bcd60e51b815260206004820152601660248201527f4e65656420746f2073656e64206d6f7265204554482e000000000000000000006044820152606401610b0d565b80341115610efe57336108fc61115e8334611962565b6040518115909202916000818181858888f193505050501580156110f4573d6000803e3d6000fd5b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906111bb903390899088908890600401611979565b602060405180830381600087803b1580156111d557600080fd5b505af1925050508015611205575060408051601f3d908101601f19168201909252611202918101906119b5565b60015b611260573d808015611233576040519150601f19603f3d011682016040523d82523d6000602084013e611238565b606091505b508051611258576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6060600b80546105ec90611882565b604080516080810191829052607f0190826030600a8206018353600a90045b80156112c957600183039250600a81066030018353600a90046112ab565b50819003601f19909101908152919050565b6112e58383611348565b6001600160a01b0383163b156109c2576000548281035b61130f6000868380600101945086611186565b61132c576040516368d2bf6b60e11b815260040160405180910390fd5b8181106112fc57816000541461134157600080fd5b5050505050565b60005481611382576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b81811461143157808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016113f9565b5081611469576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005550505050565b82805461147e90611882565b90600052602060002090601f0160209004810192826114a057600085556114e6565b82601f106114b95782800160ff198235161785556114e6565b828001600101855582156114e6579182015b828111156114e65782358255916020019190600101906114cb565b506114f29291506114f6565b5090565b5b808211156114f257600081556001016114f7565b6001600160e01b031981168114610efe57600080fd5b60006020828403121561153357600080fd5b8135610fc88161150b565b60005b83811015611559578181015183820152602001611541565b83811115610bb45750506000910152565b6000815180845261158281602086016020860161153e565b601f01601f19169290920160200192915050565b602081526000610fc8602083018461156a565b6000602082840312156115bb57600080fd5b5035919050565b80356001600160a01b03811681146115d957600080fd5b919050565b600080604083850312156115f157600080fd5b6115fa836115c2565b946020939093013593505050565b60006020828403121561161a57600080fd5b813567ffffffffffffffff81168114610fc857600080fd5b60008060006060848603121561164757600080fd5b611650846115c2565b925061165e602085016115c2565b9150604084013590509250925092565b6000806020838503121561168157600080fd5b823567ffffffffffffffff8082111561169957600080fd5b818501915085601f8301126116ad57600080fd5b8135818111156116bc57600080fd5b8660208285010111156116ce57600080fd5b60209290920196919550909350505050565b6000602082840312156116f257600080fd5b813563ffffffff81168114610fc857600080fd5b60006020828403121561171857600080fd5b610fc8826115c2565b6000806040838503121561173457600080fd5b61173d836115c2565b91506020830135801515811461175257600080fd5b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561178957600080fd5b611792856115c2565b93506117a0602086016115c2565b925060408501359150606085013567ffffffffffffffff808211156117c457600080fd5b818701915087601f8301126117d857600080fd5b8135818111156117ea576117ea61175d565b604051601f8201601f19908116603f011681019083821181831017156118125761181261175d565b816040528281528a602084870101111561182b57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561186257600080fd5b61186b836115c2565b9150611879602084016115c2565b90509250929050565b600181811c9082168061189657607f821691505b602082108114156118b757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156118ed576118ed6118bd565b500290565b6000835161190481846020880161153e565b83519083019061191881836020880161153e565b01949350505050565b6000825161193381846020870161153e565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000920191825250600501919050565b600082821015611974576119746118bd565b500390565b60006001600160a01b038087168352808616602084015250836040830152608060608301526119ab608083018461156a565b9695505050505050565b6000602082840312156119c757600080fd5b8151610fc88161150b56fea2646970667358221220e088938d1d7f2daa410d73092b1e7e7de3f917aaf880f25710ec683a4043d4d164736f6c63430008090033

Deployed Bytecode Sourcemap

1539:1886:1:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9112:630:2;;;;;;;;;;-1:-1:-1;9112:630:2;;;;;:::i;:::-;;:::i;:::-;;;611:14:6;;604:22;586:41;;574:2;559:18;9112:630:2;;;;;;;;9996:98;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;16379:214::-;;;;;;;;;;-1:-1:-1;16379:214:2;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1738:55:6;;;1720:74;;1708:2;1693:18;16379:214:2;1574:226:6;15839:390:2;;;;;;;;;;-1:-1:-1;15839:390:2;;;;;:::i;:::-;;:::i;:::-;;2983:104:1;;;;;;;;;;-1:-1:-1;2983:104:1;;;;;:::i;:::-;;:::i;5851:317:2:-;;;;;;;;;;-1:-1:-1;6121:12:2;;5912:7;6105:13;:28;5851:317;;;2700:25:6;;;2688:2;2673:18;5851:317:2;2554:177:6;19988:2756:2;;;;;;;;;;-1:-1:-1;19988:2756:2;;;;;:::i;:::-;;:::i;22835:179::-;;;;;;;;;;-1:-1:-1;22835:179:2;;;;;:::i;:::-;;:::i;2739:104:1:-;;;;;;;;;;-1:-1:-1;2739:104:1;;;;;:::i;:::-;;:::i;2849:128::-;;;;;;;;;;-1:-1:-1;2849:128:1;;;;;:::i;:::-;;:::i;11418:150:2:-;;;;;;;;;;-1:-1:-1;11418:150:2;;;;;:::i;:::-;;:::i;7002:230::-;;;;;;;;;;-1:-1:-1;7002:230:2;;;;;:::i;:::-;;:::i;1824:101:4:-;;;;;;;;;;;;;:::i;1194:85::-;;;;;;;;;;-1:-1:-1;1266:6:4;;-1:-1:-1;;;;;1266:6:4;1194:85;;1701:28:1;;;;;;;;;;-1:-1:-1;1701:28:1;;;;;;;;;;;;;;;;;;;4338:10:6;4326:23;;;4308:42;;4398:18;4386:31;;;4381:2;4366:18;;4359:59;4281:18;1701:28:1;4138:286:6;3287:135:1;;;;;;;;;;-1:-1:-1;3287:135:1;;;;;:::i;:::-;;:::i;:::-;;;;;;4662:13:6;;-1:-1:-1;;;;;4658:62:6;4640:81;;4781:4;4769:17;;;4763:24;4789:18;4759:49;4737:20;;;4730:79;4879:4;4867:17;;;4861:24;4854:32;4847:40;4825:20;;;4818:70;4948:4;4936:17;;;4930:24;4956:8;4926:39;4904:20;;;4897:69;;;;4627:3;4612:19;;4429:543;10165:102:2;;;;;;;;;;;;;:::i;1919:416:1:-;;;;;;:::i;:::-;;:::i;16920:303:2:-;;;;;;;;;;-1:-1:-1;16920:303:2;;;;;:::i;:::-;;:::i;3093:188:1:-;;;;;;;;;;;;;:::i;23595:388:2:-;;;;;;;;;;-1:-1:-1;23595:388:2;;;;;:::i;:::-;;:::i;10368:383::-;;;;;;;;;;-1:-1:-1;10368:383:2;;;;;:::i;:::-;;:::i;17373:162::-;;;;;;;;;;-1:-1:-1;17373:162:2;;;;;:::i;:::-;-1:-1:-1;;;;;17493:25:2;;;17470:4;17493:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;17373:162;2074:198:4;;;;;;;;;;-1:-1:-1;2074:198:4;;;;;:::i;:::-;;:::i;9112:630:2:-;9197:4;9515:25;-1:-1:-1;;;;;;9515:25:2;;;;:101;;-1:-1:-1;9591:25:2;-1:-1:-1;;;;;;9591:25:2;;;9515:101;:177;;;-1:-1:-1;9667:25:2;-1:-1:-1;;;;;;9667:25:2;;;9515:177;9496:196;9112:630;-1:-1:-1;;9112:630:2:o;9996:98::-;10050:13;10082:5;10075:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;9996:98;:::o;16379:214::-;16455:7;16479:16;16487:7;16479;:16::i;:::-;16474:64;;16504:34;;;;;;;;;;;;;;16474:64;-1:-1:-1;16556:24:2;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;16556:30:2;;16379:214::o;15839:390::-;15919:13;15935:16;15943:7;15935;:16::i;:::-;15919:32;-1:-1:-1;39078:10:2;-1:-1:-1;;;;;15966:28:2;;;15962:172;;16013:44;16030:5;39078:10;17373:162;:::i;16013:44::-;16008:126;;16084:35;;;;;;;;;;;;;;16008:126;16144:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;16144:35:2;-1:-1:-1;;;;;16144:35:2;;;;;;;;;16194:28;;16144:24;;16194:28;;;;;;;15909:320;15839:390;;:::o;2983:104:1:-;1087:13:4;:11;:13::i;:::-;3050:10:1::1;:30:::0;;::::1;::::0;;::::1;::::0;::::1;-1:-1:-1::0;;3050:30:1;;::::1;::::0;;;::::1;::::0;;2983:104::o;19988:2756:2:-;20117:27;20147;20166:7;20147:18;:27::i;:::-;20117:57;;20230:4;-1:-1:-1;;;;;20189:45:2;20205:19;-1:-1:-1;;;;;20189:45:2;;20185:86;;20243:28;;;;;;;;;;;;;;20185:86;20283:27;19127:24;;;:15;:24;;;;;19345:26;;39078:10;18764:30;;;-1:-1:-1;;;;;18461:28:2;;18742:20;;;18739:56;20466:179;;20558:43;20575:4;39078:10;17373:162;:::i;20558:43::-;20553:92;;20610:35;;;;;;;;;;;;;;20553:92;-1:-1:-1;;;;;20660:16:2;;20656:52;;20685:23;;;;;;;;;;;;;;20656:52;20851:15;20848:157;;;20989:1;20968:19;20961:30;20848:157;-1:-1:-1;;;;;21377:24:2;;;;;;;:18;:24;;;;;;21375:26;;-1:-1:-1;;21375:26:2;;;21445:22;;;;;;;;;21443:24;;-1:-1:-1;21443:24:2;;;14730:11;14705:23;14701:41;14688:63;-1:-1:-1;;;14688:63:2;21731:26;;;;:17;:26;;;;;:172;-1:-1:-1;;;22020:47:2;;22016:617;;22124:1;22114:11;;22092:19;22245:30;;;:17;:30;;;;;;22241:378;;22381:13;;22366:11;:28;22362:239;;22526:30;;;;:17;:30;;;;;:52;;;22362:239;22074:559;22016:617;22677:7;22673:2;-1:-1:-1;;;;;22658:27:2;22667:4;-1:-1:-1;;;;;22658:27:2;;;;;;;;;;;20107:2637;;;19988:2756;;;:::o;22835:179::-;22968:39;22985:4;22991:2;22995:7;22968:39;;;;;;;;;;;;:16;:39::i;:::-;22835:179;;;:::o;2739:104:1:-;1087:13:4;:11;:13::i;:::-;2813:23:1::1;:13;2829:7:::0;;2813:23:::1;:::i;2849:128::-:0;1087:13:4;:11;:13::i;:::-;2928:10:1::1;:42:::0;;-1:-1:-1;;2928:42:1::1;;::::0;;;::::1;::::0;;;::::1;::::0;;2849:128::o;11418:150:2:-;11490:7;11532:27;11551:7;11532:18;:27::i;7002:230::-;7074:7;-1:-1:-1;;;;;7097:19:2;;7093:60;;7125:28;;;;;;;;;;;;;;7093:60;-1:-1:-1;;;;;;7170:25:2;;;;;:18;:25;;;;;;1317:13;7170:55;;7002:230::o;1824:101:4:-;1087:13;:11;:13::i;:::-;1888:30:::1;1915:1;1888:18;:30::i;:::-;1824:101::o:0;3287:135:1:-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3394:21:1;3407:7;3394:12;:21::i;10165:102:2:-;10221:13;10253:7;10246:14;;;;;:::i;1919:416:1:-;1837:9;1850:10;1837:23;1829:66;;;;-1:-1:-1;;;1829:66:1;;7570:2:6;1829:66:1;;;7552:21:6;7609:2;7589:18;;;7582:30;7648:32;7628:18;;;7621:60;7698:18;;1829:66:1;;;;;;;;;1991:37:::1;::::0;;;;::::1;::::0;;;2018:10:::1;1991:37:::0;::::1;::::0;::::1;::::0;;;;;;::::1;;;;::::0;::::1;::::0;;;;2180:15:::1;-1:-1:-1::0;;2180:38:1::1;2172:71;;;::::0;-1:-1:-1;;;2172:71:1;;7929:2:6;2172:71:1::1;::::0;::::1;7911:21:6::0;7968:2;7948:18;;;7941:30;8007:22;7987:18;;;7980:50;8047:18;;2172:71:1::1;7727:344:6::0;2172:71:1::1;2253:31;2263:10;2275:8;2253:9;:31::i;:::-;2294:34;2307:20;2319:8:::0;2307:11;:20:::1;:::i;:::-;2294:12;:34::i;:::-;1981:354;;;1919:416:::0;:::o;16920:303:2:-;-1:-1:-1;;;;;17018:31:2;;39078:10;17018:31;17014:61;;;17058:17;;;;;;;;;;;;;;17014:61;39078:10;17086:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;17086:49:2;;;;;;;;;;;;:60;;-1:-1:-1;;17086:60:2;;;;;;;;;;17161:55;;586:41:6;;;17086:49:2;;39078:10;17161:55;;559:18:6;17161:55:2;;;;;;;16920:303;;:::o;3093:188:1:-;1087:13:4;:11;:13::i;:::-;1744:1:5::1;2325:7;;:19;;2317:63;;;::::0;-1:-1:-1;;;2317:63:5;;8640:2:6;2317:63:5::1;::::0;::::1;8622:21:6::0;8679:2;8659:18;;;8652:30;8718:33;8698:18;;;8691:61;8769:18;;2317:63:5::1;8438:355:6::0;2317:63:5::1;1744:1;2455:7;:18:::0;3179:49:1::2;::::0;3161:12:::2;::::0;3179:10:::2;::::0;3202:21:::2;::::0;3161:12;3179:49;3161:12;3179:49;3202:21;3179:10;:49:::2;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3160:68;;;3246:7;3238:36;;;::::0;-1:-1:-1;;;3238:36:1;;9210:2:6;3238:36:1::2;::::0;::::2;9192:21:6::0;9249:2;9229:18;;;9222:30;9288:18;9268;;;9261:46;9324:18;;3238:36:1::2;9008:340:6::0;3238:36:1::2;-1:-1:-1::0;1701:1:5::1;2628:7;:22:::0;3093:188:1:o;23595:388:2:-;23756:31;23769:4;23775:2;23779:7;23756:12;:31::i;:::-;-1:-1:-1;;;;;23801:14:2;;;:19;23797:180;;23839:56;23870:4;23876:2;23880:7;23889:5;23839:30;:56::i;:::-;23834:143;;23922:40;;-1:-1:-1;;;23922:40:2;;;;;;;;;;;10368:383;10441:13;10471:16;10479:7;10471;:16::i;:::-;10466:59;;10496:29;;;;;;;;;;;;;;10466:59;10536:21;10560:10;:8;:10::i;:::-;10536:34;;10580:18;10607:7;10601:21;10626:1;10601:26;;:87;;;;;;;;;;;;;;;;;10654:7;10663:18;10673:7;10663:9;:18::i;:::-;10637:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;10601:87;10580:108;;10729:4;10712:31;;;;;;;;:::i;:::-;;;;;;;;;;;;;10698:46;;;;10368:383;;;:::o;2074:198:4:-;1087:13;:11;:13::i;:::-;-1:-1:-1;;;;;2162:22:4;::::1;2154:73;;;::::0;-1:-1:-1;;;2154:73:4;;10478:2:6;2154:73:4::1;::::0;::::1;10460:21:6::0;10517:2;10497:18;;;10490:30;10556:34;10536:18;;;10529:62;10627:8;10607:18;;;10600:36;10653:19;;2154:73:4::1;10276:402:6::0;2154:73:4::1;2237:28;2256:8;2237:18;:28::i;:::-;2074:198:::0;:::o;17784:277:2:-;17849:4;17936:13;;17926:7;:23;17884:151;;;;-1:-1:-1;;17986:26:2;;;;:17;:26;;;;;;-1:-1:-1;;;17986:44:2;:49;;17784:277::o;1352:130:4:-;1266:6;;-1:-1:-1;;;;;1266:6:4;39078:10:2;1415:23:4;1407:68;;;;-1:-1:-1;;;1407:68:4;;10885:2:6;1407:68:4;;;10867:21:6;;;10904:18;;;10897:30;10963:34;10943:18;;;10936:62;11015:18;;1407:68:4;10683:356:6;12542:1249:2;12609:7;12643;12741:13;;12734:4;:20;12730:997;;;12778:14;12795:23;;;:17;:23;;;;;;-1:-1:-1;;;12882:24:2;;12878:831;;13537:111;13544:11;13537:111;;-1:-1:-1;;;13614:6:2;13596:25;;;;:17;:25;;;;;;13537:111;;;13680:6;12542:1249;-1:-1:-1;;;12542:1249:2:o;12878:831::-;12756:971;12730:997;13753:31;;;;;;;;;;;;;;2426:187:4;2518:6;;;-1:-1:-1;;;;;2534:17:4;;;-1:-1:-1;;2534:17:4;;;;;;;2566:40;;2518:6;;;2534:17;2518:6;;2566:40;;2499:16;;2566:40;2489:124;2426:187;:::o;11751:164:2:-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;11861:47:2;11880:27;11899:7;11880:18;:27::i;:::-;-1:-1:-1;;;;;;;;;;;;;13994:41:2;;;;1961:3;14079:33;;;14045:68;;-1:-1:-1;;;14045:68:2;-1:-1:-1;;;14142:24:2;;:29;;-1:-1:-1;;;14123:48:2;;;;2470:3;14210:28;;;;-1:-1:-1;;;14181:58:2;-1:-1:-1;13885:361:2;32978:110;33054:27;33064:2;33068:8;33054:27;;;;;;;;;;;;:9;:27::i;:::-;32978:110;;:::o;2341:219:1:-;2417:5;2404:9;:18;;2396:53;;;;-1:-1:-1;;;2396:53:1;;11246:2:6;2396:53:1;;;11228:21:6;11285:2;11265:18;;;11258:30;11324:24;11304:18;;;11297:52;11366:18;;2396:53:1;11044:346:6;2396:53:1;2475:5;2463:9;:17;2459:95;;;2504:10;2496:47;2525:17;2537:5;2525:9;:17;:::i;:::-;2496:47;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;26009:697:2;26187:88;;-1:-1:-1;;;26187:88:2;;26167:4;;-1:-1:-1;;;;;26187:45:2;;;;;:88;;39078:10;;26254:4;;26260:7;;26269:5;;26187:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;26187:88:2;;;;;;;;-1:-1:-1;;26187:88:2;;;;;;;;;;;;:::i;:::-;;;26183:517;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;26465:13:2;;26461:229;;26510:40;;-1:-1:-1;;;26510:40:2;;;;;;;;;;;26461:229;26650:6;26644:13;26635:6;26631:2;26627:15;26620:38;26183:517;-1:-1:-1;;;;;;26343:64:2;-1:-1:-1;;;26343:64:2;;-1:-1:-1;26009:697:2;;;;;;:::o;2621:112:1:-;2681:13;2713;2706:20;;;;;:::i;39192:1961:2:-;39663:4;39657:11;;39670:3;39653:21;;39746:17;;;;40429:11;;;40310:5;40592:2;40606;40596:13;;40588:22;40429:11;40575:36;40646:2;40636:13;;40204:715;40664:4;40204:715;;;40850:1;40845:3;40841:11;40834:18;;40900:2;40894:4;40890:13;40886:2;40882:22;40877:3;40869:36;40757:2;40747:13;;40204:715;;;-1:-1:-1;40947:13:2;;;-1:-1:-1;;41060:12:2;;;41118:19;;;41060:12;39192:1961;-1:-1:-1;39192:1961:2:o;32230:669::-;32356:19;32362:2;32366:8;32356:5;:19::i;:::-;-1:-1:-1;;;;;32414:14:2;;;:19;32410:473;;32453:11;32467:13;32514:14;;;32546:229;32576:62;32615:1;32619:2;32623:7;;;;;;32632:5;32576:30;:62::i;:::-;32571:165;;32673:40;;-1:-1:-1;;;32673:40:2;;;;;;;;;;;32571:165;32770:3;32762:5;:11;32546:229;;32855:3;32838:13;;:20;32834:34;;32860:8;;;32834:34;32435:448;;32230:669;;;:::o;27152:2396::-;27224:20;27247:13;27274;27270:44;;27296:18;;;;;;;;;;;;;;27270:44;-1:-1:-1;;;;;27789:22:2;;;;;;:18;:22;;;;1452:2;27789:22;;;:71;;27827:32;27815:45;;27789:71;;;28096:31;;;:17;:31;;;;;-1:-1:-1;15150:15:2;;15124:24;15120:46;14730:11;14705:23;14701:41;14698:52;14688:63;;28096:170;;28325:23;;;;28096:31;;27789:22;;28814:25;27789:22;;28670:328;29075:1;29061:12;29057:20;29016:339;29115:3;29106:7;29103:16;29016:339;;29329:7;29319:8;29316:1;29289:25;29286:1;29283;29278:59;29167:1;29154:15;29016:339;;;-1:-1:-1;29386:13:2;29382:45;;29408:19;;;;;;;;;;;;;;29382:45;29442:13;:19;-1:-1:-1;22835:179:2;;;:::o;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:177:6;-1:-1:-1;;;;;;92:5:6;88:78;81:5;78:89;68:117;;181:1;178;171:12;196:245;254:6;307:2;295:9;286:7;282:23;278:32;275:52;;;323:1;320;313:12;275:52;362:9;349:23;381:30;405:5;381:30;:::i;638:258::-;710:1;720:113;734:6;731:1;728:13;720:113;;;810:11;;;804:18;791:11;;;784:39;756:2;749:10;720:113;;;851:6;848:1;845:13;842:48;;;-1:-1:-1;;886:1:6;868:16;;861:27;638:258::o;901:::-;943:3;981:5;975:12;1008:6;1003:3;996:19;1024:63;1080:6;1073:4;1068:3;1064:14;1057:4;1050:5;1046:16;1024:63;:::i;:::-;1141:2;1120:15;-1:-1:-1;;1116:29:6;1107:39;;;;1148:4;1103:50;;901:258;-1:-1:-1;;901:258:6:o;1164:220::-;1313:2;1302:9;1295:21;1276:4;1333:45;1374:2;1363:9;1359:18;1351:6;1333:45;:::i;1389:180::-;1448:6;1501:2;1489:9;1480:7;1476:23;1472:32;1469:52;;;1517:1;1514;1507:12;1469:52;-1:-1:-1;1540:23:6;;1389:180;-1:-1:-1;1389:180:6:o;1805:196::-;1873:20;;-1:-1:-1;;;;;1922:54:6;;1912:65;;1902:93;;1991:1;1988;1981:12;1902:93;1805:196;;;:::o;2006:254::-;2074:6;2082;2135:2;2123:9;2114:7;2110:23;2106:32;2103:52;;;2151:1;2148;2141:12;2103:52;2174:29;2193:9;2174:29;:::i;:::-;2164:39;2250:2;2235:18;;;;2222:32;;-1:-1:-1;;;2006:254:6:o;2265:284::-;2323:6;2376:2;2364:9;2355:7;2351:23;2347:32;2344:52;;;2392:1;2389;2382:12;2344:52;2431:9;2418:23;2481:18;2474:5;2470:30;2463:5;2460:41;2450:69;;2515:1;2512;2505:12;2736:328;2813:6;2821;2829;2882:2;2870:9;2861:7;2857:23;2853:32;2850:52;;;2898:1;2895;2888:12;2850:52;2921:29;2940:9;2921:29;:::i;:::-;2911:39;;2969:38;3003:2;2992:9;2988:18;2969:38;:::i;:::-;2959:48;;3054:2;3043:9;3039:18;3026:32;3016:42;;2736:328;;;;;:::o;3069:592::-;3140:6;3148;3201:2;3189:9;3180:7;3176:23;3172:32;3169:52;;;3217:1;3214;3207:12;3169:52;3257:9;3244:23;3286:18;3327:2;3319:6;3316:14;3313:34;;;3343:1;3340;3333:12;3313:34;3381:6;3370:9;3366:22;3356:32;;3426:7;3419:4;3415:2;3411:13;3407:27;3397:55;;3448:1;3445;3438:12;3397:55;3488:2;3475:16;3514:2;3506:6;3503:14;3500:34;;;3530:1;3527;3520:12;3500:34;3575:7;3570:2;3561:6;3557:2;3553:15;3549:24;3546:37;3543:57;;;3596:1;3593;3586:12;3543:57;3627:2;3619:11;;;;;3649:6;;-1:-1:-1;3069:592:6;;-1:-1:-1;;;;3069:592:6:o;3666:276::-;3724:6;3777:2;3765:9;3756:7;3752:23;3748:32;3745:52;;;3793:1;3790;3783:12;3745:52;3832:9;3819:23;3882:10;3875:5;3871:22;3864:5;3861:33;3851:61;;3908:1;3905;3898:12;3947:186;4006:6;4059:2;4047:9;4038:7;4034:23;4030:32;4027:52;;;4075:1;4072;4065:12;4027:52;4098:29;4117:9;4098:29;:::i;4977:347::-;5042:6;5050;5103:2;5091:9;5082:7;5078:23;5074:32;5071:52;;;5119:1;5116;5109:12;5071:52;5142:29;5161:9;5142:29;:::i;:::-;5132:39;;5221:2;5210:9;5206:18;5193:32;5268:5;5261:13;5254:21;5247:5;5244:32;5234:60;;5290:1;5287;5280:12;5234:60;5313:5;5303:15;;;4977:347;;;;;:::o;5329:184::-;-1:-1:-1;;;5378:1:6;5371:88;5478:4;5475:1;5468:15;5502:4;5499:1;5492:15;5518:1138;5613:6;5621;5629;5637;5690:3;5678:9;5669:7;5665:23;5661:33;5658:53;;;5707:1;5704;5697:12;5658:53;5730:29;5749:9;5730:29;:::i;:::-;5720:39;;5778:38;5812:2;5801:9;5797:18;5778:38;:::i;:::-;5768:48;;5863:2;5852:9;5848:18;5835:32;5825:42;;5918:2;5907:9;5903:18;5890:32;5941:18;5982:2;5974:6;5971:14;5968:34;;;5998:1;5995;5988:12;5968:34;6036:6;6025:9;6021:22;6011:32;;6081:7;6074:4;6070:2;6066:13;6062:27;6052:55;;6103:1;6100;6093:12;6052:55;6139:2;6126:16;6161:2;6157;6154:10;6151:36;;;6167:18;;:::i;:::-;6242:2;6236:9;6210:2;6296:13;;-1:-1:-1;;6292:22:6;;;6316:2;6288:31;6284:40;6272:53;;;6340:18;;;6360:22;;;6337:46;6334:72;;;6386:18;;:::i;:::-;6426:10;6422:2;6415:22;6461:2;6453:6;6446:18;6501:7;6496:2;6491;6487;6483:11;6479:20;6476:33;6473:53;;;6522:1;6519;6512:12;6473:53;6578:2;6573;6569;6565:11;6560:2;6552:6;6548:15;6535:46;6623:1;6618:2;6613;6605:6;6601:15;6597:24;6590:35;6644:6;6634:16;;;;;;;5518:1138;;;;;;;:::o;6661:260::-;6729:6;6737;6790:2;6778:9;6769:7;6765:23;6761:32;6758:52;;;6806:1;6803;6796:12;6758:52;6829:29;6848:9;6829:29;:::i;:::-;6819:39;;6877:38;6911:2;6900:9;6896:18;6877:38;:::i;:::-;6867:48;;6661:260;;;;;:::o;6926:437::-;7005:1;7001:12;;;;7048;;;7069:61;;7123:4;7115:6;7111:17;7101:27;;7069:61;7176:2;7168:6;7165:14;7145:18;7142:38;7139:218;;;-1:-1:-1;;;7210:1:6;7203:88;7314:4;7311:1;7304:15;7342:4;7339:1;7332:15;7139:218;;6926:437;;;:::o;8076:184::-;-1:-1:-1;;;8125:1:6;8118:88;8225:4;8222:1;8215:15;8249:4;8246:1;8239:15;8265:168;8305:7;8371:1;8367;8363:6;8359:14;8356:1;8353:21;8348:1;8341:9;8334:17;8330:45;8327:71;;;8378:18;;:::i;:::-;-1:-1:-1;8418:9:6;;8265:168::o;9353:470::-;9532:3;9570:6;9564:13;9586:53;9632:6;9627:3;9620:4;9612:6;9608:17;9586:53;:::i;:::-;9702:13;;9661:16;;;;9724:57;9702:13;9661:16;9758:4;9746:17;;9724:57;:::i;:::-;9797:20;;9353:470;-1:-1:-1;;;;9353:470:6:o;9828:443::-;10060:3;10098:6;10092:13;10114:53;10160:6;10155:3;10148:4;10140:6;10136:17;10114:53;:::i;:::-;10228:7;10189:16;;10214:22;;;-1:-1:-1;10263:1:6;10252:13;;9828:443;-1:-1:-1;9828:443:6:o;11395:125::-;11435:4;11463:1;11460;11457:8;11454:34;;;11468:18;;:::i;:::-;-1:-1:-1;11505:9:6;;11395:125::o;11525:512::-;11719:4;-1:-1:-1;;;;;11829:2:6;11821:6;11817:15;11806:9;11799:34;11881:2;11873:6;11869:15;11864:2;11853:9;11849:18;11842:43;;11921:6;11916:2;11905:9;11901:18;11894:34;11964:3;11959:2;11948:9;11944:18;11937:31;11985:46;12026:3;12015:9;12011:19;12003:6;11985:46;:::i;:::-;11977:54;11525:512;-1:-1:-1;;;;;;11525:512:6:o;12042:249::-;12111:6;12164:2;12152:9;12143:7;12139:23;12135:32;12132:52;;;12180:1;12177;12170:12;12132:52;12212:9;12206:16;12231:30;12255:5;12231:30;:::i

Swarm Source

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