ETH Price: $2,346.21 (-2.96%)

Contract

0x0370E60707df4b75aFc409cd4ee2537C8A7285Ba
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Set Base URI166836932023-02-22 11:29:35571 days ago1677065375IN
0x0370E607...C8A7285Ba
0 ETH0.0010187824.99101297
Set Revealed166827782023-02-22 8:22:47571 days ago1677054167IN
0x0370E607...C8A7285Ba
0 ETH0.0009365932.49585009
Set Base URI166827412023-02-22 8:15:23571 days ago1677053723IN
0x0370E607...C8A7285Ba
0 ETH0.0025443842.28593786
Set Base URI166788072023-02-21 18:58:59572 days ago1677005939IN
0x0370E607...C8A7285Ba
0 ETH0.0035054438.1727766
Set Approval For...166757772023-02-21 8:46:35572 days ago1676969195IN
0x0370E607...C8A7285Ba
0 ETH0.0020463944.3615087
Set Paused166755362023-02-21 7:58:23572 days ago1676966303IN
0x0370E607...C8A7285Ba
0 ETH0.0011957526.06274637
Withdraw166692762023-02-20 10:51:35573 days ago1676890295IN
0x0370E607...C8A7285Ba
0 ETH0.0014749621.951166
Public Mint166417102023-02-16 13:52:59577 days ago1676555579IN
0x0370E607...C8A7285Ba
0.09 ETH0.0041806241.59494142
Public Mint165194502023-01-30 11:49:59594 days ago1675079399IN
0x0370E607...C8A7285Ba
0.09 ETH0.0014566214.49260311
Public Mint164987012023-01-27 14:19:11597 days ago1674829151IN
0x0370E607...C8A7285Ba
0.09 ETH0.0020050819.94948232
Set Is White Lis...164966042023-01-27 7:16:35597 days ago1674803795IN
0x0370E607...C8A7285Ba
0 ETH0.0003983416.63014437
White List Mint164945682023-01-27 0:26:35597 days ago1674779195IN
0x0370E607...C8A7285Ba
0.21 ETH0.0020915618.13819613
White List Mint164934772023-01-26 20:47:59598 days ago1674766079IN
0x0370E607...C8A7285Ba
0.07 ETH0.0026341723.64033384
White List Mint164915612023-01-26 14:23:11598 days ago1674742991IN
0x0370E607...C8A7285Ba
0.07 ETH0.0021201119.02758372
Owner Mint164905342023-01-26 10:56:47598 days ago1674730607IN
0x0370E607...C8A7285Ba
0 ETH0.0014931115.44134705
White List Mint164894772023-01-26 7:24:35598 days ago1674717875IN
0x0370E607...C8A7285Ba
0.07 ETH0.0017408815.62522232
White List Mint164894082023-01-26 7:10:35598 days ago1674717035IN
0x0370E607...C8A7285Ba
0.07 ETH0.0018991814.77655981
Set Whitelist Si...164893912023-01-26 7:07:11598 days ago1674716831IN
0x0370E607...C8A7285Ba
0 ETH0.0006771514.67678476
Set Paused164893872023-01-26 7:06:23598 days ago1674716783IN
0x0370E607...C8A7285Ba
0 ETH0.0004217314.65994283
Transfer Ownersh...164824122023-01-25 7:41:59599 days ago1674632519IN
0x0370E607...C8A7285Ba
0 ETH0.0004243814.81901121
0x60a06040164815602023-01-25 4:50:23599 days ago1674622223IN
 Create: NFT_Garage_Minter
0 ETH0.0394307913.97710588

Latest 2 internal transactions

Advanced mode:
Parent Transaction Hash Block From To
166692762023-02-20 10:51:35573 days ago1676890295
0x0370E607...C8A7285Ba
0.7296 ETH
166692762023-02-20 10:51:35573 days ago1676890295
0x0370E607...C8A7285Ba
0.0304 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
NFT_Garage_Minter

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 19 : NFT_Garage_Minter.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

///   ___    __  _______  __________    _____
///  |   \  |  ||   ____||___    ___| /  _____\  
///  |    \ |  ||  |___      |  |    |  /  ____  __ _ _ __  __ _  __ _  ___ 
///  |  |\ \|  ||   ___|     |  |    | |  |__  |/ _` |  ,_|/ _` |/  ` \/ _ \
///  |  | \    ||  |         |  |    |  \___/  | (_| | |  | (_| | (_| |  __/ 
///  |__|  \___||__|         |__|     \ _____ / \__,_|_|   \__,_|\__, |\___|
///                                                              _  | |  
///                                                              \\_/ |
/// Visit http://nftgarage.wtf                                    \__/
/// Minting Contract
/// Developed by https://mayhemlabs.io 

import "erc721a/contracts/extensions/ERC721ABurnable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/interfaces/IERC2981.sol";

import "./common/EIP712Whitelisting.sol";
import "./common/OwnableDelegateProxy.sol";

//-----------------------------------------------------------------------------------------------------------------------
// Minting Contract
//-----------------------------------------------------------------------------------------------------------------------

