ETH Price: $2,938.16 (-0.33%)
 

Overview

Max Total Supply

10,000 CP

Holders

9,313

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
ivancryptofan.base.eth
Balance
1 CP
0xb379dd027643e23df9762a7dd011abf0c0df95f4
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information

Contract Source Code Verified (Exact Match)

Contract Name:
CustomPunks

Compiler Version
v0.8.14+commit.80d49f37

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.14;

import {DefaultOperatorFilterer} from "./OperatorFilter/DefaultOperatorFilterer.sol";
import "@minteeble/smart-contracts/contracts/token/ERC721/MinteebleERC721A.sol";
import "@minteeble/smart-contracts/contracts/token/ERC721/extensions/RequestMapper.sol";

contract CustomPunks is
    MinteebleERC721A,
    DefaultOperatorFilterer,
    RequestMapper
{
    struct LayerInfo {
        uint256 defaultPrice;
        uint256 premiumPrice;
        bool required;
        uint256[] suppliableItems;
    }

    struct ItemInfo {
        uint256 appliedLayers;
    }

    LayerInfo[] public layers;
    mapping(uint256 => ItemInfo) internal itemInfo;
    address public withdrawAccount1;
    address public withdrawAccount2;

    constructor() MinteebleERC721A("CustomPunks", "CP", 10000, 0) {
        setPaused(false);

        addLayer(4206900000000000, 4206900000000000, true); // Body
        addLayer(0, 690000000000000, false); // Clothes
        addLayer(0, 420000000000000, false); // Logo
        addLayer(0, 420000000000000, false); // LogoTwo
        addLayer(0, 420000000000000, false); // LogoThree
        addLayer(0, 420000000000000, false); // LogoFour
        addLayer(0, 420000000000000, false); // HatLogo
        addLayer(0, 420000000000000, false); // HatLogoTwo
        addLayer(0, 420000000000000, false); // HatLogoThree

        // Clothes - Suppliable items (34)
        for (uint256 i = 0; i < 34; i++) {
            addSuppliableItem(1, 10000);
        }

        // Setting default withdraw addresses
        withdrawAccount1 = 0xE63B7625b4543fb0D55E605d08D32C5AE07C3b84;
        withdrawAccount2 = 0x69bc14bd1a8Fa27Fc5d41a03810C070513f5795A;
    }

    modifier canMintPfp(address _account) {
        require(totalSupply() + 1 <= maxSupply, "Max supply exceed!");
        require(
            totalMintedByAddress[msg.sender] + 1 <= maxMintAmountPerAddress,
            "Exceeded maximum total amount per address!"
        );
        _;
    }

    function addLayer(
        uint256 _defaultPrice,
        uint256 _premiumPrice,
        bool _required
    ) public onlyOwner {
        uint256[] memory items;
        layers.push(LayerInfo(_defaultPrice, _premiumPrice, _required, items));
    }

    function addSuppliableItem(uint256 _layerIndex, uint256 _supply)
        public
        onlyOwner
    {
        layers[_layerIndex].suppliableItems.push(_supply);
    }

    function setItemSupply(
        uint256 _layerIndex,
        uint256 _itemIndex,
        uint256 _newSupply
    ) public onlyOwner {
        layers[_layerIndex].suppliableItems[_itemIndex] = _newSupply;
    }

    function getSupply(uint256 _layerIndex, uint256 _itemIndex)
        public
        view
        returns (uint256)
    {
        return layers[_layerIndex].suppliableItems[_itemIndex];
    }

    function setDefaultPrice(uint256 _layerId, uint256 _defaultPrice)
        public
        onlyOwner
    {
        require(_layerId < layers.length, "Invalid layerId");

        layers[_layerId].defaultPrice = _defaultPrice;
    }

    function setRequired(uint256 _layerId, bool _required) public onlyOwner {
        require(_layerId < layers.length, "Invalid layerId");

        layers[_layerId].required = _required;
    }

    function setPremiumPrice(uint256 _layerId, uint256 _premiumPrice)
        public
        onlyOwner
    {
        require(_layerId < layers.length, "Invalid layerId");

        layers[_layerId].premiumPrice = _premiumPrice;
    }

    function getLayers() public view returns (LayerInfo[] memory) {
        return layers;
    }

    function getlayer(uint256 _layerIndex)
        public
        view
        returns (LayerInfo memory)
    {
        return layers[_layerIndex];
    }

    function removeLayer() public onlyOwner {
        require(layers.length > 0, "No layers available");
        layers.pop();
    }

    function _setItemInfo(uint256 _id, ItemInfo memory _itemInfo) internal {
        itemInfo[_id] = _itemInfo;
    }

    function getItemInfo(uint256 _id) public view returns (ItemInfo memory) {
        return itemInfo[_id];
    }

    function appliedLayerInfo(uint256 _appliedLayers, uint256 _layerIndex)
        public
        pure
        returns (uint256)
    {
        bool hasDefaultSlot = (_appliedLayers & (2**(_layerIndex * 2))) != 0;
        bool hasPremiumSlot = (_appliedLayers & (2**((_layerIndex * 2) + 1))) !=
            0;

        if (hasDefaultSlot && hasPremiumSlot) revert("Invalid configuration");

        if (hasDefaultSlot) return 1;
        if (hasPremiumSlot) return 2;
        return 0;
    }

    function evalPrice(uint256 _appliedLayers) public view returns (uint256) {
        require(
            _appliedLayers < 2**(layers.length * 2),
            "Invalid applied layers"
        );
        uint256 tot = 0;

        for (uint256 i = 0; i < layers.length; i++) {
            uint256 layerInfo = appliedLayerInfo(_appliedLayers, i);

            if (layerInfo == 2) tot += layers[i].premiumPrice;
            else if (layerInfo == 1) tot += layers[i].defaultPrice;
            else {
                require(!layers[i].required, "Missing required layer");
            }
        }

        return tot;
    }

    function _consumeSuppliableItem(uint256 _layerIndex, uint256 _itemIndex)
        internal
    {
        require(
            layers[_layerIndex].suppliableItems[_itemIndex] > 0,
            "No items left"
        );
        layers[_layerIndex].suppliableItems[_itemIndex]--;
    }

    function _mintPfp(
        address _account,
        uint256 _appliedLayers,
        uint256[] memory _suppliableLayersIndexes,
        uint256[] memory _suppliableItemsIndexes
    ) internal canMintPfp(_account) active nonReentrant {
        require(
            _suppliableItemsIndexes.length == _suppliableLayersIndexes.length,
            "Invalid suppliable items length"
        );
        uint256 price = evalPrice(_appliedLayers);
        require(msg.value >= price, "Insufficient funds!");

        uint256[] memory usedLayers = new uint256[](
            _suppliableLayersIndexes.length
        );
        for (uint256 j = 0; j < usedLayers.length; j++) {
            usedLayers[j] = layers.length;
        }
        for (uint256 i = 0; i < _suppliableLayersIndexes.length; i++) {
            for (uint256 j = 0; j < usedLayers.length; j++) {
                require(
                    _suppliableLayersIndexes[i] != usedLayers[j],
                    "Layer already used"
                );
            }
            usedLayers[i] = _suppliableLayersIndexes[i];
            require(
                _appliedLayers & (2**((_suppliableLayersIndexes[i] * 2) + 1)) !=
                    0,
                "Missing suppliable item"
            );
            _consumeSuppliableItem(
                _suppliableLayersIndexes[i],
                _suppliableItemsIndexes[i]
            );
        }

        ItemInfo memory newItemInfo = ItemInfo(_appliedLayers);
        _setItemInfo(totalSupply(), newItemInfo);

        _safeMint(_account, 1);
        totalMintedByAddress[_account] += 1;
    }

    function mintRequestedPfp(
        bytes32 _requestId,
        uint256 _appliedLayers,
        uint256[] memory _suppliableLayersIndexes,
        uint256[] memory _suppliableItemsIndexes
    ) public payable active {
        _mintPfp(
            _msgSender(),
            _appliedLayers,
            _suppliableLayersIndexes,
            _suppliableItemsIndexes
        );
        _setRequest(_requestId, totalSupply());
    }

    function mintRequestedPfpForAddress(
        address _account,
        bytes32 _requestId,
        uint256 _appliedLayers,
        uint256[] memory _suppliableLayersIndexes,
        uint256[] memory _suppliableItemsIndexes
    ) public payable active {
        _mintPfp(
            _account,
            _appliedLayers,
            _suppliableLayersIndexes,
            _suppliableItemsIndexes
        );
        _setRequest(_requestId, totalSupply());
    }

    function mint(uint256 _mintAmount)
        public
        payable
        override
        canMint(_mintAmount)
        enoughFunds(_mintAmount)
        active
        nonReentrant
    {
        revert("Method not allowed.");
    }

    function mintForAddress(address _receiver, uint256 _mintAmount)
        public
        payable
        override
        active
    {
        revert("Method not allowed.");
    }

    function setWithdrawAccounts(address _account1, address _account2)
        public
        onlyOwner
    {
        withdrawAccount1 = _account1;
        withdrawAccount2 = _account2;
    }

    function withdrawBalance() public override onlyOwner {
        uint256 tot = address(this).balance;

        (bool s1, ) = payable(withdrawAccount1).call{value: (tot / 100) * 20}(
            ""
        );
        require(s1);

        (bool s2, ) = payable(withdrawAccount2).call{value: (tot / 100) * 80}(
            ""
        );
        require(s2);
    }

    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);
    }
}

/**
 *
 *
 *
 *   [x,y,z]
 *
 *   x -> default
 *   y -
 *   z -> premium
 *
 *   zzyyxx
 *   100001
 *
 *
 *
 */

File 2 of 14 : DefaultOperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {OperatorFilterer} from "./OperatorFilterer.sol";

/**
 * @title  DefaultOperatorFilterer
 * @notice Inherits from OperatorFilterer and automatically subscribes to the default OpenSea subscription.
 */
abstract contract DefaultOperatorFilterer is OperatorFilterer {
    address constant DEFAULT_SUBSCRIPTION =
        address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6);

    constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {}
}

File 3 of 14 : MinteebleERC721A.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.14;

//  =============================================
//   _   _  _  _  _  ___  ___  ___  ___ _    ___
//  | \_/ || || \| ||_ _|| __|| __|| o ) |  | __|
//  | \_/ || || \\ | | | | _| | _| | o \ |_ | _|
//  |_| |_||_||_|\_| |_| |___||___||___/___||___|
//
//  Website: https://minteeble.com
//  Email: [email protected]
//
//  =============================================

import "erc721a/contracts/ERC721A.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";

interface IMinteebleERC721A is IERC721A {
    function setBaseUri(string memory _baseUri) external;

    function setUriSuffix(string memory _uriSuffix) external;

    function setRevealed(bool _revealed) external;

    function setPaused(bool _paused) external;

