ETH Price: $3,853.53 (-1.49%)

Token

KryptoThugs (KT)
 

Overview

Max Total Supply

20,000 KT

Holders

1,760

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
10 KT
0xe74a23c8c9f1dd75d7bc99a200daa76767459a46
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:
KRYPTOTHUNGS

Compiler Version
v0.8.18+commit.87f61d96

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

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

// Sources flattened with hardhat v2.11.2 https://hardhat.org
// SPDX-License-Identifier: MIT
// File @openzeppelin/contracts/utils/[email protected]

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

pragma solidity ^0.8.0;

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

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

// File @openzeppelin/contracts/access/[email protected]

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

// File @openzeppelin/contracts/utils/[email protected]

// OpenZeppelin Contracts (last updated v4.7.0) (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 operator-filter-registry/src/[email protected]

pragma solidity ^0.8.13;

interface IOperatorFilterRegistry {
    /**
     * @notice Returns true if operator is not filtered for a given token, either by address or codeHash. Also returns
     *         true if supplied registrant address is not registered.
     */
    function isOperatorAllowed(
        address registrant,
        address operator
    ) external view returns (bool);

    /**
     * @notice Registers an address with the registry. May be called by address itself or by EIP-173 owner.
     */
    function register(address registrant) external;

    /**
     * @notice Registers an address with the registry and "subscribes" to another address's filtered operators and codeHashes.
     */
    function registerAndSubscribe(
        address registrant,
        address subscription
    ) external;

    /**
     * @notice Registers an address with the registry and copies the filtered operators and codeHashes from another
     *         address without subscribing.
     */
    function registerAndCopyEntries(
        address registrant,
        address registrantToCopy
    ) external;

    /**
     * @notice Unregisters an address with the registry and removes its subscription. May be called by address itself or by EIP-173 owner.
     *         Note that this does not remove any filtered addresses or codeHashes.
     *         Also note that any subscriptions to this registrant will still be active and follow the existing filtered addresses and codehashes.
     */
    function unregister(address addr) external;

    /**
     * @notice Update an operator address for a registered address - when filtered is true, the operator is filtered.
     */
    function updateOperator(
        address registrant,
        address operator,
        bool filtered
    ) external;

    /**
     * @notice Update multiple operators for a registered address - when filtered is true, the operators will be filtered. Reverts on duplicates.
     */
    function updateOperators(
        address registrant,
        address[] calldata operators,
        bool filtered
    ) external;

    /**
     * @notice Update a codeHash for a registered address - when filtered is true, the codeHash is filtered.
     */
    function updateCodeHash(
        address registrant,
        bytes32 codehash,
        bool filtered
    ) external;

    /**
     * @notice Update multiple codeHashes for a registered address - when filtered is true, the codeHashes will be filtered. Reverts on duplicates.
     */
    function updateCodeHashes(
        address registrant,
        bytes32[] calldata codeHashes,
        bool filtered
    ) external;

    /**
     * @notice Subscribe an address to another registrant's filtered operators and codeHashes. Will remove previous
     *         subscription if present.
     *         Note that accounts with subscriptions may go on to subscribe to other accounts - in this case,
     *         subscriptions will not be forwarded. Instead the former subscription's existing entries will still be
     *         used.
     */
    function subscribe(
        address registrant,
        address registrantToSubscribe
    ) external;

    /**
     * @notice Unsubscribe an address from its current subscribed registrant, and optionally copy its filtered operators and codeHashes.
     */
    function unsubscribe(address registrant, bool copyExistingEntries) external;

    /**
     * @notice Get the subscription address of a given registrant, if any.
     */
    function subscriptionOf(address addr) external returns (address registrant);

    /**
     * @notice Get the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscribers(
        address registrant
    ) external returns (address[] memory);

    /**
     * @notice Get the subscriber at a given index in the set of addresses subscribed to a given registrant.
     *         Note that order is not guaranteed as updates are made.
     */
    function subscriberAt(
        address registrant,
        uint256 index
    ) external returns (address);

    /**
     * @notice Copy filtered operators and codeHashes from a different registrantToCopy to addr.
     */
    function copyEntriesOf(
        address registrant,
        address registrantToCopy
    ) external;

    /**
     * @notice Returns true if operator is filtered by a given address or its subscription.
     */
    function isOperatorFiltered(
        address registrant,
        address operator
    ) external returns (bool);

    /**
     * @notice Returns true if the hash of an address's code is filtered by a given address or its subscription.
     */
    function isCodeHashOfFiltered(
        address registrant,
        address operatorWithCode
    ) external returns (bool);

    /**
     * @notice Returns true if a codeHash is filtered by a given address or its subscription.
     */
    function isCodeHashFiltered(
        address registrant,
        bytes32 codeHash
    ) external returns (bool);

    /**
     * @notice Returns a list of filtered operators for a given address or its subscription.
     */
    function filteredOperators(
        address addr
    ) external returns (address[] memory);

    /**
     * @notice Returns the set of filtered codeHashes for a given address or its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashes(
        address addr
    ) external returns (bytes32[] memory);

    /**
     * @notice Returns the filtered operator at the given index of the set of filtered operators for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredOperatorAt(
        address registrant,
        uint256 index
    ) external returns (address);

    /**
     * @notice Returns the filtered codeHash at the given index of the list of filtered codeHashes for a given address or
     *         its subscription.
     *         Note that order is not guaranteed as updates are made.
     */
    function filteredCodeHashAt(
        address registrant,
        uint256 index
    ) external returns (bytes32);

    /**
     * @notice Returns true if an address has registered
     */
    function isRegistered(address addr) external returns (bool);

    /**
     * @dev Convenience method to compute the code hash of an arbitrary contract
     */
    function codeHashOf(address addr) external returns (bytes32);
}

// File operator-filter-registry/src/lib/[email protected]

pragma solidity ^0.8.17;

address constant CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS = 0x000000000000AAeB6D7670E522A718067333cd4E;
address constant CANONICAL_CORI_SUBSCRIPTION = 0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6;

// File operator-filter-registry/src/[email protected]

pragma solidity ^0.8.13;

/**
 * @title  OperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 *         Please note that if your token contract does not provide an owner with EIP-173, it must provide
 *         administration methods on the contract itself to interact with the registry otherwise the subscription
 *         will be locked to the options set during construction.
 */

abstract contract OperatorFilterer {
    /// @dev Emitted when an operator is not allowed.
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(CANONICAL_OPERATOR_FILTER_REGISTRY_ADDRESS);

    /// @dev The constructor that is called when the contract is being deployed.
    constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
        // If an inheriting token contract is deployed to a network without the registry deployed, the modifier
        // will not revert, but the contract will need to be registered with the registry once it is deployed in
        // order for the modifier to filter addresses.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (subscribe) {
                OPERATOR_FILTER_REGISTRY.registerAndSubscribe(
                    address(this),
                    subscriptionOrRegistrantToCopy
                );
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    OPERATOR_FILTER_REGISTRY.registerAndCopyEntries(
                        address(this),
                        subscriptionOrRegistrantToCopy
                    );
                } else {
                    OPERATOR_FILTER_REGISTRY.register(address(this));
                }
            }
        }
    }

    /**
     * @dev A helper function to check if an operator is allowed.
     */
    modifier onlyAllowedOperator(address from) virtual {
        // Allow spending tokens from addresses with balance
        // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
        // from an EOA.
        if (from != msg.sender) {
            _checkFilterOperator(msg.sender);
        }
        _;
    }

    /**
     * @dev A helper function to check if an operator approval is allowed.
     */
    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    /**
     * @dev A helper function to check if an operator is allowed.
     */
    function _checkFilterOperator(address operator) internal view virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            // under normal circumstances, this function will revert rather than return false, but inheriting contracts
            // may specify their own OperatorFilterRegistry implementations, which may behave differently
            if (
                !OPERATOR_FILTER_REGISTRY.isOperatorAllowed(
                    address(this),
                    operator
                )
            ) {
                revert OperatorNotAllowed(operator);
            }
        }
    }
}

// File operator-filter-registry/src/[email protected]

pragma solidity ^0.8.13;

/**
 * @title  DefaultOperatorFilterer
 * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
 * @dev    Please note that if your token contract does not provide an owner with EIP-173, it must provide
 *         administration methods on the contract itself to interact with the registry otherwise the subscription
 *         will be locked to the options set during construction.
 */

abstract contract DefaultOperatorFilterer is OperatorFilterer {
    /// @dev The constructor that is called when the contract is being deployed.
    constructor() OperatorFilterer(CANONICAL_CORI_SUBSCRIPTION, true) {}
}

// File erc721a/contracts/[email protected]

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

pragma solidity ^0.8.4;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// File erc721a/contracts/[email protected]

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

pragma solidity ^0.8.4;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        return _tokenApprovals[tokenId].value;
    }

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        address from = address(uint160(prevOwnershipPacked));

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// File @openzeppelin/contracts/utils/introspection/[email protected]

// 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 @openzeppelin/contracts/interfaces/[email protected]

// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(
        uint256 tokenId,
        uint256 salePrice
    ) external view returns (address receiver, uint256 royaltyAmount);
}

// File @openzeppelin/contracts/utils/introspection/[email protected]

// 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 @openzeppelin/contracts/token/common/[email protected]

// OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(
        uint256 _tokenId,
        uint256 _salePrice
    ) public view virtual override returns (address, uint256) {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) /
            _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        require(
            feeNumerator <= _feeDenominator(),
            "ERC2981: royalty fee will exceed salePrice"
        );
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        require(
            feeNumerator <= _feeDenominator(),
            "ERC2981: royalty fee will exceed salePrice"
        );
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

// File contracts/KRYPTOTHUNGS.sol

pragma solidity 0.8.18;

error KRYPTOTHUNGS_SaleNotActive();
error KRYPTOTHUNGS_InvalidAmount();
error KRYPTOTHUNGS_MaxSupplyExceeded();
error KRYPTOTHUNGS_InsufficientFunds();
error KRYPTOTHUNGS_MaxWalletLimitExceeded();
error KRYPTOTHUNGS_FailedToWithdraw();
error KRYPTOTHUNGS_BalanceIsZero();
error KRYPTOTHUNGS_CannotBeBlank();
error KRYPTOTHUNGS_CannotBeZero();