contract NFT_Garage_Minter is ERC721ABurnable, IERC2981, ReentrancyGuard, EIP712Whitelisting, OwnableDelegateProxy {
    using Strings for uint256; 

    // Constants.
    uint256 public constant WHITELIST_COST = 0.05 ether;            // Whitelist cost. 
    uint16 public constant MAX_SUPPLY = 7500;                       // Total number of NFTs that can be minted ever. 
    uint16 public constant ROYALTY = 500;                           // 500 is divided by 10000 in the royalty info function to make 5%
    uint8 public constant MAX_PER_PUBLIC_TRANSACTION = 12;          // The total allow to be minted per transaction.

    // Configuration.
    mapping(address => uint16) private mintBalances;                // Store lifetime mints for an public address.
    address private immutable proxyRegistryAddress;                 // Opensea proxy to preapprove.
    address private devWallet;                                      // The address the developer portion is paid to.
    uint256 public publicCost = 0.07 ether;                         // Public cost.
    uint16 public maxMintPerAddress = 10;                           // The max amount to mint per address.
    string private baseURI;                                         // Stores the baseURI for location of NFT Metadata 
    string private notRevealedUri;                                  // The URL to the placeholder art before reveal.
    bool public isWhitelist = true;                                 // Is the whitelisting active?
    bool public isPaused = true;                                    // Is the contract paused?
    bool public revealed = false;                                   // Is the artowrk revealed?


    // --------------------------
    //  Constructor
    // -------------------------- 

    /// @notice Contract constructor.
    /// @param _name The token name.
    /// @param _symbol The symbol the token will be known by.
    /// @param _initNotRevealedUri The URI of the not revealed version of the NFT metadata.
    /// @param _devWallet the contract developers.
    constructor(string memory _name, string memory _symbol, string memory _initNotRevealedUri, address _proxyRegistryAddress, address _devWallet) 
        ERC721A(_name, _symbol) 
        EIP712Whitelisting(_name)
    {
        notRevealedUri = _initNotRevealedUri;                   // Set the not revealed URI for the placeholder metadata. 
        proxyRegistryAddress = _proxyRegistryAddress;           // Set the opensea proxy address.
        devWallet = _devWallet;                                 // The wallet funds go to for the devs from the mint.
    }



    // --------------------------
    // Purchase and Minting
    // --------------------------

    /// @notice Returns the token url a token id.
    /// @param _mintAmount The amount the person minting has requested to mint.
    function ownerMint(uint16 _mintAmount) 
        external 
        onlyOwner 
        mintAmountGreaterThanZero(_mintAmount)
        doesntExceedMaxSupply(_mintAmount)
    {
        _mint(msg.sender, _mintAmount);
    }
    
    /// @notice Allows the owner to airdrop tokens to a specific address.
    /// @param _to The address of the person receiving the token/s.
    /// @param _mintAmount The number of tokens being minted and sent.
    function ownerAirdrop(address _to, uint16 _mintAmount) 
        external 
        onlyOwner 
        mintAmountGreaterThanZero(_mintAmount)
        doesntExceedMaxSupply(_mintAmount)
    {
        _mint(_to, _mintAmount);
    }

    /// @notice Purchase a token as whitelister.
    /// @param _max The max amount the person minting is allow to mint.
    /// @param _signature The signature proving that the user is on the whitelist and the values haven't been altered.
    /// @param _mintAmount The amount the person minting has requested to mint.
    function whiteListMint(uint256 _max, bytes calldata _signature, uint16 _mintAmount) 
        external 
        payable 
        nonReentrant
        isNotPaused
    {
        require(isWhitelist, "Is in public mode");
        require(!(_mintAmount + mintBalances[msg.sender] > _max), "You have exceeded your mint whitelist allocation");
        require(checkWhitelist(_max, _signature),  "Invalid whitelist signature");

        _doMint(_mintAmount, WHITELIST_COST);
    }

    /// @notice Purchase a token as the public.
    /// @param _mintAmount The amount the person minting has requested to mint.
    function publicMint(uint16 _mintAmount) 
        external 
        payable 
        nonReentrant
        isNotPaused
    {
        require(!isWhitelist, "Not in public mode");
        require(!(_mintAmount > MAX_PER_PUBLIC_TRANSACTION), "You can only mint 12 per transaction");

        _doMint(_mintAmount, WHITELIST_COST);
    }

    /// @notice Calls the underlying mint function of the ERC721Enumerable class.
    /// @param _mintAmount The quantity to mint for the given user.
    function _doMint(uint16 _mintAmount, uint256 _price) 
        internal
        doesntExceedMaxSupply(_mintAmount)
        insuffcientEth(_mintAmount, _price)
     {
        _mint(msg.sender, _mintAmount);

        mintBalances[msg.sender] += _mintAmount; // Update the count of how many items a given address has minted over the lifetime of the contract.
    }



    // --------------------------
    // Metadata Url
    // --------------------------

    /// @notice generates the return URL from the base URL.
    function _baseURI()
        internal 
        view 
        virtual 
        override 
        returns (string memory) {

        return baseURI;
    }

    /// @notice Returns the token url a token id.
    /// @param _tokenId The id of the token to return the url for.
    /// @return the compiled Uri string to the nft metadata.
    function tokenURI(uint256 _tokenId)
        public
        view
        virtual
        override(ERC721A)
        returns (string memory)
    {
        // Check for the existence of the token.
        require(_exists(_tokenId), "ERC721AMetadata: URI query for nonexistent token");

        // Check if the token have been revealed. If not return url to a common image.
        if (revealed == false) { return notRevealedUri; }

        // Get the base url.
        string memory currentBaseURI = _baseURI();

        // Compile a url using the token details.
        return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, _tokenId.toString(), ".json")) : "";
    }



    // --------------------------
    // Royalties
    // --------------------------


    /// @notice EIP2981 calculate how much royalties paid to the contract owner.
    /// @param _salePrice The sale price.
    /// @return receiver and a royaltyAmount.
    function royaltyInfo(uint256, uint256 _salePrice) 
        external 
        view 
        override(IERC2981) 
        returns (address receiver, uint256 royaltyAmount)
    {
        return (owner(), (_salePrice * 500) / 10000); // eg. (100*500) / 10000 = 5
    }



    // --------------------------
    // Modifiers
    // --------------------------

    /// @notice Check they are minting at least one.
    /// @param mintAmount the amount they are trying to mint.
    modifier mintAmountGreaterThanZero(uint256 mintAmount) {
        require(mintAmount > 0,  "Must mint at least one");
        _;
    }

    /// @notice Make sure the contract isn't paused.
    modifier isNotPaused() {
        require(!isPaused,  "Minting is paused");
        _;
    }

    /// @notice Make sure the amount being minted doesn't exceed total supply.
    /// @param mintAmount the amount they are trying to mint.
    modifier doesntExceedMaxSupply(uint256 mintAmount) {
        require(totalMinted() + mintAmount <= MAX_SUPPLY, "Max NFT limit exceeded");
         _;
    }

    /// @notice Check they provided enough eth to mint.
    /// @param mintAmount the amount they are trying to mint.
    /// @param price price per token.
    modifier insuffcientEth(uint256 mintAmount, uint256 price) {
        require(msg.value >= price * mintAmount, "Insuffcient Eth in transaction, check price");
         _;
    }



    // --------------------------
    // Misc
    // --------------------------

    /// @notice Indicates if we support the IERC2981 interface (https://eips.ethereum.org/EIPS/eip-2981).
    /// @param _interfaceId the interface to check the contract supports.
    /// @return true or fales if the requested interface is supported.
    function supportsInterface(bytes4 _interfaceId)
        public
        view
        virtual
        override(ERC721A, IERC165)
        returns (bool)
    {
        return (_interfaceId == type(IERC2981).interfaceId || super.supportsInterface(_interfaceId));
    }

    /// @notice Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-less listings.
    /// @param _owner the token owner.
    /// @param _operator the operator to check approval for.
    /// @return true if approved false otherwise.
    function isApprovedForAll(address _owner, address _operator) 
        public 
        view 
        override(ERC721A) 
        returns (bool)
    {
        // Whitelist OpenSea proxy contract to save gas by not needing approval when trading.
        ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress);
        if (address(proxyRegistry.proxies(_owner)) == _operator) { return true; }

        // Otherwise default to base implmentation.
        return super.isApprovedForAll(_owner, _operator);
    }

    function totalMinted() public view virtual returns (uint256) {
        return _totalMinted();
    }
    

    // --------------------------
    // Controls
    // --------------------------

    /// @notice Set the base URI for the NFT Metadata
    /// @param _newBaseURI The new base URI for the Metadata
    function setBaseURI(string calldata _newBaseURI) external onlyOwner {
        baseURI = _newBaseURI;
    }

    /// @notice Set the amount of NFTs allowed per address.
    /// @param _newMax The new maximum per address.
    function setMaxPerAddress(uint8 _newMax) external onlyOwner {
        maxMintPerAddress = _newMax;
    }

    /// @notice Set public mint price.
    /// @param _newMintPrice The new maximum per address.
    function setMintPrice(uint8 _newMintPrice) external onlyOwner {
        publicCost = _newMintPrice;
    }

    /// @notice Determines if the tokens should return proper images or place holders before reveal.
    /// @param _state The state to set: true is revealed, false is hidden.
    function setRevealed(bool _state) external onlyOwner {
        revealed = _state;
    }

    /// @notice Set if the mint is paused or not.
    /// @param _state The state to set, true is paused false is unpaused.
    function setPaused(bool _state) external onlyOwner {
        isPaused = _state;
    }

    /// @notice Set the whitelist mode.
    /// @param _state The state to set, true is in whitelist mode false is in public mode.
    function setIsWhiteList(bool _state) external onlyOwner {
        isWhitelist = _state;
    }

    /// @notice Allow withdrawals from the contract by the owner.
    function withdraw() public payable onlyOwner {
        // This will payout the devs 4% of the contract balance and the owner 96%.
        // Do not remove this otherwise you will not be able to withdraw the funds.
        // =============================================================================
        (bool devs, ) = payable(address(devWallet)).call{value: (address(this).balance * 4) / 100}("");
        require(devs, "Error withdrawing to devWallet");

        (bool owner, ) = payable(address(owner())).call{value: address(this).balance}("");
        require(owner, "Error withdrawing to ownerWallet");
        // =============================================================================
    }
}

File 2 of 19 : ERC721ABurnable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.2
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721ABurnable.sol';
import '../ERC721A.sol';

/**
 * @title ERC721ABurnable.
 *
 * @dev ERC721A token that can be irreversibly burned (destroyed).
 */