    function setPreRevealUri(string memory _preRevealUri) external;

    function setMintPrice(uint256 _mintPrice) external;

    function setMaxMintAmountPerTrx(uint256 _maxAmount) external;

    function setMaxMintAmountPerAddress(uint256 _maxAmount) external;

    function withdrawBalance() external;

    function mint(uint256 _mintAmount) external payable;

    function mintForAddress(address receiver, uint256 _mintAmount)
        external
        payable;

    function ownerMintForAddress(uint256 _mintAmount, address _receiver)
        external;

    function walletOfOwner(address _owner)
        external
        view
        returns (uint256[] memory);
}

contract MinteebleERC721A is ERC721A, Ownable, ReentrancyGuard {
    using Counters for Counters.Counter;
    using Strings for uint256;

    bytes4 public constant IMINTEEBLE_ERC721A_INTERFACE_ID =
        type(IMinteebleERC721A).interfaceId;

    uint256 public maxSupply;
    uint256 public mintPrice;

    string public baseUri = "";
    string public uriSuffix = ".json";
    string public preRevealUri = "";
    bool public revealed = false;
    bool public paused = true;

    uint256 public maxMintAmountPerTrx = 5;
    uint256 public maxMintAmountPerAddress = 20;
    mapping(address => uint256) public totalMintedByAddress;

    /**
     *  @notice MinteebleERC721 constructor
     *  @param _tokenName Token name
     *  @param _tokenName Token symbol
     */
    constructor(
        string memory _tokenName,
        string memory _tokenSymbol,
        uint256 _maxSupply,
        uint256 _mintPrice
    ) ERC721A(_tokenName, _tokenSymbol) {
        mintPrice = _mintPrice;
        maxSupply = _maxSupply;
    }

    /**
     *  @dev Checks if caller can mint
     */
    modifier canMint(uint256 _mintAmount) {
        require(totalSupply() + _mintAmount <= maxSupply, "Max supply exceed!");
        require(
            _mintAmount <= maxMintAmountPerTrx,
            "Exceeded maximum total amount per trx!"
        );
        require(
            totalMintedByAddress[msg.sender] + _mintAmount <=
                maxMintAmountPerAddress,
            "Exceeded maximum total amount per address!"
        );
        _;
    }

    /**
     *  @dev Checks if caller provided enough funds for minting
     */
    modifier enoughFunds(uint256 _mintAmount) {
        require(msg.value >= _mintAmount * mintPrice, "Insufficient funds!");
        _;
    }

    modifier active() {
        require(!paused, "Contract is paused.");
        _;
    }

    /**
     *  @notice Sets new base URI
     *  @param _baseUri New base URI to be set
     */
    function setBaseUri(string memory _baseUri) public onlyOwner {
        baseUri = _baseUri;
    }

    /**
     *  @notice Sets new URI suffix
     *  @param _uriSuffix New URI suffix to be set
     */
    function setUriSuffix(string memory _uriSuffix) public onlyOwner {
        uriSuffix = _uriSuffix;
    }

    /**
     *  @notice Reveals (or unreveals) the collection
     *  @param _revealed New revealed value to be set. True if revealed, false otherwise
     */
    function setRevealed(bool _revealed) public onlyOwner {
        revealed = _revealed;
    }

    /**
     * @notice Change paused state
     * @param _paused Paused state
     */
    function setPaused(bool _paused) public onlyOwner {
        paused = _paused;
    }

    /**
     *  @notice Sets new pre-reveal URI
     *  @param _preRevealUri New pre-reveal URI to be used
     */
    function setPreRevealUri(string memory _preRevealUri) public onlyOwner {
        preRevealUri = _preRevealUri;
    }

    /**
     *  @notice Allows owner to set a new mint price
     *  @param _mintPrice New mint price to be set
     */
    function setMintPrice(uint256 _mintPrice) public onlyOwner {
        mintPrice = _mintPrice;
    }

    /**
     *  @notice Allows owner to set the max number of mintable items in a single transaction
     *  @param _maxAmount Max amount
     */
    function setMaxMintAmountPerTrx(uint256 _maxAmount) public onlyOwner {
        maxMintAmountPerTrx = _maxAmount;
    }

    /**
     *  @notice Allows owner to set the max number of items mintable per wallet
     *  @param _maxAmount Max amount
     */
    function setMaxMintAmountPerAddress(uint256 _maxAmount) public onlyOwner {
        maxMintAmountPerAddress = _maxAmount;
    }

    /**
     *  @notice Withdraws contract balance to onwer account
     */
    function withdrawBalance() public virtual onlyOwner {
        (bool success, ) = payable(owner()).call{value: address(this).balance}(
            ""
        );
        require(success);
    }

    /**
     *  @inheritdoc ERC721A
     */
    function _startTokenId() internal view virtual override returns (uint256) {
        return 1;
    }

    /**
     *  @inheritdoc ERC721A
     */
    function _baseURI() internal view override returns (string memory) {
        return baseUri;
    }

    /**
     *  @inheritdoc ERC721A
     */
    function tokenURI(uint256 _tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        require(_exists(_tokenId), "Token ID do es not exist.");

        // Checks if collection is revealed
        if (!revealed) return preRevealUri;

        // Evaluating full URI for the specified ID
        return string.concat(_baseURI(), _tokenId.toString(), uriSuffix);
    }

    /**
     *  @notice Mints one or more items
     */
    function mint(uint256 _mintAmount)
        public
        payable
        virtual
        canMint(_mintAmount)
        enoughFunds(_mintAmount)
        active
        nonReentrant
    {
        _safeMint(_msgSender(), _mintAmount);
        totalMintedByAddress[_msgSender()] += _mintAmount;
    }

    function mintForAddress(address receiver, uint256 _mintAmount)
        public
        payable
        virtual
        enoughFunds(_mintAmount)
        active
    {
        require(
            _mintAmount <= maxMintAmountPerTrx,
            "Exceeded maximum total amount per trx!"
        );
        require(
            totalMintedByAddress[receiver] + _mintAmount <=
                maxMintAmountPerAddress,
            "Exceeded maximum total amount!"
        );

        for (uint256 i = 0; i < _mintAmount; i++) {
            totalMintedByAddress[receiver]++;
        }

        _safeMint(receiver, _mintAmount);
    }

    /**
     * @notice Mints item for another address. (Reserved to contract owner)
     */
    function ownerMintForAddress(uint256 _mintAmount, address _receiver)
        public
        virtual
        onlyOwner
    {
        require(totalSupply() + _mintAmount <= maxSupply, "Max supply exceed!");
        _safeMint(_receiver, _mintAmount);
    }

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

        while (
            ownedTokenIndex < ownerTokenCount && currentTokenId <= maxSupply
        ) {
            TokenOwnership memory ownership = _ownershipOf(currentTokenId);

            if (!ownership.burned && ownership.addr != address(0)) {
                latestOwnerAddress = ownership.addr;
            }

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

                ownedTokenIndex++;
            }

            currentTokenId++;
        }

        return ownedTokenIds;
    }

    function supportsInterface(bytes4 interfaceId)
        public
        view
        virtual
        override
        returns (bool)
    {
        return
            interfaceId == type(IMinteebleERC721A).interfaceId ||
            super.supportsInterface(interfaceId);
    }
}

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.14;

//  =============================================
//   _   _  _  _  _  ___  ___  ___  ___ _    ___
//  | \_/ || || \| ||_ _|| __|| __|| o ) |  | __|
//  | \_/ || || \\ | | | | _| | _| | o \ |_ | _|
//  |_| |_||_||_|\_| |_| |___||___||___/___||___|
//
//  Website: https://minteeble.com
//  Email: [email protected]
//
//  =============================================

/// @title IRequestMapper Interface
/// @dev This interface defines the function to retrieve an ID associated with a request hash.
interface IRequestMapper {
    /// @notice Retrieves the ID associated with a given request hash.
    /// @param _request The hash of the request to get the ID for.
    /// @return The ID associated with the provided request hash.
    function getIdByRequest(bytes32 _request) external view returns (uint256);
}

/// @title RequestMapper Contract
/// @dev This abstract contract extends ERC721 functionality and provides a way to map request hashes to unique IDs.
abstract contract RequestMapper {
    // The interface ID of the IRequestMapper interface.
    bytes4 public constant IREQUEST_MAPPER_INTERFACE_ID =
        type(IRequestMapper).interfaceId;

    // Mapping to store request hashes to their corresponding IDs.
    mapping(bytes32 => uint256) internal requestToId;

    /// @notice Retrieves the ID associated with a given request hash.
    /// @param _request The hash of the request to get the ID for.
    /// @return The ID associated with the provided request hash.
    function getIdByRequest(bytes32 _request) public view returns (uint256) {
        return requestToId[_request];
    }

    /// @notice Internal function to set a request hash and its associated ID.
    /// @dev It is important to ensure that the request is new (ID equal to zero is safe because ERC721 IDs start from 1).
    /// @param _request The hash of the request to set.
    /// @param _id The ID to associate with the provided request hash.
    function _setRequest(bytes32 _request, uint256 _id) internal {
        // Make sure request is new (ID equal to zero is safe because ERC721 IDs start from 1).
        require(requestToId[_request] == 0, "Request already set");

        // Associate the provided ID with the given request hash.
        requestToId[_request] = _id;
    }
}

File 5 of 14 : OperatorFilterer.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

import {IOperatorFilterRegistry} from "./IOperatorFilterRegistry.sol";

/**
 * @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.
 */
abstract contract OperatorFilterer {
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry public constant OPERATOR_FILTER_REGISTRY =
        IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);

    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));
                }
            }
        }
    }

    modifier onlyAllowedOperator(address from) virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            // 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) {
                _;
                return;
            }
            if (
                !OPERATOR_FILTER_REGISTRY.isOperatorAllowed(
                    address(this),
                    msg.sender
                )
            ) {
                revert OperatorNotAllowed(msg.sender);
            }
        }
        _;
    }

    modifier onlyAllowedOperatorApproval(address operator) virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OPERATOR_FILTER_REGISTRY).code.length > 0) {
            if (
                !OPERATOR_FILTER_REGISTRY.isOperatorAllowed(
                    address(this),
                    operator
                )
            ) {
                revert OperatorNotAllowed(operator);
            }
        }
        _;
    }
}

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.13;

interface IOperatorFilterRegistry {
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);
    function register(address registrant) external;
    function registerAndSubscribe(address registrant, address subscription) external;
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;
    function unregister(address addr) external;
    function updateOperator(address registrant, address operator, bool filtered) external;
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;
    function subscribe(address registrant, address registrantToSubscribe) external;
    function unsubscribe(address registrant, bool copyExistingEntries) external;
    function subscriptionOf(address addr) external returns (address registrant);
    function subscribers(address registrant) external returns (address[] memory);
    function subscriberAt(address registrant, uint256 index) external returns (address);
    function copyEntriesOf(address registrant, address registrantToCopy) external;
    function isOperatorFiltered(address registrant, address operator) external returns (bool);
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);
    function filteredOperators(address addr) external returns (address[] memory);
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);
    function isRegistered(address addr) external returns (bool);
    function codeHashOf(address addr) external returns (bytes32);
}