contract KRYPTOTHUNGS is DefaultOperatorFilterer, ERC721A, Ownable, ERC2981 {
    enum SaleConfig {
        PAUSED,
        PUBLIC
    }

    using Strings for uint256;
    string private uriPrefix = "";
    string private constant URI_SUFFIX = ".json";

    ///////////////////////////////////////////////////////////
    //              SET SALE PAUSED
    // ///////////////////////////////////////////////////////
    SaleConfig private saleConfig = SaleConfig.PAUSED;

    ///////////////////////////////////////////////////////////
    //              PROJECT INFO
    // ///////////////////////////////////////////////////////
    uint16 private constant TOTAL_SUPPLY = 20000;
    uint256 private s_cost = 0.1 ether;
    uint16 private s_max_wallet_limit = 10;
    uint16 private s_max_transaction_limit = 10;

    ///////////////////////////////////////////////////////////
    //              TRACKING AND CONSTRUCTOR
    // ///////////////////////////////////////////////////////
    constructor() ERC721A("KryptoThugs", "KT") {
        // 750 Bips = 7.5%
        _setDefaultRoyalty(msg.sender, 750);
    }

    ///////////////////////////////////////////////////////////
    //              Modifiers
    // ///////////////////////////////////////////////////////
    modifier mintCompliance(uint256 _mintAmount) {
        if (isPaused()) revert KRYPTOTHUNGS_SaleNotActive();
        if (_mintAmount == 0 || _mintAmount > maxMintAmountPerTx())
            revert KRYPTOTHUNGS_InvalidAmount();
        if (totalSupply() + _mintAmount > maxSupply())
            revert KRYPTOTHUNGS_MaxSupplyExceeded();
        _;
    }

    modifier selfMintCompliance(uint256 _mintAmount) {
        if (_mintAmount == 0) revert KRYPTOTHUNGS_InvalidAmount();
        if (totalSupply() + _mintAmount > maxSupply())
            revert KRYPTOTHUNGS_MaxSupplyExceeded();
        _;
    }

    ///////////////////////////////////////////////////////////
    //              Get Functions
    // ///////////////////////////////////////////////////////
    function maxSupply() public pure returns (uint256) {
        return TOTAL_SUPPLY;
    }

    function maxWalletLimit() public view returns (uint256) {
        return s_max_wallet_limit;
    }

    function isPaused() public view returns (bool) {
        return saleConfig == SaleConfig.PAUSED;
    }

    function cost() public view returns (uint256) {
        return s_cost;
    }

    function maxMintAmountPerTx() public view returns (uint256) {
        return s_max_transaction_limit;
    }

    function hasBaseURI() external view returns (bool) {
        if (bytes(uriPrefix).length > 0) return true;

        return false;
    }

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

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

    ///////////////////////////////////////////////////////////
    //             Update Functions
    // ///////////////////////////////////////////////////////
    function setSaleConfig(SaleConfig _status) external onlyOwner {
        saleConfig = _status;
    }

    function setUriPrefix(string calldata _uriPrefix) external onlyOwner {
        bytes memory blank = bytes(_uriPrefix);
        if (blank.length == 0) revert KRYPTOTHUNGS_CannotBeBlank();
        uriPrefix = _uriPrefix;
    }

    function setCost(uint256 _cost) external onlyOwner {
        if (_cost == 0) revert KRYPTOTHUNGS_CannotBeZero();
        s_cost = _cost;
    }

    function setMaxTransactionLimit(uint16 _limit) external onlyOwner {
        if (_limit == 0) revert KRYPTOTHUNGS_CannotBeZero();
        s_max_transaction_limit = _limit;
    }

    function setWalletMaxLimit(uint16 _limit) external onlyOwner {
        if (_limit == 0) revert KRYPTOTHUNGS_CannotBeZero();
        s_max_wallet_limit = _limit;
    }

    /// @inheritdoc IERC165
    function supportsInterface(
        bytes4 interfaceId
    ) public view virtual override(ERC721A, ERC2981) returns (bool) {
        return
            ERC721A.supportsInterface(interfaceId) ||
            ERC2981.supportsInterface(interfaceId);
    }

    function setRoyalty(
        address _receiver,
        uint96 _royaltyFeeInBips
    ) external onlyOwner {
        _setDefaultRoyalty(_receiver, _royaltyFeeInBips);
    }

    function setApprovalForAll(
        address operator,
        bool approved
    ) public override onlyAllowedOperatorApproval(operator) {
        super.setApprovalForAll(operator, approved);
    }

    function approve(
        address operator,
        uint256 tokenId
    ) public payable override onlyAllowedOperatorApproval(operator) {
        super.approve(operator, tokenId);
    }

    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable override onlyAllowedOperator(from) {
        super.transferFrom(from, to, tokenId);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public payable override onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, tokenId);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) public payable override onlyAllowedOperator(from) {
        super.safeTransferFrom(from, to, tokenId, data);
    }

    ///////////////////////////////////////////////////////////
    //              METADATA URI
    // ///////////////////////////////////////////////////////

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

    function tokenURI(
        uint256 _tokenId
    ) public view virtual override returns (string memory) {
        require(
            _exists(_tokenId),
            "ERC721Metadata: URI query for nonexistent token"
        );

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

    ///////////////////////////////////////////////////////////
    //              MINT FUNCTIONS
    // ///////////////////////////////////////////////////////
    function mint(uint8 _amount) external payable mintCompliance(_amount) {
        if (msg.value < cost() * _amount)
            revert KRYPTOTHUNGS_InsufficientFunds();
        if (numberMinted(msg.sender) + _amount > maxWalletLimit())
            revert KRYPTOTHUNGS_MaxWalletLimitExceeded();
        _mint(msg.sender, _amount);
    }

    function mintForAddress(
        uint8 _amount,
        address _receiver
    ) external mintCompliance(_amount) onlyOwner {
        _mint(_receiver, _amount);
    }

    function mintForSelf(
        uint16 _amount
    ) external selfMintCompliance(_amount) onlyOwner {
        _mint(msg.sender, _amount);
    }

    ///////////////////////////////////////////////////////////
    //              MINT FUNCTIONS
    // ///////////////////////////////////////////////////////
    function withdrawFunds() external onlyOwner {
        if (address(this).balance == 0) revert KRYPTOTHUNGS_BalanceIsZero();
        (bool success, ) = owner().call{value: address(this).balance}("");
        if (!success) revert KRYPTOTHUNGS_FailedToWithdraw();
    }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"KRYPTOTHUNGS_BalanceIsZero","type":"error"},{"inputs":[],"name":"KRYPTOTHUNGS_CannotBeBlank","type":"error"},{"inputs":[],"name":"KRYPTOTHUNGS_CannotBeZero","type":"error"},{"inputs":[],"name":"KRYPTOTHUNGS_FailedToWithdraw","type":"error"},{"inputs":[],"name":"KRYPTOTHUNGS_InsufficientFunds","type":"error"},{"inputs":[],"name":"KRYPTOTHUNGS_InvalidAmount","type":"error"},{"inputs":[],"name":"KRYPTOTHUNGS_MaxSupplyExceeded","type":"error"},{"inputs":[],"name":"KRYPTOTHUNGS_MaxWalletLimitExceeded","type":"error"},{"inputs":[],"name":"KRYPTOTHUNGS_SaleNotActive","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"operator","type":"address"}],"name":"OperatorNotAllowed","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"getOwnershipData","outputs":[{"components":[{"internalType":"address","name":"addr","type":"address"},{"internalType":"uint64","name":"startTimestamp","type":"uint64"},{"internalType":"bool","name":"burned","type":"bool"},{"internalType":"uint24","name":"extraData","type":"uint24"}],"internalType":"struct IERC721A.TokenOwnership","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"hasBaseURI","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"isPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmountPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"maxWalletLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint8","name":"_amount","type":"uint8"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_amount","type":"uint8"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"mintForAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_amount","type":"uint16"}],"name":"mintForSelf","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"numberMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"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":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cost","type":"uint256"}],"name":"setCost","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_limit","type":"uint16"}],"name":"setMaxTransactionLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint96","name":"_royaltyFeeInBips","type":"uint96"}],"name":"setRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"enum KRYPTOTHUNGS.SaleConfig","name":"_status","type":"uint8"}],"name":"setSaleConfig","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriPrefix","type":"string"}],"name":"setUriPrefix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_limit","type":"uint16"}],"name":"setWalletMaxLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawFunds","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a060405260006080908152600b906200001a90826200042b565b50600c805460ff1916905567016345785d8a0000600d55600e805463ffffffff1916620a000a1790553480156200005057600080fd5b50604080518082018252600b81526a4b727970746f546875677360a81b6020808301919091528251808401909352600283526112d560f21b9083015290733cc6cdda760b79bafa08df41ecfa224f810dceb660016daaeb6d7670e522a718067333cd4e3b15620001e95780156200013757604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b1580156200011857600080fd5b505af11580156200012d573d6000803e3d6000fd5b50505050620001e9565b6001600160a01b03821615620001885760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af290390604401620000fd565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b158015620001cf57600080fd5b505af1158015620001e4573d6000803e3d6000fd5b505050505b5060029050620001fa83826200042b565b5060036200020982826200042b565b505060008055506200021b336200022f565b62000229336102ee62000281565b620004f7565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106001600160601b0382161115620002f55760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b0382166200034d5760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401620002ec565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600955565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680620003b157607f821691505b602082108103620003d257634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200042657600081815260208120601f850160051c81016020861015620004015750805b601f850160051c820191505b8181101562000422578281556001016200040d565b5050505b505050565b81516001600160401b0381111562000447576200044762000386565b6200045f816200045884546200039c565b84620003d8565b602080601f8311600181146200049757600084156200047e5750858301515b600019600386901b1c1916600185901b17855562000422565b600085815260208120601f198616915b82811015620004c857888601518255948401946001909101908401620004a7565b5085821015620004e75787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61212f80620005076000396000f3fe60806040526004361061021a5760003560e01c80636ecd23061161012357806395d89b41116100ab578063d5abeb011161006f578063d5abeb0114610634578063dc33e68114610649578063e985e9c514610669578063f0f46dce14610689578063f2fde38b146106a957600080fd5b806395d89b41146105b7578063a22cb465146105cc578063b187bd26146105ec578063b88d4fde14610601578063c87b56dd1461061457600080fd5b80637ec4a659116100f25780637ec4a659146104cd5780638da5cb5b146104ed5780638f2fc60b1461050b5780639231ab2a1461052b57806394354fd01461059857600080fd5b80636ecd23061461047057806370a0823114610483578063715018a6146104a35780637348af12146104b857600080fd5b80632a55205a116101a657806341f434341161017557806341f43434146103e257806342842e0e1461040457806344a0d68a146104175780636352211e1461043757806366a88d961461045757600080fd5b80632a55205a146103435780633255064a1461038257806333bc25f8146103a257806340af91ec146103c257600080fd5b806313faede6116101ed57806313faede6146102c357806318160ddd146102e257806318552f65146102fb57806323b872dd1461031b57806324600fc31461032e57600080fd5b806301ffc9a71461021f57806306fdde0314610254578063081812fc14610276578063095ea7b3146102ae575b600080fd5b34801561022b57600080fd5b5061023f61023a366004611a30565b6106c9565b60405190151581526020015b60405180910390f35b34801561026057600080fd5b506102696106e9565b60405161024b9190611a9d565b34801561028257600080fd5b50610296610291366004611ab0565b61077b565b6040516001600160a01b03909116815260200161024b565b6102c16102bc366004611ae5565b6107bf565b005b3480156102cf57600080fd5b50600d545b60405190815260200161024b565b3480156102ee57600080fd5b50600154600054036102d4565b34801561030757600080fd5b506102c1610316366004611b0f565b6107d8565b6102c1610329366004611b33565b610825565b34801561033a57600080fd5b506102c1610850565b34801561034f57600080fd5b5061036361035e366004611b6f565b610901565b604080516001600160a01b03909316835260208301919091520161024b565b34801561038e57600080fd5b506102c161039d366004611ba2565b6109ad565b3480156103ae57600080fd5b506102c16103bd366004611b0f565b610a5c565b3480156103ce57600080fd5b506102c16103dd366004611bd5565b610aa1565b3480156103ee57600080fd5b506102966daaeb6d7670e522a718067333cd4e81565b6102c1610412366004611b33565b610acf565b34801561042357600080fd5b506102c1610432366004611ab0565b610af4565b34801561044357600080fd5b50610296610452366004611ab0565b610b22565b34801561046357600080fd5b50600e5461ffff166102d4565b6102c161047e366004611bf6565b610b2d565b34801561048f57600080fd5b506102d461049e366004611c11565b610c4c565b3480156104af57600080fd5b506102c1610c9b565b3480156104c457600080fd5b5061023f610caf565b3480156104d957600080fd5b506102c16104e8366004611c2c565b610cd3565b3480156104f957600080fd5b506008546001600160a01b0316610296565b34801561051757600080fd5b506102c1610526366004611c9e565b610d47565b34801561053757600080fd5b5061054b610546366004611ab0565b610d59565b60405161024b919081516001600160a01b0316815260208083015167ffffffffffffffff169082015260408083015115159082015260609182015162ffffff169181019190915260800190565b3480156105a457600080fd5b50600e5462010000900461ffff166102d4565b3480156105c357600080fd5b50610269610d86565b3480156105d857600080fd5b506102c16105e7366004611cef565b610d95565b3480156105f857600080fd5b5061023f610da9565b6102c161060f366004611d31565b610dc9565b34801561062057600080fd5b5061026961062f366004611ab0565b610df6565b34801561064057600080fd5b50614e206102d4565b34801561065557600080fd5b506102d4610664366004611c11565b610ee5565b34801561067557600080fd5b5061023f610684366004611e0d565b610f10565b34801561069557600080fd5b506102c16106a4366004611b0f565b610f3e565b3480156106b557600080fd5b506102c16106c4366004611c11565b610fb4565b60006106d48261102a565b806106e357506106e382611078565b92915050565b6060600280546106f890611e29565b80601f016020809104026020016040519081016040528092919081815260200182805461072490611e29565b80156107715780601f1061074657610100808354040283529160200191610771565b820191906000526020600020905b81548152906001019060200180831161075457829003601f168201915b5050505050905090565b6000610786826110ad565b6107a3576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b816107c9816110d4565b6107d3838361118d565b505050565b6107e061122d565b8061ffff1660000361080557604051634e78bafd60e01b815260040160405180910390fd5b600e805461ffff909216620100000263ffff000019909216919091179055565b826001600160a01b038116331461083f5761083f336110d4565b61084a848484611287565b50505050565b61085861122d565b476000036108795760405163fca63b1d60e01b815260040160405180910390fd5b600061088d6008546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d80600081146108d7576040519150601f19603f3d011682016040523d82523d6000602084013e6108dc565b606091505b50509050806108fe5760405163c6d24c7760e01b815260040160405180910390fd5b50565b6000828152600a602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916109765750604080518082019091526009546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610995906001600160601b031687611e79565b61099f9190611ea6565b915196919550909350505050565b8160ff166109b9610da9565b156109d75760405163a342f42b60e01b815260040160405180910390fd5b8015806109ef5750600e5462010000900461ffff1681115b15610a0d57604051630d1c694760e41b815260040160405180910390fd5b614e2081610a1e6001546000540390565b610a289190611eba565b1115610a47576040516365ec425b60e11b815260040160405180910390fd5b610a4f61122d565b6107d3828460ff16611420565b610a6461122d565b8061ffff16600003610a8957604051634e78bafd60e01b815260040160405180910390fd5b600e805461ffff191661ffff92909216919091179055565b610aa961122d565b600c805482919060ff191660018381811115610ac757610ac7611ecd565b021790555050565b826001600160a01b0381163314610ae957610ae9336110d4565b61084a84848461151e565b610afc61122d565b80600003610b1d57604051634e78bafd60e01b815260040160405180910390fd5b600d55565b60006106e382611539565b8060ff16610b39610da9565b15610b575760405163a342f42b60e01b815260040160405180910390fd5b801580610b6f5750600e5462010000900461ffff1681115b15610b8d57604051630d1c694760e41b815260040160405180910390fd5b614e2081610b9e6001546000540390565b610ba89190611eba565b1115610bc7576040516365ec425b60e11b815260040160405180910390fd5b8160ff16610bd4600d5490565b610bde9190611e79565b341015610bfe576040516381661a0f60e01b815260040160405180910390fd5b600e5461ffff168260ff16610c1233610ee5565b610c1c9190611eba565b1115610c3b57604051630fee9fbb60e21b815260040160405180910390fd5b610c48338360ff16611420565b5050565b60006001600160a01b038216610c75576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610ca361122d565b610cad60006115a0565b565b600080600b8054610cbf90611e29565b90501115610ccd5750600190565b50600090565b610cdb61122d565b600082828080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201829052508451949550939093039250610d3a9150505760405163b74db18d60e01b815260040160405180910390fd5b600b61084a838583611f29565b610d4f61122d565b610c4882826115f2565b6040805160808101825260008082526020820181905291810182905260608101919091526106e3826116ef565b6060600380546106f890611e29565b81610d9f816110d4565b6107d38383611767565b600080600c5460ff166001811115610dc357610dc3611ecd565b14905090565b836001600160a01b0381163314610de357610de3336110d4565b610def858585856117d3565b5050505050565b6060610e01826110ad565b610e6a5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084015b60405180910390fd5b6000610e74611817565b90506000815111610e945760405180602001604052806000815250610ede565b80610e9e84611826565b60405180604001604052806005815260200164173539b7b760d91b815250604051602001610ece93929190611fe9565b6040516020818303038152906040525b9392505050565b6001600160a01b0381166000908152600560205260408082205467ffffffffffffffff911c166106e3565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b8061ffff1680600003610f6457604051630d1c694760e41b815260040160405180910390fd5b614e2081610f756001546000540390565b610f7f9190611eba565b1115610f9e576040516365ec425b60e11b815260040160405180910390fd5b610fa661122d565b610c48338361ffff16611420565b610fbc61122d565b6001600160a01b0381166110215760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610e61565b6108fe816115a0565b60006301ffc9a760e01b6001600160e01b03198316148061105b57506380ac58cd60e01b6001600160e01b03198316145b806106e35750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b0319821663152a902d60e11b14806106e357506301ffc9a760e01b6001600160e01b03198316146106e3565b60008054821080156106e3575050600090815260046020526040902054600160e01b161590565b6daaeb6d7670e522a718067333cd4e3b156108fe57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611141573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611165919061202c565b6108fe57604051633b79c77360e21b81526001600160a01b0382166004820152602401610e61565b600061119882610b22565b9050336001600160a01b038216146111d1576111b48133610f10565b6111d1576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6008546001600160a01b03163314610cad5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e61565b600061129282611539565b9050836001600160a01b0316816001600160a01b0316146112c55760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417611312576112f58633610f10565b61131257604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661133957604051633a954ecd60e21b815260040160405180910390fd5b801561134457600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b841690036113d6576001840160008181526004602052604081205490036113d45760005481146113d45760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b60008054908290036114455760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146114f457808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016114bc565b508160000361151557604051622e076360e81b815260040160405180910390fd5b60005550505050565b6107d383838360405180602001604052806000815250610dc9565b6000816000548110156115875760008181526004602052604081205490600160e01b82169003611585575b80600003610ede575060001901600081815260046020526040902054611564565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106001600160601b03821611156116605760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610e61565b6001600160a01b0382166116b65760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610e61565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600955565b6040805160808101825260008082526020820181905291810182905260608101919091526106e361171f83611539565b604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6117de848484610825565b6001600160a01b0383163b1561084a576117fa8484848461192f565b61084a576040516368d2bf6b60e11b815260040160405180910390fd5b6060600b80546106f890611e29565b60608160000361184d5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611877578061186181612049565b91506118709050600a83611ea6565b9150611851565b60008167ffffffffffffffff81111561189257611892611d1b565b6040519080825280601f01601f1916602001820160405280156118bc576020820181803683370190505b5090505b8415611927576118d1600183612062565b91506118de600a86612075565b6118e9906030611eba565b60f81b8183815181106118fe576118fe612089565b60200101906001600160f81b031916908160001a905350611920600a86611ea6565b94506118c0565b949350505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061196490339089908890889060040161209f565b6020604051808303816000875af192505050801561199f575060408051601f3d908101601f1916820190925261199c918101906120dc565b60015b6119fd573d8080156119cd576040519150601f19603f3d011682016040523d82523d6000602084013e6119d2565b606091505b5080516000036119f5576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6001600160e01b0319811681146108fe57600080fd5b600060208284031215611a4257600080fd5b8135610ede81611a1a565b60005b83811015611a68578181015183820152602001611a50565b50506000910152565b60008151808452611a89816020860160208601611a4d565b601f01601f19169290920160200192915050565b602081526000610ede6020830184611a71565b600060208284031215611ac257600080fd5b5035919050565b80356001600160a01b0381168114611ae057600080fd5b919050565b60008060408385031215611af857600080fd5b611b0183611ac9565b946020939093013593505050565b600060208284031215611b2157600080fd5b813561ffff81168114610ede57600080fd5b600080600060608486031215611b4857600080fd5b611b5184611ac9565b9250611b5f60208501611ac9565b9150604084013590509250925092565b60008060408385031215611b8257600080fd5b50508035926020909101359150565b803560ff81168114611ae057600080fd5b60008060408385031215611bb557600080fd5b611bbe83611b91565b9150611bcc60208401611ac9565b90509250929050565b600060208284031215611be757600080fd5b813560028110610ede57600080fd5b600060208284031215611c0857600080fd5b610ede82611b91565b600060208284031215611c2357600080fd5b610ede82611ac9565b60008060208385031215611c3f57600080fd5b823567ffffffffffffffff80821115611c5757600080fd5b818501915085601f830112611c6b57600080fd5b813581811115611c7a57600080fd5b866020828501011115611c8c57600080fd5b60209290920196919550909350505050565b60008060408385031215611cb157600080fd5b611cba83611ac9565b915060208301356001600160601b0381168114611cd657600080fd5b809150509250929050565b80151581146108fe57600080fd5b60008060408385031215611d0257600080fd5b611d0b83611ac9565b91506020830135611cd681611ce1565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215611d4757600080fd5b611d5085611ac9565b9350611d5e60208601611ac9565b925060408501359150606085013567ffffffffffffffff80821115611d8257600080fd5b818701915087601f830112611d9657600080fd5b813581811115611da857611da8611d1b565b604051601f8201601f19908116603f01168101908382118183101715611dd057611dd0611d1b565b816040528281528a6020848701011115611de957600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215611e2057600080fd5b611bbe83611ac9565b600181811c90821680611e3d57607f821691505b602082108103611e5d57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176106e3576106e3611e63565b634e487b7160e01b600052601260045260246000fd5b600082611eb557611eb5611e90565b500490565b808201808211156106e3576106e3611e63565b634e487b7160e01b600052602160045260246000fd5b601f8211156107d357600081815260208120601f850160051c81016020861015611f0a5750805b601f850160051c820191505b8181101561141857828155600101611f16565b67ffffffffffffffff831115611f4157611f41611d1b565b611f5583611f4f8354611e29565b83611ee3565b6000601f841160018114611f895760008515611f715750838201355b600019600387901b1c1916600186901b178355610def565b600083815260209020601f19861690835b82811015611fba5786850135825560209485019460019092019101611f9a565b5086821015611fd75760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b60008451611ffb818460208901611a4d565b84519083019061200f818360208901611a4d565b8451910190612022818360208801611a4d565b0195945050505050565b60006020828403121561203e57600080fd5b8151610ede81611ce1565b60006001820161205b5761205b611e63565b5060010190565b818103818111156106e3576106e3611e63565b60008261208457612084611e90565b500690565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906120d290830184611a71565b9695505050505050565b6000602082840312156120ee57600080fd5b8151610ede81611a1a56fea26469706673582212205583583e79e95053257a1fb9264f38e59148002bfaec5393e225244c19def97964736f6c63430008120033

