ETH Price: $3,918.46 (+0.65%)

Token

Milady Azuki (MIZUKI)
 

Overview

Max Total Supply

3,000 MIZUKI

Holders

309

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
1 MIZUKI
0xf64e88402973b8943fae75ede9708613874fda7f
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:
MiladyAzuki

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

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

/**
 *  _____ ______   ___  ________  ___  ___  ___  __    ___     
 * |\   _ \  _   \|\  \|\_____  \|\  \|\  \|\  \|\  \ |\  \    
 * \ \  \\\__\ \  \ \  \\|___/  /\ \  \\\  \ \  \/  /|\ \  \   
 *  \ \  \\|__| \  \ \  \   /  / /\ \  \\\  \ \   ___  \ \  \  
 *   \ \  \    \ \  \ \  \ /  /_/__\ \  \\\  \ \  \\ \  \ \  \ 
 *    \ \__\    \ \__\ \__\\________\ \_______\ \__\\ \__\ \__\
 *     \|__|     \|__|\|__|\|_______|\|_______|\|__| \|__|\|__|
 */

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.13;

// File: erc721a/contracts/IERC721A.sol

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: erc721a/contracts/ERC721A.sol

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

pragma solidity ^0.8.4;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        return _tokenApprovals[tokenId].value;
    }

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        address from = address(uint160(prevOwnershipPacked));

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