File 7 of 14 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.3
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

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

pragma solidity ^0.8.0;

import "../utils/Context.sol";

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

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

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

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

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

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

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

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

import "./math/Math.sol";

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _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) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @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] = _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);
    }
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        _nonReentrantBefore();
        _;
        _nonReentrantAfter();
    }

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

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

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

// SPDX-License-Identifier: MIT
// 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);
}

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

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

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

// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator
    ) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(
        uint256 x,
        uint256 y,
        uint256 denominator,
        Rounding rounding
    ) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10**64) {
                value /= 10**64;
                result += 64;
            }
            if (value >= 10**32) {
                value /= 10**32;
                result += 32;
            }
            if (value >= 10**16) {
                value /= 10**16;
                result += 16;
            }
            if (value >= 10**8) {
                value /= 10**8;
                result += 8;
            }
            if (value >= 10**4) {
                value /= 10**4;
                result += 4;
            }
            if (value >= 10**2) {
                value /= 10**2;
                result += 2;
            }
            if (value >= 10**1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);
        }
    }
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"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":"IMINTEEBLE_ERC721A_INTERFACE_ID","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"IREQUEST_MAPPER_INTERFACE_ID","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"OPERATOR_FILTER_REGISTRY","outputs":[{"internalType":"contract IOperatorFilterRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_defaultPrice","type":"uint256"},{"internalType":"uint256","name":"_premiumPrice","type":"uint256"},{"internalType":"bool","name":"_required","type":"bool"}],"name":"addLayer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_layerIndex","type":"uint256"},{"internalType":"uint256","name":"_supply","type":"uint256"}],"name":"addSuppliableItem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_appliedLayers","type":"uint256"},{"internalType":"uint256","name":"_layerIndex","type":"uint256"}],"name":"appliedLayerInfo","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","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":"baseUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_appliedLayers","type":"uint256"}],"name":"evalPrice","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":"bytes32","name":"_request","type":"bytes32"}],"name":"getIdByRequest","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"getItemInfo","outputs":[{"components":[{"internalType":"uint256","name":"appliedLayers","type":"uint256"}],"internalType":"struct CustomPunks.ItemInfo","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLayers","outputs":[{"components":[{"internalType":"uint256","name":"defaultPrice","type":"uint256"},{"internalType":"uint256","name":"premiumPrice","type":"uint256"},{"internalType":"bool","name":"required","type":"bool"},{"internalType":"uint256[]","name":"suppliableItems","type":"uint256[]"}],"internalType":"struct CustomPunks.LayerInfo[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_layerIndex","type":"uint256"},{"internalType":"uint256","name":"_itemIndex","type":"uint256"}],"name":"getSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_layerIndex","type":"uint256"}],"name":"getlayer","outputs":[{"components":[{"internalType":"uint256","name":"defaultPrice","type":"uint256"},{"internalType":"uint256","name":"premiumPrice","type":"uint256"},{"internalType":"bool","name":"required","type":"bool"},{"internalType":"uint256[]","name":"suppliableItems","type":"uint256[]"}],"internalType":"struct CustomPunks.LayerInfo","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"layers","outputs":[{"internalType":"uint256","name":"defaultPrice","type":"uint256"},{"internalType":"uint256","name":"premiumPrice","type":"uint256"},{"internalType":"bool","name":"required","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmountPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintAmountPerTrx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"mintForAddress","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_requestId","type":"bytes32"},{"internalType":"uint256","name":"_appliedLayers","type":"uint256"},{"internalType":"uint256[]","name":"_suppliableLayersIndexes","type":"uint256[]"},{"internalType":"uint256[]","name":"_suppliableItemsIndexes","type":"uint256[]"}],"name":"mintRequestedPfp","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"},{"internalType":"bytes32","name":"_requestId","type":"bytes32"},{"internalType":"uint256","name":"_appliedLayers","type":"uint256"},{"internalType":"uint256[]","name":"_suppliableLayersIndexes","type":"uint256[]"},{"internalType":"uint256[]","name":"_suppliableItemsIndexes","type":"uint256[]"}],"name":"mintRequestedPfpForAddress","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"address","name":"_receiver","type":"address"}],"name":"ownerMintForAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preRevealUri","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"removeLayer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"string","name":"_baseUri","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_layerId","type":"uint256"},{"internalType":"uint256","name":"_defaultPrice","type":"uint256"}],"name":"setDefaultPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_layerIndex","type":"uint256"},{"internalType":"uint256","name":"_itemIndex","type":"uint256"},{"internalType":"uint256","name":"_newSupply","type":"uint256"}],"name":"setItemSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxAmount","type":"uint256"}],"name":"setMaxMintAmountPerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxAmount","type":"uint256"}],"name":"setMaxMintAmountPerTrx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintPrice","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_preRevealUri","type":"string"}],"name":"setPreRevealUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_layerId","type":"uint256"},{"internalType":"uint256","name":"_premiumPrice","type":"uint256"}],"name":"setPremiumPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_layerId","type":"uint256"},{"internalType":"bool","name":"_required","type":"bool"}],"name":"setRequired","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_revealed","type":"bool"}],"name":"setRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uriSuffix","type":"string"}],"name":"setUriSuffix","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account1","type":"address"},{"internalType":"address","name":"_account2","type":"address"}],"name":"setWithdrawAccounts","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":[{"internalType":"address","name":"","type":"address"}],"name":"totalMintedByAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"uriSuffix","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawAccount1","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawAccount2","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdrawBalance","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60a06040819052600060808190526200001b91600c91620005f7565b5060408051808201909152600580825264173539b7b760d91b60209092019182526200004a91600d91620005f7565b506040805160208101918290526000908190526200006b91600e91620005f7565b50600f805461ffff1916610100179055600560105560146011553480156200009257600080fd5b50733cc6cdda760b79bafa08df41ecfa224f810dceb660016040518060400160405280600b81526020016a437573746f6d50756e6b7360a81b81525060405180604001604052806002815260200161043560f41b81525061271060008383816002908051906020019062000108929190620005f7565b5080516200011e906003906020840190620005f7565b50506001600055506200013133620003cf565b6001600955600b55600a5550506daaeb6d7670e522a718067333cd4e3b1562000283578015620001d157604051633e9f1edf60e11b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e90637d3e3dbe906044015b600060405180830381600087803b158015620001b257600080fd5b505af1158015620001c7573d6000803e3d6000fd5b5050505062000283565b6001600160a01b03821615620002225760405163a0af290360e01b81523060048201526001600160a01b03831660248201526daaeb6d7670e522a718067333cd4e9063a0af29039060440162000197565b604051632210724360e11b81523060048201526daaeb6d7670e522a718067333cd4e90634420e48690602401600060405180830381600087803b1580156200026957600080fd5b505af11580156200027e573d6000803e3d6000fd5b505050505b50620002929050600062000421565b620002a7660ef2273c1b080080600162000445565b620002bc60006602738d24e520008162000445565b620002d1600066017dfcdece40008162000445565b620002e6600066017dfcdece40008162000445565b620002fb600066017dfcdece40008162000445565b62000310600066017dfcdece40008162000445565b62000325600066017dfcdece40008162000445565b6200033a600066017dfcdece40008162000445565b6200034f600066017dfcdece40008162000445565b60005b602281101562000380576200036b60016127106200054e565b806200037781620006da565b91505062000352565b50601680546001600160a01b031990811673e63b7625b4543fb0d55e605d08d32c5ae07c3b8417909155601780549091167369bc14bd1a8fa27fc5d41a03810c070513f5795a17905562000754565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6200042b62000596565b600f80549115156101000261ff0019909216919091179055565b6200044f62000596565b604080516080810182528481526020808201858152841515938301938452606083810181815260148054600181018255600091909152855160049091027fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec810191825593517fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ed85015595517fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ee8401805491151560ff1990921691909117905551805191959362000545937fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ef019291019062000686565b50505050505050565b6200055862000596565b601482815481106200056e576200056e62000702565b6000918252602080832060036004909302019190910180546001810182559083529120015550565b6008546001600160a01b03163314620005f55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640160405180910390fd5b565b828054620006059062000718565b90600052602060002090601f01602090048101928262000629576000855562000674565b82601f106200064457805160ff191683800117855562000674565b8280016001018555821562000674579182015b828111156200067457825182559160200191906001019062000657565b5062000682929150620006c3565b5090565b8280548282559060005260206000209081019282156200067457916020028201828111156200067457825182559160200191906001019062000657565b5b80821115620006825760008155600101620006c4565b600060018201620006fb57634e487b7160e01b600052601160045260246000fd5b5060010190565b634e487b7160e01b600052603260045260246000fd5b600181811c908216806200072d57607f821691505b6020821081036200074e57634e487b7160e01b600052602260045260246000fd5b50919050565b613ae880620007646000396000f3fe6080604052600436106103b75760003560e01c8063715018a6116101f2578063b6f8d8131161010d578063de7fe3e7116100a0578063f254933d1161006f578063f254933d14610b37578063f2fde38b14610b4a578063f471e55f14610b6a578063f4a0a52814610b8a57600080fd5b8063de7fe3e714610a5b578063e0a8085314610aae578063e693b57a14610ace578063e985e9c514610aee57600080fd5b8063bd8624e6116100dc578063bd8624e6146109ef578063bebdd3d214610a0f578063c87b56dd14610a25578063d5abeb0114610a4557600080fd5b8063b6f8d81314610987578063b88d4fde146109a7578063b9e1cdeb146109ba578063bd7d28cd146109cd57600080fd5b806397cf84fc11610185578063a0bcfc7f11610154578063a0bcfc7f146108fa578063a22cb4651461091a578063a40b698b1461093a578063aae469061461095a57600080fd5b806397cf84fc146108685780639abc8320146108955780639e9198c2146108aa578063a0712d68146108e757600080fd5b80638f26035d116101c15780638f26035d146107fe5780638f7b93791461081e57806395d89b411461083357806397b991491461084857600080fd5b8063715018a61461078b57806372f882e6146107a057806389c734a0146107c05780638da5cb5b146107e057600080fd5b806341f43434116102e25780635c41d75e1161027557806365ea71f41161024457806365ea71f41461071a57806366ab1d81146107355780636817c76c1461075557806370a082311461076b57600080fd5b80635c41d75e146106b05780635c975abb146106c65780635fd8c710146106e55780636352211e146106fa57600080fd5b806346b29e55116102b157806346b29e551461063457806351830227146106615780635503a0e81461067b5780635697f53e1461069057600080fd5b806341f43434146105b257806342842e0e146105d45780634304d58a146105e7578063438b63001461060757600080fd5b8063095ea7b31161035a57806316c38b3c1161032957806316c38b3c1461053657806318160ddd146105565780631bbca5031461056b57806323b872dd1461059f57600080fd5b8063095ea7b3146104b55780630f54a43f146104c857806312b6f726146104f657806316ba10e01461051657600080fd5b806301ffc9a71161039657806301ffc9a714610413578063026886e21461044857806306fdde031461045b578063081812fc1461047d57600080fd5b80627b572c146103bc578063012fe98a146103d3578063013eee1f146103f3575b600080fd5b3480156103c857600080fd5b506103d1610baa565b005b3480156103df57600080fd5b506103d16103ee36600461304c565b610c4c565b3480156103ff57600080fd5b506103d161040e366004613117565b610c96565b34801561041f57600080fd5b5061043361042e366004613176565b610cb1565b60405190151581526020015b60405180910390f35b6103d1610456366004613213565b610cdc565b34801561046757600080fd5b50610470610d28565b60405161043f91906132f3565b34801561048957600080fd5b5061049d610498366004613306565b610dba565b6040516001600160a01b03909116815260200161043f565b6103d16104c336600461331f565b610dfe565b3480156104d457600080fd5b506104e86104e3366004613306565b610ec7565b60405190815260200161043f565b34801561050257600080fd5b506104e8610511366004613349565b611047565b34801561052257600080fd5b506103d1610531366004613117565b611091565b34801561054257600080fd5b506103d1610551366004613379565b6110ac565b34801561056257600080fd5b506104e86110ce565b34801561057757600080fd5b5061058663584cc76960e01b81565b6040516001600160e01b0319909116815260200161043f565b6103d16105ad366004613396565b6110dc565b3480156105be57600080fd5b5061049d6daaeb6d7670e522a718067333cd4e81565b6103d16105e2366004613396565b6111b5565b3480156105f357600080fd5b5060165461049d906001600160a01b031681565b34801561061357600080fd5b506106276106223660046133d2565b611283565b60405161043f9190613428565b34801561064057600080fd5b506104e861064f366004613306565b60009081526013602052604090205490565b34801561066d57600080fd5b50600f546104339060ff1681565b34801561068757600080fd5b5061047061138a565b34801561069c57600080fd5b506103d16106ab366004613306565b611418565b3480156106bc57600080fd5b506104e860115481565b3480156106d257600080fd5b50600f5461043390610100900460ff1681565b3480156106f157600080fd5b506103d1611425565b34801561070657600080fd5b5061049d610715366004613306565b611517565b34801561072657600080fd5b506105866346b29e5560e01b81565b34801561074157600080fd5b506103d161075036600461343b565b611522565b34801561076157600080fd5b506104e8600b5481565b34801561077757600080fd5b506104e86107863660046133d2565b611571565b34801561079757600080fd5b506103d16115c0565b3480156107ac57600080fd5b506103d16107bb366004613349565b6115d4565b3480156107cc57600080fd5b506103d16107db366004613467565b611626565b3480156107ec57600080fd5b506008546001600160a01b031661049d565b34801561080a57600080fd5b506104e8610819366004613349565b61172b565b34801561082a57600080fd5b506104706117ef565b34801561083f57600080fd5b506104706117fc565b34801561085457600080fd5b5060175461049d906001600160a01b031681565b34801561087457600080fd5b506104e86108833660046133d2565b60126020526000908152604090205481565b3480156108a157600080fd5b5061047061180b565b3480156108b657600080fd5b506108ca6108c5366004613306565b611818565b60408051938452602084019290925215159082015260600161043f565b6103d16108f5366004613306565b61184e565b34801561090657600080fd5b506103d1610915366004613117565b6119e2565b34801561092657600080fd5b506103d16109353660046134a0565b6119fd565b34801561094657600080fd5b506103d16109553660046134d7565b611ac1565b34801561096657600080fd5b5061097a610975366004613306565b611af7565b60405161043f9190613536565b34801561099357600080fd5b506103d16109a2366004613349565b611bcd565b6103d16109b5366004613549565b611c10565b6103d16109c83660046135c5565b611ce5565b3480156109d957600080fd5b506109e2611d25565b60405161043f9190613630565b3480156109fb57600080fd5b506103d1610a0a366004613349565b611df7565b348015610a1b57600080fd5b506104e860105481565b348015610a3157600080fd5b50610470610a40366004613306565b611e4d565b348015610a5157600080fd5b506104e8600a5481565b348015610a6757600080fd5b50610a9f610a76366004613306565b604080516020808201835260009182905292815260158352819020815192830190915254815290565b6040519051815260200161043f565b348015610aba57600080fd5b506103d1610ac9366004613379565b611f7b565b348015610ada57600080fd5b506103d1610ae9366004613692565b611f96565b348015610afa57600080fd5b50610433610b093660046134d7565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6103d1610b4536600461331f565b611ff9565b348015610b5657600080fd5b506103d1610b653660046133d2565b612021565b348015610b7657600080fd5b506103d1610b85366004613306565b61209a565b348015610b9657600080fd5b506103d1610ba5366004613306565b6120a7565b610bb26120b4565b601454610bfc5760405162461bcd60e51b81526020600482015260136024820152724e6f206c617965727320617661696c61626c6560681b60448201526064015b60405180910390fd5b6014805480610c0d57610c0d6136b7565b6000828152602081206004600019909301928302018181556001810182905560028101805460ff1916905590610c466003830182612f3f565b50509055565b610c546120b4565b600a5482610c606110ce565b610c6a91906136e3565b1115610c885760405162461bcd60e51b8152600401610bf3906136fb565b610c92818361210e565b5050565b610c9e6120b4565b8051610c9290600e906020840190612f5d565b60006001600160e01b0319821663584cc76960e01b1480610cd65750610cd682612128565b92915050565b600f54610100900460ff1615610d045760405162461bcd60e51b8152600401610bf390613727565b610d1085848484612176565b610d2184610d1c6110ce565b61256d565b5050505050565b606060028054610d3790613754565b80601f0160208091040260200160405190810160405280929190818152602001828054610d6390613754565b8015610db05780601f10610d8557610100808354040283529160200191610db0565b820191906000526020600020905b815481529060010190602001808311610d9357829003601f168201915b5050505050905090565b6000610dc5826125d1565b610de2576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b816daaeb6d7670e522a718067333cd4e3b15610eb857604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610e6c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e90919061378e565b610eb857604051633b79c77360e21b81526001600160a01b0382166004820152602401610bf3565b610ec28383612606565b505050565b601454600090610ed89060026137ab565b610ee39060026138ae565b8210610f2a5760405162461bcd60e51b8152602060048201526016602482015275496e76616c6964206170706c696564206c617965727360501b6044820152606401610bf3565b6000805b601454811015611040576000610f44858361172b565b905080600203610f855760148281548110610f6157610f616138ba565b90600052602060002090600402016001015483610f7e91906136e3565b925061102d565b80600103610fbd5760148281548110610fa057610fa06138ba565b90600052602060002090600402016000015483610f7e91906136e3565b60148281548110610fd057610fd06138ba565b600091825260209091206002600490920201015460ff161561102d5760405162461bcd60e51b815260206004820152601660248201527526b4b9b9b4b733903932b8bab4b932b2103630bcb2b960511b6044820152606401610bf3565b5080611038816138d0565b915050610f2e565b5092915050565b60006014838154811061105c5761105c6138ba565b9060005260206000209060040201600301828154811061107e5761107e6138ba565b9060005260206000200154905092915050565b6110996120b4565b8051610c9290600d906020840190612f5d565b6110b46120b4565b600f80549115156101000261ff0019909216919091179055565b600154600054036000190190565b826daaeb6d7670e522a718067333cd4e3b156111a457336001600160a01b038216036111125761110d8484846126a6565b6111af565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611161573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611185919061378e565b6111a457604051633b79c77360e21b8152336004820152602401610bf3565b6111af8484846126a6565b50505050565b826daaeb6d7670e522a718067333cd4e3b1561127857336001600160a01b038216036111e65761110d84848461283e565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611235573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611259919061378e565b61127857604051633b79c77360e21b8152336004820152602401610bf3565b6111af84848461283e565b6060600061129083611571565b905060008167ffffffffffffffff8111156112ad576112ad613078565b6040519080825280602002602001820160405280156112d6578160200160208202803683370190505b50905060016000805b84821080156112f05750600a548311155b1561137f57600061130084612859565b9050806040015115801561131d575080516001600160a01b031615155b1561132757805191505b876001600160a01b0316826001600160a01b03160361136c5783858481518110611353576113536138ba565b602090810291909101015282611368816138d0565b9350505b83611376816138d0565b945050506112df565b509195945050505050565b600d805461139790613754565b80601f01602080910402602001604051908101604052809291908181526020018280546113c390613754565b80156114105780601f106113e557610100808354040283529160200191611410565b820191906000526020600020905b8154815290600101906020018083116113f357829003601f168201915b505050505081565b6114206120b4565b601155565b61142d6120b4565b60165447906000906001600160a01b03166114496064846138e9565b6114549060146137ab565b604051600081818185875af1925050503d8060008114611490576040519150601f19603f3d011682016040523d82523d6000602084013e611495565b606091505b50509050806114a357600080fd5b6017546000906001600160a01b03166114bd6064856138e9565b6114c89060506137ab565b604051600081818185875af1925050503d8060008114611504576040519150601f19603f3d011682016040523d82523d6000602084013e611509565b606091505b5050905080610ec257600080fd5b6000610cd6826128d1565b61152a6120b4565b806014848154811061153e5761153e6138ba565b90600052602060002090600402016003018381548110611560576115606138ba565b600091825260209091200155505050565b60006001600160a01b03821661159a576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6115c86120b4565b6115d26000612947565b565b6115dc6120b4565b60145482106115fd5760405162461bcd60e51b8152600401610bf39061390b565b8060148381548110611611576116116138ba565b60009182526020909120600490910201555050565b61162e6120b4565b604080516080810182528481526020808201858152841515938301938452606083810181815260148054600181018255600091909152855160049091027fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec810191825593517fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ed85015595517fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ee8401805491151560ff19909216919091179055518051919593611722937fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ef0192910190612fe1565b50505050505050565b6000806117398360026137ab565b6117449060026138ae565b84161515905060006117578460026137ab565b6117629060016136e3565b61176d9060026138ae565b85161515905081801561177d5750805b156117c25760405162461bcd60e51b815260206004820152601560248201527424b73b30b634b21031b7b73334b3bab930ba34b7b760591b6044820152606401610bf3565b81156117d357600192505050610cd6565b80156117e457600292505050610cd6565b506000949350505050565b600e805461139790613754565b606060038054610d3790613754565b600c805461139790613754565b6014818154811061182857600080fd5b600091825260209091206004909102018054600182015460029092015490925060ff1683565b80600a548161185b6110ce565b61186591906136e3565b11156118835760405162461bcd60e51b8152600401610bf3906136fb565b6010548111156118e45760405162461bcd60e51b815260206004820152602660248201527f4578636565646564206d6178696d756d20746f74616c20616d6f756e7420706560448201526572207472782160d01b6064820152608401610bf3565b601154336000908152601260205260409020546119029083906136e3565b11156119205760405162461bcd60e51b8152600401610bf390613934565b81600b548161192f91906137ab565b3410156119745760405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e742066756e64732160681b6044820152606401610bf3565b600f54610100900460ff161561199c5760405162461bcd60e51b8152600401610bf390613727565b6119a4612999565b60405162461bcd60e51b815260206004820152601360248201527226b2ba3437b2103737ba1030b63637bbb2b21760691b6044820152606401610bf3565b6119ea6120b4565b8051610c9290600c906020840190612f5d565b816daaeb6d7670e522a718067333cd4e3b15611ab757604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611a6b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a8f919061378e565b611ab757604051633b79c77360e21b81526001600160a01b0382166004820152602401610bf3565b610ec283836129f2565b611ac96120b4565b601680546001600160a01b039384166001600160a01b03199182161790915560178054929093169116179055565b611b2460405180608001604052806000815260200160008152602001600015158152602001606081525090565b60148281548110611b3757611b376138ba565b600091825260209182902060408051608081018252600490930290910180548352600181015483850152600281015460ff1615158383015260038101805483518187028101870190945280845293949193606086019392830182828015611bbd57602002820191906000526020600020905b815481526020019060010190808311611ba9575b5050505050815250509050919050565b611bd56120b4565b60148281548110611be857611be86138ba565b6000918252602080832060036004909302019190910180546001810182559083529120015550565b836daaeb6d7670e522a718067333cd4e3b15611cd957336001600160a01b03821603611c4757611c4285858585612a5e565b610d21565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611c96573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cba919061378e565b611cd957604051633b79c77360e21b8152336004820152602401610bf3565b610d2185858585612a5e565b600f54610100900460ff1615611d0d5760405162461bcd60e51b8152600401610bf390613727565b611d1933848484612176565b6111af84610d1c6110ce565b60606014805480602002602001604051908101604052809291908181526020016000905b82821015611dee576000848152602090819020604080516080810182526004860290920180548352600181015483850152600281015460ff1615158383015260038101805483518187028101870190945280845293949193606086019392830182828015611dd657602002820191906000526020600020905b815481526020019060010190808311611dc2575b50505050508152505081526020019060010190611d49565b50505050905090565b611dff6120b4565b6014548210611e205760405162461bcd60e51b8152600401610bf39061390b565b8060148381548110611e3457611e346138ba565b9060005260206000209060040201600101819055505050565b6060611e58826125d1565b611ea45760405162461bcd60e51b815260206004820152601960248201527f546f6b656e20494420646f206573206e6f742065786973742e000000000000006044820152606401610bf3565b600f5460ff16611f4057600e8054611ebb90613754565b80601f0160208091040260200160405190810160405280929190818152602001828054611ee790613754565b8015611f345780601f10611f0957610100808354040283529160200191611f34565b820191906000526020600020905b815481529060010190602001808311611f1757829003601f168201915b50505050509050919050565b611f48612aa2565b611f5183612ab1565b600d604051602001611f659392919061397e565b6040516020818303038152906040529050919050565b611f836120b4565b600f805460ff1916911515919091179055565b611f9e6120b4565b6014548210611fbf5760405162461bcd60e51b8152600401610bf39061390b565b8060148381548110611fd357611fd36138ba565b60009182526020909120600490910201600201805460ff19169115159190911790555050565b600f54610100900460ff16156119a45760405162461bcd60e51b8152600401610bf390613727565b6120296120b4565b6001600160a01b03811661208e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610bf3565b61209781612947565b50565b6120a26120b4565b601055565b6120af6120b4565b600b55565b6008546001600160a01b031633146115d25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610bf3565b610c92828260405180602001604052806000815250612b44565b60006301ffc9a760e01b6001600160e01b03198316148061215957506380ac58cd60e01b6001600160e01b03198316145b80610cd65750506001600160e01b031916635b5e139f60e01b1490565b83600a546121826110ce565b61218d9060016136e3565b11156121ab5760405162461bcd60e51b8152600401610bf3906136fb565b601154336000908152601260205260409020546121c99060016136e3565b11156121e75760405162461bcd60e51b8152600401610bf390613934565b600f54610100900460ff161561220f5760405162461bcd60e51b8152600401610bf390613727565b612217612999565b82518251146122685760405162461bcd60e51b815260206004820152601f60248201527f496e76616c696420737570706c6961626c65206974656d73206c656e677468006044820152606401610bf3565b600061227385610ec7565b9050803410156122bb5760405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e742066756e64732160681b6044820152606401610bf3565b6000845167ffffffffffffffff8111156122d7576122d7613078565b604051908082528060200260200182016040528015612300578160200160208202803683370190505b50905060005b8151811015612343576014548251839083908110612326576123266138ba565b60209081029190910101528061233b816138d0565b915050612306565b5060005b85518110156124f85760005b82518110156123e45782818151811061236e5761236e6138ba565b6020026020010151878381518110612388576123886138ba565b6020026020010151036123d25760405162461bcd60e51b815260206004820152601260248201527113185e595c88185b1c9958591e481d5cd95960721b6044820152606401610bf3565b806123dc816138d0565b915050612353565b508581815181106123f7576123f76138ba565b6020026020010151828281518110612411576124116138ba565b60200260200101818152505085818151811061242f5761242f6138ba565b6020026020010151600261244391906137ab565b61244e9060016136e3565b6124599060026138ae565b87166000036124aa5760405162461bcd60e51b815260206004820152601760248201527f4d697373696e6720737570706c6961626c65206974656d0000000000000000006044820152606401610bf3565b6124e68682815181106124bf576124bf6138ba565b60200260200101518683815181106124d9576124d96138ba565b6020026020010151612baa565b806124f0816138d0565b915050612347565b5060408051602081019091528681526125266125126110ce565b600090815260156020526040902082519055565b61253188600161210e565b6001600160a01b038816600090815260126020526040812080546001929061255a9084906136e3565b9091555050600160095550610d21915050565b600082815260136020526040902054156125bf5760405162461bcd60e51b815260206004820152601360248201527214995c5d595cdd08185b1c9958591e481cd95d606a1b6044820152606401610bf3565b60009182526013602052604090912055565b6000816001111580156125e5575060005482105b8015610cd6575050600090815260046020526040902054600160e01b161590565b600061261182611517565b9050336001600160a01b0382161461264a5761262d8133610b09565b61264a576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006126b1826128d1565b9050836001600160a01b0316816001600160a01b0316146126e45760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417612731576127148633610b09565b61273157604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661275857604051633a954ecd60e21b815260040160405180910390fd5b801561276357600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b841690036127f5576001840160008181526004602052604081205490036127f35760005481146127f35760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b610ec283838360405180602001604052806000815250611c10565b604080516080810182526000808252602082018190529181018290526060810191909152610cd6612889836128d1565b604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b6000818060011161292e5760005481101561292e5760008181526004602052604081205490600160e01b8216900361292c575b80600003612925575060001901600081815260046020526040902054612904565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6002600954036129eb5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610bf3565b6002600955565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b612a698484846110dc565b6001600160a01b0383163b156111af57612a8584848484612c7d565b6111af576040516368d2bf6b60e11b815260040160405180910390fd5b6060600c8054610d3790613754565b60606000612abe83612d69565b600101905060008167ffffffffffffffff811115612ade57612ade613078565b6040519080825280601f01601f191660200182016040528015612b08576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084612b1257509392505050565b612b4e8383612e41565b6001600160a01b0383163b15610ec2576000548281035b612b786000868380600101945086612c7d565b612b95576040516368d2bf6b60e11b815260040160405180910390fd5b818110612b65578160005414610d2157600080fd5b600060148381548110612bbf57612bbf6138ba565b90600052602060002090600402016003018281548110612be157612be16138ba565b906000526020600020015411612c295760405162461bcd60e51b815260206004820152600d60248201526c139bc81a5d195b5cc81b19599d609a1b6044820152606401610bf3565b60148281548110612c3c57612c3c6138ba565b90600052602060002090600402016003018181548110612c5e57612c5e6138ba565b60009182526020822001805491612c7483613a41565b91905055505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612cb2903390899088908890600401613a58565b6020604051808303816000875af1925050508015612ced575060408051601f3d908101601f19168201909252612cea91810190613a95565b60015b612d4b573d808015612d1b576040519150601f19603f3d011682016040523d82523d6000602084013e612d20565b606091505b508051600003612d43576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310612da85772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310612dd4576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310612df257662386f26fc10000830492506010015b6305f5e1008310612e0a576305f5e100830492506008015b6127108310612e1e57612710830492506004015b60648310612e30576064830492506002015b600a8310610cd65760010192915050565b6000805490829003612e665760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b818114612f1557808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101612edd565b5081600003612f3657604051622e076360e81b815260040160405180910390fd5b60005550505050565b5080546000825590600052602060002090810190612097919061301b565b828054612f6990613754565b90600052602060002090601f016020900481019282612f8b5760008555612fd1565b82601f10612fa457805160ff1916838001178555612fd1565b82800160010185558215612fd1579182015b82811115612fd1578251825591602001919060010190612fb6565b50612fdd92915061301b565b5090565b828054828255906000526020600020908101928215612fd15791602002820182811115612fd1578251825591602001919060010190612fb6565b5b80821115612fdd576000815560010161301c565b80356001600160a01b038116811461304757600080fd5b919050565b6000806040838503121561305f57600080fd5b8235915061306f60208401613030565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156130b7576130b7613078565b604052919050565b600067ffffffffffffffff8311156130d9576130d9613078565b6130ec601f8401601f191660200161308e565b905082815283838301111561310057600080fd5b828260208301376000602084830101529392505050565b60006020828403121561312957600080fd5b813567ffffffffffffffff81111561314057600080fd5b8201601f8101841361315157600080fd5b612d61848235602084016130bf565b6001600160e01b03198116811461209757600080fd5b60006020828403121561318857600080fd5b813561292581613160565b600082601f8301126131a457600080fd5b8135602067ffffffffffffffff8211156131c0576131c0613078565b8160051b6131cf82820161308e565b92835284810182019282810190878511156131e957600080fd5b83870192505b84831015613208578235825291830191908301906131ef565b979650505050505050565b600080600080600060a0868803121561322b57600080fd5b61323486613030565b94506020860135935060408601359250606086013567ffffffffffffffff8082111561325f57600080fd5b61326b89838a01613193565b9350608088013591508082111561328157600080fd5b5061328e88828901613193565b9150509295509295909350565b60005b838110156132b657818101518382015260200161329e565b838111156111af5750506000910152565b600081518084526132df81602086016020860161329b565b601f01601f19169290920160200192915050565b60208152600061292560208301846132c7565b60006020828403121561331857600080fd5b5035919050565b6000806040838503121561333257600080fd5b61333b83613030565b946020939093013593505050565b6000806040838503121561335c57600080fd5b50508035926020909101359150565b801515811461209757600080fd5b60006020828403121561338b57600080fd5b81356129258161336b565b6000806000606084860312156133ab57600080fd5b6133b484613030565b92506133c260208501613030565b9150604084013590509250925092565b6000602082840312156133e457600080fd5b61292582613030565b600081518084526020808501945080840160005b8381101561341d57815187529582019590820190600101613401565b509495945050505050565b60208152600061292560208301846133ed565b60008060006060848603121561345057600080fd5b505081359360208301359350604090920135919050565b60008060006060848603121561347c57600080fd5b833592506020840135915060408401356134958161336b565b809150509250925092565b600080604083850312156134b357600080fd5b6134bc83613030565b915060208301356134cc8161336b565b809150509250929050565b600080604083850312156134ea57600080fd5b6134f383613030565b915061306f60208401613030565b80518252602081015160208301526040810151151560408301526000606082015160806060850152612d6160808501826133ed565b6020815260006129256020830184613501565b6000806000806080858703121561355f57600080fd5b61356885613030565b935061357660208601613030565b925060408501359150606085013567ffffffffffffffff81111561359957600080fd5b8501601f810187136135aa57600080fd5b6135b9878235602084016130bf565b91505092959194509250565b600080600080608085870312156135db57600080fd5b8435935060208501359250604085013567ffffffffffffffff8082111561360157600080fd5b61360d88838901613193565b9350606087013591508082111561362357600080fd5b506135b987828801613193565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b8281101561368557603f19888603018452613673858351613501565b94509285019290850190600101613657565b5092979650505050505050565b600080604083850312156136a557600080fd5b8235915060208301356134cc8161336b565b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082198211156136f6576136f66136cd565b500190565b6020808252601290820152714d617820737570706c79206578636565642160701b604082015260600190565b60208082526013908201527221b7b73a3930b1ba1034b9903830bab9b2b21760691b604082015260600190565b600181811c9082168061376857607f821691505b60208210810361378857634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156137a057600080fd5b81516129258161336b565b60008160001904831182151516156137c5576137c56136cd565b500290565b600181815b808511156138055781600019048211156137eb576137eb6136cd565b808516156137f857918102915b93841c93908002906137cf565b509250929050565b60008261381c57506001610cd6565b8161382957506000610cd6565b816001811461383f576002811461384957613865565b6001915050610cd6565b60ff84111561385a5761385a6136cd565b50506001821b610cd6565b5060208310610133831016604e8410600b8410161715613888575081810a610cd6565b61389283836137ca565b80600019048211156138a6576138a66136cd565b029392505050565b6000612925838361380d565b634e487b7160e01b600052603260045260246000fd5b6000600182016138e2576138e26136cd565b5060010190565b60008261390657634e487b7160e01b600052601260045260246000fd5b500490565b6020808252600f908201526e125b9d985b1a59081b185e595c9259608a1b604082015260600190565b6020808252602a908201527f4578636565646564206d6178696d756d20746f74616c20616d6f756e742070656040820152697220616464726573732160b01b606082015260800190565b6000845160206139918285838a0161329b565b8551918401916139a48184848a0161329b565b8554920191600090600181811c90808316806139c157607f831692505b85831081036139de57634e487b7160e01b85526022600452602485fd5b8080156139f25760018114613a0357613a30565b60ff19851688528388019550613a30565b60008b81526020902060005b85811015613a285781548a820152908401908801613a0f565b505083880195505b50939b9a5050505050505050505050565b600081613a5057613a506136cd565b506000190190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613a8b908301846132c7565b9695505050505050565b600060208284031215613aa757600080fd5b81516129258161316056fea264697066735822122006d177216d6efb06009b8119ca12e8324031495b7df8c5605a817139968a8d4864736f6c634300080e0033