Deployed Bytecode

0x60806040526004361061021a5760003560e01c80636ecd23061161012357806395d89b41116100ab578063d5abeb011161006f578063d5abeb0114610634578063dc33e68114610649578063e985e9c514610669578063f0f46dce14610689578063f2fde38b146106a957600080fd5b806395d89b41146105b7578063a22cb465146105cc578063b187bd26146105ec578063b88d4fde14610601578063c87b56dd1461061457600080fd5b80637ec4a659116100f25780637ec4a659146104cd5780638da5cb5b146104ed5780638f2fc60b1461050b5780639231ab2a1461052b57806394354fd01461059857600080fd5b80636ecd23061461047057806370a0823114610483578063715018a6146104a35780637348af12146104b857600080fd5b80632a55205a116101a657806341f434341161017557806341f43434146103e257806342842e0e1461040457806344a0d68a146104175780636352211e1461043757806366a88d961461045757600080fd5b80632a55205a146103435780633255064a1461038257806333bc25f8146103a257806340af91ec146103c257600080fd5b806313faede6116101ed57806313faede6146102c357806318160ddd146102e257806318552f65146102fb57806323b872dd1461031b57806324600fc31461032e57600080fd5b806301ffc9a71461021f57806306fdde0314610254578063081812fc14610276578063095ea7b3146102ae575b600080fd5b34801561022b57600080fd5b5061023f61023a366004611a30565b6106c9565b60405190151581526020015b60405180910390f35b34801561026057600080fd5b506102696106e9565b60405161024b9190611a9d565b34801561028257600080fd5b50610296610291366004611ab0565b61077b565b6040516001600160a01b03909116815260200161024b565b6102c16102bc366004611ae5565b6107bf565b005b3480156102cf57600080fd5b50600d545b60405190815260200161024b565b3480156102ee57600080fd5b50600154600054036102d4565b34801561030757600080fd5b506102c1610316366004611b0f565b6107d8565b6102c1610329366004611b33565b610825565b34801561033a57600080fd5b506102c1610850565b34801561034f57600080fd5b5061036361035e366004611b6f565b610901565b604080516001600160a01b03909316835260208301919091520161024b565b34801561038e57600080fd5b506102c161039d366004611ba2565b6109ad565b3480156103ae57600080fd5b506102c16103bd366004611b0f565b610a5c565b3480156103ce57600080fd5b506102c16103dd366004611bd5565b610aa1565b3480156103ee57600080fd5b506102966daaeb6d7670e522a718067333cd4e81565b6102c1610412366004611b33565b610acf565b34801561042357600080fd5b506102c1610432366004611ab0565b610af4565b34801561044357600080fd5b50610296610452366004611ab0565b610b22565b34801561046357600080fd5b50600e5461ffff166102d4565b6102c161047e366004611bf6565b610b2d565b34801561048f57600080fd5b506102d461049e366004611c11565b610c4c565b3480156104af57600080fd5b506102c1610c9b565b3480156104c457600080fd5b5061023f610caf565b3480156104d957600080fd5b506102c16104e8366004611c2c565b610cd3565b3480156104f957600080fd5b506008546001600160a01b0316610296565b34801561051757600080fd5b506102c1610526366004611c9e565b610d47565b34801561053757600080fd5b5061054b610546366004611ab0565b610d59565b60405161024b919081516001600160a01b0316815260208083015167ffffffffffffffff169082015260408083015115159082015260609182015162ffffff169181019190915260800190565b3480156105a457600080fd5b50600e5462010000900461ffff166102d4565b3480156105c357600080fd5b50610269610d86565b3480156105d857600080fd5b506102c16105e7366004611cef565b610d95565b3480156105f857600080fd5b5061023f610da9565b6102c161060f366004611d31565b610dc9565b34801561062057600080fd5b5061026961062f366004611ab0565b610df6565b34801561064057600080fd5b50614e206102d4565b34801561065557600080fd5b506102d4610664366004611c11565b610ee5565b34801561067557600080fd5b5061023f610684366004611e0d565b610f10565b34801561069557600080fd5b506102c16106a4366004611b0f565b610f3e565b3480156106b557600080fd5b506102c16106c4366004611c11565b610fb4565b60006106d48261102a565b806106e357506106e382611078565b92915050565b6060600280546106f890611e29565b80601f016020809104026020016040519081016040528092919081815260200182805461072490611e29565b80156107715780601f1061074657610100808354040283529160200191610771565b820191906000526020600020905b81548152906001019060200180831161075457829003601f168201915b5050505050905090565b6000610786826110ad565b6107a3576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b816107c9816110d4565b6107d3838361118d565b505050565b6107e061122d565b8061ffff1660000361080557604051634e78bafd60e01b815260040160405180910390fd5b600e805461ffff909216620100000263ffff000019909216919091179055565b826001600160a01b038116331461083f5761083f336110d4565b61084a848484611287565b50505050565b61085861122d565b476000036108795760405163fca63b1d60e01b815260040160405180910390fd5b600061088d6008546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d80600081146108d7576040519150601f19603f3d011682016040523d82523d6000602084013e6108dc565b606091505b50509050806108fe5760405163c6d24c7760e01b815260040160405180910390fd5b50565b6000828152600a602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b03169282019290925282916109765750604080518082019091526009546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610995906001600160601b031687611e79565b61099f9190611ea6565b915196919550909350505050565b8160ff166109b9610da9565b156109d75760405163a342f42b60e01b815260040160405180910390fd5b8015806109ef5750600e5462010000900461ffff1681115b15610a0d57604051630d1c694760e41b815260040160405180910390fd5b614e2081610a1e6001546000540390565b610a289190611eba565b1115610a47576040516365ec425b60e11b815260040160405180910390fd5b610a4f61122d565b6107d3828460ff16611420565b610a6461122d565b8061ffff16600003610a8957604051634e78bafd60e01b815260040160405180910390fd5b600e805461ffff191661ffff92909216919091179055565b610aa961122d565b600c805482919060ff191660018381811115610ac757610ac7611ecd565b021790555050565b826001600160a01b0381163314610ae957610ae9336110d4565b61084a84848461151e565b610afc61122d565b80600003610b1d57604051634e78bafd60e01b815260040160405180910390fd5b600d55565b60006106e382611539565b8060ff16610b39610da9565b15610b575760405163a342f42b60e01b815260040160405180910390fd5b801580610b6f5750600e5462010000900461ffff1681115b15610b8d57604051630d1c694760e41b815260040160405180910390fd5b614e2081610b9e6001546000540390565b610ba89190611eba565b1115610bc7576040516365ec425b60e11b815260040160405180910390fd5b8160ff16610bd4600d5490565b610bde9190611e79565b341015610bfe576040516381661a0f60e01b815260040160405180910390fd5b600e5461ffff168260ff16610c1233610ee5565b610c1c9190611eba565b1115610c3b57604051630fee9fbb60e21b815260040160405180910390fd5b610c48338360ff16611420565b5050565b60006001600160a01b038216610c75576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b610ca361122d565b610cad60006115a0565b565b600080600b8054610cbf90611e29565b90501115610ccd5750600190565b50600090565b610cdb61122d565b600082828080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201829052508451949550939093039250610d3a9150505760405163b74db18d60e01b815260040160405180910390fd5b600b61084a838583611f29565b610d4f61122d565b610c4882826115f2565b6040805160808101825260008082526020820181905291810182905260608101919091526106e3826116ef565b6060600380546106f890611e29565b81610d9f816110d4565b6107d38383611767565b600080600c5460ff166001811115610dc357610dc3611ecd565b14905090565b836001600160a01b0381163314610de357610de3336110d4565b610def858585856117d3565b5050505050565b6060610e01826110ad565b610e6a5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084015b60405180910390fd5b6000610e74611817565b90506000815111610e945760405180602001604052806000815250610ede565b80610e9e84611826565b60405180604001604052806005815260200164173539b7b760d91b815250604051602001610ece93929190611fe9565b6040516020818303038152906040525b9392505050565b6001600160a01b0381166000908152600560205260408082205467ffffffffffffffff911c166106e3565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b8061ffff1680600003610f6457604051630d1c694760e41b815260040160405180910390fd5b614e2081610f756001546000540390565b610f7f9190611eba565b1115610f9e576040516365ec425b60e11b815260040160405180910390fd5b610fa661122d565b610c48338361ffff16611420565b610fbc61122d565b6001600160a01b0381166110215760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610e61565b6108fe816115a0565b60006301ffc9a760e01b6001600160e01b03198316148061105b57506380ac58cd60e01b6001600160e01b03198316145b806106e35750506001600160e01b031916635b5e139f60e01b1490565b60006001600160e01b0319821663152a902d60e11b14806106e357506301ffc9a760e01b6001600160e01b03198316146106e3565b60008054821080156106e3575050600090815260046020526040902054600160e01b161590565b6daaeb6d7670e522a718067333cd4e3b156108fe57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611141573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611165919061202c565b6108fe57604051633b79c77360e21b81526001600160a01b0382166004820152602401610e61565b600061119882610b22565b9050336001600160a01b038216146111d1576111b48133610f10565b6111d1576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6008546001600160a01b03163314610cad5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610e61565b600061129282611539565b9050836001600160a01b0316816001600160a01b0316146112c55760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417611312576112f58633610f10565b61131257604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661133957604051633a954ecd60e21b815260040160405180910390fd5b801561134457600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b841690036113d6576001840160008181526004602052604081205490036113d45760005481146113d45760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b505050505050565b60008054908290036114455760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b8181146114f457808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a46001016114bc565b508160000361151557604051622e076360e81b815260040160405180910390fd5b60005550505050565b6107d383838360405180602001604052806000815250610dc9565b6000816000548110156115875760008181526004602052604081205490600160e01b82169003611585575b80600003610ede575060001901600081815260046020526040902054611564565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106001600160601b03821611156116605760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610e61565b6001600160a01b0382166116b65760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610e61565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600955565b6040805160808101825260008082526020820181905291810182905260608101919091526106e361171f83611539565b604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6117de848484610825565b6001600160a01b0383163b1561084a576117fa8484848461192f565b61084a576040516368d2bf6b60e11b815260040160405180910390fd5b6060600b80546106f890611e29565b60608160000361184d5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611877578061186181612049565b91506118709050600a83611ea6565b9150611851565b60008167ffffffffffffffff81111561189257611892611d1b565b6040519080825280601f01601f1916602001820160405280156118bc576020820181803683370190505b5090505b8415611927576118d1600183612062565b91506118de600a86612075565b6118e9906030611eba565b60f81b8183815181106118fe576118fe612089565b60200101906001600160f81b031916908160001a905350611920600a86611ea6565b94506118c0565b949350505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a029061196490339089908890889060040161209f565b6020604051808303816000875af192505050801561199f575060408051601f3d908101601f1916820190925261199c918101906120dc565b60015b6119fd573d8080156119cd576040519150601f19603f3d011682016040523d82523d6000602084013e6119d2565b606091505b5080516000036119f5576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6001600160e01b0319811681146108fe57600080fd5b600060208284031215611a4257600080fd5b8135610ede81611a1a565b60005b83811015611a68578181015183820152602001611a50565b50506000910152565b60008151808452611a89816020860160208601611a4d565b601f01601f19169290920160200192915050565b602081526000610ede6020830184611a71565b600060208284031215611ac257600080fd5b5035919050565b80356001600160a01b0381168114611ae057600080fd5b919050565b60008060408385031215611af857600080fd5b611b0183611ac9565b946020939093013593505050565b600060208284031215611b2157600080fd5b813561ffff81168114610ede57600080fd5b600080600060608486031215611b4857600080fd5b611b5184611ac9565b9250611b5f60208501611ac9565b9150604084013590509250925092565b60008060408385031215611b8257600080fd5b50508035926020909101359150565b803560ff81168114611ae057600080fd5b60008060408385031215611bb557600080fd5b611bbe83611b91565b9150611bcc60208401611ac9565b90509250929050565b600060208284031215611be757600080fd5b813560028110610ede57600080fd5b600060208284031215611c0857600080fd5b610ede82611b91565b600060208284031215611c2357600080fd5b610ede82611ac9565b60008060208385031215611c3f57600080fd5b823567ffffffffffffffff80821115611c5757600080fd5b818501915085601f830112611c6b57600080fd5b813581811115611c7a57600080fd5b866020828501011115611c8c57600080fd5b60209290920196919550909350505050565b60008060408385031215611cb157600080fd5b611cba83611ac9565b915060208301356001600160601b0381168114611cd657600080fd5b809150509250929050565b80151581146108fe57600080fd5b60008060408385031215611d0257600080fd5b611d0b83611ac9565b91506020830135611cd681611ce1565b634e487b7160e01b600052604160045260246000fd5b60008060008060808587031215611d4757600080fd5b611d5085611ac9565b9350611d5e60208601611ac9565b925060408501359150606085013567ffffffffffffffff80821115611d8257600080fd5b818701915087601f830112611d9657600080fd5b813581811115611da857611da8611d1b565b604051601f8201601f19908116603f01168101908382118183101715611dd057611dd0611d1b565b816040528281528a6020848701011115611de957600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215611e2057600080fd5b611bbe83611ac9565b600181811c90821680611e3d57607f821691505b602082108103611e5d57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176106e3576106e3611e63565b634e487b7160e01b600052601260045260246000fd5b600082611eb557611eb5611e90565b500490565b808201808211156106e3576106e3611e63565b634e487b7160e01b600052602160045260246000fd5b601f8211156107d357600081815260208120601f850160051c81016020861015611f0a5750805b601f850160051c820191505b8181101561141857828155600101611f16565b67ffffffffffffffff831115611f4157611f41611d1b565b611f5583611f4f8354611e29565b83611ee3565b6000601f841160018114611f895760008515611f715750838201355b600019600387901b1c1916600186901b178355610def565b600083815260209020601f19861690835b82811015611fba5786850135825560209485019460019092019101611f9a565b5086821015611fd75760001960f88860031b161c19848701351681555b505060018560011b0183555050505050565b60008451611ffb818460208901611a4d565b84519083019061200f818360208901611a4d565b8451910190612022818360208801611a4d565b0195945050505050565b60006020828403121561203e57600080fd5b8151610ede81611ce1565b60006001820161205b5761205b611e63565b5060010190565b818103818111156106e3576106e3611e63565b60008261208457612084611e90565b500690565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906120d290830184611a71565b9695505050505050565b6000602082840312156120ee57600080fd5b8151610ede81611a1a56fea26469706673582212205583583e79e95053257a1fb9264f38e59148002bfaec5393e225244c19def97964736f6c63430008120033

