ETH Price: $3,472.19 (+2.10%)

Token

FatCats (FCD)
 

Overview

Max Total Supply

5,000 FCD

Holders

1,050

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 FCD
0x2fea0e86a303a1b0d4cf0f86f99fb66f3b25db0d
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information
# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
FatCats

Compiler Version
v0.8.13+commit.abaa5c0e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 15 : FatCats.sol
// SPDX-License-Identifier: GPL-3.0

pragma solidity 0.8.13;

import "erc721a/contracts/ERC721A.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@chainlink/contracts/src/v0.8/interfaces/VRFCoordinatorV2Interface.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBaseV2.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract OwnableDelegateProxy {}

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

/**
 * @title Mint InCreation collection
 * @notice Contract in creation
 */

contract FatCats is ERC721A, VRFConsumerBaseV2, Ownable {
    /**
     *
     *
     **********CHAINLINK DATA*********
     *
     *
     */

    VRFCoordinatorV2Interface COORDINATOR;
    uint64 s_subscriptionId;
    address vrfCoordinator = 0x271682DEB8C4E0901D1a1550aD2e64D568E69909; 
    bytes32 keyHash =
        0xff8dedfbfa60af186cf3c830acbc32c05aae823045ae5ea7da1e45fbfaba4f92; 
    uint32 callbackGasLimit = 100000;
    uint16 requestConfirmations = 3;
    uint32 numWords = 1;
    uint256 public s_randomWords;
    uint256 public s_requestId;

    /**
     *
     *
     **********COLLECTION DATA*********
     *
     *
     */

    using Strings for uint256;
    // Merkle root
    bytes32 public merkleRoot;
    // Max supply
    uint256 public maxSupply = 5000;
    // Token price in ether
    uint256 public price = 0.08 ether;
    // Max wallet step 1
    uint256 public maxNftByWallet1 = 2;
    // Max wallet step 2
    uint256 public maxNftByWallet2 = 10;
    // Team wallet
    address payable team;
    // Proxy registery Address
    address public proxyAddress;
    // Shuffle flag
    bool public shuffle = false;
    // paused flag
    bool public paused = true;
    // Step 2 flag
    bool public step_2 = false;
    // Public Step flag
    bool public publicStep = false;
    // Reveal flag
    bool public revealed = false;
    // publicBurn flag
    bool public publicBurnFlag = false;
    // Collection Base URI
    string public baseURI;
    //Collection hidden URI
    string public hideURI;

    /**
     * @dev Ensure the caller is in the whitelist
     */
    modifier isWhitelisted(bytes32[] calldata merkleProof) {
        bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
        require(
            MerkleProof.verify(merkleProof, merkleRoot, leaf),
            "Not in the whitelist"
        );
        _;
    }

    /**
     * @dev Ensure the caller is not a SC
     */
    modifier isAUser() {
        require(tx.origin == msg.sender, "Not a user");
        _;
    }

    constructor(
        string memory _collectionURI,
        string memory _hiddenURI,
        bytes32 _merkleRoot,
        address payable _team,
        uint64 subscriptionId,
        address _proxyAddress
    ) ERC721A("FatCats", "FCD") VRFConsumerBaseV2(vrfCoordinator) {
        COORDINATOR = VRFCoordinatorV2Interface(vrfCoordinator);
        s_subscriptionId = subscriptionId;
        baseURI = _collectionURI;
        hideURI = _hiddenURI;
        merkleRoot = _merkleRoot;
        team = _team;
        proxyAddress = _proxyAddress;
        _safeMint(team, 1);
    }

    receive() external payable {}

    /**
     *
     *
     **********MINT FUNCTIONS*********
     *
     *
     */

    /**
     * @dev mintStep1
     *
     * Requirements:
     *
     * Contract must be unpaused
     * Contract must be in sale step 1
     * The caller must be in the whitelist
     * The caller must request an amount lower or equal to the authorized by wallet
     * The amount of token must be superior to 0
     * The supply must be available
     * The price must be correct
     *
     * @param amountToMint the number of token to mint
     * @param merkleProof for the wallet address
     *
     */
    function mintStep1(uint256 amountToMint, bytes32[] calldata merkleProof)
        external
        payable
        isWhitelisted(merkleProof)
    {
        require(!paused, "Contract paused");
        require(!step_2 && !publicStep, "Wrong step");

        require(
            amountToMint + _numberMinted(msg.sender) <= maxNftByWallet1,
            "Requet too much for a wallet at this stage"
        );
        require(
            amountToMint + totalSupply() <= maxSupply,
            "Request superior max Supply"
        );
        require(msg.value >= price * amountToMint, "Insufficient funds");
        _safeMint(msg.sender, amountToMint);
    }

    /**
     * @dev mintStep2
     *
     * Requirements:
     *
     * Contract must be in sale step 2
     * The caller must be in the whitelist
     * The caller must request an amount lower or equal to the authorized by wallet
     * The amount of token must be superior to 0
     * The supply must be available
     * The price must be correct
     *
     * @param amountToMint the number of token to mint
     * @param merkleProof for the wallet address
     *
     */
    function mintStep2(uint256 amountToMint, bytes32[] calldata merkleProof)
        external
        payable
        isWhitelisted(merkleProof)
    {
        require(!paused, "Contract paused");
        require(step_2 && !publicStep, "Wrong step");
        require(
            amountToMint + _numberMinted(msg.sender) <= maxNftByWallet2,
            "Requet too much for a wallet at this stage"
        );

        require(
            amountToMint + totalSupply() <= maxSupply,
            "Request superior max Supply"
        );
        require(msg.value >= price * amountToMint, "Insufficient funds");

        _safeMint(msg.sender, amountToMint);
    }

    /**
     * @dev publicMint
     *
     * Requirements:
     *
     * Contract must be in public mint step
     * The amount of token must be superior to 0
     * The supply must be available
     * The price must be correct
     *
     * @param amountToMint the number of token to mint
     *
     */
    function publicMint(uint256 amountToMint) external payable isAUser {
        require(!paused, "Contract paused");
        require(publicStep, "Wrong step");

        require(
            amountToMint + totalSupply() <= maxSupply,
            "Request superior to max Supply"
        );
        require(msg.value >= price * amountToMint, "Insufficient funds");
        _safeMint(msg.sender, amountToMint);
    }

    /**
     *
     *
     **********ADMIN OPERATIONS*********
     *
     *
     */

    /**
     * @dev Change the `merkleRoot` of the token for `_newMerkleRoot`
     */
    function updateMerleRoot(bytes32 _newMerkleRoot) external onlyOwner {
        merkleRoot = _newMerkleRoot;
    }

    /**
     * @dev Change the contract to step 2`
     */
    function setStep2() external onlyOwner {
        step_2 = true;
    }

    /**
     * @dev Change the contract to public step`
     */
    function setPublicStep() external onlyOwner {
        publicStep = true;
    }

    /**
     * @dev Change the `maxNftByWallet1` of the token for `_newMaxNftByWallet`
     */
    function updateMaxByWallet1(uint256 _newMaxNftByWallet) external onlyOwner {
        maxNftByWallet1 = _newMaxNftByWallet;
    }

    /**
     * @dev Change the `maxByWallet2` of the token for `_newMaxNftByWallet`
     */
    function updateMaxByWallet2(uint256 _newMaxNftByWallet) external onlyOwner {
        maxNftByWallet2 = _newMaxNftByWallet;
    }

    /**
     * @dev Change the `price` of the token for `_newPrice`
     */
    function setNewPrice(uint256 _newPrice) external onlyOwner {
        price = _newPrice;
    }

    /**
     * @dev Reveal the final URI
     */
    function revealNFT() external onlyOwner {
        require(shuffle == true, "collection hasn't been shuffled");
        revealed = true;
    }

    /**
     * @dev Pause / Unpause the SC
     */
    function switchPause() external onlyOwner {
        paused = !paused;
    }

    /**
     * @dev Allow public burn
     */
    function openPublicBurn() external onlyOwner {
        publicBurnFlag = !publicBurnFlag;
    }

    /**
     * @dev Decrease the supply
     */
    function updateMaxSupply(uint256 _newSupply) external onlyOwner {
        require(_newSupply < maxSupply, "You try to increase the suppply. Decrease only is authorized");
        maxSupply = _newSupply;
    }

    /**
     * @dev Give away attribution
     *
     * Requirements:
     *
     * The caller must be the owner
     * The recipient must be different than 0
     * The amount of token requested must be within the reverse
     * The amount requested must be supperior to 0
     *
     */
    function giveAway(address to, uint256 amountToMint) external onlyOwner {
        require(
            amountToMint + totalSupply() <= maxSupply,
            "Request superior max Supply"
        );

        _safeMint(to, amountToMint);
    }

    /**
     * @dev Team withdraw on the `team` wallet
     */
    function withdraw() external onlyOwner {
        require(address(this).balance != 0, "Nothing to withdraw");
        (bool success, ) = team.call{value: address(this).balance}("");
        require(success, "transfer failed");
    }

    /**
     * @dev Burn token
     */
    function burn(uint256 tokenId) public virtual onlyOwner {
        _burn(tokenId, true);
    }

    /**
     * @dev Burn token public
     */
    function publicBurn(uint256 tokenId) public virtual {
        require(publicBurnFlag, "public burn unauthorized");
        _burn(tokenId, true);
    }

    /**
     * @dev Set the base URI
     *
     * The style MUST BE as follow : "ipfs://QmdsaXXXXXXXXXXXXXXXXXXXX7epJF/"
     */
    function setBaseURI(string memory _newBaseURI) public onlyOwner {
        baseURI = _newBaseURI;
    }

    /**
     * @dev Set the hiddenURI just in case
     *
     */
    function setHidden(string memory _newHiddenUri) public onlyOwner {
        hideURI = _newHiddenUri;
    }

    /**
     *
     *
     **********TOKEN DATA*********
     *
     *
     */

    /**
     * @dev Return an array of token Id owned by `owner`
     */
    function getWallet(address _owner) public view returns (uint256[] memory) {
        uint256 ownerBalance = balanceOf(_owner);
        uint256[] memory ownedIds = new uint256[](ownerBalance);
        uint256 tokenIdCounter = 0;
        uint256 index = 0;

        while (index < ownerBalance && tokenIdCounter <= maxSupply) {
            address tokenOwner = ownerOf(tokenIdCounter);
            if (tokenOwner == _owner) {
                ownedIds[index] = tokenIdCounter;
                index++;
            }
            tokenIdCounter++;
        }
        return ownedIds;
    }

    /**
     * @dev ERC721 standardd
     * @return baseURI value
     */
    function _baseURI() internal view virtual override returns (string memory) {
        return baseURI;
    }

    /**
     * @dev Return the URI of the NFT
     * @notice return the hidden URI then the Revealed JSON when the Revealed param is true
     */
    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override
        returns (string memory)
    {
        require(
            _exists(tokenId),
            "ERC721Metadata: URI query for nonexistent token"
        );
        if (revealed == false) {
            return hideURI;
        }
        string memory URI = _baseURI();
        uint256 randomId = ((s_randomWords + tokenId) % maxSupply) + 1;
        return
            bytes(URI).length > 0
                ? string(abi.encodePacked(URI, randomId.toString(), ".json"))
                : "";
    }

    /**
     *
     *
     **********OS*********
     *
     *
     */

    /**
     * @dev Set the proxyAddress
     */
    function setProxyAddress(address _proxyAddress) external onlyOwner {
        proxyAddress = _proxyAddress;
    }

    /**
     * @dev Override isApprovedForAll
     */
    function isApprovedForAll(address owner, address operator)
        public
        view
        override
        returns (bool)
    {
        ProxyRegistry proxyRegistry = ProxyRegistry(proxyAddress);
        if (address(proxyRegistry.proxies(owner)) == operator) {
            return true;
        }

        return super.isApprovedForAll(owner, operator);
    }

    /**
     *
     *
     **********RANDOM NUMBERS*********
     *
     *
     */

    function requestRandomWords() external onlyOwner {
        require(shuffle == false, "Shuffle already done");
        s_requestId = COORDINATOR.requestRandomWords(
            keyHash,
            s_subscriptionId,
            requestConfirmations,
            callbackGasLimit,
            numWords
        );
        shuffle = true;
    }

    function fulfillRandomWords(
        uint256, /* requestId */
        uint256[] memory randomWords
    ) internal override {
        s_randomWords = (randomWords[0] % maxSupply) + 1;
    }
}

