ETH Price: $3,924.70 (+5.40%)

Token

dragontown (DRAGON)
 

Overview

Max Total Supply

10,000 DRAGON

Holders

2,087

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
4 DRAGON
0x5e75d5cbd2bbf427697ef1e8ad7ea019a5049757
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:
dragontown

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

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

//░░░░░░▒▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
//░░░░░░▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
//░░░░░▒▒░░▒░░░░░░░░░░░░░░▒▒▒░░░░░░░░░░░░░░░░░▒░░░░░░░░░░░░░░░░▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
//░░░░▒▒▒░▒▒░░░░░░░░░░░░░▒▒▒▒▒▒▒░░░▒▒░░░░░░▒░░▒░░░░░░░░░░░░░░░░▒░░░░░░░░▒▒░░░░░░░░░░░░░░░░░░░░░░░░░░
//▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░▒░░░▒▒░░░░░▒▒░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░░░░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░░░░░░░░░░░░░▒░░░░░░
//▒▒░░░░▒░▒▒░░░▒░░░░▒▒░░▒░░░░░░▒▒░▒░░░░░░░▒▒░▒▒▒░░░▒▒░░░░░░░░░░░▒░░░░░░▒▒▒▒▒░░░░░░░▒░░░▒░░▒░░▒░▒▒▒▒░
//▒░░░░▒▒░▒░░░░▒░░░▒░▒░░▒▒░░░░░▒▒▒▒▒░░░░░░░▒░░▒▒▒░░░▒▒░░░░░░░░░░░▒░░░░░▒░░░▒▒░▒░░░░▒░░░▒░░▒▒░▒▒░░░▒▒
//▒▒▒▒▒▒▒░▒░░░░▒▒▒▒░░▒▒▒░▒▒▒░░░▒▒▒▒▒▒░░░░░▒▒░░░▒▒░░░░▒▒░░░░░░░░░░▒▒░░░░▒░░░░░▒▒▒░░░▒░░░▒▒░░▒░▒░░░░░▒
//░░░░░░░░░░░░░░░░░░░░░░░░░▒▒▒▒░░░░▒▒▒▒▒▒▒▒░░░░▒░░░░░▒░░░░░░░░░░░▒▒░░░▒▒░░░░░▒░▒░░▒▒▒░░▒▒░░▒░▒░░░░░▒
//░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒▒░░░▒▒░░▒▒░░░▒░▒░▒▒░▒▒░░▒░▒░░░░░▒
//░░░░░░░░░░░░░░░░░░░░░░░░▒▒░░░░░░░▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒▒▒▒░░░░▒▒▒░░▒▒▒░▒░▒░▒░░░░░▒
//░░░░░░░░░░░░░░░░░░░░░░░░░░▒▒▒▒▒▒▒░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░▒▒░░░▒░░▒▒▒░▒░░░░░▒
//░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░



// SPDX-License-Identifier: MIT

// File: https://github.com/chiru-labs/ERC721A/blob/main/contracts/IERC721A.sol