abstract contract ERC721ABurnable is ERC721A, IERC721ABurnable {
    /**
     * @dev Burns `tokenId`. See {ERC721A-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual override {
        _burn(tokenId, true);
    }
}

File 3 of 19 : Ownable.sol
// 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);
    }
}

File 4 of 19 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

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

        _;

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

File 5 of 19 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

File 6 of 19 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

import "../utils/introspection/IERC165.sol";

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

File 7 of 19 : EIP712Whitelisting.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.9;

import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract EIP712Whitelisting is Ownable {
    using ECDSA for bytes32;

    // The key used to sign whitelist signatures.
    // We will check to ensure that the key that signed the signature
    // is this one that we expect.
    address private whitelistSigningKey = address(0);

    // Domain Separator is the EIP-712 defined structure that defines what contract
    // and chain these signatures can be used for.  This ensures people can't take
    // a signature used to mint on one contract and use it for another, or a signature
    // from testnet to replay on mainnet.
    // It has to be created in the constructor so we can dynamically grab the chainId.
    // https://github.com/ethereum/EIPs/blob/master/EIPS/eip-712.md#definition-of-domainseparator
    bytes32 internal DOMAIN_SEPARATOR;

    // The typehash for the data type specified in the structured data
    // https://github.com/ethereum/EIPs/blob/master/EIPS/eip-712.md#rationale-for-typehash
    bytes32 internal constant MINTER_TYPEHASH = keccak256("Minter(address wallet,int max)");

    constructor(string memory _name) {
        // This should match whats in the client side whitelist signing code
        DOMAIN_SEPARATOR = keccak256(
            abi.encode(
                keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"),
                keccak256(bytes(_name)),
                keccak256(bytes("1")),
                block.chainid,
                address(this)
            )
        );
    }

    function setWhitelistSigningAddress(address newSigningKey) external onlyOwner {
        whitelistSigningKey = newSigningKey;
    }

    function checkWhitelist(uint256 max, bytes calldata signature) internal view returns (bool) {
        require(whitelistSigningKey != address(0), "Whitelist account not configured");

        // Verify EIP-712 signature by recreating the data structure
        // that we signed on the client side, and then using that to recover
        // the address that signed the signature for this data.
        bytes32 digest = keccak256(abi.encodePacked("\x19\x01", DOMAIN_SEPARATOR, keccak256(abi.encode(MINTER_TYPEHASH, msg.sender, max))));

        // Use the recover method to see what address was used to create
        // the signature on this data.
        // Note: that if the digest doesn't exactly match what was signed we'll
        // get a random recovered address.
        return digest.recover(signature) == whitelistSigningKey;
    }
}

File 8 of 19 : OwnableDelegateProxy.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

// Opensea Proxy
import "./ContextMixin.sol";
import "./NativeMetaTransaction.sol";

contract OwnableDelegateProxy {}

contract ProxyRegistry {
    mapping(address => OwnableDelegateProxy) public proxies;
}

File 9 of 19 : IERC721ABurnable.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.2
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '../IERC721A.sol';

/**
 * @dev Interface of ERC721ABurnable.
 */
interface IERC721ABurnable is IERC721A {
    /**
     * @dev Burns `tokenId`. See {ERC721A-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) external;
}

File 10 of 19 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.2
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        string memory baseURI = _baseURI();
        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 virtual override {
        address owner = ownerOf(tokenId);

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

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

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

        return _tokenApprovals[tokenId].value;
    }

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            uint256 toMasked;
            uint256 end = startTokenId + quantity;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        address from = address(uint160(prevOwnershipPacked));

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 11 of 19 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v4.2.2
// Creator: Chiru Labs

pragma solidity ^0.8.4;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

File 13 of 19 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 14 of 19 : ECDSA.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            /// @solidity memory-safe-assembly
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            /// @solidity memory-safe-assembly
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

File 15 of 19 : ContextMixin.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

abstract contract ContextMixin {
    function msgSender()
        internal
        view
        returns (address payable sender)
    {
        if (msg.sender == address(this)) {
            bytes memory array = msg.data;
            uint256 index = msg.data.length;
            assembly {
                // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those.
                sender := and(
                    mload(add(array, index)),
                    0xffffffffffffffffffffffffffffffffffffffff
                )
            }
        } else {
            sender = payable(msg.sender);
        }
        return sender;
    }
}

File 16 of 19 : NativeMetaTransaction.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import {SafeMath} from "@openzeppelin/contracts/utils/math/SafeMath.sol";
import {EIP712Base} from "./EIP712Base.sol";

contract NativeMetaTransaction is EIP712Base {
    using SafeMath for uint256;

    bytes32 private constant META_TRANSACTION_TYPEHASH = keccak256(bytes("MetaTransaction(uint256 nonce,address from,bytes functionSignature)"));

    event MetaTransactionExecuted(
        address userAddress,
        address payable relayerAddress,
        bytes functionSignature
    );
    mapping(address => uint256) nonces;

    /*
     * Meta transaction structure.
     * No point of including value field here as if user is doing value transfer then he has the funds to pay for gas
     * He should call the desired function directly in that case.
     */
    struct MetaTransaction {
        uint256 nonce;
        address from;
        bytes functionSignature;
    }

    function executeMetaTransaction(
        address userAddress,
        bytes memory functionSignature,
        bytes32 sigR,
        bytes32 sigS,
        uint8 sigV
    ) public payable returns (bytes memory) {
        MetaTransaction memory metaTx = MetaTransaction({
            nonce: nonces[userAddress],
            from: userAddress,
            functionSignature: functionSignature
        });

        require(
            verify(userAddress, metaTx, sigR, sigS, sigV),
            "Signer and signature do not match"
        );

        // increase nonce for user (to avoid re-use)
        nonces[userAddress] = nonces[userAddress].add(1);

        emit MetaTransactionExecuted(
            userAddress,
            payable(msg.sender),
            functionSignature
        );

        // Append userAddress and relayer address at the end to extract it from calling context
        (bool success, bytes memory returnData) = address(this).call(
            abi.encodePacked(functionSignature, userAddress)
        );
        require(success, "Function call not successful");

        return returnData;
    }

    function hashMetaTransaction(MetaTransaction memory metaTx)
        internal
        pure
        returns (bytes32)
    {
        return
            keccak256(
                abi.encode(
                    META_TRANSACTION_TYPEHASH,
                    metaTx.nonce,
                    metaTx.from,
                    keccak256(metaTx.functionSignature)
                )
            );
    }

    function getNonce(address user) public view returns (uint256 nonce) {
        nonce = nonces[user];
    }

    function verify(
        address signer,
        MetaTransaction memory metaTx,
        bytes32 sigR,
        bytes32 sigS,
        uint8 sigV
    ) internal view returns (bool) {
        require(signer != address(0), "NativeMetaTransaction: INVALID_SIGNER");
        return
            signer ==
            ecrecover(
                toTypedMessageHash(hashMetaTransaction(metaTx)),
                sigV,
                sigR,
                sigS
            );
    }
}

File 17 of 19 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

File 18 of 19 : EIP712Base.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "./Initializable.sol";

contract EIP712Base is Initializable {
    struct EIP712Domain {
        string name;
        string version;
        address verifyingContract;
        bytes32 salt;
    }

    string constant public ERC712_VERSION = "1";

    bytes32 internal constant EIP712_DOMAIN_TYPEHASH = keccak256(
        bytes(
            "EIP712Domain(string name,string version,address verifyingContract,bytes32 salt)"
        )
    );
    
    bytes32 internal domainSeperator;

    // supposed to be called once while initializing.
    // one of the contracts that inherits this contract follows proxy pattern
    // so it is not possible to do this in a constructor
    function _initializeEIP712(
        string memory name
    )
        internal
        initializer
    {
        _setDomainSeperator(name);
    }

    function _setDomainSeperator(string memory name) internal {
        domainSeperator = keccak256(
            abi.encode(
                EIP712_DOMAIN_TYPEHASH,
                keccak256(bytes(name)),
                keccak256(bytes(ERC712_VERSION)),
                address(this),
                bytes32(getChainId())
            )
        );
    }

    function getDomainSeperator() public view returns (bytes32) {
        return domainSeperator;
    }

    function getChainId() public view returns (uint256) {
        uint256 id;
        assembly {
            id := chainid()
        }
        return id;
    }

    /**
     * Accept message hash and returns hash message in EIP712 compatible form
     * So that it can be used to recover signer from signature signed using EIP712 formatted data
     * https://eips.ethereum.org/EIPS/eip-712
     * "\\x19" makes the encoding deterministic
     * "\\x01" is the version byte to make it compatible to EIP-191
     */
    function toTypedMessageHash(bytes32 messageHash)
        internal
        view
        returns (bytes32)
    {
        return
            keccak256(
                abi.encodePacked("\x19\x01", getDomainSeperator(), messageHash)
            );
    }
}

File 19 of 19 : Initializable.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

contract Initializable {
    bool inited = false;

    modifier initializer() {
        require(!inited, "already inited");
        _;
        inited = true;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"string","name":"_initNotRevealedUri","type":"string"},{"internalType":"address","name":"_proxyRegistryAddress","type":"address"},{"internalType":"address","name":"_devWallet","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintERC2309QuantityExceedsLimit","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"OwnershipNotInitializedForExtraData","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"fromTokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"toTokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"}],"name":"ConsecutiveTransfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_PER_PUBLIC_TRANSACTION","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROYALTY","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WHITELIST_COST","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"},{"internalType":"address","name":"_operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isPaused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isWhitelist","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxMintPerAddress","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint16","name":"_mintAmount","type":"uint16"}],"name":"ownerAirdrop","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_mintAmount","type":"uint16"}],"name":"ownerMint","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":"publicCost","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_mintAmount","type":"uint16"}],"name":"publicMint","outputs":[],"stateMutability":"payable","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":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setIsWhiteList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_newMax","type":"uint8"}],"name":"setMaxPerAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_newMintPrice","type":"uint8"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setRevealed","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newSigningKey","type":"address"}],"name":"setWhitelistSigningAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"_interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_max","type":"uint256"},{"internalType":"bytes","name":"_signature","type":"bytes"},{"internalType":"uint16","name":"_mintAmount","type":"uint16"}],"name":"whiteListMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]