File 2 of 15 : ERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v3.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import './IERC721A.sol';
import '@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol';
import '@openzeppelin/contracts/utils/Address.sol';
import '@openzeppelin/contracts/utils/Context.sol';
import '@openzeppelin/contracts/utils/Strings.sol';
import '@openzeppelin/contracts/utils/introspection/ERC165.sol';

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

    // The tokenId of the next token to be minted.
    uint256 internal _currentIndex;

    // The number of tokens burned.
    uint256 internal _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 _ownershipOf implementation for details.
    mapping(uint256 => TokenOwnership) internal _ownerships;

    // Mapping owner address to address data
    mapping(address => AddressData) private _addressData;

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

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

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

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

    /**
     * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens.
     */
    function totalSupply() public view override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex - _startTokenId() times
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

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

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return uint256(_addressData[owner].balance);
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return uint256(_addressData[owner].numberMinted);
    }

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

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

    /**
     * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal {
        _addressData[owner].aux = aux;
    }

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

        unchecked {
            if (_startTokenId() <= curr) if (curr < _currentIndex) {
                TokenOwnership memory ownership = _ownerships[curr];
                if (!ownership.burned) {
                    if (ownership.addr != address(0)) {
                        return ownership;
                    }
                    // Invariant:
                    // There will always be an ownership that has an address and is not burned
                    // before an ownership that does not have an address and is not burned.
                    // Hence, curr will not underflow.
                    while (true) {
                        curr--;
                        ownership = _ownerships[curr];
                        if (ownership.addr != address(0)) {
                            return ownership;
                        }
                    }
                }
            }
        }
        revert OwnerQueryForNonexistentToken();
    }

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

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

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

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

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

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

        _approve(to, tokenId, owner);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

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

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

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

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

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

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

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].startTimestamp = uint64(block.timestamp);

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

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

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

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

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].startTimestamp = uint64(block.timestamp);

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

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

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

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

        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

        // 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 {
            _addressData[from].balance -= 1;
            _addressData[to].balance += 1;

            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = to;
            currSlot.startTimestamp = uint64(block.timestamp);

            // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

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

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

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

        address from = prevOwnership.addr;

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

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

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

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

        // 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 {
            AddressData storage addressData = _addressData[from];
            addressData.balance -= 1;
            addressData.numberBurned += 1;

            // Keep track of who burned the token, and the timestamp of burning.
            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = from;
            currSlot.startTimestamp = uint64(block.timestamp);
            currSlot.burned = true;

            // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

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

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

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(
        address to,
        uint256 tokenId,
        address owner
    ) private {
        _tokenApprovals[tokenId] = to;
        emit Approval(owner, to, tokenId);
    }

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

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

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

File 3 of 15 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = _efficientHash(computedHash, proofElement);
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = _efficientHash(proofElement, computedHash);
            }
        }
        return computedHash;
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

File 4 of 15 : VRFCoordinatorV2Interface.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface VRFCoordinatorV2Interface {
  /**
   * @notice Get configuration relevant for making requests
   * @return minimumRequestConfirmations global min for request confirmations
   * @return maxGasLimit global max for request gas limit
   * @return s_provingKeyHashes list of registered key hashes
   */
  function getRequestConfig()
    external
    view
    returns (
      uint16,
      uint32,
      bytes32[] memory
    );

  /**
   * @notice Request a set of random words.
   * @param keyHash - Corresponds to a particular oracle job which uses
   * that key for generating the VRF proof. Different keyHash's have different gas price
   * ceilings, so you can select a specific one to bound your maximum per request cost.
   * @param subId  - The ID of the VRF subscription. Must be funded
   * with the minimum subscription balance required for the selected keyHash.
   * @param minimumRequestConfirmations - How many blocks you'd like the
   * oracle to wait before responding to the request. See SECURITY CONSIDERATIONS
   * for why you may want to request more. The acceptable range is
   * [minimumRequestBlockConfirmations, 200].
   * @param callbackGasLimit - How much gas you'd like to receive in your
   * fulfillRandomWords callback. Note that gasleft() inside fulfillRandomWords
   * may be slightly less than this amount because of gas used calling the function
   * (argument decoding etc.), so you may need to request slightly more than you expect
   * to have inside fulfillRandomWords. The acceptable range is
   * [0, maxGasLimit]
   * @param numWords - The number of uint256 random values you'd like to receive
   * in your fulfillRandomWords callback. Note these numbers are expanded in a
   * secure way by the VRFCoordinator from a single random value supplied by the oracle.
   * @return requestId - A unique identifier of the request. Can be used to match
   * a request to a response in fulfillRandomWords.
   */
  function requestRandomWords(
    bytes32 keyHash,
    uint64 subId,
    uint16 minimumRequestConfirmations,
    uint32 callbackGasLimit,
    uint32 numWords
  ) external returns (uint256 requestId);

  /**
   * @notice Create a VRF subscription.
   * @return subId - A unique subscription id.
   * @dev You can manage the consumer set dynamically with addConsumer/removeConsumer.
   * @dev Note to fund the subscription, use transferAndCall. For example
   * @dev  LINKTOKEN.transferAndCall(
   * @dev    address(COORDINATOR),
   * @dev    amount,
   * @dev    abi.encode(subId));
   */
  function createSubscription() external returns (uint64 subId);

  /**
   * @notice Get a VRF subscription.
   * @param subId - ID of the subscription
   * @return balance - LINK balance of the subscription in juels.
   * @return reqCount - number of requests for this subscription, determines fee tier.
   * @return owner - owner of the subscription.
   * @return consumers - list of consumer address which are able to use this subscription.
   */
  function getSubscription(uint64 subId)
    external
    view
    returns (
      uint96 balance,
      uint64 reqCount,
      address owner,
      address[] memory consumers
    );

  /**
   * @notice Request subscription owner transfer.
   * @param subId - ID of the subscription
   * @param newOwner - proposed new owner of the subscription
   */
  function requestSubscriptionOwnerTransfer(uint64 subId, address newOwner) external;

  /**
   * @notice Request subscription owner transfer.
   * @param subId - ID of the subscription
   * @dev will revert if original owner of subId has
   * not requested that msg.sender become the new owner.
   */
  function acceptSubscriptionOwnerTransfer(uint64 subId) external;

  /**
   * @notice Add a consumer to a VRF subscription.
   * @param subId - ID of the subscription
   * @param consumer - New consumer which can use the subscription
   */
  function addConsumer(uint64 subId, address consumer) external;

  /**
   * @notice Remove a consumer from a VRF subscription.
   * @param subId - ID of the subscription
   * @param consumer - Consumer to remove from the subscription
   */
  function removeConsumer(uint64 subId, address consumer) external;

  /**
   * @notice Cancel a subscription
   * @param subId - ID of the subscription
   * @param to - Where to send the remaining LINK to
   */
  function cancelSubscription(uint64 subId, address to) external;
}

File 5 of 15 : VRFConsumerBaseV2.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