Deployed Bytecode Sourcemap

78688:7829:0:-:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;82793:257;;;;;;;;;;-1:-1:-1;82793:257:0;;;;;:::i;:::-;;:::i;:::-;;;565:14:1;;558:22;540:41;;528:2;513:18;82793:257:0;;;;;;;;37677:100;;;;;;;;;;;;;:::i;:::-;;;;;;;:::i;44426:234::-;;;;;;;;;;-1:-1:-1;44426:234:0;;;;;:::i;:::-;;:::i;:::-;;;-1:-1:-1;;;;;1697:32:1;;;1679:51;;1667:2;1652:18;44426:234:0;1533:203:1;83451:190:0;;;;;;:::i;:::-;;:::i;:::-;;81101:78;;;;;;;;;;-1:-1:-1;81165:6:0;;81101:78;;;2324:25:1;;;2312:2;2297:18;81101:78:0;2178:177:1;33318:323:0;;;;;;;;;;-1:-1:-1;33592:12:0;;33379:7;33576:13;:28;33318:323;;82400:179;;;;;;;;;;-1:-1:-1;82400:179:0;;;;;:::i;:::-;;:::i;83649:205::-;;;;;;:::i;:::-;;:::i;86245:269::-;;;;;;;;;;;;;:::i;75635:480::-;;;;;;;;;;-1:-1:-1;75635:480:0;;;;;:::i;:::-;;:::i;:::-;;;;-1:-1:-1;;;;;3415:32:1;;;3397:51;;3479:2;3464:18;;3457:34;;;;3370:18;75635:480:0;3223:274:1;85749:170:0;;;;;;;;;;-1:-1:-1;85749:170:0;;;;;:::i;:::-;;:::i;82587:169::-;;;;;;;;;;-1:-1:-1;82587:169:0;;;;;:::i;:::-;;:::i;81902:101::-;;;;;;;;;;-1:-1:-1;81902:101:0;;;;;:::i;:::-;;:::i;14487:143::-;;;;;;;;;;;;13287:42;14487:143;;83862:213;;;;;;:::i;:::-;;:::i;82247:145::-;;;;;;;;;;-1:-1:-1;82247:145:0;;;;;:::i;:::-;;:::i;39133:168::-;;;;;;;;;;-1:-1:-1;39133:168:0;;;;;:::i;:::-;;:::i;80881:100::-;;;;;;;;;;-1:-1:-1;80955:18:0;;;;80881:100;;85402:339;;;;;;:::i;:::-;;:::i;34502:249::-;;;;;;;;;;-1:-1:-1;34502:249:0;;;;;:::i;:::-;;:::i;2903:103::-;;;;;;;;;;;;;:::i;81304:139::-;;;;;;;;;;;;;:::i;82011:228::-;;;;;;;;;;-1:-1:-1;82011:228:0;;;;;:::i;:::-;;:::i;2255:87::-;;;;;;;;;;-1:-1:-1;2328:6:0;;-1:-1:-1;;;;;2328:6:0;2255:87;;83058:176;;;;;;;;;;-1:-1:-1;83058:176:0;;;;;:::i;:::-;;:::i;81574:154::-;;;;;;;;;;-1:-1:-1;81574:154:0;;;;;:::i;:::-;;:::i;:::-;;;;;;6016:13:1;;-1:-1:-1;;;;;6012:39:1;5994:58;;6112:4;6100:17;;;6094:24;6120:18;6090:49;6068:20;;;6061:79;6210:4;6198:17;;;6192:24;6185:32;6178:40;6156:20;;;6149:70;6279:4;6267:17;;;6261:24;6287:8;6257:39;6235:20;;;6228:69;;;;5981:3;5966:19;;5785:518;81187:109:0;;;;;;;;;;-1:-1:-1;81265:23:0;;;;;;;81187:109;;37853:104;;;;;;;;;;;;;:::i;83242:201::-;;;;;;;;;;-1:-1:-1;83242:201:0;;;;;:::i;:::-;;:::i;80989:104::-;;;;;;;;;;;;;:::i;84083:247::-;;;;;;:::i;:::-;;:::i;84621:608::-;;;;;;;;;;-1:-1:-1;84621:608:0;;;;;:::i;:::-;;:::i;80784:89::-;;;;;;;;;;-1:-1:-1;79383:5:0;80784:89;;81451:115;;;;;;;;;;-1:-1:-1;81451:115:0;;;;;:::i;:::-;;:::i;45416:189::-;;;;;;;;;;-1:-1:-1;45416:189:0;;;;;:::i;:::-;;:::i;85927:145::-;;;;;;;;;;-1:-1:-1;85927:145:0;;;;;:::i;:::-;;:::i;3161:238::-;;;;;;;;;;-1:-1:-1;3161:238:0;;;;;:::i;:::-;;:::i;82793:257::-;82912:4;82949:38;82975:11;82949:25;:38::i;:::-;:93;;;;83004:38;83030:11;83004:25;:38::i;:::-;82929:113;82793:257;-1:-1:-1;;82793:257:0:o;37677:100::-;37731:13;37764:5;37757:12;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;37677:100;:::o;44426:234::-;44518:7;44543:16;44551:7;44543;:16::i;:::-;44538:64;;44568:34;;-1:-1:-1;;;44568:34:0;;;;;;;;;;;44538:64;-1:-1:-1;44622:24:0;;;;:15;:24;;;;;:30;-1:-1:-1;;;;;44622:30:0;;44426:234::o;83451:190::-;83580:8;16403:30;16424:8;16403:20;:30::i;:::-;83601:32:::1;83615:8;83625:7;83601:13;:32::i;:::-;83451:190:::0;;;:::o;82400:179::-;2141:13;:11;:13::i;:::-;82481:6:::1;:11;;82491:1;82481:11:::0;82477:51:::1;;82501:27;;-1:-1:-1::0;;;82501:27:0::1;;;;;;;;;;;82477:51;82539:23;:32:::0;;::::1;::::0;;::::1;::::0;::::1;-1:-1:-1::0;;82539:32:0;;::::1;::::0;;;::::1;::::0;;82400:179::o;83649:205::-;83792:4;-1:-1:-1;;;;;16129:18:0;;16137:10;16129:18;16125:83;;16164:32;16185:10;16164:20;:32::i;:::-;83809:37:::1;83828:4;83834:2;83838:7;83809:18;:37::i;:::-;83649:205:::0;;;;:::o;86245:269::-;2141:13;:11;:13::i;:::-;86304:21:::1;86329:1;86304:26:::0;86300:67:::1;;86339:28;;-1:-1:-1::0;;;86339:28:0::1;;;;;;;;;;;86300:67;86379:12;86397:7;2328:6:::0;;-1:-1:-1;;;;;2328:6:0;;2255:87;86397:7:::1;-1:-1:-1::0;;;;;86397:12:0::1;86417:21;86397:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;86378:65;;;86459:7;86454:52;;86475:31;;-1:-1:-1::0;;;86475:31:0::1;;;;;;;;;;;86454:52;86289:225;86245:269::o:0;75635:480::-;75757:7;75815:27;;;:17;:27;;;;;;;;75786:56;;;;;;;;;-1:-1:-1;;;;;75786:56:0;;;;;-1:-1:-1;;;75786:56:0;;;-1:-1:-1;;;;;75786:56:0;;;;;;;;75757:7;;75855:92;;-1:-1:-1;75906:29:0;;;;;;;;;75916:19;75906:29;-1:-1:-1;;;;;75906:29:0;;;;-1:-1:-1;;;75906:29:0;;-1:-1:-1;;;;;75906:29:0;;;;;75855:92;75997:23;;;;75959:21;;76481:5;;75984:36;;-1:-1:-1;;;;;75984:36:0;:10;:36;:::i;:::-;75983:71;;;;:::i;:::-;76075:16;;;;;-1:-1:-1;75635:480:0;;-1:-1:-1;;;;75635:480:0:o;85749:170::-;85856:7;80001:356;;80061:10;:8;:10::i;:::-;80057:51;;;80080:28;;-1:-1:-1;;;80080:28:0;;;;;;;;;;;80057:51;80123:16;;;:54;;-1:-1:-1;81265:23:0;;;;;;;80143:11;:34;80123:54;80119:108;;;80199:28;;-1:-1:-1;;;80199:28:0;;;;;;;;;;;80119:108;79383:5;80258:11;80242:13;33592:12;;33379:7;33576:13;:28;;33318:323;80242:13;:27;;;;:::i;:::-;:41;80238:99;;;80305:32;;-1:-1:-1;;;80305:32:0;;;;;;;;;;;80238:99;2141:13:::1;:11;:13::i;:::-;85886:25:::2;85892:9;85903:7;85886:25;;:5;:25::i;82587:169::-:0;2141:13;:11;:13::i;:::-;82663:6:::1;:11;;82673:1;82663:11:::0;82659:51:::1;;82683:27;;-1:-1:-1::0;;;82683:27:0::1;;;;;;;;;;;82659:51;82721:18;:27:::0;;-1:-1:-1;;82721:27:0::1;;::::0;;;::::1;::::0;;;::::1;::::0;;82587:169::o;81902:101::-;2141:13;:11;:13::i;:::-;81975:10:::1;:20:::0;;81988:7;;81975:10;-1:-1:-1;;81975:20:0::1;::::0;81988:7;81975:20;;::::1;;;;;;:::i;:::-;;;;;;81902:101:::0;:::o;83862:213::-;84009:4;-1:-1:-1;;;;;16129:18:0;;16137:10;16129:18;16125:83;;16164:32;16185:10;16164:20;:32::i;:::-;84026:41:::1;84049:4;84055:2;84059:7;84026:22;:41::i;82247:145::-:0;2141:13;:11;:13::i;:::-;82313:5:::1;82322:1;82313:10:::0;82309:50:::1;;82332:27;;-1:-1:-1::0;;;82332:27:0::1;;;;;;;;;;;82309:50;82370:6;:14:::0;82247:145::o;39133:168::-;39221:7;39264:27;39283:7;39264:18;:27::i;85402:339::-;85463:7;80001:356;;80061:10;:8;:10::i;:::-;80057:51;;;80080:28;;-1:-1:-1;;;80080:28:0;;;;;;;;;;;80057:51;80123:16;;;:54;;-1:-1:-1;81265:23:0;;;;;;;80143:11;:34;80123:54;80119:108;;;80199:28;;-1:-1:-1;;;80199:28:0;;;;;;;;;;;80119:108;79383:5;80258:11;80242:13;33592:12;;33379:7;33576:13;:28;;33318:323;80242:13;:27;;;;:::i;:::-;:41;80238:99;;;80305:32;;-1:-1:-1;;;80305:32:0;;;;;;;;;;;80238:99;85508:7:::1;85499:16;;:6;81165::::0;;;81101:78;85499:6:::1;:16;;;;:::i;:::-;85487:9;:28;85483:86;;;85537:32;;-1:-1:-1::0;;;85537:32:0::1;;;;;;;;;;;85483:86;80955:18:::0;;;;85611:7:::1;85584:34;;:24;85597:10;85584:12;:24::i;:::-;:34;;;;:::i;:::-;:53;85580:116;;;85659:37;;-1:-1:-1::0;;;85659:37:0::1;;;;;;;;;;;85580:116;85707:26;85713:10;85725:7;85707:26;;:5;:26::i;:::-;85402:339:::0;;:::o;34502:249::-;34590:7;-1:-1:-1;;;;;34614:19:0;;34610:60;;34642:28;;-1:-1:-1;;;34642:28:0;;;;;;;;;;;34610:60;-1:-1:-1;;;;;;34688:25:0;;;;;:18;:25;;;;;;28661:13;34688:55;;34502:249::o;2903:103::-;2141:13;:11;:13::i;:::-;2968:30:::1;2995:1;2968:18;:30::i;:::-;2903:103::o:0;81304:139::-;81349:4;81396:1;81376:9;81370:23;;;;;:::i;:::-;;;:27;81366:44;;;-1:-1:-1;81406:4:0;;81304:139::o;81366:44::-;-1:-1:-1;81430:5:0;;81304:139::o;82011:228::-;2141:13;:11;:13::i;:::-;82091:18:::1;82118:10;;82091:38;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;::::0;::::1;::::0;;;-1:-1:-1;82144:12:0;;82091:38;;-1:-1:-1;82144:17:0;;;;;-1:-1:-1;82140:58:0::1;::::0;-1:-1:-1;;82140:58:0::1;82170:28;;-1:-1:-1::0;;;82170:28:0::1;;;;;;;;;;;82140:58;82209:9;:22;82221:10:::0;;82209:9;:22:::1;:::i;83058:176::-:0;2141:13;:11;:13::i;:::-;83178:48:::1;83197:9;83208:17;83178:18;:48::i;81574:154::-:0;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;81698:22:0;81711:8;81698:12;:22::i;37853:104::-;37909:13;37942:7;37935:14;;;;;:::i;83242:201::-;83371:8;16403:30;16424:8;16403:20;:30::i;:::-;83392:43:::1;83416:8;83426;83392:23;:43::i;80989:104::-:0;81030:4;;81054:10;;;;;:31;;;;;;;:::i;:::-;;81047:38;;80989:104;:::o;84083:247::-;84258:4;-1:-1:-1;;;;;16129:18:0;;16137:10;16129:18;16125:83;;16164:32;16185:10;16164:20;:32::i;:::-;84275:47:::1;84298:4;84304:2;84308:7;84317:4;84275:22;:47::i;:::-;84083:247:::0;;;;;:::o;84621:608::-;84711:13;84759:17;84767:8;84759:7;:17::i;:::-;84737:114;;;;-1:-1:-1;;;84737:114:0;;11970:2:1;84737:114:0;;;11952:21:1;12009:2;11989:18;;;11982:30;12048:34;12028:18;;;12021:62;-1:-1:-1;;;12099:18:1;;;12092:45;12154:19;;84737:114:0;;;;;;;;;84864:28;84895:10;:8;:10::i;:::-;84864:41;;84967:1;84942:14;84936:28;:32;:285;;;;;;;;;;;;;;;;;85060:14;85101:19;:8;:17;:19::i;:::-;85147:10;;;;;;;;;;;;;-1:-1:-1;;;85147:10:0;;;85017:163;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;84936:285;84916:305;84621:608;-1:-1:-1;;;84621:608:0:o;81451:115::-;-1:-1:-1;;;;;34935:25:0;;81510:7;34935:25;;;:18;:25;;28799:2;34935:25;;;;28661:13;34935:50;;34934:95;81537:21;34833:204;45416:189;-1:-1:-1;;;;;45562:25:0;;;45538:4;45562:25;;;:18;:25;;;;;;;;:35;;;;;;;;;;;;;;;45416:189::o;85927:145::-;86008:7;80365:247;;80429:11;80444:1;80429:16;80425:57;;80454:28;;-1:-1:-1;;;80454:28:0;;;;;;;;;;;80425:57;79383:5;80513:11;80497:13;33592:12;;33379:7;33576:13;:28;;33318:323;80497:13;:27;;;;:::i;:::-;:41;80493:99;;;80560:32;;-1:-1:-1;;;80560:32:0;;;;;;;;;;;80493:99;2141:13:::1;:11;:13::i;:::-;86038:26:::2;86044:10;86056:7;86038:26;;:5;:26::i;3161:238::-:0;2141:13;:11;:13::i;:::-;-1:-1:-1;;;;;3264:22:0;::::1;3242:110;;;::::0;-1:-1:-1;;;3242:110:0;;13094:2:1;3242:110:0::1;::::0;::::1;13076:21:1::0;13133:2;13113:18;;;13106:30;13172:34;13152:18;;;13145:62;-1:-1:-1;;;13223:18:1;;;13216:36;13269:19;;3242:110:0::1;12892:402:1::0;3242:110:0::1;3363:28;3382:8;3363:18;:28::i;36759:655::-:0;36860:4;-1:-1:-1;;;;;;;;;37184:25:0;;;;:102;;-1:-1:-1;;;;;;;;;;37261:25:0;;;37184:102;:179;;;-1:-1:-1;;;;;;;;37338:25:0;-1:-1:-1;;;37338:25:0;;36759:655::o;75323:257::-;75441:4;-1:-1:-1;;;;;;75478:41:0;;-1:-1:-1;;;75478:41:0;;:94;;-1:-1:-1;;;;;;;;;;73882:40:0;;;75536:36;73757:173;45863:282;45928:4;46018:13;;46008:7;:23;45965:153;;;;-1:-1:-1;;46069:26:0;;;;:17;:26;;;;;;-1:-1:-1;;;46069:44:0;:49;;45863:282::o;16546:740::-;13287:42;16737:45;:49;16733:546;;17054:128;;-1:-1:-1;;;17054:128:0;;17127:4;17054:128;;;13511:34:1;-1:-1:-1;;;;;13581:15:1;;13561:18;;;13554:43;13287:42:0;;17054;;13446:18:1;;17054:128:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;17031:237;;17224:28;;-1:-1:-1;;;17224:28:0;;-1:-1:-1;;;;;1697:32:1;;17224:28:0;;;1679:51:1;1652:18;;17224:28:0;1533:203:1;43834:433:0;43948:13;43964:16;43972:7;43964;:16::i;:::-;43948:32;-1:-1:-1;69183:10:0;-1:-1:-1;;;;;43997:28:0;;;43993:175;;44045:44;44062:5;69183:10;45416:189;:::i;44045:44::-;44040:128;;44117:35;;-1:-1:-1;;;44117:35:0;;;;;;;;;;;44040:128;44180:24;;;;:15;:24;;;;;;:35;;-1:-1:-1;;;;;;44180:35:0;-1:-1:-1;;;;;44180:35:0;;;;;;;;;44231:28;;44180:24;;44231:28;;;;;;;43937:330;43834:433;;:::o;2420:132::-;2328:6;;-1:-1:-1;;;;;2328:6:0;69183:10;2484:23;2476:68;;;;-1:-1:-1;;;2476:68:0;;14060:2:1;2476:68:0;;;14042:21:1;;;14079:18;;;14072:30;14138:34;14118:18;;;14111:62;14190:18;;2476:68:0;13858:356:1;48147:3003:0;48289:27;48319;48338:7;48319:18;:27::i;:::-;48289:57;;48404:4;-1:-1:-1;;;;;48363:45:0;48379:19;-1:-1:-1;;;;;48363:45:0;;48359:99;;48430:28;;-1:-1:-1;;;48430:28:0;;;;;;;;;;;48359:99;48486:27;47255:24;;;:15;:24;;;;;47483:26;;69183:10;46864:30;;;-1:-1:-1;;;;;46557:28:0;;46842:20;;;46839:56;48695:287;;48878:43;48895:4;69183:10;45416:189;:::i;48878:43::-;48873:109;;48947:35;;-1:-1:-1;;;48947:35:0;;;;;;;;;;;48873:109;-1:-1:-1;;;;;48999:16:0;;48995:52;;49024:23;;-1:-1:-1;;;49024:23:0;;;;;;;;;;;48995:52;49196:15;49193:160;;;49336:1;49315:19;49308:30;49193:160;-1:-1:-1;;;;;49733:24:0;;;;;;;:18;:24;;;;;;49731:26;;-1:-1:-1;;49731:26:0;;;49802:22;;;;;;;;;49800:24;;-1:-1:-1;49800:24:0;;;42662:11;42637:23;42633:41;42585:112;-1:-1:-1;;;42585:112:0;50095:26;;;;:17;:26;;;;;:196;;;;-1:-1:-1;;;50411:47:0;;:52;;50407:627;;50516:1;50506:11;;50484:19;50639:30;;;:17;:30;;;;;;:35;;50635:384;;50777:13;;50762:11;:28;50758:242;;50924:30;;;;:17;:30;;;;;:52;;;50758:242;50465:569;50407:627;51081:7;51077:2;-1:-1:-1;;;;;51062:27:0;51071:4;-1:-1:-1;;;;;51062:27:0;;;;;;;;;;;51100:42;48278:2872;;;48147:3003;;;:::o;55821:3021::-;55894:20;55917:13;;;55945;;;55941:44;;55967:18;;-1:-1:-1;;;55967:18:0;;;;;;;;;;;55941:44;-1:-1:-1;;;;;56473:22:0;;;;;;:18;:22;;;;28799:2;56473:22;;;:105;;56545:32;56516:62;;56473:105;;;56821:31;;;:17;:31;;;;;-1:-1:-1;43123:15:0;;43097:24;43093:46;42662:11;42637:23;42633:41;42630:52;42585:112;;56821:194;;57077:23;;;;56821:31;;56473:22;;57842:25;56473:22;;57695:335;58356:1;58342:12;58338:20;58296:346;58397:3;58388:7;58385:16;58296:346;;58615:7;58605:8;58602:1;58575:25;58572:1;58569;58564:59;58450:1;58437:15;58296:346;;;58300:77;58675:8;58687:1;58675:13;58671:45;;58697:19;;-1:-1:-1;;;58697:19:0;;;;;;;;;;;58671:45;58733:13;:19;-1:-1:-1;83451:190:0;;;:::o;51246:193::-;51392:39;51409:4;51415:2;51419:7;51392:39;;;;;;;;;;;;:16;:39::i;40336:1291::-;40419:7;40454;40556:13;;40549:4;:20;40545:1015;;;40594:14;40611:23;;;:17;:23;;;;;;;-1:-1:-1;;;40700:24:0;;:29;;40696:845;;41365:113;41372:6;41382:1;41372:11;41365:113;;-1:-1:-1;;;41443:6:0;41425:25;;;;:17;:25;;;;;;41365:113;;40696:845;40571:989;40545:1015;41588:31;;-1:-1:-1;;;41588:31:0;;;;;;;;;;;3559:191;3652:6;;;-1:-1:-1;;;;;3669:17:0;;;-1:-1:-1;;;;;;3669:17:0;;;;;;;3702:40;;3652:6;;;3669:17;3652:6;;3702:40;;3633:16;;3702:40;3622:128;3559:191;:::o;76765:394::-;76481:5;-1:-1:-1;;;;;76907:33:0;;;;76885:125;;;;-1:-1:-1;;;76885:125:0;;14421:2:1;76885:125:0;;;14403:21:1;14460:2;14440:18;;;14433:30;14499:34;14479:18;;;14472:62;-1:-1:-1;;;14550:18:1;;;14543:40;14600:19;;76885:125:0;14219:406:1;76885:125:0;-1:-1:-1;;;;;77029:22:0;;77021:60;;;;-1:-1:-1;;;77021:60:0;;14832:2:1;77021:60:0;;;14814:21:1;14871:2;14851:18;;;14844:30;14910:27;14890:18;;;14883:55;14955:18;;77021:60:0;14630:349:1;77021:60:0;77116:35;;;;;;;;;-1:-1:-1;;;;;77116:35:0;;;;;;-1:-1:-1;;;;;77116:35:0;;;;;;;;;;-1:-1:-1;;;77094:57:0;;;;:19;:57;76765:394::o;39490:182::-;-1:-1:-1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;39617:47:0;39636:27;39655:7;39636:18;:27::i;:::-;-1:-1:-1;;;;;;;;;;;;;41852:41:0;;;;29320:3;41938:33;;;41904:68;;-1:-1:-1;;;41904:68:0;-1:-1:-1;;;42002:24:0;;:29;;-1:-1:-1;;;41983:48:0;;;;29841:3;42071:28;;;;-1:-1:-1;;;42042:58:0;-1:-1:-1;41726:382:0;45000:259;69183:10;45120:39;;;;:18;:39;;;;;;;;-1:-1:-1;;;;;45120:49:0;;;;;;;;;;;;:60;;-1:-1:-1;;45120:60:0;;;;;;;;;;45196:55;;540:41:1;;;45120:49:0;;69183:10;45196:55;;513:18:1;45196:55:0;;;;;;;45000:259;;:::o;52037:407::-;52212:31;52225:4;52231:2;52235:7;52212:12;:31::i;:::-;-1:-1:-1;;;;;52258:14:0;;;:19;52254:183;;52297:56;52328:4;52334:2;52338:7;52347:5;52297:30;:56::i;:::-;52292:145;;52381:40;;-1:-1:-1;;;52381:40:0;;;;;;;;;;;84503:110;84563:13;84596:9;84589:16;;;;;:::i;4191:723::-;4247:13;4468:5;4477:1;4468:10;4464:53;;-1:-1:-1;;4495:10:0;;;;;;;;;;;;-1:-1:-1;;;4495:10:0;;;;;4191:723::o;4464:53::-;4542:5;4527:12;4583:78;4590:9;;4583:78;;4616:8;;;;:::i;:::-;;-1:-1:-1;4639:10:0;;-1:-1:-1;4647:2:0;4639:10;;:::i;:::-;;;4583:78;;;4671:19;4703:6;4693:17;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;4693:17:0;;4671:39;;4721:154;4728:10;;4721:154;;4755:11;4765:1;4755:11;;:::i;:::-;;-1:-1:-1;4824:10:0;4832:2;4824:5;:10;:::i;:::-;4811:24;;:2;:24;:::i;:::-;4798:39;;4781:6;4788;4781:14;;;;;;;;:::i;:::-;;;;:56;-1:-1:-1;;;;;4781:56:0;;;;;;;;-1:-1:-1;4852:11:0;4861:2;4852:11;;:::i;:::-;;;4721:154;;;4899:6;4191:723;-1:-1:-1;;;;4191:723:0:o;54528:831::-;54725:171;;-1:-1:-1;;;54725:171:0;;54691:4;;-1:-1:-1;;;;;54725:45:0;;;;;:171;;69183:10;;54827:4;;54850:7;;54876:5;;54725:171;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;-1:-1:-1;54725:171:0;;;;;;;;-1:-1:-1;;54725:171:0;;;;;;;;;;;;:::i;:::-;;;54708:644;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;55110:6;:13;55127:1;55110:18;55106:235;;55156:40;;-1:-1:-1;;;55156:40:0;;;;;;;;;;;55106:235;55299:6;55293:13;55284:6;55280:2;55276:15;55269:38;54708:644;-1:-1:-1;;;;;;54969:81:0;-1:-1:-1;;;54969:81:0;;-1:-1:-1;54528:831:0;;;;;;:::o;14:131:1:-;-1:-1:-1;;;;;;88:32:1;;78:43;;68:71;;135:1;132;125:12;150:245;208:6;261:2;249:9;240:7;236:23;232:32;229:52;;;277:1;274;267:12;229:52;316:9;303:23;335:30;359:5;335:30;:::i;592:250::-;677:1;687:113;701:6;698:1;695:13;687:113;;;777:11;;;771:18;758:11;;;751:39;723:2;716:10;687:113;;;-1:-1:-1;;834:1:1;816:16;;809:27;592:250::o;847:271::-;889:3;927:5;921:12;954:6;949:3;942:19;970:76;1039:6;1032:4;1027:3;1023:14;1016:4;1009:5;1005:16;970:76;:::i;:::-;1100:2;1079:15;-1:-1:-1;;1075:29:1;1066:39;;;;1107:4;1062:50;;847:271;-1:-1:-1;;847:271:1:o;1123:220::-;1272:2;1261:9;1254:21;1235:4;1292:45;1333:2;1322:9;1318:18;1310:6;1292:45;:::i;1348:180::-;1407:6;1460:2;1448:9;1439:7;1435:23;1431:32;1428:52;;;1476:1;1473;1466:12;1428:52;-1:-1:-1;1499:23:1;;1348:180;-1:-1:-1;1348:180:1:o;1741:173::-;1809:20;;-1:-1:-1;;;;;1858:31:1;;1848:42;;1838:70;;1904:1;1901;1894:12;1838:70;1741:173;;;:::o;1919:254::-;1987:6;1995;2048:2;2036:9;2027:7;2023:23;2019:32;2016:52;;;2064:1;2061;2054:12;2016:52;2087:29;2106:9;2087:29;:::i;:::-;2077:39;2163:2;2148:18;;;;2135:32;;-1:-1:-1;;;1919:254:1:o;2360:272::-;2418:6;2471:2;2459:9;2450:7;2446:23;2442:32;2439:52;;;2487:1;2484;2477:12;2439:52;2526:9;2513:23;2576:6;2569:5;2565:18;2558:5;2555:29;2545:57;;2598:1;2595;2588:12;2637:328;2714:6;2722;2730;2783:2;2771:9;2762:7;2758:23;2754:32;2751:52;;;2799:1;2796;2789:12;2751:52;2822:29;2841:9;2822:29;:::i;:::-;2812:39;;2870:38;2904:2;2893:9;2889:18;2870:38;:::i;:::-;2860:48;;2955:2;2944:9;2940:18;2927:32;2917:42;;2637:328;;;;;:::o;2970:248::-;3038:6;3046;3099:2;3087:9;3078:7;3074:23;3070:32;3067:52;;;3115:1;3112;3105:12;3067:52;-1:-1:-1;;3138:23:1;;;3208:2;3193:18;;;3180:32;;-1:-1:-1;2970:248:1:o;3502:156::-;3568:20;;3628:4;3617:16;;3607:27;;3597:55;;3648:1;3645;3638:12;3663:256;3729:6;3737;3790:2;3778:9;3769:7;3765:23;3761:32;3758:52;;;3806:1;3803;3796:12;3758:52;3829:27;3846:9;3829:27;:::i;:::-;3819:37;;3875:38;3909:2;3898:9;3894:18;3875:38;:::i;:::-;3865:48;;3663:256;;;;;:::o;3924:271::-;3998:6;4051:2;4039:9;4030:7;4026:23;4022:32;4019:52;;;4067:1;4064;4057:12;4019:52;4106:9;4093:23;4145:1;4138:5;4135:12;4125:40;;4161:1;4158;4151:12;4439:182;4496:6;4549:2;4537:9;4528:7;4524:23;4520:32;4517:52;;;4565:1;4562;4555:12;4517:52;4588:27;4605:9;4588:27;:::i;4626:186::-;4685:6;4738:2;4726:9;4717:7;4713:23;4709:32;4706:52;;;4754:1;4751;4744:12;4706:52;4777:29;4796:9;4777:29;:::i;4817:592::-;4888:6;4896;4949:2;4937:9;4928:7;4924:23;4920:32;4917:52;;;4965:1;4962;4955:12;4917:52;5005:9;4992:23;5034:18;5075:2;5067:6;5064:14;5061:34;;;5091:1;5088;5081:12;5061:34;5129:6;5118:9;5114:22;5104:32;;5174:7;5167:4;5163:2;5159:13;5155:27;5145:55;;5196:1;5193;5186:12;5145:55;5236:2;5223:16;5262:2;5254:6;5251:14;5248:34;;;5278:1;5275;5268:12;5248:34;5323:7;5318:2;5309:6;5305:2;5301:15;5297:24;5294:37;5291:57;;;5344:1;5341;5334:12;5291:57;5375:2;5367:11;;;;;5397:6;;-1:-1:-1;4817:592:1;;-1:-1:-1;;;;4817:592:1:o;5414:366::-;5481:6;5489;5542:2;5530:9;5521:7;5517:23;5513:32;5510:52;;;5558:1;5555;5548:12;5510:52;5581:29;5600:9;5581:29;:::i;:::-;5571:39;;5660:2;5649:9;5645:18;5632:32;-1:-1:-1;;;;;5697:5:1;5693:38;5686:5;5683:49;5673:77;;5746:1;5743;5736:12;5673:77;5769:5;5759:15;;;5414:366;;;;;:::o;6308:118::-;6394:5;6387:13;6380:21;6373:5;6370:32;6360:60;;6416:1;6413;6406:12;6431:315;6496:6;6504;6557:2;6545:9;6536:7;6532:23;6528:32;6525:52;;;6573:1;6570;6563:12;6525:52;6596:29;6615:9;6596:29;:::i;:::-;6586:39;;6675:2;6664:9;6660:18;6647:32;6688:28;6710:5;6688:28;:::i;6751:127::-;6812:10;6807:3;6803:20;6800:1;6793:31;6843:4;6840:1;6833:15;6867:4;6864:1;6857:15;6883:1138;6978:6;6986;6994;7002;7055:3;7043:9;7034:7;7030:23;7026:33;7023:53;;;7072:1;7069;7062:12;7023:53;7095:29;7114:9;7095:29;:::i;:::-;7085:39;;7143:38;7177:2;7166:9;7162:18;7143:38;:::i;:::-;7133:48;;7228:2;7217:9;7213:18;7200:32;7190:42;;7283:2;7272:9;7268:18;7255:32;7306:18;7347:2;7339:6;7336:14;7333:34;;;7363:1;7360;7353:12;7333:34;7401:6;7390:9;7386:22;7376:32;;7446:7;7439:4;7435:2;7431:13;7427:27;7417:55;;7468:1;7465;7458:12;7417:55;7504:2;7491:16;7526:2;7522;7519:10;7516:36;;;7532:18;;:::i;:::-;7607:2;7601:9;7575:2;7661:13;;-1:-1:-1;;7657:22:1;;;7681:2;7653:31;7649:40;7637:53;;;7705:18;;;7725:22;;;7702:46;7699:72;;;7751:18;;:::i;:::-;7791:10;7787:2;7780:22;7826:2;7818:6;7811:18;7866:7;7861:2;7856;7852;7848:11;7844:20;7841:33;7838:53;;;7887:1;7884;7877:12;7838:53;7943:2;7938;7934;7930:11;7925:2;7917:6;7913:15;7900:46;7988:1;7983:2;7978;7970:6;7966:15;7962:24;7955:35;8009:6;7999:16;;;;;;;6883:1138;;;;;;;:::o;8026:260::-;8094:6;8102;8155:2;8143:9;8134:7;8130:23;8126:32;8123:52;;;8171:1;8168;8161:12;8123:52;8194:29;8213:9;8194:29;:::i;8291:380::-;8370:1;8366:12;;;;8413;;;8434:61;;8488:4;8480:6;8476:17;8466:27;;8434:61;8541:2;8533:6;8530:14;8510:18;8507:38;8504:161;;8587:10;8582:3;8578:20;8575:1;8568:31;8622:4;8619:1;8612:15;8650:4;8647:1;8640:15;8504:161;;8291:380;;;:::o;8886:127::-;8947:10;8942:3;8938:20;8935:1;8928:31;8978:4;8975:1;8968:15;9002:4;8999:1;8992:15;9018:168;9091:9;;;9122;;9139:15;;;9133:22;;9119:37;9109:71;;9160:18;;:::i;9191:127::-;9252:10;9247:3;9243:20;9240:1;9233:31;9283:4;9280:1;9273:15;9307:4;9304:1;9297:15;9323:120;9363:1;9389;9379:35;;9394:18;;:::i;:::-;-1:-1:-1;9428:9:1;;9323:120::o;9448:125::-;9513:9;;;9534:10;;;9531:36;;;9547:18;;:::i;9578:127::-;9639:10;9634:3;9630:20;9627:1;9620:31;9670:4;9667:1;9660:15;9694:4;9691:1;9684:15;9836:545;9938:2;9933:3;9930:11;9927:448;;;9974:1;9999:5;9995:2;9988:17;10044:4;10040:2;10030:19;10114:2;10102:10;10098:19;10095:1;10091:27;10085:4;10081:38;10150:4;10138:10;10135:20;10132:47;;;-1:-1:-1;10173:4:1;10132:47;10228:2;10223:3;10219:12;10216:1;10212:20;10206:4;10202:31;10192:41;;10283:82;10301:2;10294:5;10291:13;10283:82;;;10346:17;;;10327:1;10316:13;10283:82;;10557:1206;10681:18;10676:3;10673:27;10670:53;;;10703:18;;:::i;:::-;10732:94;10822:3;10782:38;10814:4;10808:11;10782:38;:::i;:::-;10776:4;10732:94;:::i;:::-;10852:1;10877:2;10872:3;10869:11;10894:1;10889:616;;;;11549:1;11566:3;11563:93;;;-1:-1:-1;11622:19:1;;;11609:33;11563:93;-1:-1:-1;;10514:1:1;10510:11;;;10506:24;10502:29;10492:40;10538:1;10534:11;;;10489:57;11669:78;;10862:895;;10889:616;9783:1;9776:14;;;9820:4;9807:18;;-1:-1:-1;;10925:17:1;;;11026:9;11048:229;11062:7;11059:1;11056:14;11048:229;;;11151:19;;;11138:33;11123:49;;11258:4;11243:20;;;;11211:1;11199:14;;;;11078:12;11048:229;;;11052:3;11305;11296:7;11293:16;11290:159;;;11429:1;11425:6;11419:3;11413;11410:1;11406:11;11402:21;11398:34;11394:39;11381:9;11376:3;11372:19;11359:33;11355:79;11347:6;11340:95;11290:159;;;11492:1;11486:3;11483:1;11479:11;11475:19;11469:4;11462:33;10862:895;;10557:1206;;;:::o;12184:703::-;12411:3;12449:6;12443:13;12465:66;12524:6;12519:3;12512:4;12504:6;12500:17;12465:66;:::i;:::-;12594:13;;12553:16;;;;12616:70;12594:13;12553:16;12663:4;12651:17;;12616:70;:::i;:::-;12753:13;;12708:20;;;12775:70;12753:13;12708:20;12822:4;12810:17;;12775:70;:::i;:::-;12861:20;;12184:703;-1:-1:-1;;;;;12184:703:1:o;13608:245::-;13675:6;13728:2;13716:9;13707:7;13703:23;13699:32;13696:52;;;13744:1;13741;13734:12;13696:52;13776:9;13770:16;13795:28;13817:5;13795:28;:::i;14984:135::-;15023:3;15044:17;;;15041:43;;15064:18;;:::i;:::-;-1:-1:-1;15111:1:1;15100:13;;14984:135::o;15124:128::-;15191:9;;;15212:11;;;15209:37;;;15226:18;;:::i;15257:112::-;15289:1;15315;15305:35;;15320:18;;:::i;:::-;-1:-1:-1;15354:9:1;;15257:112::o;15374:127::-;15435:10;15430:3;15426:20;15423:1;15416:31;15466:4;15463:1;15456:15;15490:4;15487:1;15480:15;15506:489;-1:-1:-1;;;;;15775:15:1;;;15757:34;;15827:15;;15822:2;15807:18;;15800:43;15874:2;15859:18;;15852:34;;;15922:3;15917:2;15902:18;;15895:31;;;15700:4;;15943:46;;15969:19;;15961:6;15943:46;:::i;:::-;15935:54;15506:489;-1:-1:-1;;;;;;15506:489:1:o;16000:249::-;16069:6;16122:2;16110:9;16101:7;16097:23;16093:32;16090:52;;;16138:1;16135;16128:12;16090:52;16170:9;16164:16;16189:30;16213:5;16189:30;:::i

Swarm Source

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