60a0604052600a80546001600160a01b031916815566f8b0a10e470000600e55600f805461ffff191690911790556012805462ffffff19166101011790553480156200004a57600080fd5b5060405162003105380380620031058339810160408190526200006d9162000377565b848585816002908051906020019062000088929190620001e7565b5080516200009e906003906020840190620001e7565b506000805550506001600855620000b53362000195565b805160208083019190912060408051808201825260018152603160f81b9084015280517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f938101939093528201527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608201524660808201523060a082015260c00160408051601f198184030181529190528051602091820120600b558451620001679250601191860190620001e7565b506001600160a01b03918216608052600d80546001600160a01b03191691909216179055506200046b915050565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620001f5906200042e565b90600052602060002090601f01602090048101928262000219576000855562000264565b82601f106200023457805160ff191683800117855562000264565b8280016001018555821562000264579182015b828111156200026457825182559160200191906001019062000247565b506200027292915062000276565b5090565b5b8082111562000272576000815560010162000277565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620002b557600080fd5b81516001600160401b0380821115620002d257620002d26200028d565b604051601f8301601f19908116603f01168101908282118183101715620002fd57620002fd6200028d565b816040528381526020925086838588010111156200031a57600080fd5b600091505b838210156200033e57858201830151818301840152908201906200031f565b83821115620003505760008385830101525b9695505050505050565b80516001600160a01b03811681146200037257600080fd5b919050565b600080600080600060a086880312156200039057600080fd5b85516001600160401b0380821115620003a857600080fd5b620003b689838a01620002a3565b96506020880151915080821115620003cd57600080fd5b620003db89838a01620002a3565b95506040880151915080821115620003f257600080fd5b506200040188828901620002a3565b93505062000412606087016200035a565b915062000422608087016200035a565b90509295509295909350565b600181811c908216806200044357607f821691505b602082108114156200046557634e487b7160e01b600052602260045260246000fd5b50919050565b608051612c7e6200048760003960006115560152612c7e6000f3fe6080604052600436106102c65760003560e01c8063572849c41161017957806399efb72f116100d6578063c87b56dd1161008a578063e985e9c511610064578063e985e9c514610781578063f2fde38b146107a1578063f607cc4c146107c157600080fd5b8063c87b56dd14610721578063cd77083314610741578063e0a808531461076157600080fd5b8063a2309ff8116100bb578063a2309ff8146106cd578063b187bd26146106e2578063b88d4fde1461070157600080fd5b806399efb72f1461069a578063a22cb465146106ad57600080fd5b8063846342ee1161012d5780638704a208116101125780638704a208146106515780638da5cb5b1461066757806395d89b411461068557600080fd5b8063846342ee146106205780638693da201461063b57600080fd5b806370a082311161015e57806370a08231146105cb578063715018a6146105eb57806379ef04b11461060057600080fd5b8063572849c4146105905780636352211e146105ab57600080fd5b80632a55205a1161022757806342842e0e116101db5780635168e54f116101c05780635168e54f14610530578063518302271461055057806355f804b31461057057600080fd5b806342842e0e146104f057806342966c681461051057600080fd5b806336e8942f1161020c57806336e8942f146104ae5780633ccfd60b146104ce5780634146ed0a146104d657600080fd5b80632a55205a1461044657806332cb6b0c1461048557600080fd5b806316c38b3c1161027e578063199eab6b11610263578063199eab6b146103df57806323b872dd146103ff578063275afeb91461041f57600080fd5b806316c38b3c1461039c57806318160ddd146103bc57600080fd5b8063081812fc116102af578063081812fc14610322578063095ea7b31461035a57806314f6061a1461037c57600080fd5b806301ffc9a7146102cb57806306fdde0314610300575b600080fd5b3480156102d757600080fd5b506102eb6102e63660046125dd565b6107d4565b60405190151581526020015b60405180910390f35b34801561030c57600080fd5b50610315610818565b6040516102f79190612652565b34801561032e57600080fd5b5061034261033d366004612665565b6108aa565b6040516001600160a01b0390911681526020016102f7565b34801561036657600080fd5b5061037a610375366004612693565b610907565b005b34801561038857600080fd5b5061037a6103973660046126d6565b6109cd565b3480156103a857600080fd5b5061037a6103b736600461271b565b610aad565b3480156103c857600080fd5b50600154600054035b6040519081526020016102f7565b3480156103eb57600080fd5b5061037a6103fa36600461271b565b610acf565b34801561040b57600080fd5b5061037a61041a366004612736565b610aea565b34801561042b57600080fd5b50610434600c81565b60405160ff90911681526020016102f7565b34801561045257600080fd5b50610466610461366004612777565b610cb8565b604080516001600160a01b0390931683526020830191909152016102f7565b34801561049157600080fd5b5061049b611d4c81565b60405161ffff90911681526020016102f7565b3480156104ba57600080fd5b5061037a6104c9366004612799565b610cf2565b61037a610dcc565b3480156104e257600080fd5b506012546102eb9060ff1681565b3480156104fc57600080fd5b5061037a61050b366004612736565b610f44565b34801561051c57600080fd5b5061037a61052b366004612665565b610f5f565b34801561053c57600080fd5b5061037a61054b3660046127b4565b610f6d565b34801561055c57600080fd5b506012546102eb9062010000900460ff1681565b34801561057c57600080fd5b5061037a61058b366004612819565b610f8b565b34801561059c57600080fd5b50600f5461049b9061ffff1681565b3480156105b757600080fd5b506103426105c6366004612665565b610f9f565b3480156105d757600080fd5b506103d16105e636600461285b565b610faa565b3480156105f757600080fd5b5061037a611012565b34801561060c57600080fd5b5061037a61061b3660046127b4565b611026565b34801561062c57600080fd5b506103d166b1a2bc2ec5000081565b34801561064757600080fd5b506103d1600e5481565b34801561065d57600080fd5b5061049b6101f481565b34801561067357600080fd5b506009546001600160a01b0316610342565b34801561069157600080fd5b50610315611036565b61037a6106a8366004612878565b611045565b3480156106b957600080fd5b5061037a6106c83660046128d6565b611252565b3480156106d957600080fd5b506000546103d1565b3480156106ee57600080fd5b506012546102eb90610100900460ff1681565b34801561070d57600080fd5b5061037a61071c366004612918565b611301565b34801561072d57600080fd5b5061031561073c366004612665565b611345565b34801561074d57600080fd5b5061037a61075c36600461285b565b6114c0565b34801561076d57600080fd5b5061037a61077c36600461271b565b6114f7565b34801561078d57600080fd5b506102eb61079c3660046129f8565b61151b565b3480156107ad57600080fd5b5061037a6107bc36600461285b565b611622565b61037a6107cf366004612799565b6116af565b60006001600160e01b031982167f2a55205a000000000000000000000000000000000000000000000000000000001480610812575061081282611845565b92915050565b60606002805461082790612a31565b80601f016020809104026020016040519081016040528092919081815260200182805461085390612a31565b80156108a05780601f10610875576101008083540402835291602001916108a0565b820191906000526020600020905b81548152906001019060200180831161088357829003601f168201915b5050505050905090565b60006108b5826118de565b6108eb576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061091282610f9f565b9050336001600160a01b038216146109645761092e813361151b565b610964576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082815260066020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6109d5611905565b8061ffff1660008111610a2f5760405162461bcd60e51b815260206004820152601660248201527f4d757374206d696e74206174206c65617374206f6e650000000000000000000060448201526064015b60405180910390fd5b61ffff8216611d4c81610a4160005490565b610a4b9190612a82565b1115610a995760405162461bcd60e51b815260206004820152601660248201527f4d6178204e4654206c696d6974206578636565646564000000000000000000006044820152606401610a26565b610aa7848461ffff1661195f565b50505050565b610ab5611905565b601280549115156101000261ff0019909216919091179055565b610ad7611905565b6012805460ff1916911515919091179055565b6000610af582611a89565b9050836001600160a01b0316816001600160a01b031614610b42576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526006602052604090208054610b6e8187335b6001600160a01b039081169116811491141790565b610b9957610b7c863361151b565b610b9957604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610bd9576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8015610be457600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040902055600160e11b8316610c6f5760018401600081815260046020526040902054610c6d576000548114610c6d5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b600080610ccd6009546001600160a01b031690565b612710610cdc856101f4612a9a565b610ce69190612acf565b915091505b9250929050565b610cfa611905565b8061ffff1660008111610d4f5760405162461bcd60e51b815260206004820152601660248201527f4d757374206d696e74206174206c65617374206f6e65000000000000000000006044820152606401610a26565b61ffff8216611d4c81610d6160005490565b610d6b9190612a82565b1115610db95760405162461bcd60e51b815260206004820152601660248201527f4d6178204e4654206c696d6974206578636565646564000000000000000000006044820152606401610a26565b610dc7338461ffff1661195f565b505050565b610dd4611905565b600d546000906001600160a01b03166064610df0476004612a9a565b610dfa9190612acf565b604051600081818185875af1925050503d8060008114610e36576040519150601f19603f3d011682016040523d82523d6000602084013e610e3b565b606091505b5050905080610e8c5760405162461bcd60e51b815260206004820152601e60248201527f4572726f72207769746864726177696e6720746f2064657657616c6c657400006044820152606401610a26565b6000610ea06009546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114610eea576040519150601f19603f3d011682016040523d82523d6000602084013e610eef565b606091505b5050905080610f405760405162461bcd60e51b815260206004820181905260248201527f4572726f72207769746864726177696e6720746f206f776e657257616c6c65746044820152606401610a26565b5050565b610dc783838360405180602001604052806000815250611301565b610f6a816001611b03565b50565b610f75611905565b600f805461ffff191660ff909216919091179055565b610f93611905565b610dc76010838361252e565b600061081282611a89565b60006001600160a01b038216610fec576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b61101a611905565b6110246000611c5f565b565b61102e611905565b60ff16600e55565b60606003805461082790612a31565b600260085414156110985760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a26565b6002600855601254610100900460ff16156110f55760405162461bcd60e51b815260206004820152601160248201527f4d696e74696e67206973207061757365640000000000000000000000000000006044820152606401610a26565b60125460ff166111475760405162461bcd60e51b815260206004820152601160248201527f497320696e207075626c6963206d6f64650000000000000000000000000000006044820152606401610a26565b336000908152600c602052604090205484906111679061ffff1683612ae3565b61ffff1611156111df5760405162461bcd60e51b815260206004820152603060248201527f596f75206861766520657863656564656420796f7572206d696e74207768697460448201527f656c69737420616c6c6f636174696f6e000000000000000000000000000000006064820152608401610a26565b6111ea848484611cbe565b6112365760405162461bcd60e51b815260206004820152601b60248201527f496e76616c69642077686974656c697374207369676e617475726500000000006044820152606401610a26565b6112478166b1a2bc2ec50000611e2a565b505060016008555050565b6001600160a01b038216331415611295576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61130c848484610aea565b6001600160a01b0383163b15610aa75761132884848484611f6b565b610aa7576040516368d2bf6b60e11b815260040160405180910390fd5b6060611350826118de565b6113c25760405162461bcd60e51b815260206004820152603060248201527f455243373231414d657461646174613a2055524920717565727920666f72206e60448201527f6f6e6578697374656e7420746f6b656e000000000000000000000000000000006064820152608401610a26565b60125462010000900460ff1661146457601180546113df90612a31565b80601f016020809104026020016040519081016040528092919081815260200182805461140b90612a31565b80156114585780601f1061142d57610100808354040283529160200191611458565b820191906000526020600020905b81548152906001019060200180831161143b57829003601f168201915b50505050509050919050565b600061146e612062565b9050600081511161148e57604051806020016040528060008152506114b9565b8061149884612071565b6040516020016114a9929190612b09565b6040516020818303038152906040525b9392505050565b6114c8611905565b600a805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6114ff611905565b60128054911515620100000262ff000019909216919091179055565b6040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b0383811660048301526000917f000000000000000000000000000000000000000000000000000000000000000091848116919083169063c45527919060240160206040518083038186803b15801561159f57600080fd5b505afa1580156115b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115d79190612b60565b6001600160a01b031614156115f0576001915050610812565b6001600160a01b0380851660009081526007602090815260408083209387168352929052205460ff165b949350505050565b61162a611905565b6001600160a01b0381166116a65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610a26565b610f6a81611c5f565b600260085414156117025760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a26565b6002600855601254610100900460ff161561175f5760405162461bcd60e51b815260206004820152601160248201527f4d696e74696e67206973207061757365640000000000000000000000000000006044820152606401610a26565b60125460ff16156117b25760405162461bcd60e51b815260206004820152601260248201527f4e6f7420696e207075626c6963206d6f646500000000000000000000000000006044820152606401610a26565b600c61ffff8216111561182c5760405162461bcd60e51b8152602060048201526024808201527f596f752063616e206f6e6c79206d696e7420313220706572207472616e73616360448201527f74696f6e000000000000000000000000000000000000000000000000000000006064820152608401610a26565b61183d8166b1a2bc2ec50000611e2a565b506001600855565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614806118a857507f80ac58cd000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b806108125750506001600160e01b0319167f5b5e139f000000000000000000000000000000000000000000000000000000001490565b6000805482108015610812575050600090815260046020526040902054600160e01b161590565b6009546001600160a01b031633146110245760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a26565b60005481611999576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b818114611a4857808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101611a10565b5081611a80576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005550505050565b600081600054811015611ad157600081815260046020526040902054600160e01b8116611acf575b806114b9575060001901600081815260046020526040902054611ab1565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611b0e83611a89565b905080600080611b2c86600090815260066020526040902080549091565b915091508415611b6c57611b41818433610b59565b611b6c57611b4f833361151b565b611b6c57604051632ce44b5f60e11b815260040160405180910390fd5b8015611b7757600082555b6001600160a01b038316600081815260056020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b177c030000000000000000000000000000000000000000000000000000000017600087815260046020526040902055600160e11b8416611c175760018601600081815260046020526040902054611c15576000548114611c155760008181526004602052604090208590555b505b60405186906000906001600160a01b038616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050600180548101905550505050565b600980546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600a546000906001600160a01b0316611d195760405162461bcd60e51b815260206004820181905260248201527f57686974656c697374206163636f756e74206e6f7420636f6e666967757265646044820152606401610a26565b600b54604080517f8bcd7119310a95301271115cae440175e60912470a32a31049635395d99537f560208201523391810191909152606081018690526000919060800160405160208183030381529060405280519060200120604051602001611db49291907f190100000000000000000000000000000000000000000000000000000000000081526002810192909252602282015260420190565b60408051601f198184030181528282528051602091820120600a54601f880183900483028501830190935286845293506001600160a01b0390911691611e1791879087908190840183828082843760009201919091525086939250506121a39050565b6001600160a01b03161495945050505050565b61ffff8216611d4c81611e3c60005490565b611e469190612a82565b1115611e945760405162461bcd60e51b815260206004820152601660248201527f4d6178204e4654206c696d6974206578636565646564000000000000000000006044820152606401610a26565b61ffff831682611ea48282612a9a565b341015611f195760405162461bcd60e51b815260206004820152602b60248201527f496e737566666369656e742045746820696e207472616e73616374696f6e2c2060448201527f636865636b2070726963650000000000000000000000000000000000000000006064820152608401610a26565b611f27338661ffff1661195f565b336000908152600c602052604081208054879290611f4a90849061ffff16612ae3565b92506101000a81548161ffff021916908361ffff1602179055505050505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611fa0903390899088908890600401612b7d565b602060405180830381600087803b158015611fba57600080fd5b505af1925050508015611fea575060408051601f3d908101601f19168201909252611fe791810190612bb9565b60015b612045573d808015612018576040519150601f19603f3d011682016040523d82523d6000602084013e61201d565b606091505b50805161203d576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b60606010805461082790612a31565b6060816120b157505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156120db57806120c581612bd6565b91506120d49050600a83612acf565b91506120b5565b60008167ffffffffffffffff8111156120f6576120f6612902565b6040519080825280601f01601f191660200182016040528015612120576020820181803683370190505b5090505b841561161a57612135600183612bf1565b9150612142600a86612c08565b61214d906030612a82565b60f81b81838151811061216257612162612c1c565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061219c600a86612acf565b9450612124565b60008060006121b285856121c7565b915091506121bf81612234565b509392505050565b6000808251604114156121fe5760208301516040840151606085015160001a6121f2878285856123ef565b94509450505050610ceb565b825160401415612228576020830151604084015161221d8683836124dc565b935093505050610ceb565b50600090506002610ceb565b600081600481111561224857612248612c32565b14156122515750565b600181600481111561226557612265612c32565b14156122b35760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610a26565b60028160048111156122c7576122c7612c32565b14156123155760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610a26565b600381600481111561232957612329612c32565b14156123825760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610a26565b600481600481111561239657612396612c32565b1415610f6a5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610a26565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561242657506000905060036124d3565b8460ff16601b1415801561243e57508460ff16601c14155b1561244f57506000905060046124d3565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156124a3573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166124cc576000600192509250506124d3565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83168161251260ff86901c601b612a82565b9050612520878288856123ef565b935093505050935093915050565b82805461253a90612a31565b90600052602060002090601f01602090048101928261255c57600085556125a2565b82601f106125755782800160ff198235161785556125a2565b828001600101855582156125a2579182015b828111156125a2578235825591602001919060010190612587565b506125ae9291506125b2565b5090565b5b808211156125ae57600081556001016125b3565b6001600160e01b031981168114610f6a57600080fd5b6000602082840312156125ef57600080fd5b81356114b9816125c7565b60005b838110156126155781810151838201526020016125fd565b83811115610aa75750506000910152565b6000815180845261263e8160208601602086016125fa565b601f01601f19169290920160200192915050565b6020815260006114b96020830184612626565b60006020828403121561267757600080fd5b5035919050565b6001600160a01b0381168114610f6a57600080fd5b600080604083850312156126a657600080fd5b82356126b18161267e565b946020939093013593505050565b803561ffff811681146126d157600080fd5b919050565b600080604083850312156126e957600080fd5b82356126f48161267e565b9150612702602084016126bf565b90509250929050565b803580151581146126d157600080fd5b60006020828403121561272d57600080fd5b6114b98261270b565b60008060006060848603121561274b57600080fd5b83356127568161267e565b925060208401356127668161267e565b929592945050506040919091013590565b6000806040838503121561278a57600080fd5b50508035926020909101359150565b6000602082840312156127ab57600080fd5b6114b9826126bf565b6000602082840312156127c657600080fd5b813560ff811681146114b957600080fd5b60008083601f8401126127e957600080fd5b50813567ffffffffffffffff81111561280157600080fd5b602083019150836020828501011115610ceb57600080fd5b6000806020838503121561282c57600080fd5b823567ffffffffffffffff81111561284357600080fd5b61284f858286016127d7565b90969095509350505050565b60006020828403121561286d57600080fd5b81356114b98161267e565b6000806000806060858703121561288e57600080fd5b84359350602085013567ffffffffffffffff8111156128ac57600080fd5b6128b8878288016127d7565b90945092506128cb9050604086016126bf565b905092959194509250565b600080604083850312156128e957600080fd5b82356128f48161267e565b91506127026020840161270b565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561292e57600080fd5b84356129398161267e565b935060208501356129498161267e565b925060408501359150606085013567ffffffffffffffff8082111561296d57600080fd5b818701915087601f83011261298157600080fd5b81358181111561299357612993612902565b604051601f8201601f19908116603f011681019083821181831017156129bb576129bb612902565b816040528281528a60208487010111156129d457600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215612a0b57600080fd5b8235612a168161267e565b91506020830135612a268161267e565b809150509250929050565b600181811c90821680612a4557607f821691505b60208210811415612a6657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115612a9557612a95612a6c565b500190565b6000816000190483118215151615612ab457612ab4612a6c565b500290565b634e487b7160e01b600052601260045260246000fd5b600082612ade57612ade612ab9565b500490565b600061ffff808316818516808303821115612b0057612b00612a6c565b01949350505050565b60008351612b1b8184602088016125fa565b835190830190612b2f8183602088016125fa565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b600060208284031215612b7257600080fd5b81516114b98161267e565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612baf6080830184612626565b9695505050505050565b600060208284031215612bcb57600080fd5b81516114b9816125c7565b6000600019821415612bea57612bea612a6c565b5060010190565b600082821015612c0357612c03612a6c565b500390565b600082612c1757612c17612ab9565b500690565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052602160045260246000fdfea26469706673582212207d99c86df9795d069a596f268f7e8dbed0a5b965a634dff0e562bac94b29729764736f6c6343000809003300000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c100000000000000000000000054643523b1312f5ab977d42cee79211fe433e783000000000000000000000000000000000000000000000000000000000000000d6e66746761726167652e7774660000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044e465447000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000041697066733a2f2f516d5651553655646f455a5a52794a6b35386a75384456525873466a7a6b3662457a7274425241555873726e55432f48696464656e2e6a736f6e00000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x6080604052600436106102c65760003560e01c8063572849c41161017957806399efb72f116100d6578063c87b56dd1161008a578063e985e9c511610064578063e985e9c514610781578063f2fde38b146107a1578063f607cc4c146107c157600080fd5b8063c87b56dd14610721578063cd77083314610741578063e0a808531461076157600080fd5b8063a2309ff8116100bb578063a2309ff8146106cd578063b187bd26146106e2578063b88d4fde1461070157600080fd5b806399efb72f1461069a578063a22cb465146106ad57600080fd5b8063846342ee1161012d5780638704a208116101125780638704a208146106515780638da5cb5b1461066757806395d89b411461068557600080fd5b8063846342ee146106205780638693da201461063b57600080fd5b806370a082311161015e57806370a08231146105cb578063715018a6146105eb57806379ef04b11461060057600080fd5b8063572849c4146105905780636352211e146105ab57600080fd5b80632a55205a1161022757806342842e0e116101db5780635168e54f116101c05780635168e54f14610530578063518302271461055057806355f804b31461057057600080fd5b806342842e0e146104f057806342966c681461051057600080fd5b806336e8942f1161020c57806336e8942f146104ae5780633ccfd60b146104ce5780634146ed0a146104d657600080fd5b80632a55205a1461044657806332cb6b0c1461048557600080fd5b806316c38b3c1161027e578063199eab6b11610263578063199eab6b146103df57806323b872dd146103ff578063275afeb91461041f57600080fd5b806316c38b3c1461039c57806318160ddd146103bc57600080fd5b8063081812fc116102af578063081812fc14610322578063095ea7b31461035a57806314f6061a1461037c57600080fd5b806301ffc9a7146102cb57806306fdde0314610300575b600080fd5b3480156102d757600080fd5b506102eb6102e63660046125dd565b6107d4565b60405190151581526020015b60405180910390f35b34801561030c57600080fd5b50610315610818565b6040516102f79190612652565b34801561032e57600080fd5b5061034261033d366004612665565b6108aa565b6040516001600160a01b0390911681526020016102f7565b34801561036657600080fd5b5061037a610375366004612693565b610907565b005b34801561038857600080fd5b5061037a6103973660046126d6565b6109cd565b3480156103a857600080fd5b5061037a6103b736600461271b565b610aad565b3480156103c857600080fd5b50600154600054035b6040519081526020016102f7565b3480156103eb57600080fd5b5061037a6103fa36600461271b565b610acf565b34801561040b57600080fd5b5061037a61041a366004612736565b610aea565b34801561042b57600080fd5b50610434600c81565b60405160ff90911681526020016102f7565b34801561045257600080fd5b50610466610461366004612777565b610cb8565b604080516001600160a01b0390931683526020830191909152016102f7565b34801561049157600080fd5b5061049b611d4c81565b60405161ffff90911681526020016102f7565b3480156104ba57600080fd5b5061037a6104c9366004612799565b610cf2565b61037a610dcc565b3480156104e257600080fd5b506012546102eb9060ff1681565b3480156104fc57600080fd5b5061037a61050b366004612736565b610f44565b34801561051c57600080fd5b5061037a61052b366004612665565b610f5f565b34801561053c57600080fd5b5061037a61054b3660046127b4565b610f6d565b34801561055c57600080fd5b506012546102eb9062010000900460ff1681565b34801561057c57600080fd5b5061037a61058b366004612819565b610f8b565b34801561059c57600080fd5b50600f5461049b9061ffff1681565b3480156105b757600080fd5b506103426105c6366004612665565b610f9f565b3480156105d757600080fd5b506103d16105e636600461285b565b610faa565b3480156105f757600080fd5b5061037a611012565b34801561060c57600080fd5b5061037a61061b3660046127b4565b611026565b34801561062c57600080fd5b506103d166b1a2bc2ec5000081565b34801561064757600080fd5b506103d1600e5481565b34801561065d57600080fd5b5061049b6101f481565b34801561067357600080fd5b506009546001600160a01b0316610342565b34801561069157600080fd5b50610315611036565b61037a6106a8366004612878565b611045565b3480156106b957600080fd5b5061037a6106c83660046128d6565b611252565b3480156106d957600080fd5b506000546103d1565b3480156106ee57600080fd5b506012546102eb90610100900460ff1681565b34801561070d57600080fd5b5061037a61071c366004612918565b611301565b34801561072d57600080fd5b5061031561073c366004612665565b611345565b34801561074d57600080fd5b5061037a61075c36600461285b565b6114c0565b34801561076d57600080fd5b5061037a61077c36600461271b565b6114f7565b34801561078d57600080fd5b506102eb61079c3660046129f8565b61151b565b3480156107ad57600080fd5b5061037a6107bc36600461285b565b611622565b61037a6107cf366004612799565b6116af565b60006001600160e01b031982167f2a55205a000000000000000000000000000000000000000000000000000000001480610812575061081282611845565b92915050565b60606002805461082790612a31565b80601f016020809104026020016040519081016040528092919081815260200182805461085390612a31565b80156108a05780601f10610875576101008083540402835291602001916108a0565b820191906000526020600020905b81548152906001019060200180831161088357829003601f168201915b5050505050905090565b60006108b5826118de565b6108eb576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b600061091282610f9f565b9050336001600160a01b038216146109645761092e813361151b565b610964576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600082815260066020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6109d5611905565b8061ffff1660008111610a2f5760405162461bcd60e51b815260206004820152601660248201527f4d757374206d696e74206174206c65617374206f6e650000000000000000000060448201526064015b60405180910390fd5b61ffff8216611d4c81610a4160005490565b610a4b9190612a82565b1115610a995760405162461bcd60e51b815260206004820152601660248201527f4d6178204e4654206c696d6974206578636565646564000000000000000000006044820152606401610a26565b610aa7848461ffff1661195f565b50505050565b610ab5611905565b601280549115156101000261ff0019909216919091179055565b610ad7611905565b6012805460ff1916911515919091179055565b6000610af582611a89565b9050836001600160a01b0316816001600160a01b031614610b42576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008281526006602052604090208054610b6e8187335b6001600160a01b039081169116811491141790565b610b9957610b7c863361151b565b610b9957604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038516610bd9576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8015610be457600082555b6001600160a01b038681166000908152600560205260408082208054600019019055918716808252919020805460010190554260a01b17600160e11b17600085815260046020526040902055600160e11b8316610c6f5760018401600081815260046020526040902054610c6d576000548114610c6d5760008181526004602052604090208490555b505b83856001600160a01b0316876001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050505050565b600080610ccd6009546001600160a01b031690565b612710610cdc856101f4612a9a565b610ce69190612acf565b915091505b9250929050565b610cfa611905565b8061ffff1660008111610d4f5760405162461bcd60e51b815260206004820152601660248201527f4d757374206d696e74206174206c65617374206f6e65000000000000000000006044820152606401610a26565b61ffff8216611d4c81610d6160005490565b610d6b9190612a82565b1115610db95760405162461bcd60e51b815260206004820152601660248201527f4d6178204e4654206c696d6974206578636565646564000000000000000000006044820152606401610a26565b610dc7338461ffff1661195f565b505050565b610dd4611905565b600d546000906001600160a01b03166064610df0476004612a9a565b610dfa9190612acf565b604051600081818185875af1925050503d8060008114610e36576040519150601f19603f3d011682016040523d82523d6000602084013e610e3b565b606091505b5050905080610e8c5760405162461bcd60e51b815260206004820152601e60248201527f4572726f72207769746864726177696e6720746f2064657657616c6c657400006044820152606401610a26565b6000610ea06009546001600160a01b031690565b6001600160a01b03164760405160006040518083038185875af1925050503d8060008114610eea576040519150601f19603f3d011682016040523d82523d6000602084013e610eef565b606091505b5050905080610f405760405162461bcd60e51b815260206004820181905260248201527f4572726f72207769746864726177696e6720746f206f776e657257616c6c65746044820152606401610a26565b5050565b610dc783838360405180602001604052806000815250611301565b610f6a816001611b03565b50565b610f75611905565b600f805461ffff191660ff909216919091179055565b610f93611905565b610dc76010838361252e565b600061081282611a89565b60006001600160a01b038216610fec576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b61101a611905565b6110246000611c5f565b565b61102e611905565b60ff16600e55565b60606003805461082790612a31565b600260085414156110985760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a26565b6002600855601254610100900460ff16156110f55760405162461bcd60e51b815260206004820152601160248201527f4d696e74696e67206973207061757365640000000000000000000000000000006044820152606401610a26565b60125460ff166111475760405162461bcd60e51b815260206004820152601160248201527f497320696e207075626c6963206d6f64650000000000000000000000000000006044820152606401610a26565b336000908152600c602052604090205484906111679061ffff1683612ae3565b61ffff1611156111df5760405162461bcd60e51b815260206004820152603060248201527f596f75206861766520657863656564656420796f7572206d696e74207768697460448201527f656c69737420616c6c6f636174696f6e000000000000000000000000000000006064820152608401610a26565b6111ea848484611cbe565b6112365760405162461bcd60e51b815260206004820152601b60248201527f496e76616c69642077686974656c697374207369676e617475726500000000006044820152606401610a26565b6112478166b1a2bc2ec50000611e2a565b505060016008555050565b6001600160a01b038216331415611295576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61130c848484610aea565b6001600160a01b0383163b15610aa75761132884848484611f6b565b610aa7576040516368d2bf6b60e11b815260040160405180910390fd5b6060611350826118de565b6113c25760405162461bcd60e51b815260206004820152603060248201527f455243373231414d657461646174613a2055524920717565727920666f72206e60448201527f6f6e6578697374656e7420746f6b656e000000000000000000000000000000006064820152608401610a26565b60125462010000900460ff1661146457601180546113df90612a31565b80601f016020809104026020016040519081016040528092919081815260200182805461140b90612a31565b80156114585780601f1061142d57610100808354040283529160200191611458565b820191906000526020600020905b81548152906001019060200180831161143b57829003601f168201915b50505050509050919050565b600061146e612062565b9050600081511161148e57604051806020016040528060008152506114b9565b8061149884612071565b6040516020016114a9929190612b09565b6040516020818303038152906040525b9392505050565b6114c8611905565b600a805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0392909216919091179055565b6114ff611905565b60128054911515620100000262ff000019909216919091179055565b6040517fc45527910000000000000000000000000000000000000000000000000000000081526001600160a01b0383811660048301526000917f000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c191848116919083169063c45527919060240160206040518083038186803b15801561159f57600080fd5b505afa1580156115b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115d79190612b60565b6001600160a01b031614156115f0576001915050610812565b6001600160a01b0380851660009081526007602090815260408083209387168352929052205460ff165b949350505050565b61162a611905565b6001600160a01b0381166116a65760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610a26565b610f6a81611c5f565b600260085414156117025760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610a26565b6002600855601254610100900460ff161561175f5760405162461bcd60e51b815260206004820152601160248201527f4d696e74696e67206973207061757365640000000000000000000000000000006044820152606401610a26565b60125460ff16156117b25760405162461bcd60e51b815260206004820152601260248201527f4e6f7420696e207075626c6963206d6f646500000000000000000000000000006044820152606401610a26565b600c61ffff8216111561182c5760405162461bcd60e51b8152602060048201526024808201527f596f752063616e206f6e6c79206d696e7420313220706572207472616e73616360448201527f74696f6e000000000000000000000000000000000000000000000000000000006064820152608401610a26565b61183d8166b1a2bc2ec50000611e2a565b506001600855565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b0319831614806118a857507f80ac58cd000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b806108125750506001600160e01b0319167f5b5e139f000000000000000000000000000000000000000000000000000000001490565b6000805482108015610812575050600090815260046020526040902054600160e01b161590565b6009546001600160a01b031633146110245760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610a26565b60005481611999576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6001600160a01b03831660008181526005602090815260408083208054680100000000000000018802019055848352600490915281206001851460e11b4260a01b178317905582840190839083907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8180a4600183015b818114611a4857808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600101611a10565b5081611a80576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60005550505050565b600081600054811015611ad157600081815260046020526040902054600160e01b8116611acf575b806114b9575060001901600081815260046020526040902054611ab1565b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611b0e83611a89565b905080600080611b2c86600090815260066020526040902080549091565b915091508415611b6c57611b41818433610b59565b611b6c57611b4f833361151b565b611b6c57604051632ce44b5f60e11b815260040160405180910390fd5b8015611b7757600082555b6001600160a01b038316600081815260056020526040902080546fffffffffffffffffffffffffffffffff0190554260a01b177c030000000000000000000000000000000000000000000000000000000017600087815260046020526040902055600160e11b8416611c175760018601600081815260046020526040902054611c15576000548114611c155760008181526004602052604090208590555b505b60405186906000906001600160a01b038616907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050600180548101905550505050565b600980546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b600a546000906001600160a01b0316611d195760405162461bcd60e51b815260206004820181905260248201527f57686974656c697374206163636f756e74206e6f7420636f6e666967757265646044820152606401610a26565b600b54604080517f8bcd7119310a95301271115cae440175e60912470a32a31049635395d99537f560208201523391810191909152606081018690526000919060800160405160208183030381529060405280519060200120604051602001611db49291907f190100000000000000000000000000000000000000000000000000000000000081526002810192909252602282015260420190565b60408051601f198184030181528282528051602091820120600a54601f880183900483028501830190935286845293506001600160a01b0390911691611e1791879087908190840183828082843760009201919091525086939250506121a39050565b6001600160a01b03161495945050505050565b61ffff8216611d4c81611e3c60005490565b611e469190612a82565b1115611e945760405162461bcd60e51b815260206004820152601660248201527f4d6178204e4654206c696d6974206578636565646564000000000000000000006044820152606401610a26565b61ffff831682611ea48282612a9a565b341015611f195760405162461bcd60e51b815260206004820152602b60248201527f496e737566666369656e742045746820696e207472616e73616374696f6e2c2060448201527f636865636b2070726963650000000000000000000000000000000000000000006064820152608401610a26565b611f27338661ffff1661195f565b336000908152600c602052604081208054879290611f4a90849061ffff16612ae3565b92506101000a81548161ffff021916908361ffff1602179055505050505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290611fa0903390899088908890600401612b7d565b602060405180830381600087803b158015611fba57600080fd5b505af1925050508015611fea575060408051601f3d908101601f19168201909252611fe791810190612bb9565b60015b612045573d808015612018576040519150601f19603f3d011682016040523d82523d6000602084013e61201d565b606091505b50805161203d576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b60606010805461082790612a31565b6060816120b157505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156120db57806120c581612bd6565b91506120d49050600a83612acf565b91506120b5565b60008167ffffffffffffffff8111156120f6576120f6612902565b6040519080825280601f01601f191660200182016040528015612120576020820181803683370190505b5090505b841561161a57612135600183612bf1565b9150612142600a86612c08565b61214d906030612a82565b60f81b81838151811061216257612162612c1c565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061219c600a86612acf565b9450612124565b60008060006121b285856121c7565b915091506121bf81612234565b509392505050565b6000808251604114156121fe5760208301516040840151606085015160001a6121f2878285856123ef565b94509450505050610ceb565b825160401415612228576020830151604084015161221d8683836124dc565b935093505050610ceb565b50600090506002610ceb565b600081600481111561224857612248612c32565b14156122515750565b600181600481111561226557612265612c32565b14156122b35760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610a26565b60028160048111156122c7576122c7612c32565b14156123155760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610a26565b600381600481111561232957612329612c32565b14156123825760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610a26565b600481600481111561239657612396612c32565b1415610f6a5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610a26565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a083111561242657506000905060036124d3565b8460ff16601b1415801561243e57508460ff16601c14155b1561244f57506000905060046124d3565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156124a3573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166124cc576000600192509250506124d3565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff83168161251260ff86901c601b612a82565b9050612520878288856123ef565b935093505050935093915050565b82805461253a90612a31565b90600052602060002090601f01602090048101928261255c57600085556125a2565b82601f106125755782800160ff198235161785556125a2565b828001600101855582156125a2579182015b828111156125a2578235825591602001919060010190612587565b506125ae9291506125b2565b5090565b5b808211156125ae57600081556001016125b3565b6001600160e01b031981168114610f6a57600080fd5b6000602082840312156125ef57600080fd5b81356114b9816125c7565b60005b838110156126155781810151838201526020016125fd565b83811115610aa75750506000910152565b6000815180845261263e8160208601602086016125fa565b601f01601f19169290920160200192915050565b6020815260006114b96020830184612626565b60006020828403121561267757600080fd5b5035919050565b6001600160a01b0381168114610f6a57600080fd5b600080604083850312156126a657600080fd5b82356126b18161267e565b946020939093013593505050565b803561ffff811681146126d157600080fd5b919050565b600080604083850312156126e957600080fd5b82356126f48161267e565b9150612702602084016126bf565b90509250929050565b803580151581146126d157600080fd5b60006020828403121561272d57600080fd5b6114b98261270b565b60008060006060848603121561274b57600080fd5b83356127568161267e565b925060208401356127668161267e565b929592945050506040919091013590565b6000806040838503121561278a57600080fd5b50508035926020909101359150565b6000602082840312156127ab57600080fd5b6114b9826126bf565b6000602082840312156127c657600080fd5b813560ff811681146114b957600080fd5b60008083601f8401126127e957600080fd5b50813567ffffffffffffffff81111561280157600080fd5b602083019150836020828501011115610ceb57600080fd5b6000806020838503121561282c57600080fd5b823567ffffffffffffffff81111561284357600080fd5b61284f858286016127d7565b90969095509350505050565b60006020828403121561286d57600080fd5b81356114b98161267e565b6000806000806060858703121561288e57600080fd5b84359350602085013567ffffffffffffffff8111156128ac57600080fd5b6128b8878288016127d7565b90945092506128cb9050604086016126bf565b905092959194509250565b600080604083850312156128e957600080fd5b82356128f48161267e565b91506127026020840161270b565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561292e57600080fd5b84356129398161267e565b935060208501356129498161267e565b925060408501359150606085013567ffffffffffffffff8082111561296d57600080fd5b818701915087601f83011261298157600080fd5b81358181111561299357612993612902565b604051601f8201601f19908116603f011681019083821181831017156129bb576129bb612902565b816040528281528a60208487010111156129d457600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060408385031215612a0b57600080fd5b8235612a168161267e565b91506020830135612a268161267e565b809150509250929050565b600181811c90821680612a4557607f821691505b60208210811415612a6657634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60008219821115612a9557612a95612a6c565b500190565b6000816000190483118215151615612ab457612ab4612a6c565b500290565b634e487b7160e01b600052601260045260246000fd5b600082612ade57612ade612ab9565b500490565b600061ffff808316818516808303821115612b0057612b00612a6c565b01949350505050565b60008351612b1b8184602088016125fa565b835190830190612b2f8183602088016125fa565b7f2e6a736f6e0000000000000000000000000000000000000000000000000000009101908152600501949350505050565b600060208284031215612b7257600080fd5b81516114b98161267e565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612baf6080830184612626565b9695505050505050565b600060208284031215612bcb57600080fd5b81516114b9816125c7565b6000600019821415612bea57612bea612a6c565b5060010190565b600082821015612c0357612c03612a6c565b500390565b600082612c1757612c17612ab9565b500690565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052602160045260246000fdfea26469706673582212207d99c86df9795d069a596f268f7e8dbed0a5b965a634dff0e562bac94b29729764736f6c63430008090033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000000000000000000000000000000120000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c100000000000000000000000054643523b1312f5ab977d42cee79211fe433e783000000000000000000000000000000000000000000000000000000000000000d6e66746761726167652e7774660000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044e465447000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000041697066733a2f2f516d5651553655646f455a5a52794a6b35386a75384456525873466a7a6b3662457a7274425241555873726e55432f48696464656e2e6a736f6e00000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): nftgarage.wtf
Arg [1] : _symbol (string): NFTG
Arg [2] : _initNotRevealedUri (string): ipfs://QmVQU6UdoEZZRyJk58ju8DVRXsFjzk6bEzrtBRAUXsrnUC/Hidden.json
Arg [3] : _proxyRegistryAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1
Arg [4] : _devWallet (address): 0x54643523b1312F5Ab977d42ceE79211fE433E783

-----Encoded View---------------
13 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [3] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [4] : 00000000000000000000000054643523b1312f5ab977d42cee79211fe433e783
Arg [5] : 000000000000000000000000000000000000000000000000000000000000000d
Arg [6] : 6e66746761726167652e77746600000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [8] : 4e46544700000000000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000041
Arg [10] : 697066733a2f2f516d5651553655646f455a5a52794a6b35386a753844565258
Arg [11] : 73466a7a6b3662457a7274425241555873726e55432f48696464656e2e6a736f
Arg [12] : 6e00000000000000000000000000000000000000000000000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.