/** ****************************************************************************
 * @notice Interface for contracts using VRF randomness
 * *****************************************************************************
 * @dev PURPOSE
 *
 * @dev Reggie the Random Oracle (not his real job) wants to provide randomness
 * @dev to Vera the verifier in such a way that Vera can be sure he's not
 * @dev making his output up to suit himself. Reggie provides Vera a public key
 * @dev to which he knows the secret key. Each time Vera provides a seed to
 * @dev Reggie, he gives back a value which is computed completely
 * @dev deterministically from the seed and the secret key.
 *
 * @dev Reggie provides a proof by which Vera can verify that the output was
 * @dev correctly computed once Reggie tells it to her, but without that proof,
 * @dev the output is indistinguishable to her from a uniform random sample
 * @dev from the output space.
 *
 * @dev The purpose of this contract is to make it easy for unrelated contracts
 * @dev to talk to Vera the verifier about the work Reggie is doing, to provide
 * @dev simple access to a verifiable source of randomness. It ensures 2 things:
 * @dev 1. The fulfillment came from the VRFCoordinator
 * @dev 2. The consumer contract implements fulfillRandomWords.
 * *****************************************************************************
 * @dev USAGE
 *
 * @dev Calling contracts must inherit from VRFConsumerBase, and can
 * @dev initialize VRFConsumerBase's attributes in their constructor as
 * @dev shown:
 *
 * @dev   contract VRFConsumer {
 * @dev     constructor(<other arguments>, address _vrfCoordinator, address _link)
 * @dev       VRFConsumerBase(_vrfCoordinator) public {
 * @dev         <initialization with other arguments goes here>
 * @dev       }
 * @dev   }
 *
 * @dev The oracle will have given you an ID for the VRF keypair they have
 * @dev committed to (let's call it keyHash). Create subscription, fund it
 * @dev and your consumer contract as a consumer of it (see VRFCoordinatorInterface
 * @dev subscription management functions).
 * @dev Call requestRandomWords(keyHash, subId, minimumRequestConfirmations,
 * @dev callbackGasLimit, numWords),
 * @dev see (VRFCoordinatorInterface for a description of the arguments).
 *
 * @dev Once the VRFCoordinator has received and validated the oracle's response
 * @dev to your request, it will call your contract's fulfillRandomWords method.
 *
 * @dev The randomness argument to fulfillRandomWords is a set of random words
 * @dev generated from your requestId and the blockHash of the request.
 *
 * @dev If your contract could have concurrent requests open, you can use the
 * @dev requestId returned from requestRandomWords to track which response is associated
 * @dev with which randomness request.
 * @dev See "SECURITY CONSIDERATIONS" for principles to keep in mind,
 * @dev if your contract could have multiple requests in flight simultaneously.
 *
 * @dev Colliding `requestId`s are cryptographically impossible as long as seeds
 * @dev differ.
 *
 * *****************************************************************************
 * @dev SECURITY CONSIDERATIONS
 *
 * @dev A method with the ability to call your fulfillRandomness method directly
 * @dev could spoof a VRF response with any random value, so it's critical that
 * @dev it cannot be directly called by anything other than this base contract
 * @dev (specifically, by the VRFConsumerBase.rawFulfillRandomness method).
 *
 * @dev For your users to trust that your contract's random behavior is free
 * @dev from malicious interference, it's best if you can write it so that all
 * @dev behaviors implied by a VRF response are executed *during* your
 * @dev fulfillRandomness method. If your contract must store the response (or
 * @dev anything derived from it) and use it later, you must ensure that any
 * @dev user-significant behavior which depends on that stored value cannot be
 * @dev manipulated by a subsequent VRF request.
 *
 * @dev Similarly, both miners and the VRF oracle itself have some influence
 * @dev over the order in which VRF responses appear on the blockchain, so if
 * @dev your contract could have multiple VRF requests in flight simultaneously,
 * @dev you must ensure that the order in which the VRF responses arrive cannot
 * @dev be used to manipulate your contract's user-significant behavior.
 *
 * @dev Since the block hash of the block which contains the requestRandomness
 * @dev call is mixed into the input to the VRF *last*, a sufficiently powerful
 * @dev miner could, in principle, fork the blockchain to evict the block
 * @dev containing the request, forcing the request to be included in a
 * @dev different block with a different hash, and therefore a different input
 * @dev to the VRF. However, such an attack would incur a substantial economic
 * @dev cost. This cost scales with the number of blocks the VRF oracle waits
 * @dev until it calls responds to a request. It is for this reason that
 * @dev that you can signal to an oracle you'd like them to wait longer before
 * @dev responding to the request (however this is not enforced in the contract
 * @dev and so remains effective only in the case of unmodified oracle software).
 */
abstract contract VRFConsumerBaseV2 {
  error OnlyCoordinatorCanFulfill(address have, address want);
  address private immutable vrfCoordinator;

  /**
   * @param _vrfCoordinator address of VRFCoordinator contract
   */
  constructor(address _vrfCoordinator) {
    vrfCoordinator = _vrfCoordinator;
  }

  /**
   * @notice fulfillRandomness handles the VRF response. Your contract must
   * @notice implement it. See "SECURITY CONSIDERATIONS" above for important
   * @notice principles to keep in mind when implementing your fulfillRandomness
   * @notice method.
   *
   * @dev VRFConsumerBaseV2 expects its subcontracts to have a method with this
   * @dev signature, and will call it once it has verified the proof
   * @dev associated with the randomness. (It is triggered via a call to
   * @dev rawFulfillRandomness, below.)
   *
   * @param requestId The Id initially returned by requestRandomness
   * @param randomWords the VRF output expanded to the requested number of words
   */
  function fulfillRandomWords(uint256 requestId, uint256[] memory randomWords) internal virtual;

  // rawFulfillRandomness is called by VRFCoordinator when it receives a valid VRF
  // proof. rawFulfillRandomness then calls fulfillRandomness, after validating
  // the origin of the call
  function rawFulfillRandomWords(uint256 requestId, uint256[] memory randomWords) external {
    if (msg.sender != vrfCoordinator) {
      revert OnlyCoordinatorCanFulfill(msg.sender, vrfCoordinator);
    }
    fulfillRandomWords(requestId, randomWords);
  }
}

File 6 of 15 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

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

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

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

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

File 7 of 15 : IERC721A.sol
// SPDX-License-Identifier: MIT
// ERC721A Contracts v3.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;

import '@openzeppelin/contracts/token/ERC721/IERC721.sol';
import '@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol';

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

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

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

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

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

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

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

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

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

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

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

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

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

    // Compiler will pack this into a single 256bit word.
    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
    }

    // Compiler will pack this into a single 256bit word.
    struct AddressData {
        // Realistically, 2**64-1 is more than enough.
        uint64 balance;
        // Keeps track of mint count with minimal overhead for tokenomics.
        uint64 numberMinted;
        // Keeps track of burn count with minimal overhead for tokenomics.
        uint64 numberBurned;
        // For miscellaneous variable(s) pertaining to the address
        // (e.g. number of whitelist mint slots used).
        // If there are multiple variables, please pack them into a uint64.
        uint64 aux;
    }

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

File 8 of 15 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

File 9 of 15 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 10 of 15 : 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 11 of 15 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

File 12 of 15 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 13 of 15 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;

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

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

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

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

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

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

File 14 of 15 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

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

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

File 15 of 15 : 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);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_collectionURI","type":"string"},{"internalType":"string","name":"_hiddenURI","type":"string"},{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"},{"internalType":"address payable","name":"_team","type":"address"},{"internalType":"uint64","name":"subscriptionId","type":"uint64"},{"internalType":"address","name":"_proxyAddress","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[{"internalType":"address","name":"have","type":"address"},{"internalType":"address","name":"want","type":"address"}],"name":"OnlyCoordinatorCanFulfill","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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"}],"name":"getWallet","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amountToMint","type":"uint256"}],"name":"giveAway","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"hideURI","outputs":[{"internalType":"string","name":"","type":"string"}],"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":"maxNftByWallet1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxNftByWallet2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"merkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountToMint","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"mintStep1","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountToMint","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"mintStep2","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"openPublicBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"proxyAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"publicBurn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"publicBurnFlag","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountToMint","type":"uint256"}],"name":"publicMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicStep","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"requestId","type":"uint256"},{"internalType":"uint256[]","name":"randomWords","type":"uint256[]"}],"name":"rawFulfillRandomWords","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"requestRandomWords","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealNFT","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"revealed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"s_randomWords","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"s_requestId","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":"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":"string","name":"_newHiddenUri","type":"string"}],"name":"setHidden","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newPrice","type":"uint256"}],"name":"setNewPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_proxyAddress","type":"address"}],"name":"setProxyAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setPublicStep","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setStep2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"shuffle","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"step_2","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"switchPause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMaxNftByWallet","type":"uint256"}],"name":"updateMaxByWallet1","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newMaxNftByWallet","type":"uint256"}],"name":"updateMaxByWallet2","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_newSupply","type":"uint256"}],"name":"updateMaxSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_newMerkleRoot","type":"bytes32"}],"name":"updateMerleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