// ERC721A Contracts v3.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

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

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

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

    /**
     * The caller cannot approve to the current owner.
     */
    error ApprovalToCurrentOwner();

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

    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
    }

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     *
     * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens.
     */
    function totalSupply() external view returns (uint256);

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

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 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`.
     *
     * 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 calldata data
    ) external;

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

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

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

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

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

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

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

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

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

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

// File: https://github.com/chiru-labs/ERC721A/blob/main/contracts/ERC721A.sol


// ERC721A Contracts v3.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;


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

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..).
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is IERC721A {
    // 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 tokenId of the next token 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`
    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 => address) private _tokenApprovals;

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

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

    /**
     * @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 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 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 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 returns (uint256) {
        return _burnCounter;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    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: 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.
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view 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 auxillary 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 auxillary 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 {
        uint256 packed = _packedAddressData[owner];
        uint256 auxCasted;
        assembly { // Cast aux without masking.
            auxCasted := aux
        }
        packed = (packed & BITMASK_AUX_COMPLEMENT) | (auxCasted << BITPOS_AUX);
        _packedAddressData[owner] = packed;
    }

    /**
     * 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 ownership that has an address and is not burned
                        // before an ownership that does not have an address and is not burned.
                        // Hence, curr will not underflow.
                        //
                        // We can directly compare the packed value.
                        // If the address is zero, packed is zero.
                        while (packed == 0) {
                            packed = _packedOwnerships[--curr];
                        }
                        return packed;
                    }
                }
        }
        revert OwnerQueryForNonexistentToken();
    }

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

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

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

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

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return address(uint160(_packedOwnershipOf(tokenId)));
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    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, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return '';
    }

    /**
     * @dev Casts the address to uint256 without masking.
     */
    function _addressToUint256(address value) private pure returns (uint256 result) {
        assembly {
            result := value
        }
    }

    /**
     * @dev Casts the boolean to uint256 without branching.
     */
    function _boolToUint256(bool value) private pure returns (uint256 result) {
        assembly {
            result := value
        }
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public override {
        address owner = address(uint160(_packedOwnershipOf(tokenId)));
        if (to == owner) revert ApprovalToCurrentOwner();

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

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

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        if (operator == _msgSenderERC721A()) revert ApproveToCaller();

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

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        _transfer(from, to, tokenId);
    }

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        _transfer(from, to, tokenId);
        if (to.code.length != 0)
            if (!_checkContractOnERC721Received(from, to, tokenId, _data)) {
                revert TransferToNonERC721ReceiverImplementer();
            }
    }

    /**
     * @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 (`_mint`),
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        return
            _startTokenId() <= tokenId &&
            tokenId < _currentIndex && // If within bounds,
            _packedOwnerships[tokenId] & BITMASK_BURNED == 0; // and not burned.
    }

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    function _safeMint(address to, uint256 quantity) internal {
        _safeMint(to, 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.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

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

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the balance and number minted.
            _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] =
                _addressToUint256(to) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED);

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            if (to.code.length != 0) {
                do {
                    emit Transfer(address(0), to, updatedIndex);
                    if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (updatedIndex < end);
                // Reentrancy protection
                if (_currentIndex != startTokenId) revert();
            } else {
                do {
                    emit Transfer(address(0), to, updatedIndex++);
                } while (updatedIndex < end);
            }
            _currentIndex = updatedIndex;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @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.
     */
    function _mint(address to, uint256 quantity) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

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

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            // Updates:
            // - `balance += quantity`.
            // - `numberMinted += quantity`.
            //
            // We can directly add to the balance and number minted.
            _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] =
                _addressToUint256(to) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                (_boolToUint256(quantity == 1) << BITPOS_NEXT_INITIALIZED);

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            do {
                emit Transfer(address(0), to, updatedIndex++);
            } while (updatedIndex < end);

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

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) private {
        uint256 prevOwnershipPacked = _packedOwnershipOf(tokenId);

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

        bool isApprovedOrOwner = (_msgSenderERC721A() == from ||
            isApprovedForAll(from, _msgSenderERC721A()) ||
            getApproved(tokenId) == _msgSenderERC721A());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        delete _tokenApprovals[tokenId];

        // 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] =
                _addressToUint256(to) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                BITMASK_NEXT_INITIALIZED;

            // 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 `_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));

        if (approvalCheck) {
            bool isApprovedOrOwner = (_msgSenderERC721A() == from ||
                isApprovedForAll(from, _msgSenderERC721A()) ||
                getApproved(tokenId) == _msgSenderERC721A());

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

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

        // Clear approvals from the previous owner.
        delete _tokenApprovals[tokenId];

        // 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] =
                _addressToUint256(from) |
                (block.timestamp << BITPOS_START_TIMESTAMP) |
                BITMASK_BURNED | 
                BITMASK_NEXT_INITIALIZED;

            // 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++;
        }
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool 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))
                }
            }
        }
    }

    /**
     * @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 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 returns (string memory ptr) {
        assembly {
            // The maximum value of a uint256 contains 78 digits (1 byte per digit), 
            // but we allocate 128 bytes to keep the free memory pointer 32-byte word aliged.
            // We will need 1 32-byte word to store the length, 
            // and 3 32-byte words to store a maximum of 78 digits. Total: 32 + 3 * 32 = 128.
            ptr := add(mload(0x40), 128)
            // Update the free memory pointer to allocate.
            mstore(0x40, ptr)

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

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

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Strings.sol


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

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/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: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol


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

pragma solidity ^0.8.0;


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

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

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

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

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

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

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

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

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/Address.sol


// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/IERC721Receiver.sol


// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/introspection/IERC165.sol


// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/introspection/ERC165.sol


// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;


/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/IERC721.sol


// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;


/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @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`.
     *
     * 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 calldata data
    ) external;

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

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

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

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

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

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

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/extensions/IERC721Metadata.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;


/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @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);
}

// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC721/ERC721.sol


// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;








/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

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

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

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: address zero is not a valid owner");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @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, can be overridden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, data);
    }

    /**
     * @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.
     *
     * `data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @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 (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == spender);
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(address(0), to, tokenId);

        _afterTokenTransfer(address(0), to, tokenId);
    }

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

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

        emit Transfer(owner, address(0), tokenId);

        _afterTokenTransfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits an {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * 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, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}


pragma solidity ^0.8.0;




contract dragontown is ERC721A, Ownable {
    using Strings for uint256;

    string private baseURI;

    uint256 public price = 0.004 ether;

    uint256 public maxPerTx = 5;

    uint256 public maxFreePerWallet = 2;

    uint256 public totalFree = 1500;

    uint256 public maxSupply = 10000;

    bool public mintEnabled = false;

    mapping(address => uint256) private _mintedFreeAmount;

    constructor() ERC721A("dragontown", "DRAGON") {
        _safeMint(msg.sender, 5);
        setBaseURI("ipfs://QmbySva8WvL9em1izmbWQMgGf8AJawpFUjMWfLArqh4oxT/");
    }

    function mint(uint256 count) external payable {
        uint256 cost = price;
        bool isFree = ((totalSupply() + count < totalFree + 1) &&
            (_mintedFreeAmount[msg.sender] + count <= maxFreePerWallet));

        if (isFree) {
            cost = 0;
        }

        require(msg.value >= count * cost, "Please send the exact amount.");
        require(totalSupply() + count < maxSupply + 1, "No more");
        require(mintEnabled, "Minting is not live yet");
        require(count < maxPerTx + 1, "Max per TX reached.");

        if (isFree) {
            _mintedFreeAmount[msg.sender] += count;
        }

        _safeMint(msg.sender, count);
    }

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

    function walletOfOwner(address _owner)
    public
    view
    returns (uint256[] memory)
  {
    uint256 ownerTokenCount = balanceOf(_owner);
    uint256[] memory ownedTokenIds = new uint256[](ownerTokenCount);
    uint256 currentTokenId = 0;
    uint256 ownedTokenIndex = 0;

    while (ownedTokenIndex < ownerTokenCount && currentTokenId <= maxSupply) {
      address currentTokenOwner = ownerOf(currentTokenId);

      if (currentTokenOwner == _owner) {
        ownedTokenIds[ownedTokenIndex] = currentTokenId;

        ownedTokenIndex++;
      }

      currentTokenId++;
    }

    return ownedTokenIds;
  }

    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        require(
            _exists(tokenId),
            "ERC721Metadata: URI query for nonexistent token"
        );
        return string(abi.encodePacked(baseURI, tokenId.toString(), ".json"));
    }

    function setBaseURI(string memory uri) public onlyOwner {
        baseURI = uri;
    }

    function setFreeAmount(uint256 amount) external onlyOwner {
        totalFree = amount;
    }

    function setPrice(uint256 _newPrice) external onlyOwner {
        price = _newPrice;
    }

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","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":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"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":"maxFreePerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"count","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"uri","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"setFreeAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalFree","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052660e35fa931a0000600a556005600b556002600c556105dc600d55612710600e55600f805460ff191690553480156200003c57600080fd5b50604080518082018252600a815269323930b3b7b73a37bbb760b11b602080830191825283518085019094526006845265222920a3a7a760d11b9084015281519192916200008d9160029162000433565b508051620000a390600390602084019062000433565b50506000805550620000b533620000ec565b620000c23360056200013e565b620000e66040518060600160405280603681526020016200215b6036913962000164565b620005c4565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b62000160828260405180602001604052806000815250620001d860201b60201c565b5050565b6008546001600160a01b03163314620001c35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b80516200016090600990602084019062000433565b6000546001600160a01b0384166200020257604051622e076360e81b815260040160405180910390fd5b82620002215760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03841660008181526005602090815260408083208054680100000000000000018902019055848352600490915290204260a01b86176001861460e11b1790558190818501903b15620002ed575b60405182906001600160a01b038816906000906000805160206200213b833981519152908290a46001820191620002b29060009088908762000342565b620002d0576040516368d2bf6b60e11b815260040160405180910390fd5b80821062000275578260005414620002e757600080fd5b62000322565b5b6040516001830192906001600160a01b038816906000906000805160206200213b833981519152908290a4808210620002ee575b5060009081556200033c908583866001600160e01b038516565b50505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029062000379903390899088908890600401620004d9565b6020604051808303816000875af1925050508015620003b7575060408051601f3d908101601f19168201909252620003b49181019062000554565b60015b62000416573d808015620003e8576040519150601f19603f3d011682016040523d82523d6000602084013e620003ed565b606091505b5080516200040e576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b828054620004419062000587565b90600052602060002090601f016020900481019282620004655760008555620004b0565b82601f106200048057805160ff1916838001178555620004b0565b82800160010185558215620004b0579182015b82811115620004b057825182559160200191906001019062000493565b50620004be929150620004c2565b5090565b5b80821115620004be5760008155600101620004c3565b600060018060a01b038087168352602081871681850152856040850152608060608501528451915081608085015260005b82811015620005285785810182015185820160a0015281016200050a565b828111156200053b57600060a084870101525b5050601f01601f19169190910160a00195945050505050565b6000602082840312156200056757600080fd5b81516001600160e01b0319811681146200058057600080fd5b9392505050565b600181811c908216806200059c57607f821691505b60208210811415620005be57634e487b7160e01b600052602260045260246000fd5b50919050565b611b6780620005d46000396000f3fe6080604052600436106101cd5760003560e01c80638da5cb5b116100f7578063a702735711610095578063d5abeb0111610064578063d5abeb01146104f4578063e985e9c51461050a578063f2fde38b14610553578063f968adbe1461057357600080fd5b8063a702735714610484578063b88d4fde1461049a578063c87b56dd146104ba578063d1239730146104da57600080fd5b806395d89b41116100d157806395d89b4114610426578063a035b1fe1461043b578063a0712d6814610451578063a22cb4651461046457600080fd5b80638da5cb5b146103c857806391b7f5ed146103e657806392910eec1461040657600080fd5b80633ccfd60b1161016f5780636352211e1161013e5780636352211e1461035e57806370a082311461037e578063715018a61461039e5780637ba5e621146103b357600080fd5b80633ccfd60b146102dc57806342842e0e146102f1578063438b63001461031157806355f804b31461033e57600080fd5b8063095ea7b3116101ab578063095ea7b31461026157806318160ddd1461028357806323b872dd146102a6578063333e44e6146102c657600080fd5b806301ffc9a7146101d257806306fdde0314610207578063081812fc14610229575b600080fd5b3480156101de57600080fd5b506101f26101ed36600461157b565b610589565b60405190151581526020015b60405180910390f35b34801561021357600080fd5b5061021c6105db565b6040516101fe91906115f0565b34801561023557600080fd5b50610249610244366004611603565b61066d565b6040516001600160a01b0390911681526020016101fe565b34801561026d57600080fd5b5061028161027c366004611638565b6106b1565b005b34801561028f57600080fd5b50600154600054035b6040519081526020016101fe565b3480156102b257600080fd5b506102816102c1366004611662565b610784565b3480156102d257600080fd5b50610298600d5481565b3480156102e857600080fd5b50610281610794565b3480156102fd57600080fd5b5061028161030c366004611662565b610855565b34801561031d57600080fd5b5061033161032c36600461169e565b610870565b6040516101fe91906116b9565b34801561034a57600080fd5b50610281610359366004611789565b610950565b34801561036a57600080fd5b50610249610379366004611603565b610991565b34801561038a57600080fd5b5061029861039936600461169e565b61099c565b3480156103aa57600080fd5b506102816109eb565b3480156103bf57600080fd5b50610281610a21565b3480156103d457600080fd5b506008546001600160a01b0316610249565b3480156103f257600080fd5b50610281610401366004611603565b610a5f565b34801561041257600080fd5b50610281610421366004611603565b610a8e565b34801561043257600080fd5b5061021c610abd565b34801561044757600080fd5b50610298600a5481565b61028161045f366004611603565b610acc565b34801561047057600080fd5b5061028161047f3660046117d2565b610cbd565b34801561049057600080fd5b50610298600c5481565b3480156104a657600080fd5b506102816104b536600461180e565b610d53565b3480156104c657600080fd5b5061021c6104d5366004611603565b610d9d565b3480156104e657600080fd5b50600f546101f29060ff1681565b34801561050057600080fd5b50610298600e5481565b34801561051657600080fd5b506101f261052536600461188a565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561055f57600080fd5b5061028161056e36600461169e565b610e3e565b34801561057f57600080fd5b50610298600b5481565b60006301ffc9a760e01b6001600160e01b0319831614806105ba57506380ac58cd60e01b6001600160e01b03198316145b806105d55750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600280546105ea906118bd565b80601f0160208091040260200160405190810160405280929190818152602001828054610616906118bd565b80156106635780601f1061063857610100808354040283529160200191610663565b820191906000526020600020905b81548152906001019060200180831161064657829003601f168201915b5050505050905090565b600061067882610ed6565b610695576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006106bc82610efd565b9050806001600160a01b0316836001600160a01b031614156106f15760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216146107285761070b8133610525565b610728576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b61078f838383610f65565b505050565b6008546001600160a01b031633146107c75760405162461bcd60e51b81526004016107be906118f8565b60405180910390fd5b604051600090339047908381818185875af1925050503d8060008114610809576040519150601f19603f3d011682016040523d82523d6000602084013e61080e565b606091505b50509050806108525760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b60448201526064016107be565b50565b61078f83838360405180602001604052806000815250610d53565b6060600061087d8361099c565b905060008167ffffffffffffffff81111561089a5761089a6116fd565b6040519080825280602002602001820160405280156108c3578160200160208202803683370190505b5090506000805b83811080156108db5750600e548211155b156109465760006108eb83610991565b9050866001600160a01b0316816001600160a01b03161415610933578284838151811061091a5761091a61192d565b60209081029190910101528161092f81611959565b9250505b8261093d81611959565b935050506108ca565b5090949350505050565b6008546001600160a01b0316331461097a5760405162461bcd60e51b81526004016107be906118f8565b805161098d9060099060208401906114cc565b5050565b60006105d582610efd565b60006001600160a01b0382166109c5576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b03163314610a155760405162461bcd60e51b81526004016107be906118f8565b610a1f6000611108565b565b6008546001600160a01b03163314610a4b5760405162461bcd60e51b81526004016107be906118f8565b600f805460ff19811660ff90911615179055565b6008546001600160a01b03163314610a895760405162461bcd60e51b81526004016107be906118f8565b600a55565b6008546001600160a01b03163314610ab85760405162461bcd60e51b81526004016107be906118f8565b600d55565b6060600380546105ea906118bd565b600a54600d54600090610ae0906001611974565b83610aee6001546000540390565b610af89190611974565b108015610b215750600c5433600090815260106020526040902054610b1e908590611974565b11155b90508015610b2e57600091505b610b38828461198c565b341015610b875760405162461bcd60e51b815260206004820152601d60248201527f506c656173652073656e642074686520657861637420616d6f756e742e00000060448201526064016107be565b600e54610b95906001611974565b83610ba36001546000540390565b610bad9190611974565b10610be45760405162461bcd60e51b81526020600482015260076024820152664e6f206d6f726560c81b60448201526064016107be565b600f5460ff16610c365760405162461bcd60e51b815260206004820152601760248201527f4d696e74696e67206973206e6f74206c6976652079657400000000000000000060448201526064016107be565b600b54610c44906001611974565b8310610c885760405162461bcd60e51b815260206004820152601360248201527226b0bc103832b9102a2c103932b0b1b432b21760691b60448201526064016107be565b8015610cb3573360009081526010602052604081208054859290610cad908490611974565b90915550505b61078f338461115a565b6001600160a01b038216331415610ce75760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610d5e848484610f65565b6001600160a01b0383163b15610d9757610d7a84848484611174565b610d97576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060610da882610ed6565b610e0c5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016107be565b6009610e178361125d565b604051602001610e289291906119c7565b6040516020818303038152906040529050919050565b6008546001600160a01b03163314610e685760405162461bcd60e51b81526004016107be906118f8565b6001600160a01b038116610ecd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107be565b61085281611108565b60008054821080156105d5575050600090815260046020526040902054600160e01b161590565b600081600054811015610f4c57600081815260046020526040902054600160e01b8116610f4a575b80610f43575060001901600081815260046020526040902054610f25565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b6000610f7082610efd565b9050836001600160a01b0316816001600160a01b031614610fa35760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480610fc15750610fc18533610525565b80610fdc575033610fd18461066d565b6001600160a01b0316145b905080610ffc57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661102357604051633a954ecd60e21b815260040160405180910390fd5b600083815260066020908152604080832080546001600160a01b03191690556001600160a01b038881168452600583528184208054600019019055871683528083208054600101905585835260049091529020600160e11b4260a01b8617811790915582166110c057600183016000818152600460205260409020546110be5760005481146110be5760008181526004602052604090208390555b505b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61098d82826040518060200160405280600081525061135b565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906111a9903390899088908890600401611a82565b6020604051808303816000875af19250505080156111e4575060408051601f3d908101601f191682019092526111e191810190611abf565b60015b61123f573d808015611212576040519150601f19603f3d011682016040523d82523d6000602084013e611217565b606091505b508051611237576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060816112815750506040805180820190915260018152600360fc1b602082015290565b8160005b81156112ab578061129581611959565b91506112a49050600a83611af2565b9150611285565b60008167ffffffffffffffff8111156112c6576112c66116fd565b6040519080825280601f01601f1916602001820160405280156112f0576020820181803683370190505b5090505b841561125557611305600183611b06565b9150611312600a86611b1d565b61131d906030611974565b60f81b8183815181106113325761133261192d565b60200101906001600160f81b031916908160001a905350611354600a86611af2565b94506112f4565b6000546001600160a01b03841661138457604051622e076360e81b815260040160405180910390fd5b826113a25760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03841660008181526005602090815260408083208054680100000000000000018902019055848352600490915290204260a01b86176001861460e11b1790558190818501903b15611477575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46114406000878480600101955087611174565b61145d576040516368d2bf6b60e11b815260040160405180910390fd5b8082106113f557826000541461147257600080fd5b6114bc565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210611478575b506000908155610d979085838684565b8280546114d8906118bd565b90600052602060002090601f0160209004810192826114fa5760008555611540565b82601f1061151357805160ff1916838001178555611540565b82800160010185558215611540579182015b82811115611540578251825591602001919060010190611525565b5061154c929150611550565b5090565b5b8082111561154c5760008155600101611551565b6001600160e01b03198116811461085257600080fd5b60006020828403121561158d57600080fd5b8135610f4381611565565b60005b838110156115b357818101518382015260200161159b565b83811115610d975750506000910152565b600081518084526115dc816020860160208601611598565b601f01601f19169290920160200192915050565b602081526000610f4360208301846115c4565b60006020828403121561161557600080fd5b5035919050565b80356001600160a01b038116811461163357600080fd5b919050565b6000806040838503121561164b57600080fd5b6116548361161c565b946020939093013593505050565b60008060006060848603121561167757600080fd5b6116808461161c565b925061168e6020850161161c565b9150604084013590509250925092565b6000602082840312156116b057600080fd5b610f438261161c565b6020808252825182820181905260009190848201906040850190845b818110156116f1578351835292840192918401916001016116d5565b50909695505050505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561172e5761172e6116fd565b604051601f8501601f19908116603f01168101908282118183101715611756576117566116fd565b8160405280935085815286868601111561176f57600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561179b57600080fd5b813567ffffffffffffffff8111156117b257600080fd5b8201601f810184136117c357600080fd5b61125584823560208401611713565b600080604083850312156117e557600080fd5b6117ee8361161c565b91506020830135801515811461180357600080fd5b809150509250929050565b6000806000806080858703121561182457600080fd5b61182d8561161c565b935061183b6020860161161c565b925060408501359150606085013567ffffffffffffffff81111561185e57600080fd5b8501601f8101871361186f57600080fd5b61187e87823560208401611713565b91505092959194509250565b6000806040838503121561189d57600080fd5b6118a68361161c565b91506118b46020840161161c565b90509250929050565b600181811c908216806118d157607f821691505b602082108114156118f257634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060001982141561196d5761196d611943565b5060010190565b6000821982111561198757611987611943565b500190565b60008160001904831182151516156119a6576119a6611943565b500290565b600081516119bd818560208601611598565b9290920192915050565b600080845481600182811c9150808316806119e357607f831692505b6020808410821415611a0357634e487b7160e01b86526022600452602486fd5b818015611a175760018114611a2857611a55565b60ff19861689528489019650611a55565b60008b81526020902060005b86811015611a4d5781548b820152908501908301611a34565b505084890196505b505050505050611a79611a6882866119ab565b64173539b7b760d91b815260050190565b95945050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611ab5908301846115c4565b9695505050505050565b600060208284031215611ad157600080fd5b8151610f4381611565565b634e487b7160e01b600052601260045260246000fd5b600082611b0157611b01611adc565b500490565b600082821015611b1857611b18611943565b500390565b600082611b2c57611b2c611adc565b50069056fea26469706673582212203e3d8461ba780cc3f53428b83be15bdbb4f078d21e3d2bb9c05d4f3f137b757f64736f6c634300080b0033ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef697066733a2f2f516d62795376613857764c39656d31697a6d6257514d67476638414a61777046556a4d57664c41727168346f78542f

Deployed Bytecode

0x6080604052600436106101cd5760003560e01c80638da5cb5b116100f7578063a702735711610095578063d5abeb0111610064578063d5abeb01146104f4578063e985e9c51461050a578063f2fde38b14610553578063f968adbe1461057357600080fd5b8063a702735714610484578063b88d4fde1461049a578063c87b56dd146104ba578063d1239730146104da57600080fd5b806395d89b41116100d157806395d89b4114610426578063a035b1fe1461043b578063a0712d6814610451578063a22cb4651461046457600080fd5b80638da5cb5b146103c857806391b7f5ed146103e657806392910eec1461040657600080fd5b80633ccfd60b1161016f5780636352211e1161013e5780636352211e1461035e57806370a082311461037e578063715018a61461039e5780637ba5e621146103b357600080fd5b80633ccfd60b146102dc57806342842e0e146102f1578063438b63001461031157806355f804b31461033e57600080fd5b8063095ea7b3116101ab578063095ea7b31461026157806318160ddd1461028357806323b872dd146102a6578063333e44e6146102c657600080fd5b806301ffc9a7146101d257806306fdde0314610207578063081812fc14610229575b600080fd5b3480156101de57600080fd5b506101f26101ed36600461157b565b610589565b60405190151581526020015b60405180910390f35b34801561021357600080fd5b5061021c6105db565b6040516101fe91906115f0565b34801561023557600080fd5b50610249610244366004611603565b61066d565b6040516001600160a01b0390911681526020016101fe565b34801561026d57600080fd5b5061028161027c366004611638565b6106b1565b005b34801561028f57600080fd5b50600154600054035b6040519081526020016101fe565b3480156102b257600080fd5b506102816102c1366004611662565b610784565b3480156102d257600080fd5b50610298600d5481565b3480156102e857600080fd5b50610281610794565b3480156102fd57600080fd5b5061028161030c366004611662565b610855565b34801561031d57600080fd5b5061033161032c36600461169e565b610870565b6040516101fe91906116b9565b34801561034a57600080fd5b50610281610359366004611789565b610950565b34801561036a57600080fd5b50610249610379366004611603565b610991565b34801561038a57600080fd5b5061029861039936600461169e565b61099c565b3480156103aa57600080fd5b506102816109eb565b3480156103bf57600080fd5b50610281610a21565b3480156103d457600080fd5b506008546001600160a01b0316610249565b3480156103f257600080fd5b50610281610401366004611603565b610a5f565b34801561041257600080fd5b50610281610421366004611603565b610a8e565b34801561043257600080fd5b5061021c610abd565b34801561044757600080fd5b50610298600a5481565b61028161045f366004611603565b610acc565b34801561047057600080fd5b5061028161047f3660046117d2565b610cbd565b34801561049057600080fd5b50610298600c5481565b3480156104a657600080fd5b506102816104b536600461180e565b610d53565b3480156104c657600080fd5b5061021c6104d5366004611603565b610d9d565b3480156104e657600080fd5b50600f546101f29060ff1681565b34801561050057600080fd5b50610298600e5481565b34801561051657600080fd5b506101f261052536600461188a565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b34801561055f57600080fd5b5061028161056e36600461169e565b610e3e565b34801561057f57600080fd5b50610298600b5481565b60006301ffc9a760e01b6001600160e01b0319831614806105ba57506380ac58cd60e01b6001600160e01b03198316145b806105d55750635b5e139f60e01b6001600160e01b03198316145b92915050565b6060600280546105ea906118bd565b80601f0160208091040260200160405190810160405280929190818152602001828054610616906118bd565b80156106635780601f1061063857610100808354040283529160200191610663565b820191906000526020600020905b81548152906001019060200180831161064657829003601f168201915b5050505050905090565b600061067882610ed6565b610695576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b60006106bc82610efd565b9050806001600160a01b0316836001600160a01b031614156106f15760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216146107285761070b8133610525565b610728576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b61078f838383610f65565b505050565b6008546001600160a01b031633146107c75760405162461bcd60e51b81526004016107be906118f8565b60405180910390fd5b604051600090339047908381818185875af1925050503d8060008114610809576040519150601f19603f3d011682016040523d82523d6000602084013e61080e565b606091505b50509050806108525760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b60448201526064016107be565b50565b61078f83838360405180602001604052806000815250610d53565b6060600061087d8361099c565b905060008167ffffffffffffffff81111561089a5761089a6116fd565b6040519080825280602002602001820160405280156108c3578160200160208202803683370190505b5090506000805b83811080156108db5750600e548211155b156109465760006108eb83610991565b9050866001600160a01b0316816001600160a01b03161415610933578284838151811061091a5761091a61192d565b60209081029190910101528161092f81611959565b9250505b8261093d81611959565b935050506108ca565b5090949350505050565b6008546001600160a01b0316331461097a5760405162461bcd60e51b81526004016107be906118f8565b805161098d9060099060208401906114cc565b5050565b60006105d582610efd565b60006001600160a01b0382166109c5576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b03163314610a155760405162461bcd60e51b81526004016107be906118f8565b610a1f6000611108565b565b6008546001600160a01b03163314610a4b5760405162461bcd60e51b81526004016107be906118f8565b600f805460ff19811660ff90911615179055565b6008546001600160a01b03163314610a895760405162461bcd60e51b81526004016107be906118f8565b600a55565b6008546001600160a01b03163314610ab85760405162461bcd60e51b81526004016107be906118f8565b600d55565b6060600380546105ea906118bd565b600a54600d54600090610ae0906001611974565b83610aee6001546000540390565b610af89190611974565b108015610b215750600c5433600090815260106020526040902054610b1e908590611974565b11155b90508015610b2e57600091505b610b38828461198c565b341015610b875760405162461bcd60e51b815260206004820152601d60248201527f506c656173652073656e642074686520657861637420616d6f756e742e00000060448201526064016107be565b600e54610b95906001611974565b83610ba36001546000540390565b610bad9190611974565b10610be45760405162461bcd60e51b81526020600482015260076024820152664e6f206d6f726560c81b60448201526064016107be565b600f5460ff16610c365760405162461bcd60e51b815260206004820152601760248201527f4d696e74696e67206973206e6f74206c6976652079657400000000000000000060448201526064016107be565b600b54610c44906001611974565b8310610c885760405162461bcd60e51b815260206004820152601360248201527226b0bc103832b9102a2c103932b0b1b432b21760691b60448201526064016107be565b8015610cb3573360009081526010602052604081208054859290610cad908490611974565b90915550505b61078f338461115a565b6001600160a01b038216331415610ce75760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b610d5e848484610f65565b6001600160a01b0383163b15610d9757610d7a84848484611174565b610d97576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6060610da882610ed6565b610e0c5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016107be565b6009610e178361125d565b604051602001610e289291906119c7565b6040516020818303038152906040529050919050565b6008546001600160a01b03163314610e685760405162461bcd60e51b81526004016107be906118f8565b6001600160a01b038116610ecd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107be565b61085281611108565b60008054821080156105d5575050600090815260046020526040902054600160e01b161590565b600081600054811015610f4c57600081815260046020526040902054600160e01b8116610f4a575b80610f43575060001901600081815260046020526040902054610f25565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b6000610f7082610efd565b9050836001600160a01b0316816001600160a01b031614610fa35760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480610fc15750610fc18533610525565b80610fdc575033610fd18461066d565b6001600160a01b0316145b905080610ffc57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661102357604051633a954ecd60e21b815260040160405180910390fd5b600083815260066020908152604080832080546001600160a01b03191690556001600160a01b038881168452600583528184208054600019019055871683528083208054600101905585835260049091529020600160e11b4260a01b8617811790915582166110c057600183016000818152600460205260409020546110be5760005481146110be5760008181526004602052604090208390555b505b82846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61098d82826040518060200160405280600081525061135b565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906111a9903390899088908890600401611a82565b6020604051808303816000875af19250505080156111e4575060408051601f3d908101601f191682019092526111e191810190611abf565b60015b61123f573d808015611212576040519150601f19603f3d011682016040523d82523d6000602084013e611217565b606091505b508051611237576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060816112815750506040805180820190915260018152600360fc1b602082015290565b8160005b81156112ab578061129581611959565b91506112a49050600a83611af2565b9150611285565b60008167ffffffffffffffff8111156112c6576112c66116fd565b6040519080825280601f01601f1916602001820160405280156112f0576020820181803683370190505b5090505b841561125557611305600183611b06565b9150611312600a86611b1d565b61131d906030611974565b60f81b8183815181106113325761133261192d565b60200101906001600160f81b031916908160001a905350611354600a86611af2565b94506112f4565b6000546001600160a01b03841661138457604051622e076360e81b815260040160405180910390fd5b826113a25760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03841660008181526005602090815260408083208054680100000000000000018902019055848352600490915290204260a01b86176001861460e11b1790558190818501903b15611477575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46114406000878480600101955087611174565b61145d576040516368d2bf6b60e11b815260040160405180910390fd5b8082106113f557826000541461147257600080fd5b6114bc565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210611478575b506000908155610d979085838684565b8280546114d8906118bd565b90600052602060002090601f0160209004810192826114fa5760008555611540565b82601f1061151357805160ff1916838001178555611540565b82800160010185558215611540579182015b82811115611540578251825591602001919060010190611525565b5061154c929150611550565b5090565b5b8082111561154c5760008155600101611551565b6001600160e01b03198116811461085257600080fd5b60006020828403121561158d57600080fd5b8135610f4381611565565b60005b838110156115b357818101518382015260200161159b565b83811115610d975750506000910152565b600081518084526115dc816020860160208601611598565b601f01601f19169290920160200192915050565b602081526000610f4360208301846115c4565b60006020828403121561161557600080fd5b5035919050565b80356001600160a01b038116811461163357600080fd5b919050565b6000806040838503121561164b57600080fd5b6116548361161c565b946020939093013593505050565b60008060006060848603121561167757600080fd5b6116808461161c565b925061168e6020850161161c565b9150604084013590509250925092565b6000602082840312156116b057600080fd5b610f438261161c565b6020808252825182820181905260009190848201906040850190845b818110156116f1578351835292840192918401916001016116d5565b50909695505050505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff8084111561172e5761172e6116fd565b604051601f8501601f19908116603f01168101908282118183101715611756576117566116fd565b8160405280935085815286868601111561176f57600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561179b57600080fd5b813567ffffffffffffffff8111156117b257600080fd5b8201601f810184136117c357600080fd5b61125584823560208401611713565b600080604083850312156117e557600080fd5b6117ee8361161c565b91506020830135801515811461180357600080fd5b809150509250929050565b6000806000806080858703121561182457600080fd5b61182d8561161c565b935061183b6020860161161c565b925060408501359150606085013567ffffffffffffffff81111561185e57600080fd5b8501601f8101871361186f57600080fd5b61187e87823560208401611713565b91505092959194509250565b6000806040838503121561189d57600080fd5b6118a68361161c565b91506118b46020840161161c565b90509250929050565b600181811c908216806118d157607f821691505b602082108114156118f257634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060001982141561196d5761196d611943565b5060010190565b6000821982111561198757611987611943565b500190565b60008160001904831182151516156119a6576119a6611943565b500290565b600081516119bd818560208601611598565b9290920192915050565b600080845481600182811c9150808316806119e357607f831692505b6020808410821415611a0357634e487b7160e01b86526022600452602486fd5b818015611a175760018114611a2857611a55565b60ff19861689528489019650611a55565b60008b81526020902060005b86811015611a4d5781548b820152908501908301611a34565b505084890196505b505050505050611a79611a6882866119ab565b64173539b7b760d91b815260050190565b95945050505050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611ab5908301846115c4565b9695505050505050565b600060208284031215611ad157600080fd5b8151610f4381611565565b634e487b7160e01b600052601260045260246000fd5b600082611b0157611b01611adc565b500490565b600082821015611b1857611b18611943565b500390565b600082611b2c57611b2c611adc565b50069056fea26469706673582212203e3d8461ba780cc3f53428b83be15bdbb4f078d21e3d2bb9c05d4f3f137b757f64736f6c634300080b0033

Deployed Bytecode Sourcemap

80515:3004:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;17068:615;;;;;;;;;;-1:-1:-1;17068:615:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;17068:615:0;;;;;;;;22081:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;24149:204::-;;;;;;;;;;-1:-1:-1;24149:204:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1714:32:1;;;1696:51;;1684:2;1669:18;24149:204:0;1550:203:1;23609:474:0;;;;;;;;;;-1:-1:-1;23609:474:0;;;;;:::i;:::-;;:::i;:::-;;16122:315;;;;;;;;;;-1:-1:-1;16388:12:0;;16175:7;16372:13;:28;16122:315;;;2341:25:1;;;2329:2;2314:18;16122:315:0;2195:177:1;25035:170:0;;;;;;;;;;-1:-1:-1;25035:170:0;;;;;:::i;:::-;;:::i;80750:31::-;;;;;;;;;;;;;;;;83310:206;;;;;;;;;;;;;:::i;25276:185::-;;;;;;;;;;-1:-1:-1;25276:185:0;;;;;:::i;:::-;;:::i;81918:635::-;;;;;;;;;;-1:-1:-1;81918:635:0;;;;;:::i;:::-;;:::i;:::-;;;;;;;:::i;82919:88::-;;;;;;;;;;-1:-1:-1;82919:88:0;;;;;:::i;:::-;;:::i;21870:144::-;;;;;;;;;;-1:-1:-1;21870:144:0;;;;;:::i;:::-;;:::i;17747:224::-;;;;;;;;;;-1:-1:-1;17747:224:0;;;;;:::i;:::-;;:::i;47589:103::-;;;;;;;;;;;;;:::i;83218:84::-;;;;;;;;;;;;;:::i;46938:87::-;;;;;;;;;;-1:-1:-1;47011:6:0;;-1:-1:-1;;;;;47011:6:0;46938:87;;83118:92;;;;;;;;;;-1:-1:-1;83118:92:0;;;;;:::i;:::-;;:::i;83015:95::-;;;;;;;;;;-1:-1:-1;83015:95:0;;;;;:::i;:::-;;:::i;22250:104::-;;;;;;;;;;;;;:::i;80627:34::-;;;;;;;;;;;;;;;;81109:685;;;;;;:::i;:::-;;:::i;24425:308::-;;;;;;;;;;-1:-1:-1;24425:308:0;;;;;:::i;:::-;;:::i;80706:35::-;;;;;;;;;;;;;;;;25532:396;;;;;;;;;;-1:-1:-1;25532:396:0;;;;;:::i;:::-;;:::i;82561:350::-;;;;;;;;;;-1:-1:-1;82561:350:0;;;;;:::i;:::-;;:::i;80831:31::-;;;;;;;;;;-1:-1:-1;80831:31:0;;;;;;;;80790:32;;;;;;;;;;;;;;;;24804:164;;;;;;;;;;-1:-1:-1;24804:164:0;;;;;:::i;:::-;-1:-1:-1;;;;;24925:25:0;;;24901:4;24925:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;24804:164;47847:201;;;;;;;;;;-1:-1:-1;47847:201:0;;;;;:::i;:::-;;:::i;80670:27::-;;;;;;;;;;;;;;;;17068:615;17153:4;-1:-1:-1;;;;;;;;;17453:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;17530:25:0;;;17453:102;:179;;;-1:-1:-1;;;;;;;;;;17607:25:0;;;17453:179;17433:199;17068:615;-1:-1:-1;;17068:615:0:o;22081:100::-;22135:13;22168:5;22161:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;22081:100;:::o;24149:204::-;24217:7;24242:16;24250:7;24242;:16::i;:::-;24237:64;;24267:34;;-1:-1:-1;;;24267:34:0;;;;;;;;;;;24237:64;-1:-1:-1;24321:24:0;;;;:15;:24;;;;;;-1:-1:-1;;;;;24321:24:0;;24149:204::o;23609:474::-;23682:13;23714:27;23733:7;23714:18;:27::i;:::-;23682:61;;23764:5;-1:-1:-1;;;;;23758:11:0;:2;-1:-1:-1;;;;;23758:11:0;;23754:48;;;23778:24;;-1:-1:-1;;;23778:24:0;;;;;;;;;;;23754:48;40252:10;-1:-1:-1;;;;;23819:28:0;;;23815:175;;23867:44;23884:5;40252:10;24804:164;:::i;23867:44::-;23862:128;;23939:35;;-1:-1:-1;;;23939:35:0;;;;;;;;;;;23862:128;24002:24;;;;:15;:24;;;;;;:29;;-1:-1:-1;;;;;;24002:29:0;-1:-1:-1;;;;;24002:29:0;;;;;;;;;24047:28;;24002:24;;24047:28;;;;;;;23671:412;23609:474;;:::o;25035:170::-;25169:28;25179:4;25185:2;25189:7;25169:9;:28::i;:::-;25035:170;;;:::o;83310:206::-;47011:6;;-1:-1:-1;;;;;47011:6:0;40252:10;47158:23;47150:68;;;;-1:-1:-1;;;47150:68:0;;;;;;;:::i;:::-;;;;;;;;;83379:82:::1;::::0;83361:12:::1;::::0;83387:10:::1;::::0;83425:21:::1;::::0;83361:12;83379:82;83361:12;83379:82;83425:21;83387:10;83379:82:::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;83360:101;;;83480:7;83472:36;;;::::0;-1:-1:-1;;;83472:36:0;;7210:2:1;83472:36:0::1;::::0;::::1;7192:21:1::0;7249:2;7229:18;;;7222:30;-1:-1:-1;;;7268:18:1;;;7261:46;7324:18;;83472:36:0::1;7008:340:1::0;83472:36:0::1;83349:167;83310:206::o:0;25276:185::-;25414:39;25431:4;25437:2;25441:7;25414:39;;;;;;;;;;;;:16;:39::i;81918:635::-;81993:16;82021:23;82047:17;82057:6;82047:9;:17::i;:::-;82021:43;;82071:30;82118:15;82104:30;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;82104:30:0;;82071:63;;82141:22;82174:23;82210:309;82235:15;82217;:33;:64;;;;;82272:9;;82254:14;:27;;82217:64;82210:309;;;82292:25;82320:23;82328:14;82320:7;:23::i;:::-;82292:51;;82379:6;-1:-1:-1;;;;;82358:27:0;:17;-1:-1:-1;;;;;82358:27:0;;82354:131;;;82431:14;82398:13;82412:15;82398:30;;;;;;;;:::i;:::-;;;;;;;;;;:47;82458:17;;;;:::i;:::-;;;;82354:131;82495:16;;;;:::i;:::-;;;;82283:236;82210:309;;;-1:-1:-1;82534:13:0;;81918:635;-1:-1:-1;;;;81918:635:0:o;82919:88::-;47011:6;;-1:-1:-1;;;;;47011:6:0;40252:10;47158:23;47150:68;;;;-1:-1:-1;;;47150:68:0;;;;;;;:::i;:::-;82986:13;;::::1;::::0;:7:::1;::::0;:13:::1;::::0;::::1;::::0;::::1;:::i;:::-;;82919:88:::0;:::o;21870:144::-;21934:7;21977:27;21996:7;21977:18;:27::i;17747:224::-;17811:7;-1:-1:-1;;;;;17835:19:0;;17831:60;;17863:28;;-1:-1:-1;;;17863:28:0;;;;;;;;;;;17831:60;-1:-1:-1;;;;;;17909:25:0;;;;;:18;:25;;;;;;13086:13;17909:54;;17747:224::o;47589:103::-;47011:6;;-1:-1:-1;;;;;47011:6:0;40252:10;47158:23;47150:68;;;;-1:-1:-1;;;47150:68:0;;;;;;;:::i;:::-;47654:30:::1;47681:1;47654:18;:30::i;:::-;47589:103::o:0;83218:84::-;47011:6;;-1:-1:-1;;;;;47011:6:0;40252:10;47158:23;47150:68;;;;-1:-1:-1;;;47150:68:0;;;;;;;:::i;:::-;83283:11:::1;::::0;;-1:-1:-1;;83268:26:0;::::1;83283:11;::::0;;::::1;83282:12;83268:26;::::0;;83218:84::o;83118:92::-;47011:6;;-1:-1:-1;;;;;47011:6:0;40252:10;47158:23;47150:68;;;;-1:-1:-1;;;47150:68:0;;;;;;;:::i;:::-;83185:5:::1;:17:::0;83118:92::o;83015:95::-;47011:6;;-1:-1:-1;;;;;47011:6:0;40252:10;47158:23;47150:68;;;;-1:-1:-1;;;47150:68:0;;;;;;;:::i;:::-;83084:9:::1;:18:::0;83015:95::o;22250:104::-;22306:13;22339:7;22332:14;;;;;:::i;81109:685::-;81181:5;;81237:9;;81166:12;;81237:13;;81249:1;81237:13;:::i;:::-;81229:5;81213:13;16388:12;;16175:7;16372:13;:28;;16122:315;81213:13;:21;;;;:::i;:::-;:37;81212:115;;;;-1:-1:-1;81310:16:0;;81287:10;81269:29;;;;:17;:29;;;;;;:37;;81301:5;;81269:37;:::i;:::-;:57;;81212:115;81197:131;;81345:6;81341:47;;;81375:1;81368:8;;81341:47;81421:12;81429:4;81421:5;:12;:::i;:::-;81408:9;:25;;81400:67;;;;-1:-1:-1;;;81400:67:0;;8265:2:1;81400:67:0;;;8247:21:1;8304:2;8284:18;;;8277:30;8343:31;8323:18;;;8316:59;8392:18;;81400:67:0;8063:353:1;81400:67:0;81510:9;;:13;;81522:1;81510:13;:::i;:::-;81502:5;81486:13;16388:12;;16175:7;16372:13;:28;;16122:315;81486:13;:21;;;;:::i;:::-;:37;81478:57;;;;-1:-1:-1;;;81478:57:0;;8623:2:1;81478:57:0;;;8605:21:1;8662:1;8642:18;;;8635:29;-1:-1:-1;;;8680:18:1;;;8673:37;8727:18;;81478:57:0;8421:330:1;81478:57:0;81554:11;;;;81546:47;;;;-1:-1:-1;;;81546:47:0;;8958:2:1;81546:47:0;;;8940:21:1;8997:2;8977:18;;;8970:30;9036:25;9016:18;;;9009:53;9079:18;;81546:47:0;8756:347:1;81546:47:0;81620:8;;:12;;81631:1;81620:12;:::i;:::-;81612:5;:20;81604:52;;;;-1:-1:-1;;;81604:52:0;;9310:2:1;81604:52:0;;;9292:21:1;9349:2;9329:18;;;9322:30;-1:-1:-1;;;9368:18:1;;;9361:49;9427:18;;81604:52:0;9108:343:1;81604:52:0;81673:6;81669:77;;;81714:10;81696:29;;;;:17;:29;;;;;:38;;81729:5;;81696:29;:38;;81729:5;;81696:38;:::i;:::-;;;;-1:-1:-1;;81669:77:0;81758:28;81768:10;81780:5;81758:9;:28::i;24425:308::-;-1:-1:-1;;;;;24524:31:0;;40252:10;24524:31;24520:61;;;24564:17;;-1:-1:-1;;;24564:17:0;;;;;;;;;;;24520:61;40252:10;24594:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;24594:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;24594:60:0;;;;;;;;;;24670:55;;540:41:1;;;24594:49:0;;40252:10;24670:55;;513:18:1;24670:55:0;;;;;;;24425:308;;:::o;25532:396::-;25699:28;25709:4;25715:2;25719:7;25699:9;:28::i;:::-;-1:-1:-1;;;;;25742:14:0;;;:19;25738:183;;25781:56;25812:4;25818:2;25822:7;25831:5;25781:30;:56::i;:::-;25776:145;;25865:40;;-1:-1:-1;;;25865:40:0;;;;;;;;;;;25776:145;25532:396;;;;:::o;82561:350::-;82679:13;82732:16;82740:7;82732;:16::i;:::-;82710:113;;;;-1:-1:-1;;;82710:113:0;;9658:2:1;82710:113:0;;;9640:21:1;9697:2;9677:18;;;9670:30;9736:34;9716:18;;;9709:62;-1:-1:-1;;;9787:18:1;;;9780:45;9842:19;;82710:113:0;9456:411:1;82710:113:0;82865:7;82874:18;:7;:16;:18::i;:::-;82848:54;;;;;;;;;:::i;:::-;;;;;;;;;;;;;82834:69;;82561:350;;;:::o;47847:201::-;47011:6;;-1:-1:-1;;;;;47011:6:0;40252:10;47158:23;47150:68;;;;-1:-1:-1;;;47150:68:0;;;;;;;:::i;:::-;-1:-1:-1;;;;;47936:22:0;::::1;47928:73;;;::::0;-1:-1:-1;;;47928:73:0;;11814:2:1;47928:73:0::1;::::0;::::1;11796:21:1::0;11853:2;11833:18;;;11826:30;11892:34;11872:18;;;11865:62;-1:-1:-1;;;11943:18:1;;;11936:36;11989:19;;47928:73:0::1;11612:402:1::0;47928:73:0::1;48012:28;48031:8;48012:18;:28::i;26183:273::-:0;26240:4;26330:13;;26320:7;:23;26277:152;;;;-1:-1:-1;;26381:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;26381:43:0;:48;;26183:273::o;19385:1129::-;19452:7;19487;19589:13;;19582:4;:20;19578:869;;;19627:14;19644:23;;;:17;:23;;;;;;-1:-1:-1;;;19733:23:0;;19729:699;;20252:113;20259:11;20252:113;;-1:-1:-1;;;20330:6:0;20312:25;;;;:17;:25;;;;;;20252:113;;;20398:6;19385:1129;-1:-1:-1;;;19385:1129:0:o;19729:699::-;19604:843;19578:869;20475:31;;-1:-1:-1;;;20475:31:0;;;;;;;;;;;31422:2515;31537:27;31567;31586:7;31567:18;:27::i;:::-;31537:57;;31652:4;-1:-1:-1;;;;;31611:45:0;31627:19;-1:-1:-1;;;;;31611:45:0;;31607:86;;31665:28;;-1:-1:-1;;;31665:28:0;;;;;;;;;;;31607:86;31706:22;40252:10;-1:-1:-1;;;;;31732:27:0;;;;:87;;-1:-1:-1;31776:43:0;31793:4;40252:10;24804:164;:::i;31776:43::-;31732:147;;;-1:-1:-1;40252:10:0;31836:20;31848:7;31836:11;:20::i;:::-;-1:-1:-1;;;;;31836:43:0;;31732:147;31706:174;;31898:17;31893:66;;31924:35;;-1:-1:-1;;;31924:35:0;;;;;;;;;;;31893:66;-1:-1:-1;;;;;31974:16:0;;31970:52;;31999:23;;-1:-1:-1;;;31999:23:0;;;;;;;;;;;31970:52;32151:24;;;;:15;:24;;;;;;;;32144:31;;-1:-1:-1;;;;;;32144:31:0;;;-1:-1:-1;;;;;32543:24:0;;;;;:18;:24;;;;;32541:26;;-1:-1:-1;;32541:26:0;;;32612:22;;;;;;;32610:24;;-1:-1:-1;32610:24:0;;;32905:26;;;:17;:26;;;;;-1:-1:-1;;;32993:15:0;13740:3;32993:41;32951:84;;:128;;32905:174;;;33199:46;;33195:626;;33303:1;33293:11;;33271:19;33426:30;;;:17;:30;;;;;;33422:384;;33564:13;;33549:11;:28;33545:242;;33711:30;;;;:17;:30;;;;;:52;;;33545:242;33252:569;33195:626;33868:7;33864:2;-1:-1:-1;;;;;33849:27:0;33858:4;-1:-1:-1;;;;;33849:27:0;;;;;;;;;;;31526:2411;;31422:2515;;;:::o;48208:191::-;48301:6;;;-1:-1:-1;;;;;48318:17:0;;;-1:-1:-1;;;;;;48318:17:0;;;;;;;48351:40;;48301:6;;;48318:17;48301:6;;48351:40;;48282:16;;48351:40;48271:128;48208:191;:::o;26540:104::-;26609:27;26619:2;26623:8;26609:27;;;;;;;;;;;;:9;:27::i;37634:716::-;37818:88;;-1:-1:-1;;;37818:88:0;;37797:4;;-1:-1:-1;;;;;37818:45:0;;;;;:88;;40252:10;;37885:4;;37891:7;;37900:5;;37818:88;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;37818:88:0;;;;;;;;-1:-1:-1;;37818:88:0;;;;;;;;;;;;:::i;:::-;;;37814:529;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;38101:13:0;;38097:235;;38147:40;;-1:-1:-1;;;38147:40:0;;;;;;;;;;;38097:235;38290:6;38284:13;38275:6;38271:2;38267:15;38260:38;37814:529;-1:-1:-1;;;;;;37977:64:0;-1:-1:-1;;;37977:64:0;;-1:-1:-1;37814:529:0;37634:716;;;;;;:::o;42810:723::-;42866:13;43087:10;43083:53;;-1:-1:-1;;43114:10:0;;;;;;;;;;;;-1:-1:-1;;;43114:10:0;;;;;42810:723::o;43083:53::-;43161:5;43146:12;43202:78;43209:9;;43202:78;;43235:8;;;;:::i;:::-;;-1:-1:-1;43258:10:0;;-1:-1:-1;43266:2:0;43258:10;;:::i;:::-;;;43202:78;;;43290:19;43322:6;43312:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;43312:17:0;;43290:39;;43340:154;43347:10;;43340:154;;43374:11;43384:1;43374:11;;:::i;:::-;;-1:-1:-1;43443:10:0;43451:2;43443:5;:10;:::i;:::-;43430:24;;:2;:24;:::i;:::-;43417:39;;43400:6;43407;43400:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;43400:56:0;;;;;;;;-1:-1:-1;43471:11:0;43480:2;43471:11;;:::i;:::-;;;43340:154;;27017:2236;27140:20;27163:13;-1:-1:-1;;;;;27191:16:0;;27187:48;;27216:19;;-1:-1:-1;;;27216:19:0;;;;;;;;;;;27187:48;27250:13;27246:44;;27272:18;;-1:-1:-1;;;27272:18:0;;;;;;;;;;;27246:44;-1:-1:-1;;;;;27839:22:0;;;;;;:18;:22;;;;13223:2;27839:22;;;:70;;27877:31;27865:44;;27839:70;;;28152:31;;;:17;:31;;;;;28245:15;13740:3;28245:41;28203:84;;-1:-1:-1;28323:13:0;;14003:3;28308:56;28203:162;28152:213;;:31;;28446:23;;;;28490:14;:19;28486:635;;28530:313;28561:38;;28586:12;;-1:-1:-1;;;;;28561:38:0;;;28578:1;;28561:38;;28578:1;;28561:38;28627:69;28666:1;28670:2;28674:14;;;;;;28690:5;28627:30;:69::i;:::-;28622:174;;28732:40;;-1:-1:-1;;;28732:40:0;;;;;;;;;;;28622:174;28838:3;28823:12;:18;28530:313;;28924:12;28907:13;;:29;28903:43;;28938:8;;;28903:43;28486:635;;;28987:119;29018:40;;29043:14;;;;;-1:-1:-1;;;;;29018:40:0;;;29035:1;;29018:40;;29035:1;;29018:40;29101:3;29086:12;:18;28987:119;;28486:635;-1:-1:-1;29135:13:0;:28;;;29185:60;;29218:2;29222:12;29236:8;29185:60;:::i;-1:-1:-1:-;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;14:131:1;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:258::-;664:1;674:113;688:6;685:1;682:13;674:113;;;764:11;;;758:18;745:11;;;738:39;710:2;703:10;674:113;;;805:6;802:1;799:13;796:48;;;-1:-1:-1;;840:1:1;822:16;;815:27;592:258::o;855:269::-;908:3;946:5;940:12;973:6;968:3;961:19;989:63;1045:6;1038:4;1033:3;1029:14;1022:4;1015:5;1011:16;989:63;:::i;:::-;1106:2;1085:15;-1:-1:-1;;1081:29:1;1072:39;;;;1113:4;1068:50;;855:269;-1:-1:-1;;855:269:1:o;1129:231::-;1278:2;1267:9;1260:21;1241:4;1298:56;1350:2;1339:9;1335:18;1327:6;1298:56;:::i;1365:180::-;1424:6;1477:2;1465:9;1456:7;1452:23;1448:32;1445:52;;;1493:1;1490;1483:12;1445:52;-1:-1:-1;1516:23:1;;1365:180;-1:-1:-1;1365:180:1:o;1758:173::-;1826:20;;-1:-1:-1;;;;;1875:31:1;;1865:42;;1855:70;;1921:1;1918;1911:12;1855:70;1758:173;;;:::o;1936:254::-;2004:6;2012;2065:2;2053:9;2044:7;2040:23;2036:32;2033:52;;;2081:1;2078;2071:12;2033:52;2104:29;2123:9;2104:29;:::i;:::-;2094:39;2180:2;2165:18;;;;2152:32;;-1:-1:-1;;;1936:254:1:o;2377:328::-;2454:6;2462;2470;2523:2;2511:9;2502:7;2498:23;2494:32;2491:52;;;2539:1;2536;2529:12;2491:52;2562:29;2581:9;2562:29;:::i;:::-;2552:39;;2610:38;2644:2;2633:9;2629:18;2610:38;:::i;:::-;2600:48;;2695:2;2684:9;2680:18;2667:32;2657:42;;2377:328;;;;;:::o;2710:186::-;2769:6;2822:2;2810:9;2801:7;2797:23;2793:32;2790:52;;;2838:1;2835;2828:12;2790:52;2861:29;2880:9;2861:29;:::i;2901:632::-;3072:2;3124:21;;;3194:13;;3097:18;;;3216:22;;;3043:4;;3072:2;3295:15;;;;3269:2;3254:18;;;3043:4;3338:169;3352:6;3349:1;3346:13;3338:169;;;3413:13;;3401:26;;3482:15;;;;3447:12;;;;3374:1;3367:9;3338:169;;;-1:-1:-1;3524:3:1;;2901:632;-1:-1:-1;;;;;;2901:632:1:o;3538:127::-;3599:10;3594:3;3590:20;3587:1;3580:31;3630:4;3627:1;3620:15;3654:4;3651:1;3644:15;3670:632;3735:5;3765:18;3806:2;3798:6;3795:14;3792:40;;;3812:18;;:::i;:::-;3887:2;3881:9;3855:2;3941:15;;-1:-1:-1;;3937:24:1;;;3963:2;3933:33;3929:42;3917:55;;;3987:18;;;4007:22;;;3984:46;3981:72;;;4033:18;;:::i;:::-;4073:10;4069:2;4062:22;4102:6;4093:15;;4132:6;4124;4117:22;4172:3;4163:6;4158:3;4154:16;4151:25;4148:45;;;4189:1;4186;4179:12;4148:45;4239:6;4234:3;4227:4;4219:6;4215:17;4202:44;4294:1;4287:4;4278:6;4270;4266:19;4262:30;4255:41;;;;3670:632;;;;;:::o;4307:451::-;4376:6;4429:2;4417:9;4408:7;4404:23;4400:32;4397:52;;;4445:1;4442;4435:12;4397:52;4485:9;4472:23;4518:18;4510:6;4507:30;4504:50;;;4550:1;4547;4540:12;4504:50;4573:22;;4626:4;4618:13;;4614:27;-1:-1:-1;4604:55:1;;4655:1;4652;4645:12;4604:55;4678:74;4744:7;4739:2;4726:16;4721:2;4717;4713:11;4678:74;:::i;4763:347::-;4828:6;4836;4889:2;4877:9;4868:7;4864:23;4860:32;4857:52;;;4905:1;4902;4895:12;4857:52;4928:29;4947:9;4928:29;:::i;:::-;4918:39;;5007:2;4996:9;4992:18;4979:32;5054:5;5047:13;5040:21;5033:5;5030:32;5020:60;;5076:1;5073;5066:12;5020:60;5099:5;5089:15;;;4763:347;;;;;:::o;5115:667::-;5210:6;5218;5226;5234;5287:3;5275:9;5266:7;5262:23;5258:33;5255:53;;;5304:1;5301;5294:12;5255:53;5327:29;5346:9;5327:29;:::i;:::-;5317:39;;5375:38;5409:2;5398:9;5394:18;5375:38;:::i;:::-;5365:48;;5460:2;5449:9;5445:18;5432:32;5422:42;;5515:2;5504:9;5500:18;5487:32;5542:18;5534:6;5531:30;5528:50;;;5574:1;5571;5564:12;5528:50;5597:22;;5650:4;5642:13;;5638:27;-1:-1:-1;5628:55:1;;5679:1;5676;5669:12;5628:55;5702:74;5768:7;5763:2;5750:16;5745:2;5741;5737:11;5702:74;:::i;:::-;5692:84;;;5115:667;;;;;;;:::o;5787:260::-;5855:6;5863;5916:2;5904:9;5895:7;5891:23;5887:32;5884:52;;;5932:1;5929;5922:12;5884:52;5955:29;5974:9;5955:29;:::i;:::-;5945:39;;6003:38;6037:2;6026:9;6022:18;6003:38;:::i;:::-;5993:48;;5787:260;;;;;:::o;6052:380::-;6131:1;6127:12;;;;6174;;;6195:61;;6249:4;6241:6;6237:17;6227:27;;6195:61;6302:2;6294:6;6291:14;6271:18;6268:38;6265:161;;;6348:10;6343:3;6339:20;6336:1;6329:31;6383:4;6380:1;6373:15;6411:4;6408:1;6401:15;6265:161;;6052:380;;;:::o;6437:356::-;6639:2;6621:21;;;6658:18;;;6651:30;6717:34;6712:2;6697:18;;6690:62;6784:2;6769:18;;6437:356::o;7353:127::-;7414:10;7409:3;7405:20;7402:1;7395:31;7445:4;7442:1;7435:15;7469:4;7466:1;7459:15;7485:127;7546:10;7541:3;7537:20;7534:1;7527:31;7577:4;7574:1;7567:15;7601:4;7598:1;7591:15;7617:135;7656:3;-1:-1:-1;;7677:17:1;;7674:43;;;7697:18;;:::i;:::-;-1:-1:-1;7744:1:1;7733:13;;7617:135::o;7757:128::-;7797:3;7828:1;7824:6;7821:1;7818:13;7815:39;;;7834:18;;:::i;:::-;-1:-1:-1;7870:9:1;;7757:128::o;7890:168::-;7930:7;7996:1;7992;7988:6;7984:14;7981:1;7978:21;7973:1;7966:9;7959:17;7955:45;7952:71;;;8003:18;;:::i;:::-;-1:-1:-1;8043:9:1;;7890:168::o;9998:185::-;10040:3;10078:5;10072:12;10093:52;10138:6;10133:3;10126:4;10119:5;10115:16;10093:52;:::i;:::-;10161:16;;;;;9998:185;-1:-1:-1;;9998:185:1:o;10306:1301::-;10583:3;10612:1;10645:6;10639:13;10675:3;10697:1;10725:9;10721:2;10717:18;10707:28;;10785:2;10774:9;10770:18;10807;10797:61;;10851:4;10843:6;10839:17;10829:27;;10797:61;10877:2;10925;10917:6;10914:14;10894:18;10891:38;10888:165;;;-1:-1:-1;;;10952:33:1;;11008:4;11005:1;10998:15;11038:4;10959:3;11026:17;10888:165;11069:18;11096:104;;;;11214:1;11209:320;;;;11062:467;;11096:104;-1:-1:-1;;11129:24:1;;11117:37;;11174:16;;;;-1:-1:-1;11096:104:1;;11209:320;9945:1;9938:14;;;9982:4;9969:18;;11304:1;11318:165;11332:6;11329:1;11326:13;11318:165;;;11410:14;;11397:11;;;11390:35;11453:16;;;;11347:10;;11318:165;;;11322:3;;11512:6;11507:3;11503:16;11496:23;;11062:467;;;;;;;11545:56;11570:30;11596:3;11588:6;11570:30;:::i;:::-;-1:-1:-1;;;10248:20:1;;10293:1;10284:11;;10188:113;11545:56;11538:63;10306:1301;-1:-1:-1;;;;;10306:1301:1:o;12019:500::-;-1:-1:-1;;;;;12288:15:1;;;12270:34;;12340:15;;12335:2;12320:18;;12313:43;12387:2;12372:18;;12365:34;;;12435:3;12430:2;12415:18;;12408:31;;;12213:4;;12456:57;;12493:19;;12485:6;12456:57;:::i;:::-;12448:65;12019:500;-1:-1:-1;;;;;;12019:500:1:o;12524:249::-;12593:6;12646:2;12634:9;12625:7;12621:23;12617:32;12614:52;;;12662:1;12659;12652:12;12614:52;12694:9;12688:16;12713:30;12737:5;12713:30;:::i;12778:127::-;12839:10;12834:3;12830:20;12827:1;12820:31;12870:4;12867:1;12860:15;12894:4;12891:1;12884:15;12910:120;12950:1;12976;12966:35;;12981:18;;:::i;:::-;-1:-1:-1;13015:9:1;;12910:120::o;13035:125::-;13075:4;13103:1;13100;13097:8;13094:34;;;13108:18;;:::i;:::-;-1:-1:-1;13145:9:1;;13035:125::o;13165:112::-;13197:1;13223;13213:35;;13228:18;;:::i;:::-;-1:-1:-1;13262:9:1;;13165:112::o

Swarm Source

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