Deployed Bytecode

0x6080604052600436106103b75760003560e01c8063715018a6116101f2578063b6f8d8131161010d578063de7fe3e7116100a0578063f254933d1161006f578063f254933d14610b37578063f2fde38b14610b4a578063f471e55f14610b6a578063f4a0a52814610b8a57600080fd5b8063de7fe3e714610a5b578063e0a8085314610aae578063e693b57a14610ace578063e985e9c514610aee57600080fd5b8063bd8624e6116100dc578063bd8624e6146109ef578063bebdd3d214610a0f578063c87b56dd14610a25578063d5abeb0114610a4557600080fd5b8063b6f8d81314610987578063b88d4fde146109a7578063b9e1cdeb146109ba578063bd7d28cd146109cd57600080fd5b806397cf84fc11610185578063a0bcfc7f11610154578063a0bcfc7f146108fa578063a22cb4651461091a578063a40b698b1461093a578063aae469061461095a57600080fd5b806397cf84fc146108685780639abc8320146108955780639e9198c2146108aa578063a0712d68146108e757600080fd5b80638f26035d116101c15780638f26035d146107fe5780638f7b93791461081e57806395d89b411461083357806397b991491461084857600080fd5b8063715018a61461078b57806372f882e6146107a057806389c734a0146107c05780638da5cb5b146107e057600080fd5b806341f43434116102e25780635c41d75e1161027557806365ea71f41161024457806365ea71f41461071a57806366ab1d81146107355780636817c76c1461075557806370a082311461076b57600080fd5b80635c41d75e146106b05780635c975abb146106c65780635fd8c710146106e55780636352211e146106fa57600080fd5b806346b29e55116102b157806346b29e551461063457806351830227146106615780635503a0e81461067b5780635697f53e1461069057600080fd5b806341f43434146105b257806342842e0e146105d45780634304d58a146105e7578063438b63001461060757600080fd5b8063095ea7b31161035a57806316c38b3c1161032957806316c38b3c1461053657806318160ddd146105565780631bbca5031461056b57806323b872dd1461059f57600080fd5b8063095ea7b3146104b55780630f54a43f146104c857806312b6f726146104f657806316ba10e01461051657600080fd5b806301ffc9a71161039657806301ffc9a714610413578063026886e21461044857806306fdde031461045b578063081812fc1461047d57600080fd5b80627b572c146103bc578063012fe98a146103d3578063013eee1f146103f3575b600080fd5b3480156103c857600080fd5b506103d1610baa565b005b3480156103df57600080fd5b506103d16103ee36600461304c565b610c4c565b3480156103ff57600080fd5b506103d161040e366004613117565b610c96565b34801561041f57600080fd5b5061043361042e366004613176565b610cb1565b60405190151581526020015b60405180910390f35b6103d1610456366004613213565b610cdc565b34801561046757600080fd5b50610470610d28565b60405161043f91906132f3565b34801561048957600080fd5b5061049d610498366004613306565b610dba565b6040516001600160a01b03909116815260200161043f565b6103d16104c336600461331f565b610dfe565b3480156104d457600080fd5b506104e86104e3366004613306565b610ec7565b60405190815260200161043f565b34801561050257600080fd5b506104e8610511366004613349565b611047565b34801561052257600080fd5b506103d1610531366004613117565b611091565b34801561054257600080fd5b506103d1610551366004613379565b6110ac565b34801561056257600080fd5b506104e86110ce565b34801561057757600080fd5b5061058663584cc76960e01b81565b6040516001600160e01b0319909116815260200161043f565b6103d16105ad366004613396565b6110dc565b3480156105be57600080fd5b5061049d6daaeb6d7670e522a718067333cd4e81565b6103d16105e2366004613396565b6111b5565b3480156105f357600080fd5b5060165461049d906001600160a01b031681565b34801561061357600080fd5b506106276106223660046133d2565b611283565b60405161043f9190613428565b34801561064057600080fd5b506104e861064f366004613306565b60009081526013602052604090205490565b34801561066d57600080fd5b50600f546104339060ff1681565b34801561068757600080fd5b5061047061138a565b34801561069c57600080fd5b506103d16106ab366004613306565b611418565b3480156106bc57600080fd5b506104e860115481565b3480156106d257600080fd5b50600f5461043390610100900460ff1681565b3480156106f157600080fd5b506103d1611425565b34801561070657600080fd5b5061049d610715366004613306565b611517565b34801561072657600080fd5b506105866346b29e5560e01b81565b34801561074157600080fd5b506103d161075036600461343b565b611522565b34801561076157600080fd5b506104e8600b5481565b34801561077757600080fd5b506104e86107863660046133d2565b611571565b34801561079757600080fd5b506103d16115c0565b3480156107ac57600080fd5b506103d16107bb366004613349565b6115d4565b3480156107cc57600080fd5b506103d16107db366004613467565b611626565b3480156107ec57600080fd5b506008546001600160a01b031661049d565b34801561080a57600080fd5b506104e8610819366004613349565b61172b565b34801561082a57600080fd5b506104706117ef565b34801561083f57600080fd5b506104706117fc565b34801561085457600080fd5b5060175461049d906001600160a01b031681565b34801561087457600080fd5b506104e86108833660046133d2565b60126020526000908152604090205481565b3480156108a157600080fd5b5061047061180b565b3480156108b657600080fd5b506108ca6108c5366004613306565b611818565b60408051938452602084019290925215159082015260600161043f565b6103d16108f5366004613306565b61184e565b34801561090657600080fd5b506103d1610915366004613117565b6119e2565b34801561092657600080fd5b506103d16109353660046134a0565b6119fd565b34801561094657600080fd5b506103d16109553660046134d7565b611ac1565b34801561096657600080fd5b5061097a610975366004613306565b611af7565b60405161043f9190613536565b34801561099357600080fd5b506103d16109a2366004613349565b611bcd565b6103d16109b5366004613549565b611c10565b6103d16109c83660046135c5565b611ce5565b3480156109d957600080fd5b506109e2611d25565b60405161043f9190613630565b3480156109fb57600080fd5b506103d1610a0a366004613349565b611df7565b348015610a1b57600080fd5b506104e860105481565b348015610a3157600080fd5b50610470610a40366004613306565b611e4d565b348015610a5157600080fd5b506104e8600a5481565b348015610a6757600080fd5b50610a9f610a76366004613306565b604080516020808201835260009182905292815260158352819020815192830190915254815290565b6040519051815260200161043f565b348015610aba57600080fd5b506103d1610ac9366004613379565b611f7b565b348015610ada57600080fd5b506103d1610ae9366004613692565b611f96565b348015610afa57600080fd5b50610433610b093660046134d7565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6103d1610b4536600461331f565b611ff9565b348015610b5657600080fd5b506103d1610b653660046133d2565b612021565b348015610b7657600080fd5b506103d1610b85366004613306565b61209a565b348015610b9657600080fd5b506103d1610ba5366004613306565b6120a7565b610bb26120b4565b601454610bfc5760405162461bcd60e51b81526020600482015260136024820152724e6f206c617965727320617661696c61626c6560681b60448201526064015b60405180910390fd5b6014805480610c0d57610c0d6136b7565b6000828152602081206004600019909301928302018181556001810182905560028101805460ff1916905590610c466003830182612f3f565b50509055565b610c546120b4565b600a5482610c606110ce565b610c6a91906136e3565b1115610c885760405162461bcd60e51b8152600401610bf3906136fb565b610c92818361210e565b5050565b610c9e6120b4565b8051610c9290600e906020840190612f5d565b60006001600160e01b0319821663584cc76960e01b1480610cd65750610cd682612128565b92915050565b600f54610100900460ff1615610d045760405162461bcd60e51b8152600401610bf390613727565b610d1085848484612176565b610d2184610d1c6110ce565b61256d565b5050505050565b606060028054610d3790613754565b80601f0160208091040260200160405190810160405280929190818152602001828054610d6390613754565b8015610db05780601f10610d8557610100808354040283529160200191610db0565b820191906000526020600020905b815481529060010190602001808311610d9357829003601f168201915b5050505050905090565b6000610dc5826125d1565b610de2576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b816daaeb6d7670e522a718067333cd4e3b15610eb857604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610e6c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610e90919061378e565b610eb857604051633b79c77360e21b81526001600160a01b0382166004820152602401610bf3565b610ec28383612606565b505050565b601454600090610ed89060026137ab565b610ee39060026138ae565b8210610f2a5760405162461bcd60e51b8152602060048201526016602482015275496e76616c6964206170706c696564206c617965727360501b6044820152606401610bf3565b6000805b601454811015611040576000610f44858361172b565b905080600203610f855760148281548110610f6157610f616138ba565b90600052602060002090600402016001015483610f7e91906136e3565b925061102d565b80600103610fbd5760148281548110610fa057610fa06138ba565b90600052602060002090600402016000015483610f7e91906136e3565b60148281548110610fd057610fd06138ba565b600091825260209091206002600490920201015460ff161561102d5760405162461bcd60e51b815260206004820152601660248201527526b4b9b9b4b733903932b8bab4b932b2103630bcb2b960511b6044820152606401610bf3565b5080611038816138d0565b915050610f2e565b5092915050565b60006014838154811061105c5761105c6138ba565b9060005260206000209060040201600301828154811061107e5761107e6138ba565b9060005260206000200154905092915050565b6110996120b4565b8051610c9290600d906020840190612f5d565b6110b46120b4565b600f80549115156101000261ff0019909216919091179055565b600154600054036000190190565b826daaeb6d7670e522a718067333cd4e3b156111a457336001600160a01b038216036111125761110d8484846126a6565b6111af565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611161573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611185919061378e565b6111a457604051633b79c77360e21b8152336004820152602401610bf3565b6111af8484846126a6565b50505050565b826daaeb6d7670e522a718067333cd4e3b1561127857336001600160a01b038216036111e65761110d84848461283e565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611235573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611259919061378e565b61127857604051633b79c77360e21b8152336004820152602401610bf3565b6111af84848461283e565b6060600061129083611571565b905060008167ffffffffffffffff8111156112ad576112ad613078565b6040519080825280602002602001820160405280156112d6578160200160208202803683370190505b50905060016000805b84821080156112f05750600a548311155b1561137f57600061130084612859565b9050806040015115801561131d575080516001600160a01b031615155b1561132757805191505b876001600160a01b0316826001600160a01b03160361136c5783858481518110611353576113536138ba565b602090810291909101015282611368816138d0565b9350505b83611376816138d0565b945050506112df565b509195945050505050565b600d805461139790613754565b80601f01602080910402602001604051908101604052809291908181526020018280546113c390613754565b80156114105780601f106113e557610100808354040283529160200191611410565b820191906000526020600020905b8154815290600101906020018083116113f357829003601f168201915b505050505081565b6114206120b4565b601155565b61142d6120b4565b60165447906000906001600160a01b03166114496064846138e9565b6114549060146137ab565b604051600081818185875af1925050503d8060008114611490576040519150601f19603f3d011682016040523d82523d6000602084013e611495565b606091505b50509050806114a357600080fd5b6017546000906001600160a01b03166114bd6064856138e9565b6114c89060506137ab565b604051600081818185875af1925050503d8060008114611504576040519150601f19603f3d011682016040523d82523d6000602084013e611509565b606091505b5050905080610ec257600080fd5b6000610cd6826128d1565b61152a6120b4565b806014848154811061153e5761153e6138ba565b90600052602060002090600402016003018381548110611560576115606138ba565b600091825260209091200155505050565b60006001600160a01b03821661159a576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6115c86120b4565b6115d26000612947565b565b6115dc6120b4565b60145482106115fd5760405162461bcd60e51b8152600401610bf39061390b565b8060148381548110611611576116116138ba565b60009182526020909120600490910201555050565b61162e6120b4565b604080516080810182528481526020808201858152841515938301938452606083810181815260148054600181018255600091909152855160049091027fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ec810191825593517fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ed85015595517fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ee8401805491151560ff19909216919091179055518051919593611722937fce6d7b5282bd9a3661ae061feed1dbda4e52ab073b1f9285be6e155d9c38d4ef0192910190612fe1565b50505050505050565b6000806117398360026137ab565b6117449060026138ae565b84161515905060006117578460026137ab565b6117629060016136e3565b61176d9060026138ae565b85161515905081801561177d5750805b156117c25760405162461bcd60e51b815260206004820152601560248201527424b73b30b634b21031b7b73334b3bab930ba34b7b760591b6044820152606401610bf3565b81156117d357600192505050610cd6565b80156117e457600292505050610cd6565b506000949350505050565b600e805461139790613754565b606060038054610d3790613754565b600c805461139790613754565b6014818154811061182857600080fd5b600091825260209091206004909102018054600182015460029092015490925060ff1683565b80600a548161185b6110ce565b61186591906136e3565b11156118835760405162461bcd60e51b8152600401610bf3906136fb565b6010548111156118e45760405162461bcd60e51b815260206004820152602660248201527f4578636565646564206d6178696d756d20746f74616c20616d6f756e7420706560448201526572207472782160d01b6064820152608401610bf3565b601154336000908152601260205260409020546119029083906136e3565b11156119205760405162461bcd60e51b8152600401610bf390613934565b81600b548161192f91906137ab565b3410156119745760405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e742066756e64732160681b6044820152606401610bf3565b600f54610100900460ff161561199c5760405162461bcd60e51b8152600401610bf390613727565b6119a4612999565b60405162461bcd60e51b815260206004820152601360248201527226b2ba3437b2103737ba1030b63637bbb2b21760691b6044820152606401610bf3565b6119ea6120b4565b8051610c9290600c906020840190612f5d565b816daaeb6d7670e522a718067333cd4e3b15611ab757604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611a6b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a8f919061378e565b611ab757604051633b79c77360e21b81526001600160a01b0382166004820152602401610bf3565b610ec283836129f2565b611ac96120b4565b601680546001600160a01b039384166001600160a01b03199182161790915560178054929093169116179055565b611b2460405180608001604052806000815260200160008152602001600015158152602001606081525090565b60148281548110611b3757611b376138ba565b600091825260209182902060408051608081018252600490930290910180548352600181015483850152600281015460ff1615158383015260038101805483518187028101870190945280845293949193606086019392830182828015611bbd57602002820191906000526020600020905b815481526020019060010190808311611ba9575b5050505050815250509050919050565b611bd56120b4565b60148281548110611be857611be86138ba565b6000918252602080832060036004909302019190910180546001810182559083529120015550565b836daaeb6d7670e522a718067333cd4e3b15611cd957336001600160a01b03821603611c4757611c4285858585612a5e565b610d21565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611c96573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cba919061378e565b611cd957604051633b79c77360e21b8152336004820152602401610bf3565b610d2185858585612a5e565b600f54610100900460ff1615611d0d5760405162461bcd60e51b8152600401610bf390613727565b611d1933848484612176565b6111af84610d1c6110ce565b60606014805480602002602001604051908101604052809291908181526020016000905b82821015611dee576000848152602090819020604080516080810182526004860290920180548352600181015483850152600281015460ff1615158383015260038101805483518187028101870190945280845293949193606086019392830182828015611dd657602002820191906000526020600020905b815481526020019060010190808311611dc2575b50505050508152505081526020019060010190611d49565b50505050905090565b611dff6120b4565b6014548210611e205760405162461bcd60e51b8152600401610bf39061390b565b8060148381548110611e3457611e346138ba565b9060005260206000209060040201600101819055505050565b6060611e58826125d1565b611ea45760405162461bcd60e51b815260206004820152601960248201527f546f6b656e20494420646f206573206e6f742065786973742e000000000000006044820152606401610bf3565b600f5460ff16611f4057600e8054611ebb90613754565b80601f0160208091040260200160405190810160405280929190818152602001828054611ee790613754565b8015611f345780601f10611f0957610100808354040283529160200191611f34565b820191906000526020600020905b815481529060010190602001808311611f1757829003601f168201915b50505050509050919050565b611f48612aa2565b611f5183612ab1565b600d604051602001611f659392919061397e565b6040516020818303038152906040529050919050565b611f836120b4565b600f805460ff1916911515919091179055565b611f9e6120b4565b6014548210611fbf5760405162461bcd60e51b8152600401610bf39061390b565b8060148381548110611fd357611fd36138ba565b60009182526020909120600490910201600201805460ff19169115159190911790555050565b600f54610100900460ff16156119a45760405162461bcd60e51b8152600401610bf390613727565b6120296120b4565b6001600160a01b03811661208e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610bf3565b61209781612947565b50565b6120a26120b4565b601055565b6120af6120b4565b600b55565b6008546001600160a01b031633146115d25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610bf3565b610c92828260405180602001604052806000815250612b44565b60006301ffc9a760e01b6001600160e01b03198316148061215957506380ac58cd60e01b6001600160e01b03198316145b80610cd65750506001600160e01b031916635b5e139f60e01b1490565b83600a546121826110ce565b61218d9060016136e3565b11156121ab5760405162461bcd60e51b8152600401610bf3906136fb565b601154336000908152601260205260409020546121c99060016136e3565b11156121e75760405162461bcd60e51b8152600401610bf390613934565b600f54610100900460ff161561220f5760405162461bcd60e51b8152600401610bf390613727565b612217612999565b82518251146122685760405162461bcd60e51b815260206004820152601f60248201527f496e76616c696420737570706c6961626c65206974656d73206c656e677468006044820152606401610bf3565b600061227385610ec7565b9050803410156122bb5760405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e742066756e64732160681b6044820152606401610bf3565b6000845167ffffffffffffffff8111156122d7576122d7613078565b604051908082528060200260200182016040528015612300578160200160208202803683370190505b50905060005b8151811015612343576014548251839083908110612326576123266138ba565b60209081029190910101528061233b816138d0565b915050612306565b5060005b85518110156124f85760005b82518110156123e45782818151811061236e5761236e6138ba565b6020026020010151878381518110612388576123886138ba565b6020026020010151036123d25760405162461bcd60e51b815260206004820152601260248201527113185e595c88185b1c9958591e481d5cd95960721b6044820152606401610bf3565b806123dc816138d0565b915050612353565b508581815181106123f7576123f76138ba565b6020026020010151828281518110612411576124116138ba565b60200260200101818152505085818151811061242f5761242f6138ba565b6020026020010151600261244391906137ab565b61244e9060016136e3565b6124599060026138ae565b87166000036124aa5760405162461bcd60e51b815260206004820152601760248201527f4d697373696e6720737570706c6961626c65206974656d0000000000000000006044820152606401610bf3565b6124e68682815181106124bf576124bf6138ba565b60200260200101518683815181106124d9576124d96138ba565b6020026020010151612baa565b806124f0816138d0565b915050612347565b5060408051602081019091528681526125266125126110ce565b600090815260156020526040902082519055565b61253188600161210e565b6001600160a01b038816600090815260126020526040812080546001929061255a9084906136e3565b9091555050600160095550610d21915050565b600082815260136020526040902054156125bf5760405162461bcd60e51b815260206004820152601360248201527214995c5d595cdd08185b1c9958591e481cd95d606a1b6044820152606401610bf3565b60009182526013602052604090912055565b6000816001111580156125e5575060005482105b8015610cd6575050600090815260046020526040902054600160e01b161590565b600061261182611517565b9050336001600160a01b0382161461264a5761262d8133610b09565b61264a576040516367d9dca160e11b815260040160405180910390fd5b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60006126b1826128d1565b9050836001600160a01b0316816001600160a01b0316146126e45760405162a1148160e81b815260040160405180910390fd5b60008281526006602052604090208054338082146001600160a01b03881690911417612731576127148633610b09565b61273157604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03851661275857604051633a954ecd60e21b815260040160405180910390fd5b801561276357600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040812091909155600160e11b841690036127f5576001840160008181526004602052604081205490036127f35760005481146127f35760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b610ec283838360405180602001604052806000815250611c10565b604080516080810182526000808252602082018190529181018290526060810191909152610cd6612889836128d1565b604080516080810182526001600160a01b038316815260a083901c67ffffffffffffffff166020820152600160e01b831615159181019190915260e89190911c606082015290565b6000818060011161292e5760005481101561292e5760008181526004602052604081205490600160e01b8216900361292c575b80600003612925575060001901600081815260046020526040902054612904565b9392505050565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6002600954036129eb5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610bf3565b6002600955565b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b612a698484846110dc565b6001600160a01b0383163b156111af57612a8584848484612c7d565b6111af576040516368d2bf6b60e11b815260040160405180910390fd5b6060600c8054610d3790613754565b60606000612abe83612d69565b600101905060008167ffffffffffffffff811115612ade57612ade613078565b6040519080825280601f01601f191660200182016040528015612b08576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084612b1257509392505050565b612b4e8383612e41565b6001600160a01b0383163b15610ec2576000548281035b612b786000868380600101945086612c7d565b612b95576040516368d2bf6b60e11b815260040160405180910390fd5b818110612b65578160005414610d2157600080fd5b600060148381548110612bbf57612bbf6138ba565b90600052602060002090600402016003018281548110612be157612be16138ba565b906000526020600020015411612c295760405162461bcd60e51b815260206004820152600d60248201526c139bc81a5d195b5cc81b19599d609a1b6044820152606401610bf3565b60148281548110612c3c57612c3c6138ba565b90600052602060002090600402016003018181548110612c5e57612c5e6138ba565b60009182526020822001805491612c7483613a41565b91905055505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612cb2903390899088908890600401613a58565b6020604051808303816000875af1925050508015612ced575060408051601f3d908101601f19168201909252612cea91810190613a95565b60015b612d4b573d808015612d1b576040519150601f19603f3d011682016040523d82523d6000602084013e612d20565b606091505b508051600003612d43576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310612da85772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310612dd4576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310612df257662386f26fc10000830492506010015b6305f5e1008310612e0a576305f5e100830492506008015b6127108310612e1e57612710830492506004015b60648310612e30576064830492506002015b600a8310610cd65760010192915050565b6000805490829003612e665760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b818114612f1557808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101612edd565b5081600003612f3657604051622e076360e81b815260040160405180910390fd5b60005550505050565b5080546000825590600052602060002090810190612097919061301b565b828054612f6990613754565b90600052602060002090601f016020900481019282612f8b5760008555612fd1565b82601f10612fa457805160ff1916838001178555612fd1565b82800160010185558215612fd1579182015b82811115612fd1578251825591602001919060010190612fb6565b50612fdd92915061301b565b5090565b828054828255906000526020600020908101928215612fd15791602002820182811115612fd1578251825591602001919060010190612fb6565b5b80821115612fdd576000815560010161301c565b80356001600160a01b038116811461304757600080fd5b919050565b6000806040838503121561305f57600080fd5b8235915061306f60208401613030565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156130b7576130b7613078565b604052919050565b600067ffffffffffffffff8311156130d9576130d9613078565b6130ec601f8401601f191660200161308e565b905082815283838301111561310057600080fd5b828260208301376000602084830101529392505050565b60006020828403121561312957600080fd5b813567ffffffffffffffff81111561314057600080fd5b8201601f8101841361315157600080fd5b612d61848235602084016130bf565b6001600160e01b03198116811461209757600080fd5b60006020828403121561318857600080fd5b813561292581613160565b600082601f8301126131a457600080fd5b8135602067ffffffffffffffff8211156131c0576131c0613078565b8160051b6131cf82820161308e565b92835284810182019282810190878511156131e957600080fd5b83870192505b84831015613208578235825291830191908301906131ef565b979650505050505050565b600080600080600060a0868803121561322b57600080fd5b61323486613030565b94506020860135935060408601359250606086013567ffffffffffffffff8082111561325f57600080fd5b61326b89838a01613193565b9350608088013591508082111561328157600080fd5b5061328e88828901613193565b9150509295509295909350565b60005b838110156132b657818101518382015260200161329e565b838111156111af5750506000910152565b600081518084526132df81602086016020860161329b565b601f01601f19169290920160200192915050565b60208152600061292560208301846132c7565b60006020828403121561331857600080fd5b5035919050565b6000806040838503121561333257600080fd5b61333b83613030565b946020939093013593505050565b6000806040838503121561335c57600080fd5b50508035926020909101359150565b801515811461209757600080fd5b60006020828403121561338b57600080fd5b81356129258161336b565b6000806000606084860312156133ab57600080fd5b6133b484613030565b92506133c260208501613030565b9150604084013590509250925092565b6000602082840312156133e457600080fd5b61292582613030565b600081518084526020808501945080840160005b8381101561341d57815187529582019590820190600101613401565b509495945050505050565b60208152600061292560208301846133ed565b60008060006060848603121561345057600080fd5b505081359360208301359350604090920135919050565b60008060006060848603121561347c57600080fd5b833592506020840135915060408401356134958161336b565b809150509250925092565b600080604083850312156134b357600080fd5b6134bc83613030565b915060208301356134cc8161336b565b809150509250929050565b600080604083850312156134ea57600080fd5b6134f383613030565b915061306f60208401613030565b80518252602081015160208301526040810151151560408301526000606082015160806060850152612d6160808501826133ed565b6020815260006129256020830184613501565b6000806000806080858703121561355f57600080fd5b61356885613030565b935061357660208601613030565b925060408501359150606085013567ffffffffffffffff81111561359957600080fd5b8501601f810187136135aa57600080fd5b6135b9878235602084016130bf565b91505092959194509250565b600080600080608085870312156135db57600080fd5b8435935060208501359250604085013567ffffffffffffffff8082111561360157600080fd5b61360d88838901613193565b9350606087013591508082111561362357600080fd5b506135b987828801613193565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b8281101561368557603f19888603018452613673858351613501565b94509285019290850190600101613657565b5092979650505050505050565b600080604083850312156136a557600080fd5b8235915060208301356134cc8161336b565b634e487b7160e01b600052603160045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082198211156136f6576136f66136cd565b500190565b6020808252601290820152714d617820737570706c79206578636565642160701b604082015260600190565b60208082526013908201527221b7b73a3930b1ba1034b9903830bab9b2b21760691b604082015260600190565b600181811c9082168061376857607f821691505b60208210810361378857634e487b7160e01b600052602260045260246000fd5b50919050565b6000602082840312156137a057600080fd5b81516129258161336b565b60008160001904831182151516156137c5576137c56136cd565b500290565b600181815b808511156138055781600019048211156137eb576137eb6136cd565b808516156137f857918102915b93841c93908002906137cf565b509250929050565b60008261381c57506001610cd6565b8161382957506000610cd6565b816001811461383f576002811461384957613865565b6001915050610cd6565b60ff84111561385a5761385a6136cd565b50506001821b610cd6565b5060208310610133831016604e8410600b8410161715613888575081810a610cd6565b61389283836137ca565b80600019048211156138a6576138a66136cd565b029392505050565b6000612925838361380d565b634e487b7160e01b600052603260045260246000fd5b6000600182016138e2576138e26136cd565b5060010190565b60008261390657634e487b7160e01b600052601260045260246000fd5b500490565b6020808252600f908201526e125b9d985b1a59081b185e595c9259608a1b604082015260600190565b6020808252602a908201527f4578636565646564206d6178696d756d20746f74616c20616d6f756e742070656040820152697220616464726573732160b01b606082015260800190565b6000845160206139918285838a0161329b565b8551918401916139a48184848a0161329b565b8554920191600090600181811c90808316806139c157607f831692505b85831081036139de57634e487b7160e01b85526022600452602485fd5b8080156139f25760018114613a0357613a30565b60ff19851688528388019550613a30565b60008b81526020902060005b85811015613a285781548a820152908401908801613a0f565b505083880195505b50939b9a5050505050505050505050565b600081613a5057613a506136cd565b506000190190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613a8b908301846132c7565b9695505050505050565b600060208284031215613aa757600080fd5b81516129258161316056fea264697066735822122006d177216d6efb06009b8119ca12e8324031495b7df8c5605a817139968a8d4864736f6c634300080e0033

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.