60a0604052600a80546001600160a01b03191673271682deb8c4e0901d1a1550ad2e64d568e699091781557fff8dedfbfa60af186cf3c830acbc32c05aae823045ae5ea7da1e45fbfaba4f92600b55600c805466010003000186a06001600160501b031990911617905561138860105567011c37937e08000060115560026012556013556015805465ffffffffffff60a01b1916600160a81b179055348015620000a857600080fd5b506040516200393138038062003931833981016040819052620000cb91620006de565b600a5460408051808201825260078152664661744361747360c81b6020808301918252835180850190945260038452621190d160ea1b9084015281516001600160a01b0390941693919291620001249160029162000549565b5080516200013a90600390602084019062000549565b506000805550506001600160a01b0316608052620001583362000205565b600a54600980546001600160a01b039092166001600160e01b031990921691909117600160a01b6001600160401b038516021790558551620001a290601690602089019062000549565b508451620001b890601790602088019062000549565b50600f849055601480546001600160a01b038086166001600160a01b031992831681179093556015805491851691909216179055620001f990600162000257565b5050505050506200085c565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620002798282604051806020016040528060008152506200027d60201b60201c565b5050565b6000546001600160a01b038416620002a757604051622e076360e81b815260040160405180910390fd5b82600003620002c95760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038416600081815260056020908152604080832080546001600160801b031981166001600160401b038083168b018116918217680100000000000000006001600160401b031990941690921783900481168b0181169092021790915585845260048352922080546001600160e01b0319168417600160a01b42909416939093029290921790915582918286019162000372919062000446811b62001ea117901c565b15620003f1575b60405182906001600160a01b0388169060009060008051602062003911833981519152908290a46001820191620003b69060009088908762000455565b620003d4576040516368d2bf6b60e11b815260040160405180910390fd5b80821062000379578260005414620003eb57600080fd5b62000426565b5b6040516001830192906001600160a01b0388169060009060008051602062003911833981519152908290a4808210620003f2575b50600090815562000440908583866001600160e01b038516565b50505050565b6001600160a01b03163b151590565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906200048c90339089908890889060040162000797565b6020604051808303816000875af1925050508015620004ca575060408051601f3d908101601f19168201909252620004c791810190620007ed565b60015b6200052c573d808015620004fb576040519150601f19603f3d011682016040523d82523d6000602084013e62000500565b606091505b50805160000362000524576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b828054620005579062000820565b90600052602060002090601f0160209004810192826200057b5760008555620005c6565b82601f106200059657805160ff1916838001178555620005c6565b82800160010185558215620005c6579182015b82811115620005c6578251825591602001919060010190620005a9565b50620005d4929150620005d8565b5090565b5b80821115620005d45760008155600101620005d9565b634e487b7160e01b600052604160045260246000fd5b60005b838110156200062257818101518382015260200162000608565b83811115620004405750506000910152565b600082601f8301126200064657600080fd5b81516001600160401b0380821115620006635762000663620005ef565b604051601f8301601f19908116603f011681019082821181831017156200068e576200068e620005ef565b81604052838152866020858801011115620006a857600080fd5b620006bb84602083016020890162000605565b9695505050505050565b6001600160a01b0381168114620006db57600080fd5b50565b60008060008060008060c08789031215620006f857600080fd5b86516001600160401b03808211156200071057600080fd5b6200071e8a838b0162000634565b975060208901519150808211156200073557600080fd5b620007438a838b0162000634565b965060408901519550606089015191506200075e82620006c5565b608089015191945080821682146200077557600080fd5b5060a08801519092506200078981620006c5565b809150509295509295509295565b600060018060a01b038087168352808616602084015250836040830152608060608301528251806080840152620007d68160a085016020870162000605565b601f01601f19169190910160a00195945050505050565b6000602082840312156200080057600080fd5b81516001600160e01b0319811681146200081957600080fd5b9392505050565b600181811c908216806200083557607f821691505b6020821081036200085657634e487b7160e01b600052602260045260246000fd5b50919050565b6080516130926200087f60003960008181610d460152610d8801526130926000f3fe60806040526004361061036f5760003560e01c806370a08231116101c6578063ca800144116100f7578063e7f781b411610095578063ee8cdd4e1161006f578063ee8cdd4e14610959578063f103b43314610979578063f2fde38b14610999578063ff700e5a146109b957600080fd5b8063e7f781b414610902578063e89e106a14610923578063e985e9c51461093957600080fd5b8063d5abeb01116100d1578063d5abeb01146108a2578063d96b3d33146108b8578063e0c86289146108d8578063e42f7662146108ed57600080fd5b8063ca8001441461084d578063d309aa2c1461086d578063d4968fd01461088d57600080fd5b8063a035b1fe11610164578063b88d4fde1161013e578063b88d4fde146107d9578063c40d8807146107f9578063c87b56dd1461080c578063ca026db21461082c57600080fd5b8063a035b1fe1461078d578063a22cb465146107a3578063a84a7992146107c357600080fd5b80637771f9a4116101a05780637771f9a41461072557806380566cbe1461073a5780638da5cb5b1461075a57806395d89b411461077857600080fd5b806370a08231146106db578063715018a6146106fb57806375034f8f1461071057600080fd5b80632b8b3475116102a057806346a7dadc1161023e5780635c975abb116102185780635c975abb1461066f5780636352211e146106905780636473e850146106b05780636c0360eb146106c657600080fd5b806346a7dadc1461060e578063518302271461062e57806355f804b31461064f57600080fd5b80632eb4a7ab1161027a5780632eb4a7ab146105a35780633ccfd60b146105b957806342842e0e146105ce57806342966c68146105ee57600080fd5b80632b8b34751461055b5780632cd981d41461057b5780632db115441461059057600080fd5b806318160ddd1161030d57806323b872dd116102e757806323b872dd146104e757806323f5c02d146105075780632520bf0414610527578063295ef7931461054857600080fd5b806318160ddd1461048e5780631d3c7b91146104b15780631fe543e3146104c757600080fd5b806306fdde031161034957806306fdde03146103f4578063081812fc14610416578063095ea7b31461044e5780630f936a7a1461046e57600080fd5b806301ffc9a71461037b57806304b4bba9146103b057806304d0a647146103c757600080fd5b3661037657005b600080fd5b34801561038757600080fd5b5061039b610396366004612956565b6109da565b60405190151581526020015b60405180910390f35b3480156103bc57600080fd5b506103c5610a2c565b005b3480156103d357600080fd5b506103e76103e236600461298f565b610ad2565b6040516103a791906129ac565b34801561040057600080fd5b50610409610bb0565b6040516103a79190612a48565b34801561042257600080fd5b50610436610431366004612a5b565b610c42565b6040516001600160a01b0390911681526020016103a7565b34801561045a57600080fd5b506103c5610469366004612a74565b610c86565b34801561047a57600080fd5b506103c5610489366004612a5b565b610d0c565b34801561049a57600080fd5b50600154600054035b6040519081526020016103a7565b3480156104bd57600080fd5b506104a3600d5481565b3480156104d357600080fd5b506103c56104e2366004612ae6565b610d3b565b3480156104f357600080fd5b506103c5610502366004612b97565b610dc3565b34801561051357600080fd5b50601554610436906001600160a01b031681565b34801561053357600080fd5b5060155461039b90600160a01b900460ff1681565b6103c5610556366004612bd8565b610dce565b34801561056757600080fd5b506103c5610576366004612a5b565b61104e565b34801561058757600080fd5b506103c56110b5565b6103c561059e366004612a5b565b611100565b3480156105af57600080fd5b506104a3600f5481565b3480156105c557600080fd5b506103c561124d565b3480156105da57600080fd5b506103c56105e9366004612b97565b611352565b3480156105fa57600080fd5b506103c5610609366004612a5b565b61136d565b34801561061a57600080fd5b506103c561062936600461298f565b611397565b34801561063a57600080fd5b5060155461039b90600160c01b900460ff1681565b34801561065b57600080fd5b506103c561066a366004612cad565b6113e3565b34801561067b57600080fd5b5060155461039b90600160a81b900460ff1681565b34801561069c57600080fd5b506104366106ab366004612a5b565b611420565b3480156106bc57600080fd5b506104a360135481565b3480156106d257600080fd5b50610409611432565b3480156106e757600080fd5b506104a36106f636600461298f565b6114c0565b34801561070757600080fd5b506103c561150e565b34801561071c57600080fd5b506103c5611544565b34801561073157600080fd5b506103c5611583565b34801561074657600080fd5b506103c5610755366004612a5b565b6115c2565b34801561076657600080fd5b506008546001600160a01b0316610436565b34801561078457600080fd5b506104096115f1565b34801561079957600080fd5b506104a360115481565b3480156107af57600080fd5b506103c56107be366004612cf5565b611600565b3480156107cf57600080fd5b506104a360125481565b3480156107e557600080fd5b506103c56107f4366004612d33565b611695565b6103c5610807366004612bd8565b6116df565b34801561081857600080fd5b50610409610827366004612a5b565b611831565b34801561083857600080fd5b5060155461039b90600160b81b900460ff1681565b34801561085957600080fd5b506103c5610868366004612a74565b6119cf565b34801561087957600080fd5b506103c5610888366004612cad565b611a65565b34801561089957600080fd5b50610409611aa2565b3480156108ae57600080fd5b506104a360105481565b3480156108c457600080fd5b506103c56108d3366004612a5b565b611aaf565b3480156108e457600080fd5b506103c5611ade565b3480156108f957600080fd5b506103c5611c2b565b34801561090e57600080fd5b5060155461039b90600160c81b900460ff1681565b34801561092f57600080fd5b506104a3600e5481565b34801561094557600080fd5b5061039b610954366004612db2565b611c76565b34801561096557600080fd5b506103c5610974366004612a5b565b611d34565b34801561098557600080fd5b506103c5610994366004612a5b565b611d63565b3480156109a557600080fd5b506103c56109b436600461298f565b611e09565b3480156109c557600080fd5b5060155461039b90600160b01b900460ff1681565b60006001600160e01b031982166380ac58cd60e01b1480610a0b57506001600160e01b03198216635b5e139f60e01b145b80610a2657506301ffc9a760e01b6001600160e01b03198316145b92915050565b6008546001600160a01b03163314610a5f5760405162461bcd60e51b8152600401610a5690612de0565b60405180910390fd5b601554600160a01b900460ff161515600114610abd5760405162461bcd60e51b815260206004820152601f60248201527f636f6c6c656374696f6e206861736e2774206265656e2073687566666c6564006044820152606401610a56565b6015805460ff60c01b1916600160c01b179055565b60606000610adf836114c0565b90506000816001600160401b03811115610afb57610afb612aa0565b604051908082528060200260200182016040528015610b24578160200160208202803683370190505b5090506000805b8381108015610b3c57506010548211155b15610ba6576000610b4c83611420565b9050866001600160a01b0316816001600160a01b031603610b935782848381518110610b7a57610b7a612e15565b602090810291909101015281610b8f81612e41565b9250505b82610b9d81612e41565b93505050610b2b565b5090949350505050565b606060028054610bbf90612e5a565b80601f0160208091040260200160405190810160405280929190818152602001828054610beb90612e5a565b8015610c385780601f10610c0d57610100808354040283529160200191610c38565b820191906000526020600020905b815481529060010190602001808311610c1b57829003601f168201915b5050505050905090565b6000610c4d82611eb0565b610c6a576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610c9182611420565b9050806001600160a01b0316836001600160a01b031603610cc55760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614610cfc57610cdf8133611c76565b610cfc576040516367d9dca160e11b815260040160405180910390fd5b610d07838383611edb565b505050565b6008546001600160a01b03163314610d365760405162461bcd60e51b8152600401610a5690612de0565b601255565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614610db55760405163073e64fd60e21b81523360048201526001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000166024820152604401610a56565b610dbf8282611f37565b5050565b610d07838383611f71565b6040516bffffffffffffffffffffffff193360601b16602082015282908290600090603401604051602081830303815290604052805190602001209050610e4c83838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600f54915084905061214c565b610e8f5760405162461bcd60e51b8152602060048201526014602482015273139bdd081a5b881d1a19481dda1a5d195b1a5cdd60621b6044820152606401610a56565b601554600160a81b900460ff1615610eb95760405162461bcd60e51b8152600401610a5690612e94565b601554600160b01b900460ff16158015610edd5750601554600160b81b900460ff16155b610ef95760405162461bcd60e51b8152600401610a5690612ebd565b60125433600090815260056020526040902054600160401b90046001600160401b03165b610f279088612ee1565b1115610f885760405162461bcd60e51b815260206004820152602a60248201527f52657175657420746f6f206d75636820666f7220612077616c6c6574206174206044820152697468697320737461676560b01b6064820152608401610a56565b60105460015460005403610f9c9088612ee1565b1115610fea5760405162461bcd60e51b815260206004820152601b60248201527f52657175657374207375706572696f72206d617820537570706c7900000000006044820152606401610a56565b85601154610ff89190612ef9565b34101561103c5760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742066756e647360701b6044820152606401610a56565b6110463387612162565b505050505050565b601554600160c81b900460ff166110a75760405162461bcd60e51b815260206004820152601860248201527f7075626c6963206275726e20756e617574686f72697a656400000000000000006044820152606401610a56565b6110b281600161217c565b50565b6008546001600160a01b031633146110df5760405162461bcd60e51b8152600401610a5690612de0565b6015805460ff60a81b198116600160a81b9182900460ff1615909102179055565b32331461113c5760405162461bcd60e51b815260206004820152600a6024820152692737ba1030903ab9b2b960b11b6044820152606401610a56565b601554600160a81b900460ff16156111665760405162461bcd60e51b8152600401610a5690612e94565b601554600160b81b900460ff1661118f5760405162461bcd60e51b8152600401610a5690612ebd565b601054600154600054036111a39083612ee1565b11156111f15760405162461bcd60e51b815260206004820152601e60248201527f52657175657374207375706572696f7220746f206d617820537570706c7900006044820152606401610a56565b806011546111ff9190612ef9565b3410156112435760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742066756e647360701b6044820152606401610a56565b6110b23382612162565b6008546001600160a01b031633146112775760405162461bcd60e51b8152600401610a5690612de0565b476000036112bd5760405162461bcd60e51b81526020600482015260136024820152724e6f7468696e6720746f20776974686472617760681b6044820152606401610a56565b6014546040516000916001600160a01b03169047908381818185875af1925050503d806000811461130a576040519150601f19603f3d011682016040523d82523d6000602084013e61130f565b606091505b50509050806110b25760405162461bcd60e51b815260206004820152600f60248201526e1d1c985b9cd9995c8819985a5b1959608a1b6044820152606401610a56565b610d0783838360405180602001604052806000815250611695565b6008546001600160a01b031633146110a75760405162461bcd60e51b8152600401610a5690612de0565b6008546001600160a01b031633146113c15760405162461bcd60e51b8152600401610a5690612de0565b601580546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b0316331461140d5760405162461bcd60e51b8152600401610a5690612de0565b8051610dbf9060169060208401906128a7565b600061142b8261232f565b5192915050565b6016805461143f90612e5a565b80601f016020809104026020016040519081016040528092919081815260200182805461146b90612e5a565b80156114b85780601f1061148d576101008083540402835291602001916114b8565b820191906000526020600020905b81548152906001019060200180831161149b57829003601f168201915b505050505081565b60006001600160a01b0382166114e9576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b031633146115385760405162461bcd60e51b8152600401610a5690612de0565b6115426000612449565b565b6008546001600160a01b0316331461156e5760405162461bcd60e51b8152600401610a5690612de0565b6015805460ff60b01b1916600160b01b179055565b6008546001600160a01b031633146115ad5760405162461bcd60e51b8152600401610a5690612de0565b6015805460ff60b81b1916600160b81b179055565b6008546001600160a01b031633146115ec5760405162461bcd60e51b8152600401610a5690612de0565b601355565b606060038054610bbf90612e5a565b336001600160a01b038316036116295760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6116a0848484611f71565b6001600160a01b0383163b156116d9576116bc8484848461249b565b6116d9576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6040516bffffffffffffffffffffffff193360601b1660208201528290829060009060340160405160208183030381529060405280519060200120905061175d83838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600f54915084905061214c565b6117a05760405162461bcd60e51b8152602060048201526014602482015273139bdd081a5b881d1a19481dda1a5d195b1a5cdd60621b6044820152606401610a56565b601554600160a81b900460ff16156117ca5760405162461bcd60e51b8152600401610a5690612e94565b601554600160b01b900460ff1680156117ed5750601554600160b81b900460ff16155b6118095760405162461bcd60e51b8152600401610a5690612ebd565b60135433600090815260056020526040902054600160401b90046001600160401b0316610f1d565b606061183c82611eb0565b6118a05760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610a56565b601554600160c01b900460ff16151560000361194857601780546118c390612e5a565b80601f01602080910402602001604051908101604052809291908181526020018280546118ef90612e5a565b801561193c5780601f106119115761010080835404028352916020019161193c565b820191906000526020600020905b81548152906001019060200180831161191f57829003601f168201915b50505050509050919050565b6000611952612586565b9050600060105484600d546119679190612ee1565b6119719190612f2e565b61197c906001612ee1565b9050600082511161199c57604051806020016040528060008152506119c7565b816119a682612595565b6040516020016119b7929190612f42565b6040516020818303038152906040525b949350505050565b6008546001600160a01b031633146119f95760405162461bcd60e51b8152600401610a5690612de0565b60105460015460005403611a0d9083612ee1565b1115611a5b5760405162461bcd60e51b815260206004820152601b60248201527f52657175657374207375706572696f72206d617820537570706c7900000000006044820152606401610a56565b610dbf8282612162565b6008546001600160a01b03163314611a8f5760405162461bcd60e51b8152600401610a5690612de0565b8051610dbf9060179060208401906128a7565b6017805461143f90612e5a565b6008546001600160a01b03163314611ad95760405162461bcd60e51b8152600401610a5690612de0565b600f55565b6008546001600160a01b03163314611b085760405162461bcd60e51b8152600401610a5690612de0565b601554600160a01b900460ff1615611b595760405162461bcd60e51b815260206004820152601460248201527353687566666c6520616c726561647920646f6e6560601b6044820152606401610a56565b600954600b54600c546040516305d3b1d360e41b81526004810192909252600160a01b83046001600160401b03166024830152640100000000810461ffff16604483015263ffffffff808216606484015266010000000000009091041660848201526001600160a01b0390911690635d3b1d309060a4016020604051808303816000875af1158015611bef573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c139190612f81565b600e556015805460ff60a01b1916600160a01b179055565b6008546001600160a01b03163314611c555760405162461bcd60e51b8152600401610a5690612de0565b6015805460ff60c81b198116600160c81b9182900460ff1615909102179055565b60155460405163c455279160e01b81526001600160a01b03848116600483015260009281169190841690829063c455279190602401602060405180830381865afa158015611cc8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cec9190612f9a565b6001600160a01b031603611d04576001915050610a26565b50506001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6008546001600160a01b03163314611d5e5760405162461bcd60e51b8152600401610a5690612de0565b601155565b6008546001600160a01b03163314611d8d5760405162461bcd60e51b8152600401610a5690612de0565b6010548110611e045760405162461bcd60e51b815260206004820152603c60248201527f596f752074727920746f20696e637265617365207468652073757070706c792e60448201527f204465637265617365206f6e6c7920697320617574686f72697a6564000000006064820152608401610a56565b601055565b6008546001600160a01b03163314611e335760405162461bcd60e51b8152600401610a5690612de0565b6001600160a01b038116611e985760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a56565b6110b281612449565b6001600160a01b03163b151590565b6000805482108015610a26575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60105481600081518110611f4d57611f4d612e15565b6020026020010151611f5f9190612f2e565b611f6a906001612ee1565b600d555050565b6000611f7c8261232f565b9050836001600160a01b031681600001516001600160a01b031614611fb35760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480611fd15750611fd18533611c76565b80611fec575033611fe184610c42565b6001600160a01b0316145b90508061200c57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661203357604051633a954ecd60e21b815260040160405180910390fd5b61203f60008487611edb565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b4290921691909102178355870180845292208054919390911661211357600054821461211357805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b031660008051602061303d83398151915260405160405180910390a45050505050565b6000826121598584612695565b14949350505050565b610dbf828260405180602001604052806000815250612709565b60006121878361232f565b805190915082156121ed576000336001600160a01b03831614806121b057506121b08233611c76565b806121cb5750336121c086610c42565b6001600160a01b0316145b9050806121eb57604051632ce44b5f60e11b815260040160405180910390fd5b505b6121f960008583611edb565b6001600160a01b0380821660008181526005602090815260408083208054600160801b6000196001600160401b0380841691909101811667ffffffffffffffff198416811783900482166001908101831690930277ffffffffffffffff0000000000000000ffffffffffffffff19909416179290921783558b86526004909452828520805460ff60e01b1942909316600160a01b026001600160e01b03199091169097179690961716600160e01b1785559189018084529220805491949091166122f75760005482146122f757805460208701516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038716171781555b5050604051869250600091506001600160a01b0384169060008051602061303d833981519152908390a4505060018054810190555050565b60408051606081018252600080825260208201819052918101919091528160005481101561243057600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615159181018290529061242e5780516001600160a01b0316156123c5579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215612429579392505050565b6123c5565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906124d0903390899088908890600401612fb7565b6020604051808303816000875af192505050801561250b575060408051601f3d908101601f1916820190925261250891810190612ff4565b60015b612569573d808015612539576040519150601f19603f3d011682016040523d82523d6000602084013e61253e565b606091505b508051600003612561576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b606060168054610bbf90612e5a565b6060816000036125bc5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156125e657806125d081612e41565b91506125df9050600a83613011565b91506125c0565b6000816001600160401b0381111561260057612600612aa0565b6040519080825280601f01601f19166020018201604052801561262a576020820181803683370190505b5090505b84156119c75761263f600183613025565b915061264c600a86612f2e565b612657906030612ee1565b60f81b81838151811061266c5761266c612e15565b60200101906001600160f81b031916908160001a90535061268e600a86613011565b945061262e565b600081815b84518110156127015760008582815181106126b7576126b7612e15565b602002602001015190508083116126dd57600083815260208290526040902092506126ee565b600081815260208490526040902092505b50806126f981612e41565b91505061269a565b509392505050565b6000546001600160a01b03841661273257604051622e076360e81b815260040160405180910390fd5b826000036127535760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038416600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168b018116918217600160401b67ffffffffffffffff1990941690921783900481168b01811690920217909155858452600490925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b15612864575b60405182906001600160a01b0388169060009060008051602061303d833981519152908290a461282d600087848060010195508761249b565b61284a576040516368d2bf6b60e11b815260040160405180910390fd5b8082106127f457826000541461285f57600080fd5b612897565b5b6040516001830192906001600160a01b0388169060009060008051602061303d833981519152908290a4808210612865575b5060009081556116d99085838684565b8280546128b390612e5a565b90600052602060002090601f0160209004810192826128d5576000855561291b565b82601f106128ee57805160ff191683800117855561291b565b8280016001018555821561291b579182015b8281111561291b578251825591602001919060010190612900565b5061292792915061292b565b5090565b5b80821115612927576000815560010161292c565b6001600160e01b0319811681146110b257600080fd5b60006020828403121561296857600080fd5b813561297381612940565b9392505050565b6001600160a01b03811681146110b257600080fd5b6000602082840312156129a157600080fd5b81356129738161297a565b6020808252825182820181905260009190848201906040850190845b818110156129e4578351835292840192918401916001016129c8565b50909695505050505050565b60005b83811015612a0b5781810151838201526020016129f3565b838111156116d95750506000910152565b60008151808452612a348160208601602086016129f0565b601f01601f19169290920160200192915050565b6020815260006129736020830184612a1c565b600060208284031215612a6d57600080fd5b5035919050565b60008060408385031215612a8757600080fd5b8235612a928161297a565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715612ade57612ade612aa0565b604052919050565b60008060408385031215612af957600080fd5b823591506020808401356001600160401b0380821115612b1857600080fd5b818601915086601f830112612b2c57600080fd5b813581811115612b3e57612b3e612aa0565b8060051b9150612b4f848301612ab6565b8181529183018401918481019089841115612b6957600080fd5b938501935b83851015612b8757843582529385019390850190612b6e565b8096505050505050509250929050565b600080600060608486031215612bac57600080fd5b8335612bb78161297a565b92506020840135612bc78161297a565b929592945050506040919091013590565b600080600060408486031215612bed57600080fd5b8335925060208401356001600160401b0380821115612c0b57600080fd5b818601915086601f830112612c1f57600080fd5b813581811115612c2e57600080fd5b8760208260051b8501011115612c4357600080fd5b6020830194508093505050509250925092565b60006001600160401b03831115612c6f57612c6f612aa0565b612c82601f8401601f1916602001612ab6565b9050828152838383011115612c9657600080fd5b828260208301376000602084830101529392505050565b600060208284031215612cbf57600080fd5b81356001600160401b03811115612cd557600080fd5b8201601f81018413612ce657600080fd5b6119c784823560208401612c56565b60008060408385031215612d0857600080fd5b8235612d138161297a565b915060208301358015158114612d2857600080fd5b809150509250929050565b60008060008060808587031215612d4957600080fd5b8435612d548161297a565b93506020850135612d648161297a565b92506040850135915060608501356001600160401b03811115612d8657600080fd5b8501601f81018713612d9757600080fd5b612da687823560208401612c56565b91505092959194509250565b60008060408385031215612dc557600080fd5b8235612dd08161297a565b91506020830135612d288161297a565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201612e5357612e53612e2b565b5060010190565b600181811c90821680612e6e57607f821691505b602082108103612e8e57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600f908201526e10dbdb9d1c9858dd081c185d5cd959608a1b604082015260600190565b6020808252600a9082015269057726f6e6720737465760b41b604082015260600190565b60008219821115612ef457612ef4612e2b565b500190565b6000816000190483118215151615612f1357612f13612e2b565b500290565b634e487b7160e01b600052601260045260246000fd5b600082612f3d57612f3d612f18565b500690565b60008351612f548184602088016129f0565b835190830190612f688183602088016129f0565b64173539b7b760d91b9101908152600501949350505050565b600060208284031215612f9357600080fd5b5051919050565b600060208284031215612fac57600080fd5b81516129738161297a565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612fea90830184612a1c565b9695505050505050565b60006020828403121561300657600080fd5b815161297381612940565b60008261302057613020612f18565b500490565b60008282101561303757613037612e2b565b50039056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220d6e1ed5d50de8b0ecd28091c2292d32dcfb8f71aa6dc9c913d517a65a9e340d864736f6c634300080d0033ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000120c84f6ed84b77c6ee6a013a41c05330d8bd5366e1ba8aa2a509e39ace7a79009f000000000000000000000000ef1bdc4a00b8231a3ac9d1c7d4bb63e6fdf290c0000000000000000000000000000000000000000000000000000000000000007e000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c10000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d4e6247756b73746a38667350314d3471326e6b776e774d426772516a634a3977343545764667516951374b582f000000000000000000000000000000000000000000000000000000000000000000000000000000000041697066733a2f2f516d634574584e6579476f6669423154364e5439514a577055395a744d6837586d4a7776577456393963324d4d632f68696464656e2e6a736f6e00000000000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x60806040526004361061036f5760003560e01c806370a08231116101c6578063ca800144116100f7578063e7f781b411610095578063ee8cdd4e1161006f578063ee8cdd4e14610959578063f103b43314610979578063f2fde38b14610999578063ff700e5a146109b957600080fd5b8063e7f781b414610902578063e89e106a14610923578063e985e9c51461093957600080fd5b8063d5abeb01116100d1578063d5abeb01146108a2578063d96b3d33146108b8578063e0c86289146108d8578063e42f7662146108ed57600080fd5b8063ca8001441461084d578063d309aa2c1461086d578063d4968fd01461088d57600080fd5b8063a035b1fe11610164578063b88d4fde1161013e578063b88d4fde146107d9578063c40d8807146107f9578063c87b56dd1461080c578063ca026db21461082c57600080fd5b8063a035b1fe1461078d578063a22cb465146107a3578063a84a7992146107c357600080fd5b80637771f9a4116101a05780637771f9a41461072557806380566cbe1461073a5780638da5cb5b1461075a57806395d89b411461077857600080fd5b806370a08231146106db578063715018a6146106fb57806375034f8f1461071057600080fd5b80632b8b3475116102a057806346a7dadc1161023e5780635c975abb116102185780635c975abb1461066f5780636352211e146106905780636473e850146106b05780636c0360eb146106c657600080fd5b806346a7dadc1461060e578063518302271461062e57806355f804b31461064f57600080fd5b80632eb4a7ab1161027a5780632eb4a7ab146105a35780633ccfd60b146105b957806342842e0e146105ce57806342966c68146105ee57600080fd5b80632b8b34751461055b5780632cd981d41461057b5780632db115441461059057600080fd5b806318160ddd1161030d57806323b872dd116102e757806323b872dd146104e757806323f5c02d146105075780632520bf0414610527578063295ef7931461054857600080fd5b806318160ddd1461048e5780631d3c7b91146104b15780631fe543e3146104c757600080fd5b806306fdde031161034957806306fdde03146103f4578063081812fc14610416578063095ea7b31461044e5780630f936a7a1461046e57600080fd5b806301ffc9a71461037b57806304b4bba9146103b057806304d0a647146103c757600080fd5b3661037657005b600080fd5b34801561038757600080fd5b5061039b610396366004612956565b6109da565b60405190151581526020015b60405180910390f35b3480156103bc57600080fd5b506103c5610a2c565b005b3480156103d357600080fd5b506103e76103e236600461298f565b610ad2565b6040516103a791906129ac565b34801561040057600080fd5b50610409610bb0565b6040516103a79190612a48565b34801561042257600080fd5b50610436610431366004612a5b565b610c42565b6040516001600160a01b0390911681526020016103a7565b34801561045a57600080fd5b506103c5610469366004612a74565b610c86565b34801561047a57600080fd5b506103c5610489366004612a5b565b610d0c565b34801561049a57600080fd5b50600154600054035b6040519081526020016103a7565b3480156104bd57600080fd5b506104a3600d5481565b3480156104d357600080fd5b506103c56104e2366004612ae6565b610d3b565b3480156104f357600080fd5b506103c5610502366004612b97565b610dc3565b34801561051357600080fd5b50601554610436906001600160a01b031681565b34801561053357600080fd5b5060155461039b90600160a01b900460ff1681565b6103c5610556366004612bd8565b610dce565b34801561056757600080fd5b506103c5610576366004612a5b565b61104e565b34801561058757600080fd5b506103c56110b5565b6103c561059e366004612a5b565b611100565b3480156105af57600080fd5b506104a3600f5481565b3480156105c557600080fd5b506103c561124d565b3480156105da57600080fd5b506103c56105e9366004612b97565b611352565b3480156105fa57600080fd5b506103c5610609366004612a5b565b61136d565b34801561061a57600080fd5b506103c561062936600461298f565b611397565b34801561063a57600080fd5b5060155461039b90600160c01b900460ff1681565b34801561065b57600080fd5b506103c561066a366004612cad565b6113e3565b34801561067b57600080fd5b5060155461039b90600160a81b900460ff1681565b34801561069c57600080fd5b506104366106ab366004612a5b565b611420565b3480156106bc57600080fd5b506104a360135481565b3480156106d257600080fd5b50610409611432565b3480156106e757600080fd5b506104a36106f636600461298f565b6114c0565b34801561070757600080fd5b506103c561150e565b34801561071c57600080fd5b506103c5611544565b34801561073157600080fd5b506103c5611583565b34801561074657600080fd5b506103c5610755366004612a5b565b6115c2565b34801561076657600080fd5b506008546001600160a01b0316610436565b34801561078457600080fd5b506104096115f1565b34801561079957600080fd5b506104a360115481565b3480156107af57600080fd5b506103c56107be366004612cf5565b611600565b3480156107cf57600080fd5b506104a360125481565b3480156107e557600080fd5b506103c56107f4366004612d33565b611695565b6103c5610807366004612bd8565b6116df565b34801561081857600080fd5b50610409610827366004612a5b565b611831565b34801561083857600080fd5b5060155461039b90600160b81b900460ff1681565b34801561085957600080fd5b506103c5610868366004612a74565b6119cf565b34801561087957600080fd5b506103c5610888366004612cad565b611a65565b34801561089957600080fd5b50610409611aa2565b3480156108ae57600080fd5b506104a360105481565b3480156108c457600080fd5b506103c56108d3366004612a5b565b611aaf565b3480156108e457600080fd5b506103c5611ade565b3480156108f957600080fd5b506103c5611c2b565b34801561090e57600080fd5b5060155461039b90600160c81b900460ff1681565b34801561092f57600080fd5b506104a3600e5481565b34801561094557600080fd5b5061039b610954366004612db2565b611c76565b34801561096557600080fd5b506103c5610974366004612a5b565b611d34565b34801561098557600080fd5b506103c5610994366004612a5b565b611d63565b3480156109a557600080fd5b506103c56109b436600461298f565b611e09565b3480156109c557600080fd5b5060155461039b90600160b01b900460ff1681565b60006001600160e01b031982166380ac58cd60e01b1480610a0b57506001600160e01b03198216635b5e139f60e01b145b80610a2657506301ffc9a760e01b6001600160e01b03198316145b92915050565b6008546001600160a01b03163314610a5f5760405162461bcd60e51b8152600401610a5690612de0565b60405180910390fd5b601554600160a01b900460ff161515600114610abd5760405162461bcd60e51b815260206004820152601f60248201527f636f6c6c656374696f6e206861736e2774206265656e2073687566666c6564006044820152606401610a56565b6015805460ff60c01b1916600160c01b179055565b60606000610adf836114c0565b90506000816001600160401b03811115610afb57610afb612aa0565b604051908082528060200260200182016040528015610b24578160200160208202803683370190505b5090506000805b8381108015610b3c57506010548211155b15610ba6576000610b4c83611420565b9050866001600160a01b0316816001600160a01b031603610b935782848381518110610b7a57610b7a612e15565b602090810291909101015281610b8f81612e41565b9250505b82610b9d81612e41565b93505050610b2b565b5090949350505050565b606060028054610bbf90612e5a565b80601f0160208091040260200160405190810160405280929190818152602001828054610beb90612e5a565b8015610c385780601f10610c0d57610100808354040283529160200191610c38565b820191906000526020600020905b815481529060010190602001808311610c1b57829003601f168201915b5050505050905090565b6000610c4d82611eb0565b610c6a576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610c9182611420565b9050806001600160a01b0316836001600160a01b031603610cc55760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614610cfc57610cdf8133611c76565b610cfc576040516367d9dca160e11b815260040160405180910390fd5b610d07838383611edb565b505050565b6008546001600160a01b03163314610d365760405162461bcd60e51b8152600401610a5690612de0565b601255565b336001600160a01b037f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e699091614610db55760405163073e64fd60e21b81523360048201526001600160a01b037f000000000000000000000000271682deb8c4e0901d1a1550ad2e64d568e69909166024820152604401610a56565b610dbf8282611f37565b5050565b610d07838383611f71565b6040516bffffffffffffffffffffffff193360601b16602082015282908290600090603401604051602081830303815290604052805190602001209050610e4c83838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600f54915084905061214c565b610e8f5760405162461bcd60e51b8152602060048201526014602482015273139bdd081a5b881d1a19481dda1a5d195b1a5cdd60621b6044820152606401610a56565b601554600160a81b900460ff1615610eb95760405162461bcd60e51b8152600401610a5690612e94565b601554600160b01b900460ff16158015610edd5750601554600160b81b900460ff16155b610ef95760405162461bcd60e51b8152600401610a5690612ebd565b60125433600090815260056020526040902054600160401b90046001600160401b03165b610f279088612ee1565b1115610f885760405162461bcd60e51b815260206004820152602a60248201527f52657175657420746f6f206d75636820666f7220612077616c6c6574206174206044820152697468697320737461676560b01b6064820152608401610a56565b60105460015460005403610f9c9088612ee1565b1115610fea5760405162461bcd60e51b815260206004820152601b60248201527f52657175657374207375706572696f72206d617820537570706c7900000000006044820152606401610a56565b85601154610ff89190612ef9565b34101561103c5760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742066756e647360701b6044820152606401610a56565b6110463387612162565b505050505050565b601554600160c81b900460ff166110a75760405162461bcd60e51b815260206004820152601860248201527f7075626c6963206275726e20756e617574686f72697a656400000000000000006044820152606401610a56565b6110b281600161217c565b50565b6008546001600160a01b031633146110df5760405162461bcd60e51b8152600401610a5690612de0565b6015805460ff60a81b198116600160a81b9182900460ff1615909102179055565b32331461113c5760405162461bcd60e51b815260206004820152600a6024820152692737ba1030903ab9b2b960b11b6044820152606401610a56565b601554600160a81b900460ff16156111665760405162461bcd60e51b8152600401610a5690612e94565b601554600160b81b900460ff1661118f5760405162461bcd60e51b8152600401610a5690612ebd565b601054600154600054036111a39083612ee1565b11156111f15760405162461bcd60e51b815260206004820152601e60248201527f52657175657374207375706572696f7220746f206d617820537570706c7900006044820152606401610a56565b806011546111ff9190612ef9565b3410156112435760405162461bcd60e51b8152602060048201526012602482015271496e73756666696369656e742066756e647360701b6044820152606401610a56565b6110b23382612162565b6008546001600160a01b031633146112775760405162461bcd60e51b8152600401610a5690612de0565b476000036112bd5760405162461bcd60e51b81526020600482015260136024820152724e6f7468696e6720746f20776974686472617760681b6044820152606401610a56565b6014546040516000916001600160a01b03169047908381818185875af1925050503d806000811461130a576040519150601f19603f3d011682016040523d82523d6000602084013e61130f565b606091505b50509050806110b25760405162461bcd60e51b815260206004820152600f60248201526e1d1c985b9cd9995c8819985a5b1959608a1b6044820152606401610a56565b610d0783838360405180602001604052806000815250611695565b6008546001600160a01b031633146110a75760405162461bcd60e51b8152600401610a5690612de0565b6008546001600160a01b031633146113c15760405162461bcd60e51b8152600401610a5690612de0565b601580546001600160a01b0319166001600160a01b0392909216919091179055565b6008546001600160a01b0316331461140d5760405162461bcd60e51b8152600401610a5690612de0565b8051610dbf9060169060208401906128a7565b600061142b8261232f565b5192915050565b6016805461143f90612e5a565b80601f016020809104026020016040519081016040528092919081815260200182805461146b90612e5a565b80156114b85780601f1061148d576101008083540402835291602001916114b8565b820191906000526020600020905b81548152906001019060200180831161149b57829003601f168201915b505050505081565b60006001600160a01b0382166114e9576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600560205260409020546001600160401b031690565b6008546001600160a01b031633146115385760405162461bcd60e51b8152600401610a5690612de0565b6115426000612449565b565b6008546001600160a01b0316331461156e5760405162461bcd60e51b8152600401610a5690612de0565b6015805460ff60b01b1916600160b01b179055565b6008546001600160a01b031633146115ad5760405162461bcd60e51b8152600401610a5690612de0565b6015805460ff60b81b1916600160b81b179055565b6008546001600160a01b031633146115ec5760405162461bcd60e51b8152600401610a5690612de0565b601355565b606060038054610bbf90612e5a565b336001600160a01b038316036116295760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6116a0848484611f71565b6001600160a01b0383163b156116d9576116bc8484848461249b565b6116d9576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6040516bffffffffffffffffffffffff193360601b1660208201528290829060009060340160405160208183030381529060405280519060200120905061175d83838080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600f54915084905061214c565b6117a05760405162461bcd60e51b8152602060048201526014602482015273139bdd081a5b881d1a19481dda1a5d195b1a5cdd60621b6044820152606401610a56565b601554600160a81b900460ff16156117ca5760405162461bcd60e51b8152600401610a5690612e94565b601554600160b01b900460ff1680156117ed5750601554600160b81b900460ff16155b6118095760405162461bcd60e51b8152600401610a5690612ebd565b60135433600090815260056020526040902054600160401b90046001600160401b0316610f1d565b606061183c82611eb0565b6118a05760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610a56565b601554600160c01b900460ff16151560000361194857601780546118c390612e5a565b80601f01602080910402602001604051908101604052809291908181526020018280546118ef90612e5a565b801561193c5780601f106119115761010080835404028352916020019161193c565b820191906000526020600020905b81548152906001019060200180831161191f57829003601f168201915b50505050509050919050565b6000611952612586565b9050600060105484600d546119679190612ee1565b6119719190612f2e565b61197c906001612ee1565b9050600082511161199c57604051806020016040528060008152506119c7565b816119a682612595565b6040516020016119b7929190612f42565b6040516020818303038152906040525b949350505050565b6008546001600160a01b031633146119f95760405162461bcd60e51b8152600401610a5690612de0565b60105460015460005403611a0d9083612ee1565b1115611a5b5760405162461bcd60e51b815260206004820152601b60248201527f52657175657374207375706572696f72206d617820537570706c7900000000006044820152606401610a56565b610dbf8282612162565b6008546001600160a01b03163314611a8f5760405162461bcd60e51b8152600401610a5690612de0565b8051610dbf9060179060208401906128a7565b6017805461143f90612e5a565b6008546001600160a01b03163314611ad95760405162461bcd60e51b8152600401610a5690612de0565b600f55565b6008546001600160a01b03163314611b085760405162461bcd60e51b8152600401610a5690612de0565b601554600160a01b900460ff1615611b595760405162461bcd60e51b815260206004820152601460248201527353687566666c6520616c726561647920646f6e6560601b6044820152606401610a56565b600954600b54600c546040516305d3b1d360e41b81526004810192909252600160a01b83046001600160401b03166024830152640100000000810461ffff16604483015263ffffffff808216606484015266010000000000009091041660848201526001600160a01b0390911690635d3b1d309060a4016020604051808303816000875af1158015611bef573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c139190612f81565b600e556015805460ff60a01b1916600160a01b179055565b6008546001600160a01b03163314611c555760405162461bcd60e51b8152600401610a5690612de0565b6015805460ff60c81b198116600160c81b9182900460ff1615909102179055565b60155460405163c455279160e01b81526001600160a01b03848116600483015260009281169190841690829063c455279190602401602060405180830381865afa158015611cc8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cec9190612f9a565b6001600160a01b031603611d04576001915050610a26565b50506001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b6008546001600160a01b03163314611d5e5760405162461bcd60e51b8152600401610a5690612de0565b601155565b6008546001600160a01b03163314611d8d5760405162461bcd60e51b8152600401610a5690612de0565b6010548110611e045760405162461bcd60e51b815260206004820152603c60248201527f596f752074727920746f20696e637265617365207468652073757070706c792e60448201527f204465637265617365206f6e6c7920697320617574686f72697a6564000000006064820152608401610a56565b601055565b6008546001600160a01b03163314611e335760405162461bcd60e51b8152600401610a5690612de0565b6001600160a01b038116611e985760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610a56565b6110b281612449565b6001600160a01b03163b151590565b6000805482108015610a26575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b60105481600081518110611f4d57611f4d612e15565b6020026020010151611f5f9190612f2e565b611f6a906001612ee1565b600d555050565b6000611f7c8261232f565b9050836001600160a01b031681600001516001600160a01b031614611fb35760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480611fd15750611fd18533611c76565b80611fec575033611fe184610c42565b6001600160a01b0316145b90508061200c57604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b03841661203357604051633a954ecd60e21b815260040160405180910390fd5b61203f60008487611edb565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b4290921691909102178355870180845292208054919390911661211357600054821461211357805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b031660008051602061303d83398151915260405160405180910390a45050505050565b6000826121598584612695565b14949350505050565b610dbf828260405180602001604052806000815250612709565b60006121878361232f565b805190915082156121ed576000336001600160a01b03831614806121b057506121b08233611c76565b806121cb5750336121c086610c42565b6001600160a01b0316145b9050806121eb57604051632ce44b5f60e11b815260040160405180910390fd5b505b6121f960008583611edb565b6001600160a01b0380821660008181526005602090815260408083208054600160801b6000196001600160401b0380841691909101811667ffffffffffffffff198416811783900482166001908101831690930277ffffffffffffffff0000000000000000ffffffffffffffff19909416179290921783558b86526004909452828520805460ff60e01b1942909316600160a01b026001600160e01b03199091169097179690961716600160e01b1785559189018084529220805491949091166122f75760005482146122f757805460208701516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038716171781555b5050604051869250600091506001600160a01b0384169060008051602061303d833981519152908390a4505060018054810190555050565b60408051606081018252600080825260208201819052918101919091528160005481101561243057600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615159181018290529061242e5780516001600160a01b0316156123c5579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215612429579392505050565b6123c5565b505b604051636f96cda160e11b815260040160405180910390fd5b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906124d0903390899088908890600401612fb7565b6020604051808303816000875af192505050801561250b575060408051601f3d908101601f1916820190925261250891810190612ff4565b60015b612569573d808015612539576040519150601f19603f3d011682016040523d82523d6000602084013e61253e565b606091505b508051600003612561576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b606060168054610bbf90612e5a565b6060816000036125bc5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156125e657806125d081612e41565b91506125df9050600a83613011565b91506125c0565b6000816001600160401b0381111561260057612600612aa0565b6040519080825280601f01601f19166020018201604052801561262a576020820181803683370190505b5090505b84156119c75761263f600183613025565b915061264c600a86612f2e565b612657906030612ee1565b60f81b81838151811061266c5761266c612e15565b60200101906001600160f81b031916908160001a90535061268e600a86613011565b945061262e565b600081815b84518110156127015760008582815181106126b7576126b7612e15565b602002602001015190508083116126dd57600083815260208290526040902092506126ee565b600081815260208490526040902092505b50806126f981612e41565b91505061269a565b509392505050565b6000546001600160a01b03841661273257604051622e076360e81b815260040160405180910390fd5b826000036127535760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038416600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168b018116918217600160401b67ffffffffffffffff1990941690921783900481168b01811690920217909155858452600490925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b15612864575b60405182906001600160a01b0388169060009060008051602061303d833981519152908290a461282d600087848060010195508761249b565b61284a576040516368d2bf6b60e11b815260040160405180910390fd5b8082106127f457826000541461285f57600080fd5b612897565b5b6040516001830192906001600160a01b0388169060009060008051602061303d833981519152908290a4808210612865575b5060009081556116d99085838684565b8280546128b390612e5a565b90600052602060002090601f0160209004810192826128d5576000855561291b565b82601f106128ee57805160ff191683800117855561291b565b8280016001018555821561291b579182015b8281111561291b578251825591602001919060010190612900565b5061292792915061292b565b5090565b5b80821115612927576000815560010161292c565b6001600160e01b0319811681146110b257600080fd5b60006020828403121561296857600080fd5b813561297381612940565b9392505050565b6001600160a01b03811681146110b257600080fd5b6000602082840312156129a157600080fd5b81356129738161297a565b6020808252825182820181905260009190848201906040850190845b818110156129e4578351835292840192918401916001016129c8565b50909695505050505050565b60005b83811015612a0b5781810151838201526020016129f3565b838111156116d95750506000910152565b60008151808452612a348160208601602086016129f0565b601f01601f19169290920160200192915050565b6020815260006129736020830184612a1c565b600060208284031215612a6d57600080fd5b5035919050565b60008060408385031215612a8757600080fd5b8235612a928161297a565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715612ade57612ade612aa0565b604052919050565b60008060408385031215612af957600080fd5b823591506020808401356001600160401b0380821115612b1857600080fd5b818601915086601f830112612b2c57600080fd5b813581811115612b3e57612b3e612aa0565b8060051b9150612b4f848301612ab6565b8181529183018401918481019089841115612b6957600080fd5b938501935b83851015612b8757843582529385019390850190612b6e565b8096505050505050509250929050565b600080600060608486031215612bac57600080fd5b8335612bb78161297a565b92506020840135612bc78161297a565b929592945050506040919091013590565b600080600060408486031215612bed57600080fd5b8335925060208401356001600160401b0380821115612c0b57600080fd5b818601915086601f830112612c1f57600080fd5b813581811115612c2e57600080fd5b8760208260051b8501011115612c4357600080fd5b6020830194508093505050509250925092565b60006001600160401b03831115612c6f57612c6f612aa0565b612c82601f8401601f1916602001612ab6565b9050828152838383011115612c9657600080fd5b828260208301376000602084830101529392505050565b600060208284031215612cbf57600080fd5b81356001600160401b03811115612cd557600080fd5b8201601f81018413612ce657600080fd5b6119c784823560208401612c56565b60008060408385031215612d0857600080fd5b8235612d138161297a565b915060208301358015158114612d2857600080fd5b809150509250929050565b60008060008060808587031215612d4957600080fd5b8435612d548161297a565b93506020850135612d648161297a565b92506040850135915060608501356001600160401b03811115612d8657600080fd5b8501601f81018713612d9757600080fd5b612da687823560208401612c56565b91505092959194509250565b60008060408385031215612dc557600080fd5b8235612dd08161297a565b91506020830135612d288161297a565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060018201612e5357612e53612e2b565b5060010190565b600181811c90821680612e6e57607f821691505b602082108103612e8e57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252600f908201526e10dbdb9d1c9858dd081c185d5cd959608a1b604082015260600190565b6020808252600a9082015269057726f6e6720737465760b41b604082015260600190565b60008219821115612ef457612ef4612e2b565b500190565b6000816000190483118215151615612f1357612f13612e2b565b500290565b634e487b7160e01b600052601260045260246000fd5b600082612f3d57612f3d612f18565b500690565b60008351612f548184602088016129f0565b835190830190612f688183602088016129f0565b64173539b7b760d91b9101908152600501949350505050565b600060208284031215612f9357600080fd5b5051919050565b600060208284031215612fac57600080fd5b81516129738161297a565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612fea90830184612a1c565b9695505050505050565b60006020828403121561300657600080fd5b815161297381612940565b60008261302057613020612f18565b500490565b60008282101561303757613037612e2b565b50039056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220d6e1ed5d50de8b0ecd28091c2292d32dcfb8f71aa6dc9c913d517a65a9e340d864736f6c634300080d0033

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