// OpenZeppelin Contracts (last updated v4.8.0) (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() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

    function _nonReentrantBefore() private {
        // On the first call to nonReentrant, _status will be _NOT_ENTERED
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

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

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


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

pragma solidity ^0.8.0;

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

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

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


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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

////////////////////////
///// MILADY AZUKI /////
////////////////////////
pragma solidity ^0.8.17;

contract MiladyAzuki is ERC721A, Ownable, ReentrancyGuard {

    ///////////////////
    ///// DETAILS /////
    ///////////////////
    uint256 public maxSupply = 6666;
    uint256 public mintCost = 0.004 ether;
    uint256 public walletMax = 69;
    bool public saleActive = false;

    string public baseURI = "ipfs://QmdKBd1ki7WDHqVxa7Wuw9SfvoPtxrWfpvnsCdXW5Bjp18/";

    mapping(address => bool) freeMint;
    mapping(address => uint) addressToMinted;
    
    function _startTokenId() internal view virtual override returns (uint256) {
        return 1;
    }

    constructor () ERC721A("Milady Azuki", "MIZUKI") {
    }

    ///////////////////
    ///// ACTIONS /////
    ///////////////////
    function publicMint(uint256 mintAmount) public payable nonReentrant {
        require(saleActive, "milady");
        require(addressToMinted[msg.sender] + mintAmount <= walletMax, "milady");
        require(totalSupply() + mintAmount <= maxSupply, "milady");

        if(freeMint[msg.sender]) {
            require(msg.value >= mintAmount * mintCost, "milady");
        }
        else {
            require(msg.value >= (mintAmount - 1) * mintCost, "milady");
            freeMint[msg.sender] = true;
        }
        
        addressToMinted[msg.sender] += mintAmount;
        _safeMint(msg.sender, mintAmount);
    }

    function teamReserve(uint256 mintAmount) public onlyOwner {
        require(totalSupply() + mintAmount <= maxSupply, "milady");
        
        _safeMint(msg.sender, mintAmount);
    }

    /////////////////
    ///// ADMIN /////
    /////////////////
    function setCost(uint256 newCost) external onlyOwner {
        mintCost = newCost;
    }

    function setWalletMax(uint256 newMax) external onlyOwner {
        walletMax = newMax;
    }

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

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

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

    function withdraw() public onlyOwner {
		payable(msg.sender).transfer(address(this).balance);
	}
    
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"mintAmount","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"saleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI_","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newCost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newMax","type":"uint256"}],"name":"setWalletMax","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":"mintAmount","type":"uint256"}],"name":"teamReserve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"walletMax","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

611a0a600a55660e35fa931a0000600b556045600c55600d805460ff1916905560e0604052603660808181529062001a4860a039600e90620000429082620001ca565b503480156200005057600080fd5b506040518060400160405280600c81526020016b4d696c61647920417a756b6960a01b815250604051806040016040528060068152602001654d495a554b4960d01b8152508160029081620000a69190620001ca565b506003620000b58282620001ca565b5050600160005550620000c833620000d3565b600160095562000296565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200015057607f821691505b6020821081036200017157634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620001c557600081815260208120601f850160051c81016020861015620001a05750805b601f850160051c820191505b81811015620001c157828155600101620001ac565b5050505b505050565b81516001600160401b03811115620001e657620001e662000125565b620001fe81620001f784546200013b565b8462000177565b602080601f8311600181146200023657600084156200021d5750858301515b600019600386901b1c1916600185901b178555620001c1565b600085815260208120601f198616915b82811015620002675788860151825594840194600190910190840162000246565b5085821015620002865787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6117a280620002a66000396000f3fe6080604052600436106101c25760003560e01c80636c0360eb116100f7578063a22cb46511610095578063d5abeb0111610064578063d5abeb0114610495578063e985e9c5146104ab578063f2fde38b146104cb578063fe314524146104eb57600080fd5b8063a22cb4651461042c578063b88d4fde1461044c578063bdb4b8481461045f578063c87b56dd1461047557600080fd5b80637ba5e621116100d15780637ba5e621146103c45780638da5cb5b146103d95780638ff4013f146103f757806395d89b411461041757600080fd5b80636c0360eb1461037a57806370a082311461038f578063715018a6146103af57600080fd5b8063347ac6e41161016457806344a0d68a1161013e57806344a0d68a1461030057806355f804b3146103205780636352211e1461034057806368428a1b1461036057600080fd5b8063347ac6e4146102b85780633ccfd60b146102d857806342842e0e146102ed57600080fd5b8063095ea7b3116101a0578063095ea7b31461025657806318160ddd1461026b57806323b872dd146102925780632db11544146102a557600080fd5b806301ffc9a7146101c757806306fdde03146101fc578063081812fc1461021e575b600080fd5b3480156101d357600080fd5b506101e76101e236600461123a565b610501565b60405190151581526020015b60405180910390f35b34801561020857600080fd5b50610211610553565b6040516101f391906112a7565b34801561022a57600080fd5b5061023e6102393660046112ba565b6105e5565b6040516001600160a01b0390911681526020016101f3565b6102696102643660046112ef565b610629565b005b34801561027757600080fd5b5060015460005403600019015b6040519081526020016101f3565b6102696102a0366004611319565b6106c9565b6102696102b33660046112ba565b610862565b3480156102c457600080fd5b506102696102d33660046112ba565b6109e1565b3480156102e457600080fd5b50610269610a2c565b6102696102fb366004611319565b610a60565b34801561030c57600080fd5b5061026961031b3660046112ba565b610a80565b34801561032c57600080fd5b5061026961033b3660046113e1565b610a8d565b34801561034c57600080fd5b5061023e61035b3660046112ba565b610aa5565b34801561036c57600080fd5b50600d546101e79060ff1681565b34801561038657600080fd5b50610211610ab0565b34801561039b57600080fd5b506102846103aa36600461142a565b610b3e565b3480156103bb57600080fd5b50610269610b8d565b3480156103d057600080fd5b50610269610ba1565b3480156103e557600080fd5b506008546001600160a01b031661023e565b34801561040357600080fd5b506102696104123660046112ba565b610bbd565b34801561042357600080fd5b50610211610bca565b34801561043857600080fd5b50610269610447366004611445565b610bd9565b61026961045a366004611481565b610c45565b34801561046b57600080fd5b50610284600b5481565b34801561048157600080fd5b506102116104903660046112ba565b610c8f565b3480156104a157600080fd5b50610284600a5481565b3480156104b757600080fd5b506101e76104c63660046114fd565b610d13565b3480156104d757600080fd5b506102696104e636600461142a565b610d41565b3480156104f757600080fd5b50610284600c5481565b60006301ffc9a760e01b6001600160e01b03198316148061053257506380ac58cd60e01b6001600160e01b03198316145b8061054d5750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461056290611530565b80601f016020809104026020016040519081016040528092919081815260200182805461058e90611530565b80156105db5780601f106105b0576101008083540402835291602001916105db565b820191906000526020600020905b8154815290600101906020018083116105be57829003601f168201915b5050505050905090565b60006105f082610db7565b61060d576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061063482610aa5565b9050336001600160a01b0382161461066d576106508133610d13565b61066d576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006106d482610dec565b9050836001600160a01b0316816001600160a01b0316146107075760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610754576107378633610d13565b61075457604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661077b57604051633a954ecd60e21b815260040160405180910390fd5b801561078657600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003610818576001840160008181526004602052604081205490036108165760005481146108165760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b61086a610e5b565b600d5460ff166108955760405162461bcd60e51b815260040161088c9061156a565b60405180910390fd5b600c54336000908152601060205260409020546108b39083906115a0565b11156108d15760405162461bcd60e51b815260040161088c9061156a565b600a5460015460005483919003600019016108ec91906115a0565b111561090a5760405162461bcd60e51b815260040161088c9061156a565b336000908152600f602052604090205460ff161561095357600b5461092f90826115b3565b34101561094e5760405162461bcd60e51b815260040161088c9061156a565b6109a5565b600b546109616001836115ca565b61096b91906115b3565b34101561098a5760405162461bcd60e51b815260040161088c9061156a565b336000908152600f60205260409020805460ff191660011790555b33600090815260106020526040812080548392906109c49084906115a0565b909155506109d490503382610eb4565b6109de6001600955565b50565b6109e9610ece565b600a546001546000548391900360001901610a0491906115a0565b1115610a225760405162461bcd60e51b815260040161088c9061156a565b6109de3382610eb4565b610a34610ece565b60405133904780156108fc02916000818181858888f193505050501580156109de573d6000803e3d6000fd5b610a7b83838360405180602001604052806000815250610c45565b505050565b610a88610ece565b600b55565b610a95610ece565b600e610aa18282611623565b5050565b600061054d82610dec565b600e8054610abd90611530565b80601f0160208091040260200160405190810160405280929190818152602001828054610ae990611530565b8015610b365780601f10610b0b57610100808354040283529160200191610b36565b820191906000526020600020905b815481529060010190602001808311610b1957829003601f168201915b505050505081565b60006001600160a01b038216610b67576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610b95610ece565b610b9f6000610f28565b565b610ba9610ece565b600d805460ff19811660ff90911615179055565b610bc5610ece565b600c55565b60606003805461056290611530565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610c508484846106c9565b6001600160a01b0383163b15610c8957610c6c84848484610f7a565b610c89576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060610c9a82610db7565b610cb757604051630a14c4b560e41b815260040160405180910390fd5b6000610cc1611066565b90508051600003610ce15760405180602001604052806000815250610d0c565b80610ceb84611075565b604051602001610cfc9291906116e3565b6040516020818303038152906040525b9392505050565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b610d49610ece565b6001600160a01b038116610dae5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161088c565b6109de81610f28565b600081600111158015610dcb575060005482105b801561054d575050600090815260046020526040902054600160e01b161590565b60008180600111610e4257600054811015610e425760008181526004602052604081205490600160e01b82169003610e40575b80600003610d0c575060001901600081815260046020526040902054610e1f565b505b604051636f96cda160e11b815260040160405180910390fd5b600260095403610ead5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161088c565b6002600955565b610aa18282604051806020016040528060008152506110b9565b6008546001600160a01b03163314610b9f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161088c565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290610faf903390899088908890600401611712565b6020604051808303816000875af1925050508015610fea575060408051601f3d908101601f19168201909252610fe79181019061174f565b60015b611048573d808015611018576040519150601f19603f3d011682016040523d82523d6000602084013e61101d565b606091505b508051600003611040576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600e805461056290611530565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a90048061108f5750819003601f19909101908152919050565b6110c38383611126565b6001600160a01b0383163b15610a7b576000548281035b6110ed6000868380600101945086610f7a565b61110a576040516368d2bf6b60e11b815260040160405180910390fd5b8181106110da57816000541461111f57600080fd5b5050505050565b600080549082900361114b5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146111fa57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016111c2565b508160000361121b57604051622e076360e81b815260040160405180910390fd5b60005550505050565b6001600160e01b0319811681146109de57600080fd5b60006020828403121561124c57600080fd5b8135610d0c81611224565b60005b8381101561127257818101518382015260200161125a565b50506000910152565b60008151808452611293816020860160208601611257565b601f01601f19169290920160200192915050565b602081526000610d0c602083018461127b565b6000602082840312156112cc57600080fd5b5035919050565b80356001600160a01b03811681146112ea57600080fd5b919050565b6000806040838503121561130257600080fd5b61130b836112d3565b946020939093013593505050565b60008060006060848603121561132e57600080fd5b611337846112d3565b9250611345602085016112d3565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561138657611386611355565b604051601f8501601f19908116603f011681019082821181831017156113ae576113ae611355565b816040528093508581528686860111156113c757600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156113f357600080fd5b813567ffffffffffffffff81111561140a57600080fd5b8201601f8101841361141b57600080fd5b61105e8482356020840161136b565b60006020828403121561143c57600080fd5b610d0c826112d3565b6000806040838503121561145857600080fd5b611461836112d3565b91506020830135801515811461147657600080fd5b809150509250929050565b6000806000806080858703121561149757600080fd5b6114a0856112d3565b93506114ae602086016112d3565b925060408501359150606085013567ffffffffffffffff8111156114d157600080fd5b8501601f810187136114e257600080fd5b6114f18782356020840161136b565b91505092959194509250565b6000806040838503121561151057600080fd5b611519836112d3565b9150611527602084016112d3565b90509250929050565b600181811c9082168061154457607f821691505b60208210810361156457634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600690820152656d696c61647960d01b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b8082018082111561054d5761054d61158a565b808202811582820484141761054d5761054d61158a565b8181038181111561054d5761054d61158a565b601f821115610a7b57600081815260208120601f850160051c810160208610156116045750805b601f850160051c820191505b8181101561085a57828155600101611610565b815167ffffffffffffffff81111561163d5761163d611355565b6116518161164b8454611530565b846115dd565b602080601f831160018114611686576000841561166e5750858301515b600019600386901b1c1916600185901b17855561085a565b600085815260208120601f198616915b828110156116b557888601518255948401946001909101908401611696565b50858210156116d35787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600083516116f5818460208801611257565b835190830190611709818360208801611257565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906117459083018461127b565b9695505050505050565b60006020828403121561176157600080fd5b8151610d0c8161122456fea2646970667358221220584a42c5a48733b6626e98a07f8bcd6d1b90a7d345ba9fa0ea485ce5bf8d086564736f6c63430008120033697066733a2f2f516d644b4264316b69375744487156786137577577395366766f50747872576670766e734364585735426a7031382f

Deployed Bytecode

0x6080604052600436106101c25760003560e01c80636c0360eb116100f7578063a22cb46511610095578063d5abeb0111610064578063d5abeb0114610495578063e985e9c5146104ab578063f2fde38b146104cb578063fe314524146104eb57600080fd5b8063a22cb4651461042c578063b88d4fde1461044c578063bdb4b8481461045f578063c87b56dd1461047557600080fd5b80637ba5e621116100d15780637ba5e621146103c45780638da5cb5b146103d95780638ff4013f146103f757806395d89b411461041757600080fd5b80636c0360eb1461037a57806370a082311461038f578063715018a6146103af57600080fd5b8063347ac6e41161016457806344a0d68a1161013e57806344a0d68a1461030057806355f804b3146103205780636352211e1461034057806368428a1b1461036057600080fd5b8063347ac6e4146102b85780633ccfd60b146102d857806342842e0e146102ed57600080fd5b8063095ea7b3116101a0578063095ea7b31461025657806318160ddd1461026b57806323b872dd146102925780632db11544146102a557600080fd5b806301ffc9a7146101c757806306fdde03146101fc578063081812fc1461021e575b600080fd5b3480156101d357600080fd5b506101e76101e236600461123a565b610501565b60405190151581526020015b60405180910390f35b34801561020857600080fd5b50610211610553565b6040516101f391906112a7565b34801561022a57600080fd5b5061023e6102393660046112ba565b6105e5565b6040516001600160a01b0390911681526020016101f3565b6102696102643660046112ef565b610629565b005b34801561027757600080fd5b5060015460005403600019015b6040519081526020016101f3565b6102696102a0366004611319565b6106c9565b6102696102b33660046112ba565b610862565b3480156102c457600080fd5b506102696102d33660046112ba565b6109e1565b3480156102e457600080fd5b50610269610a2c565b6102696102fb366004611319565b610a60565b34801561030c57600080fd5b5061026961031b3660046112ba565b610a80565b34801561032c57600080fd5b5061026961033b3660046113e1565b610a8d565b34801561034c57600080fd5b5061023e61035b3660046112ba565b610aa5565b34801561036c57600080fd5b50600d546101e79060ff1681565b34801561038657600080fd5b50610211610ab0565b34801561039b57600080fd5b506102846103aa36600461142a565b610b3e565b3480156103bb57600080fd5b50610269610b8d565b3480156103d057600080fd5b50610269610ba1565b3480156103e557600080fd5b506008546001600160a01b031661023e565b34801561040357600080fd5b506102696104123660046112ba565b610bbd565b34801561042357600080fd5b50610211610bca565b34801561043857600080fd5b50610269610447366004611445565b610bd9565b61026961045a366004611481565b610c45565b34801561046b57600080fd5b50610284600b5481565b34801561048157600080fd5b506102116104903660046112ba565b610c8f565b3480156104a157600080fd5b50610284600a5481565b3480156104b757600080fd5b506101e76104c63660046114fd565b610d13565b3480156104d757600080fd5b506102696104e636600461142a565b610d41565b3480156104f757600080fd5b50610284600c5481565b60006301ffc9a760e01b6001600160e01b03198316148061053257506380ac58cd60e01b6001600160e01b03198316145b8061054d5750635b5e139f60e01b6001600160e01b03198316145b92915050565b60606002805461056290611530565b80601f016020809104026020016040519081016040528092919081815260200182805461058e90611530565b80156105db5780601f106105b0576101008083540402835291602001916105db565b820191906000526020600020905b8154815290600101906020018083116105be57829003601f168201915b5050505050905090565b60006105f082610db7565b61060d576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061063482610aa5565b9050336001600160a01b0382161461066d576106508133610d13565b61066d576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006106d482610dec565b9050836001600160a01b0316816001600160a01b0316146107075760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417610754576107378633610d13565b61075457604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661077b57604051633a954ecd60e21b815260040160405180910390fd5b801561078657600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b84169003610818576001840160008181526004602052604081205490036108165760005481146108165760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b61086a610e5b565b600d5460ff166108955760405162461bcd60e51b815260040161088c9061156a565b60405180910390fd5b600c54336000908152601060205260409020546108b39083906115a0565b11156108d15760405162461bcd60e51b815260040161088c9061156a565b600a5460015460005483919003600019016108ec91906115a0565b111561090a5760405162461bcd60e51b815260040161088c9061156a565b336000908152600f602052604090205460ff161561095357600b5461092f90826115b3565b34101561094e5760405162461bcd60e51b815260040161088c9061156a565b6109a5565b600b546109616001836115ca565b61096b91906115b3565b34101561098a5760405162461bcd60e51b815260040161088c9061156a565b336000908152600f60205260409020805460ff191660011790555b33600090815260106020526040812080548392906109c49084906115a0565b909155506109d490503382610eb4565b6109de6001600955565b50565b6109e9610ece565b600a546001546000548391900360001901610a0491906115a0565b1115610a225760405162461bcd60e51b815260040161088c9061156a565b6109de3382610eb4565b610a34610ece565b60405133904780156108fc02916000818181858888f193505050501580156109de573d6000803e3d6000fd5b610a7b83838360405180602001604052806000815250610c45565b505050565b610a88610ece565b600b55565b610a95610ece565b600e610aa18282611623565b5050565b600061054d82610dec565b600e8054610abd90611530565b80601f0160208091040260200160405190810160405280929190818152602001828054610ae990611530565b8015610b365780601f10610b0b57610100808354040283529160200191610b36565b820191906000526020600020905b815481529060010190602001808311610b1957829003601f168201915b505050505081565b60006001600160a01b038216610b67576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610b95610ece565b610b9f6000610f28565b565b610ba9610ece565b600d805460ff19811660ff90911615179055565b610bc5610ece565b600c55565b60606003805461056290611530565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610c508484846106c9565b6001600160a01b0383163b15610c8957610c6c84848484610f7a565b610c89576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060610c9a82610db7565b610cb757604051630a14c4b560e41b815260040160405180910390fd5b6000610cc1611066565b90508051600003610ce15760405180602001604052806000815250610d0c565b80610ceb84611075565b604051602001610cfc9291906116e3565b6040516020818303038152906040525b9392505050565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b610d49610ece565b6001600160a01b038116610dae5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161088c565b6109de81610f28565b600081600111158015610dcb575060005482105b801561054d575050600090815260046020526040902054600160e01b161590565b60008180600111610e4257600054811015610e425760008181526004602052604081205490600160e01b82169003610e40575b80600003610d0c575060001901600081815260046020526040902054610e1f565b505b604051636f96cda160e11b815260040160405180910390fd5b600260095403610ead5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161088c565b6002600955565b610aa18282604051806020016040528060008152506110b9565b6008546001600160a01b03163314610b9f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161088c565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290610faf903390899088908890600401611712565b6020604051808303816000875af1925050508015610fea575060408051601f3d908101601f19168201909252610fe79181019061174f565b60015b611048573d808015611018576040519150601f19603f3d011682016040523d82523d6000602084013e61101d565b606091505b508051600003611040576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060600e805461056290611530565b606060a06040510180604052602081039150506000815280825b600183039250600a81066030018353600a90048061108f5750819003601f19909101908152919050565b6110c38383611126565b6001600160a01b0383163b15610a7b576000548281035b6110ed6000868380600101945086610f7a565b61110a576040516368d2bf6b60e11b815260040160405180910390fd5b8181106110da57816000541461111f57600080fd5b5050505050565b600080549082900361114b5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146111fa57808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016111c2565b508160000361121b57604051622e076360e81b815260040160405180910390fd5b60005550505050565b6001600160e01b0319811681146109de57600080fd5b60006020828403121561124c57600080fd5b8135610d0c81611224565b60005b8381101561127257818101518382015260200161125a565b50506000910152565b60008151808452611293816020860160208601611257565b601f01601f19169290920160200192915050565b602081526000610d0c602083018461127b565b6000602082840312156112cc57600080fd5b5035919050565b80356001600160a01b03811681146112ea57600080fd5b919050565b6000806040838503121561130257600080fd5b61130b836112d3565b946020939093013593505050565b60008060006060848603121561132e57600080fd5b611337846112d3565b9250611345602085016112d3565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561138657611386611355565b604051601f8501601f19908116603f011681019082821181831017156113ae576113ae611355565b816040528093508581528686860111156113c757600080fd5b858560208301376000602087830101525050509392505050565b6000602082840312156113f357600080fd5b813567ffffffffffffffff81111561140a57600080fd5b8201601f8101841361141b57600080fd5b61105e8482356020840161136b565b60006020828403121561143c57600080fd5b610d0c826112d3565b6000806040838503121561145857600080fd5b611461836112d3565b91506020830135801515811461147657600080fd5b809150509250929050565b6000806000806080858703121561149757600080fd5b6114a0856112d3565b93506114ae602086016112d3565b925060408501359150606085013567ffffffffffffffff8111156114d157600080fd5b8501601f810187136114e257600080fd5b6114f18782356020840161136b565b91505092959194509250565b6000806040838503121561151057600080fd5b611519836112d3565b9150611527602084016112d3565b90509250929050565b600181811c9082168061154457607f821691505b60208210810361156457634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600690820152656d696c61647960d01b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b8082018082111561054d5761054d61158a565b808202811582820484141761054d5761054d61158a565b8181038181111561054d5761054d61158a565b601f821115610a7b57600081815260208120601f850160051c810160208610156116045750805b601f850160051c820191505b8181101561085a57828155600101611610565b815167ffffffffffffffff81111561163d5761163d611355565b6116518161164b8454611530565b846115dd565b602080601f831160018114611686576000841561166e5750858301515b600019600386901b1c1916600185901b17855561085a565b600085815260208120601f198616915b828110156116b557888601518255948401946001909101908401611696565b50858210156116d35787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b600083516116f5818460208801611257565b835190830190611709818360208801611257565b01949350505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906117459083018461127b565b9695505050505050565b60006020828403121561176157600080fd5b8151610d0c8161122456fea2646970667358221220584a42c5a48733b6626e98a07f8bcd6d1b90a7d345ba9fa0ea485ce5bf8d086564736f6c63430008120033

Deployed Bytecode Sourcemap

58575:2259:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;18901:639;;;;;;;;;;-1:-1:-1;18901:639:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;18901:639:0;;;;;;;;19803:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;26294:218::-;;;;;;;;;;-1:-1:-1;26294:218:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:32:1;;;1679:51;;1667:2;1652:18;26294:218:0;1533:203:1;25727:408:0;;;;;;:::i;:::-;;:::i;:::-;;15554:323;;;;;;;;;;-1:-1:-1;59148:1:0;15828:12;15615:7;15812:13;:28;-1:-1:-1;;15812:46:0;15554:323;;;2324:25:1;;;2312:2;2297:18;15554:323:0;2178:177:1;29933:2825:0;;;;;;:::i;:::-;;:::i;59305:634::-;;;;;;:::i;:::-;;:::i;59947:189::-;;;;;;;;;;-1:-1:-1;59947:189:0;;;;;:::i;:::-;;:::i;60727:98::-;;;;;;;;;;;;;:::i;32854:193::-;;;;;;:::i;:::-;;:::i;60213:90::-;;;;;;;;;;-1:-1:-1;60213:90:0;;;;;:::i;:::-;;:::i;60619:100::-;;;;;;;;;;-1:-1:-1;60619:100:0;;;;;:::i;:::-;;:::i;21196:152::-;;;;;;;;;;-1:-1:-1;21196:152:0;;;;;:::i;:::-;;:::i;58835:30::-;;;;;;;;;;-1:-1:-1;58835:30:0;;;;;;;;58874:80;;;;;;;;;;;;;:::i;16738:233::-;;;;;;;;;;-1:-1:-1;16738:233:0;;;;;:::i;:::-;;:::i;57652:103::-;;;;;;;;;;;;;:::i;60413:82::-;;;;;;;;;;;;;:::i;57004:87::-;;;;;;;;;;-1:-1:-1;57077:6:0;;-1:-1:-1;;;;;57077:6:0;57004:87;;60311:94;;;;;;;;;;-1:-1:-1;60311:94:0;;;;;:::i;:::-;;:::i;19979:104::-;;;;;;;;;;;;;:::i;26852:234::-;;;;;;;;;;-1:-1:-1;26852:234:0;;;;;:::i;:::-;;:::i;33645:407::-;;;;;;:::i;:::-;;:::i;58755:37::-;;;;;;;;;;;;;;;;20189:318;;;;;;;;;;-1:-1:-1;20189:318:0;;;;;:::i;:::-;;:::i;58717:31::-;;;;;;;;;;;;;;;;27243:164;;;;;;;;;;-1:-1:-1;27243:164:0;;;;;:::i;:::-;;:::i;57910:201::-;;;;;;;;;;-1:-1:-1;57910:201:0;;;;;:::i;:::-;;:::i;58799:29::-;;;;;;;;;;;;;;;;18901:639;18986:4;-1:-1:-1;;;;;;;;;19310:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;19387:25:0;;;19310:102;:179;;;-1:-1:-1;;;;;;;;;;19464:25:0;;;19310:179;19290:199;18901:639;-1:-1:-1;;18901:639:0:o;19803:100::-;19857:13;19890:5;19883:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19803:100;:::o;26294:218::-;26370:7;26395:16;26403:7;26395;:16::i;:::-;26390:64;;26420:34;;-1:-1:-1;;;26420:34:0;;;;;;;;;;;26390:64;-1:-1:-1;26474:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;26474:30:0;;26294:218::o;25727:408::-;25816:13;25832:16;25840:7;25832;:16::i;:::-;25816:32;-1:-1:-1;50060:10:0;-1:-1:-1;;;;;25865:28:0;;;25861:175;;25913:44;25930:5;50060:10;27243:164;:::i;25913:44::-;25908:128;;25985:35;;-1:-1:-1;;;25985:35:0;;;;;;;;;;;25908:128;26048:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;26048:35:0;-1:-1:-1;;;;;26048:35:0;;;;;;;;;26099:28;;26048:24;;26099:28;;;;;;;25805:330;25727:408;;:::o;29933:2825::-;30075:27;30105;30124:7;30105:18;:27::i;:::-;30075:57;;30190:4;-1:-1:-1;;;;;30149:45:0;30165:19;-1:-1:-1;;;;;30149:45:0;;30145:86;;30203:28;;-1:-1:-1;;;30203:28:0;;;;;;;;;;;30145:86;30245:27;29041:24;;;:15;:24;;;;;29269:26;;50060:10;28666:30;;;-1:-1:-1;;;;;28359:28:0;;28644:20;;;28641:56;30431:180;;30524:43;30541:4;50060:10;27243:164;:::i;30524:43::-;30519:92;;30576:35;;-1:-1:-1;;;30576:35:0;;;;;;;;;;;30519:92;-1:-1:-1;;;;;30628:16:0;;30624:52;;30653:23;;-1:-1:-1;;;30653:23:0;;;;;;;;;;;30624:52;30825:15;30822:160;;;30965:1;30944:19;30937:30;30822:160;-1:-1:-1;;;;;31362:24:0;;;;;;;:18;:24;;;;;;31360:26;;-1:-1:-1;;31360:26:0;;;31431:22;;;;;;;;;31429:24;;-1:-1:-1;31429:24:0;;;24585:11;24560:23;24556:41;24543:63;-1:-1:-1;;;24543:63:0;31724:26;;;;:17;:26;;;;;:175;;;;-1:-1:-1;;;32019:47:0;;:52;;32015:627;;32124:1;32114:11;;32092:19;32247:30;;;:17;:30;;;;;;:35;;32243:384;;32385:13;;32370:11;:28;32366:242;;32532:30;;;;:17;:30;;;;;:52;;;32366:242;32073:569;32015:627;32689:7;32685:2;-1:-1:-1;;;;;32670:27:0;32679:4;-1:-1:-1;;;;;32670:27:0;;;;;;;;;;;32708:42;30064:2694;;;29933:2825;;;:::o;59305:634::-;54277:21;:19;:21::i;:::-;59392:10:::1;::::0;::::1;;59384:29;;;;-1:-1:-1::0;;;59384:29:0::1;;;;;;;:::i;:::-;;;;;;;;;59476:9;::::0;59448:10:::1;59432:27;::::0;;;:15:::1;:27;::::0;;;;;:40:::1;::::0;59462:10;;59432:40:::1;:::i;:::-;:53;;59424:72;;;;-1:-1:-1::0;;;59424:72:0::1;;;;;;;:::i;:::-;59545:9;::::0;59148:1;15828:12;15615:7;15812:13;59531:10;;15812:28;;-1:-1:-1;;15812:46:0;59515:26:::1;;;;:::i;:::-;:39;;59507:58;;;;-1:-1:-1::0;;;59507:58:0::1;;;;;;;:::i;:::-;59590:10;59581:20;::::0;;;:8:::1;:20;::::0;;;;;::::1;;59578:248;;;59652:8;::::0;59639:21:::1;::::0;:10;:21:::1;:::i;:::-;59626:9;:34;;59618:53;;;;-1:-1:-1::0;;;59618:53:0::1;;;;;;;:::i;:::-;59578:248;;;59753:8;::::0;59735:14:::1;59748:1;59735:10:::0;:14:::1;:::i;:::-;59734:27;;;;:::i;:::-;59721:9;:40;;59713:59;;;;-1:-1:-1::0;;;59713:59:0::1;;;;;;;:::i;:::-;59796:10;59787:20;::::0;;;:8:::1;:20;::::0;;;;:27;;-1:-1:-1;;59787:27:0::1;59810:4;59787:27;::::0;;59578:248:::1;59862:10;59846:27;::::0;;;:15:::1;:27;::::0;;;;:41;;59877:10;;59846:27;:41:::1;::::0;59877:10;;59846:41:::1;:::i;:::-;::::0;;;-1:-1:-1;59898:33:0::1;::::0;-1:-1:-1;59908:10:0::1;59920::::0;59898:9:::1;:33::i;:::-;54321:20:::0;53715:1;54841:7;:22;54658:213;54321:20;59305:634;:::o;59947:189::-;56890:13;:11;:13::i;:::-;60054:9:::1;::::0;59148:1;15828:12;15615:7;15812:13;60040:10;;15812:28;;-1:-1:-1;;15812:46:0;60024:26:::1;;;;:::i;:::-;:39;;60016:58;;;;-1:-1:-1::0;;;60016:58:0::1;;;;;;;:::i;:::-;60095:33;60105:10;60117;60095:9;:33::i;60727:98::-:0;56890:13;:11;:13::i;:::-;60769:51:::1;::::0;60777:10:::1;::::0;60798:21:::1;60769:51:::0;::::1;;;::::0;::::1;::::0;;;60798:21;60777:10;60769:51;::::1;;;;;;;;;;;;;::::0;::::1;;;;32854:193:::0;33000:39;33017:4;33023:2;33027:7;33000:39;;;;;;;;;;;;:16;:39::i;:::-;32854:193;;;:::o;60213:90::-;56890:13;:11;:13::i;:::-;60277:8:::1;:18:::0;60213:90::o;60619:100::-;56890:13;:11;:13::i;:::-;60693:7:::1;:18;60703:8:::0;60693:7;:18:::1;:::i;:::-;;60619:100:::0;:::o;21196:152::-;21268:7;21311:27;21330:7;21311:18;:27::i;58874:80::-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::o;16738:233::-;16810:7;-1:-1:-1;;;;;16834:19:0;;16830:60;;16862:28;;-1:-1:-1;;;16862:28:0;;;;;;;;;;;16830:60;-1:-1:-1;;;;;;16908:25:0;;;;;:18;:25;;;;;;10897:13;16908:55;;16738:233::o;57652:103::-;56890:13;:11;:13::i;:::-;57717:30:::1;57744:1;57717:18;:30::i;:::-;57652:103::o:0;60413:82::-;56890:13;:11;:13::i;:::-;60477:10:::1;::::0;;-1:-1:-1;;60463:24:0;::::1;60477:10;::::0;;::::1;60476:11;60463:24;::::0;;60413:82::o;60311:94::-;56890:13;:11;:13::i;:::-;60379:9:::1;:18:::0;60311:94::o;19979:104::-;20035:13;20068:7;20061:14;;;;;:::i;26852:234::-;50060:10;26947:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;26947:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;26947:60:0;;;;;;;;;;27023:55;;540:41:1;;;26947:49:0;;50060:10;27023:55;;513:18:1;27023:55:0;;;;;;;26852:234;;:::o;33645:407::-;33820:31;33833:4;33839:2;33843:7;33820:12;:31::i;:::-;-1:-1:-1;;;;;33866:14:0;;;:19;33862:183;;33905:56;33936:4;33942:2;33946:7;33955:5;33905:30;:56::i;:::-;33900:145;;33989:40;;-1:-1:-1;;;33989:40:0;;;;;;;;;;;33900:145;33645:407;;;;:::o;20189:318::-;20262:13;20293:16;20301:7;20293;:16::i;:::-;20288:59;;20318:29;;-1:-1:-1;;;20318:29:0;;;;;;;;;;;20288:59;20360:21;20384:10;:8;:10::i;:::-;20360:34;;20418:7;20412:21;20437:1;20412:26;:87;;;;;;;;;;;;;;;;;20465:7;20474:18;20484:7;20474:9;:18::i;:::-;20448:45;;;;;;;;;:::i;:::-;;;;;;;;;;;;;20412:87;20405:94;20189:318;-1:-1:-1;;;20189:318:0:o;27243:164::-;-1:-1:-1;;;;;27364:25:0;;;27340:4;27364:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;27243:164::o;57910:201::-;56890:13;:11;:13::i;:::-;-1:-1:-1;;;;;57999:22:0;::::1;57991:73;;;::::0;-1:-1:-1;;;57991:73:0;;9592:2:1;57991:73:0::1;::::0;::::1;9574:21:1::0;9631:2;9611:18;;;9604:30;9670:34;9650:18;;;9643:62;-1:-1:-1;;;9721:18:1;;;9714:36;9767:19;;57991:73:0::1;9390:402:1::0;57991:73:0::1;58075:28;58094:8;58075:18;:28::i;27665:282::-:0;27730:4;27786:7;59148:1;27767:26;;:66;;;;;27820:13;;27810:7;:23;27767:66;:153;;;;-1:-1:-1;;27871:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;27871:44:0;:49;;27665:282::o;22351:1275::-;22418:7;22453;;59148:1;22502:23;22498:1061;;22555:13;;22548:4;:20;22544:1015;;;22593:14;22610:23;;;:17;:23;;;;;;;-1:-1:-1;;;22699:24:0;;:29;;22695:845;;23364:113;23371:6;23381:1;23371:11;23364:113;;-1:-1:-1;;;23442:6:0;23424:25;;;;:17;:25;;;;;;23364:113;;22695:845;22570:989;22544:1015;23587:31;;-1:-1:-1;;;23587:31:0;;;;;;;;;;;54357:293;53759:1;54491:7;;:19;54483:63;;;;-1:-1:-1;;;54483:63:0;;9999:2:1;54483:63:0;;;9981:21:1;10038:2;10018:18;;;10011:30;10077:33;10057:18;;;10050:61;10128:18;;54483:63:0;9797:355:1;54483:63:0;53759:1;54624:7;:18;54357:293::o;43805:112::-;43882:27;43892:2;43896:8;43882:27;;;;;;;;;;;;:9;:27::i;57169:132::-;57077:6;;-1:-1:-1;;;;;57077:6:0;50060:10;57233:23;57225:68;;;;-1:-1:-1;;;57225:68:0;;10359:2:1;57225:68:0;;;10341:21:1;;;10378:18;;;10371:30;10437:34;10417:18;;;10410:62;10489:18;;57225:68:0;10157:356:1;58271:191:0;58364:6;;;-1:-1:-1;;;;;58381:17:0;;;-1:-1:-1;;;;;;58381:17:0;;;;;;;58414:40;;58364:6;;;58381:17;58364:6;;58414:40;;58345:16;;58414:40;58334:128;58271:191;:::o;36136:716::-;36320:88;;-1:-1:-1;;;36320:88:0;;36299:4;;-1:-1:-1;;;;;36320:45:0;;;;;:88;;50060:10;;36387:4;;36393:7;;36402:5;;36320:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;36320:88:0;;;;;;;;-1:-1:-1;;36320:88:0;;;;;;;;;;;;:::i;:::-;;;36316:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36603:6;:13;36620:1;36603:18;36599:235;;36649:40;;-1:-1:-1;;;36649:40:0;;;;;;;;;;;36599:235;36792:6;36786:13;36777:6;36773:2;36769:15;36762:38;36316:529;-1:-1:-1;;;;;;36479:64:0;-1:-1:-1;;;36479:64:0;;-1:-1:-1;36316:529:0;36136:716;;;;;;:::o;60503:108::-;60563:13;60596:7;60589:14;;;;;:::i;50180:1745::-;50245:17;50679:4;50672;50666:11;50662:22;50771:1;50765:4;50758:15;50846:4;50843:1;50839:12;50832:19;;;50928:1;50923:3;50916:14;51032:3;51271:5;51253:428;51319:1;51314:3;51310:11;51303:18;;51490:2;51484:4;51480:13;51476:2;51472:22;51467:3;51459:36;51584:2;51574:13;;51641:25;51253:428;51641:25;-1:-1:-1;51711:13:0;;;-1:-1:-1;;51826:14:0;;;51888:19;;;51826:14;50180:1745;-1:-1:-1;50180:1745:0:o;43032:689::-;43163:19;43169:2;43173:8;43163:5;:19::i;:::-;-1:-1:-1;;;;;43224:14:0;;;:19;43220:483;;43264:11;43278:13;43326:14;;;43359:233;43390:62;43429:1;43433:2;43437:7;;;;;;43446:5;43390:30;:62::i;:::-;43385:167;;43488:40;;-1:-1:-1;;;43488:40:0;;;;;;;;;;;43385:167;43587:3;43579:5;:11;43359:233;;43674:3;43657:13;;:20;43653:34;;43679:8;;;43653:34;43245:458;;43032:689;;;:::o;37314:2966::-;37387:20;37410:13;;;37438;;;37434:44;;37460:18;;-1:-1:-1;;;37460:18:0;;;;;;;;;;;37434:44;-1:-1:-1;;;;;37966:22:0;;;;;;:18;:22;;;;11035:2;37966:22;;;:71;;38004:32;37992:45;;37966:71;;;38280:31;;;:17;:31;;;;;-1:-1:-1;25016:15:0;;24990:24;24986:46;24585:11;24560:23;24556:41;24553:52;24543:63;;38280:173;;38515:23;;;;38280:31;;37966:22;;39280:25;37966:22;;39133:335;39794:1;39780:12;39776:20;39734:346;39835:3;39826:7;39823:16;39734:346;;40053:7;40043:8;40040:1;40013:25;40010:1;40007;40002:59;39888:1;39875:15;39734:346;;;39738:77;40113:8;40125:1;40113:13;40109:45;;40135:19;;-1:-1:-1;;;40135:19:0;;;;;;;;;;;40109:45;40171:13;:19;-1:-1:-1;32854:193:0;;;:::o;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:250::-;677:1;687:113;701:6;698:1;695:13;687:113;;;777:11;;;771:18;758:11;;;751:39;723:2;716:10;687:113;;;-1:-1:-1;;834:1:1;816:16;;809:27;592:250::o;847:271::-;889:3;927:5;921:12;954:6;949:3;942:19;970:76;1039:6;1032:4;1027:3;1023:14;1016:4;1009:5;1005:16;970:76;:::i;:::-;1100:2;1079:15;-1:-1:-1;;1075:29:1;1066:39;;;;1107:4;1062:50;;847:271;-1:-1:-1;;847:271:1:o;1123:220::-;1272:2;1261:9;1254:21;1235:4;1292:45;1333:2;1322:9;1318:18;1310:6;1292:45;:::i;1348:180::-;1407:6;1460:2;1448:9;1439:7;1435:23;1431:32;1428:52;;;1476:1;1473;1466:12;1428:52;-1:-1:-1;1499:23:1;;1348:180;-1:-1:-1;1348:180:1:o;1741:173::-;1809:20;;-1:-1:-1;;;;;1858:31:1;;1848:42;;1838:70;;1904:1;1901;1894:12;1838:70;1741:173;;;:::o;1919:254::-;1987:6;1995;2048:2;2036:9;2027:7;2023:23;2019:32;2016:52;;;2064:1;2061;2054:12;2016:52;2087:29;2106:9;2087:29;:::i;:::-;2077:39;2163:2;2148:18;;;;2135:32;;-1:-1:-1;;;1919:254:1:o;2360:328::-;2437:6;2445;2453;2506:2;2494:9;2485:7;2481:23;2477:32;2474:52;;;2522:1;2519;2512:12;2474:52;2545:29;2564:9;2545:29;:::i;:::-;2535:39;;2593:38;2627:2;2616:9;2612:18;2593:38;:::i;:::-;2583:48;;2678:2;2667:9;2663:18;2650:32;2640:42;;2360:328;;;;;:::o;2693:127::-;2754:10;2749:3;2745:20;2742:1;2735:31;2785:4;2782:1;2775:15;2809:4;2806:1;2799:15;2825:632;2890:5;2920:18;2961:2;2953:6;2950:14;2947:40;;;2967:18;;:::i;:::-;3042:2;3036:9;3010:2;3096:15;;-1:-1:-1;;3092:24:1;;;3118:2;3088:33;3084:42;3072:55;;;3142:18;;;3162:22;;;3139:46;3136:72;;;3188:18;;:::i;:::-;3228:10;3224:2;3217:22;3257:6;3248:15;;3287:6;3279;3272:22;3327:3;3318:6;3313:3;3309:16;3306:25;3303:45;;;3344:1;3341;3334:12;3303:45;3394:6;3389:3;3382:4;3374:6;3370:17;3357:44;3449:1;3442:4;3433:6;3425;3421:19;3417:30;3410:41;;;;2825:632;;;;;:::o;3462:451::-;3531:6;3584:2;3572:9;3563:7;3559:23;3555:32;3552:52;;;3600:1;3597;3590:12;3552:52;3640:9;3627:23;3673:18;3665:6;3662:30;3659:50;;;3705:1;3702;3695:12;3659:50;3728:22;;3781:4;3773:13;;3769:27;-1:-1:-1;3759:55:1;;3810:1;3807;3800:12;3759:55;3833:74;3899:7;3894:2;3881:16;3876:2;3872;3868:11;3833:74;:::i;3918:186::-;3977:6;4030:2;4018:9;4009:7;4005:23;4001:32;3998:52;;;4046:1;4043;4036:12;3998:52;4069:29;4088:9;4069:29;:::i;4109:347::-;4174:6;4182;4235:2;4223:9;4214:7;4210:23;4206:32;4203:52;;;4251:1;4248;4241:12;4203:52;4274:29;4293:9;4274:29;:::i;:::-;4264:39;;4353:2;4342:9;4338:18;4325:32;4400:5;4393:13;4386:21;4379:5;4376:32;4366:60;;4422:1;4419;4412:12;4366:60;4445:5;4435:15;;;4109:347;;;;;:::o;4461:667::-;4556:6;4564;4572;4580;4633:3;4621:9;4612:7;4608:23;4604:33;4601:53;;;4650:1;4647;4640:12;4601:53;4673:29;4692:9;4673:29;:::i;:::-;4663:39;;4721:38;4755:2;4744:9;4740:18;4721:38;:::i;:::-;4711:48;;4806:2;4795:9;4791:18;4778:32;4768:42;;4861:2;4850:9;4846:18;4833:32;4888:18;4880:6;4877:30;4874:50;;;4920:1;4917;4910:12;4874:50;4943:22;;4996:4;4988:13;;4984:27;-1:-1:-1;4974:55:1;;5025:1;5022;5015:12;4974:55;5048:74;5114:7;5109:2;5096:16;5091:2;5087;5083:11;5048:74;:::i;:::-;5038:84;;;4461:667;;;;;;;:::o;5133:260::-;5201:6;5209;5262:2;5250:9;5241:7;5237:23;5233:32;5230:52;;;5278:1;5275;5268:12;5230:52;5301:29;5320:9;5301:29;:::i;:::-;5291:39;;5349:38;5383:2;5372:9;5368:18;5349:38;:::i;:::-;5339:48;;5133:260;;;;;:::o;5398:380::-;5477:1;5473:12;;;;5520;;;5541:61;;5595:4;5587:6;5583:17;5573:27;;5541:61;5648:2;5640:6;5637:14;5617:18;5614:38;5611:161;;5694:10;5689:3;5685:20;5682:1;5675:31;5729:4;5726:1;5719:15;5757:4;5754:1;5747:15;5611:161;;5398:380;;;:::o;5783:329::-;5985:2;5967:21;;;6024:1;6004:18;;;5997:29;-1:-1:-1;;;6057:2:1;6042:18;;6035:36;6103:2;6088:18;;5783:329::o;6117:127::-;6178:10;6173:3;6169:20;6166:1;6159:31;6209:4;6206:1;6199:15;6233:4;6230:1;6223:15;6249:125;6314:9;;;6335:10;;;6332:36;;;6348:18;;:::i;6379:168::-;6452:9;;;6483;;6500:15;;;6494:22;;6480:37;6470:71;;6521:18;;:::i;6552:128::-;6619:9;;;6640:11;;;6637:37;;;6654:18;;:::i;6811:545::-;6913:2;6908:3;6905:11;6902:448;;;6949:1;6974:5;6970:2;6963:17;7019:4;7015:2;7005:19;7089:2;7077:10;7073:19;7070:1;7066:27;7060:4;7056:38;7125:4;7113:10;7110:20;7107:47;;;-1:-1:-1;7148:4:1;7107:47;7203:2;7198:3;7194:12;7191:1;7187:20;7181:4;7177:31;7167:41;;7258:82;7276:2;7269:5;7266:13;7258:82;;;7321:17;;;7302:1;7291:13;7258:82;;7532:1352;7658:3;7652:10;7685:18;7677:6;7674:30;7671:56;;;7707:18;;:::i;:::-;7736:97;7826:6;7786:38;7818:4;7812:11;7786:38;:::i;:::-;7780:4;7736:97;:::i;:::-;7888:4;;7952:2;7941:14;;7969:1;7964:663;;;;8671:1;8688:6;8685:89;;;-1:-1:-1;8740:19:1;;;8734:26;8685:89;-1:-1:-1;;7489:1:1;7485:11;;;7481:24;7477:29;7467:40;7513:1;7509:11;;;7464:57;8787:81;;7934:944;;7964:663;6758:1;6751:14;;;6795:4;6782:18;;-1:-1:-1;;8000:20:1;;;8118:236;8132:7;8129:1;8126:14;8118:236;;;8221:19;;;8215:26;8200:42;;8313:27;;;;8281:1;8269:14;;;;8148:19;;8118:236;;;8122:3;8382:6;8373:7;8370:19;8367:201;;;8443:19;;;8437:26;-1:-1:-1;;8526:1:1;8522:14;;;8538:3;8518:24;8514:37;8510:42;8495:58;8480:74;;8367:201;-1:-1:-1;;;;;8614:1:1;8598:14;;;8594:22;8581:36;;-1:-1:-1;7532:1352:1:o;8889:496::-;9068:3;9106:6;9100:13;9122:66;9181:6;9176:3;9169:4;9161:6;9157:17;9122:66;:::i;:::-;9251:13;;9210:16;;;;9273:70;9251:13;9210:16;9320:4;9308:17;;9273:70;:::i;:::-;9359:20;;8889:496;-1:-1:-1;;;;8889:496:1:o;10518:489::-;-1:-1:-1;;;;;10787:15:1;;;10769:34;;10839:15;;10834:2;10819:18;;10812:43;10886:2;10871:18;;10864:34;;;10934:3;10929:2;10914:18;;10907:31;;;10712:4;;10955:46;;10981:19;;10973:6;10955:46;:::i;:::-;10947:54;10518:489;-1:-1:-1;;;;;;10518:489:1:o;11012:249::-;11081:6;11134:2;11122:9;11113:7;11109:23;11105:32;11102:52;;;11150:1;11147;11140:12;11102:52;11182:9;11176:16;11201:30;11225:5;11201:30;:::i

Swarm Source

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