00000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000120c84f6ed84b77c6ee6a013a41c05330d8bd5366e1ba8aa2a509e39ace7a79009f000000000000000000000000ef1bdc4a00b8231a3ac9d1c7d4bb63e6fdf290c0000000000000000000000000000000000000000000000000000000000000007e000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c10000000000000000000000000000000000000000000000000000000000000036697066733a2f2f516d4e6247756b73746a38667350314d3471326e6b776e774d426772516a634a3977343545764667516951374b582f000000000000000000000000000000000000000000000000000000000000000000000000000000000041697066733a2f2f516d634574584e6579476f6669423154364e5439514a577055395a744d6837586d4a7776577456393963324d4d632f68696464656e2e6a736f6e00000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _collectionURI (string): ipfs://QmNbGukstj8fsP1M4q2nkwnwMBgrQjcJ9w45EvFgQiQ7KX/
Arg [1] : _hiddenURI (string): ipfs://QmcEtXNeyGofiB1T6NT9QJWpU9ZtMh7XmJwvWtV99c2MMc/hidden.json
Arg [2] : _merkleRoot (bytes32): 0xc84f6ed84b77c6ee6a013a41c05330d8bd5366e1ba8aa2a509e39ace7a79009f
Arg [3] : _team (address): 0xEF1BDC4a00b8231A3ac9D1c7D4BB63E6fDF290c0
Arg [4] : subscriptionId (uint64): 126
Arg [5] : _proxyAddress (address): 0xa5409ec958C83C3f309868babACA7c86DCB077c1

-----Encoded View---------------
13 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [2] : c84f6ed84b77c6ee6a013a41c05330d8bd5366e1ba8aa2a509e39ace7a79009f
Arg [3] : 000000000000000000000000ef1bdc4a00b8231a3ac9d1c7d4bb63e6fdf290c0
Arg [4] : 000000000000000000000000000000000000000000000000000000000000007e
Arg [5] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000036
Arg [7] : 697066733a2f2f516d4e6247756b73746a38667350314d3471326e6b776e774d
Arg [8] : 426772516a634a3977343545764667516951374b582f00000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000041
Arg [10] : 697066733a2f2f516d634574584e6579476f6669423154364e5439514a577055
Arg [11] : 395a744d6837586d4a7776577456393963324d4d632f68696464656e2e6a736f
Arg [12] : 6e00000000000000000000000000000000000000000000000000000000000000


Loading...
Loading
Loading...
Loading
[ Download: CSV Export  ]
[ Download: CSV Export  ]

A token is a representation of an on-chain or off-chain asset. The token page shows information such as price, total supply, holders, transfers and social links. Learn more about this page in our Knowledge Base.