ETH Price: $2,944.43 (-3.94%)
Gas: 2 Gwei

Token

11 Captain's Club (11CC)
 

Overview

Max Total Supply

1,111 11CC

Holders

586

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
2 11CC
0x1158094cd0EFcC2d0B85E6C3760Bd92e2C47e919
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:
MiamiNFT

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 17 : MiamiNFT.sol
//SPDX-License-Identifier: MIT

pragma solidity 0.8.10;

import "erc721a/contracts/ERC721A.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";

contract MiamiNFT is ERC721A, Ownable, ReentrancyGuard, VRFConsumerBase {

    // Type Declarations
    struct VipMerkleRoots {
        bytes32 first;
        bytes32 second;
    }
    
    struct VrfConstructorParameters {
        address coordinator;
        address linkToken;
        bytes32 keyHash;
        uint256 fee;
    }

    // State Variables
    uint256 public immutable MAX_MINT_PER_BLOCK = 100;

    bytes32 public firstVipMerkleRoot;
    bytes32 public secondVipMerkleRoot;
    string private _baseTokenURI;

    bytes32 public immutable keyHash;
    uint256 public immutable fee;
    uint256 public immutable totalLimit;
    uint256 public immutable saleLimitPerAddress;
    uint256 public start;
    uint256 public immutable firstVipTotalLimit;
    uint256 public firstVipDuration;
    uint256 public secondVipDuration;
    bytes32 public provenanceHash;
    uint256 public priceInWeiFirstPresale;
    uint256 public priceInWeiSecondPresale;
    uint256 public priceInWeiPublicSale;
    uint256 public firstVipMinted;
    uint256 public remainingOwnerMintableAmount;
    uint256 public startingIndex;
    bool public isOwnerClaimActive;
    bool public isStartingIndexRequested;
    bool public active = true;

    // Mappings
    mapping (address => uint8) public purchasedByAddress;

    // Events
    event StartingIndexSet(uint256 startingIndex);
    event TokenMint(address indexed target, uint256 amount);
    event ActiveSet(bool active);
    event DurationSet(uint256 start, uint256 firstVipDuration, uint256 secondVipDuration);

    // Modifiers
    modifier onlyActive() {
        require(active, "Inactive");
        _;
    }

    modifier onlyInactive() {
        require(!active, "Public sale is active");
        _;
    }

    modifier onlyPublicSale(uint256 _amount) {
        require(msg.sender == tx.origin, "Buyer must be EOA");
        uint256 secondVipEnd = start + firstVipDuration + secondVipDuration;
        require(block.timestamp > secondVipEnd, "Public sale hasn't started");
        require(purchasedByAddress[msg.sender] + _amount <= saleLimitPerAddress, "Maximum mintable amount exceed");
        _;
    }

    modifier onlyAllowListed(bytes32[] calldata _merkleProof, uint8 _amount) {
        uint256 firstVipEnd = start + firstVipDuration;

        if(block.timestamp < start || block.timestamp > firstVipEnd + secondVipDuration) {
            revert("AllowList sale hasn't started or finished already");
        }

        require(purchasedByAddress[msg.sender] + _amount <= saleLimitPerAddress, "Maximum mintable amount exceed");
        bytes32 leaf = keccak256(abi.encodePacked(msg.sender));

        if(block.timestamp >= start && block.timestamp <= firstVipEnd) {
            firstVipMinted += _amount;
            require(firstVipMinted <= firstVipTotalLimit, "Maximum mintable amount exceed");
            require(MerkleProof.verify(_merkleProof, firstVipMerkleRoot, leaf), "Not allowListed");
        } else if(block.timestamp > firstVipEnd && block.timestamp <= firstVipEnd + secondVipDuration) {
            require(MerkleProof.verify(_merkleProof, secondVipMerkleRoot, leaf), "Not allowListed");
        } 
        _;
    }

    constructor(
        string memory name,
        string memory symbol,
        string memory baseTokenURI,
        uint256[3] memory _pricesInWei,
        uint256[4] memory _limits,
        uint256 _start,
        uint256 _firstVipDuration,
        uint256 _secondVipDuration,
        VipMerkleRoots memory vipMerkleRoots,
        bytes32 _provenanceHash,
        VrfConstructorParameters memory vrf
    ) ERC721A(name, symbol) VRFConsumerBase(vrf.coordinator, vrf.linkToken) {
        require(_limits[2] + _limits[3] <= _limits[0], "Sum of limits must not be bigger then total limit");

        _baseTokenURI = baseTokenURI;
        priceInWeiFirstPresale = _pricesInWei[0];
        priceInWeiSecondPresale = _pricesInWei[1];
        priceInWeiPublicSale = _pricesInWei[2];
        totalLimit = _limits[0];
        saleLimitPerAddress = _limits[1];
        firstVipTotalLimit = _limits[2];
        remainingOwnerMintableAmount = _limits[3];
        start = _start;
        firstVipDuration = _firstVipDuration;
        secondVipDuration = _secondVipDuration;
        firstVipMerkleRoot = vipMerkleRoots.first;
        secondVipMerkleRoot = vipMerkleRoots.second;
        provenanceHash = _provenanceHash;
        keyHash = vrf.keyHash;
        fee = vrf.fee;
    }

    // External Functions
    function flipActive() external onlyOwner {
        active = !active;
        emit ActiveSet(active);
    }

    function flipOwnerClaimActive() external onlyOwner {
        isOwnerClaimActive = !isOwnerClaimActive;
    }

    function setFirstVipMerkleRoot(bytes32 _firstVipMerkleRoot) external onlyOwner {
        firstVipMerkleRoot = _firstVipMerkleRoot;
    }

    function setPriceFirstPresale(uint256 _priceInWei) external onlyOwner {
        priceInWeiFirstPresale = _priceInWei;
    }

    function setSecondVipMerkleRoot(bytes32 _secondVipMerkleRoot) external onlyOwner {
        secondVipMerkleRoot = _secondVipMerkleRoot;
    }

    function setPriceSecondPresale(uint256 _priceInWei) external onlyOwner {
        priceInWeiSecondPresale = _priceInWei;
    }

    function setPricePublicSale(uint256 _priceInWei) external onlyOwner {
        priceInWeiPublicSale = _priceInWei;
    }

    function setDurationValues(uint256 _start, uint256 _firstVipDuration, uint256 _secondVipDuration) external onlyOwner {
        start = _start;
        firstVipDuration = _firstVipDuration;
        secondVipDuration = _secondVipDuration;

        emit DurationSet(start, firstVipDuration, secondVipDuration);
    }

    function setBaseURI(string memory baseTokenURI) external onlyOwner {
        _baseTokenURI = baseTokenURI;
    }

    function setProvenanceHash(bytes32 _provenanceHash) external onlyOwner {
        provenanceHash = _provenanceHash;
    }

    function buyTokensFromAllowList(bytes32[] calldata _merkleProof, uint8 _amount) external payable onlyAllowListed(_merkleProof, _amount) {
        buyTokens(_amount);
    }

    function buyTokensFromPublicSale(uint8 _amount) external payable onlyPublicSale(_amount) {
        buyTokens(_amount);
    }

    function mintUnsold(address _to, uint256 _amount) external onlyOwner onlyInactive {
        require(_amount <= MAX_MINT_PER_BLOCK, "Amount cannot exceed MAX_MINT_PER_BLOCK");
        require(totalSupply() + _amount <= totalLimit, "Global limit amount reached");

        _safeMint(_to, _amount);
        emit TokenMint(_to, _amount);
    }

    function withdraw() external onlyOwner {
        address payable to = payable(msg.sender);
        to.transfer(address(this).balance);
    }

    function ownerClaim(address _to, uint256 _amount) external onlyOwner {
        require(_amount <= MAX_MINT_PER_BLOCK, "Amount cannot exceed MAX_MINT_PER_BLOCK");
        require(isOwnerClaimActive, "Claim by owner is not active");
        require(_amount <= remainingOwnerMintableAmount, "Owner mintable amount limit reached");

        remainingOwnerMintableAmount -= _amount;
        _safeMint(_to, _amount);
    }

    function requestRandomness() external onlyOwner returns (bytes32 requestId) {
        require(!isStartingIndexRequested, "Starting Index already requested");
        require(
            LINK.balanceOf(address(this)) >= fee,
            "Not enough LINK"
        );
        isStartingIndexRequested = true;
        return requestRandomness(keyHash, fee);
    }

    function baseURI() external view returns (string memory) {
        return _baseURI();
    }

    // Internal Functions
    function _baseURI() internal view override returns (string memory) {
        return _baseTokenURI;
    }

    function fulfillRandomness(bytes32 requestId, uint256 randomness) internal override {
        startingIndex = randomness % totalSupply();
        emit StartingIndexSet(startingIndex);
    }

    // Private Functions
    function buyTokens(uint8 _amount) private onlyActive nonReentrant {
        require(_amount > 0, "Invalid amount of NFT");
        uint256 mintPrice = getPrice() * _amount;
        require(msg.value >= mintPrice, "There is not enough funds to buy NFT");
        require(totalSupply() + _amount <= totalLimit, "Global limit amount reached");

        purchasedByAddress[msg.sender] += _amount;

        if(msg.value - mintPrice > 0) {
            payable(msg.sender).transfer(msg.value - mintPrice);
        }

        _safeMint(msg.sender, _amount);
        emit TokenMint(msg.sender, _amount);
    }

    
    function getPrice() private view returns(uint256) {
        // First Vip Sale
        uint256 firstVipEnd = start + firstVipDuration;
        if(block.timestamp >= start && block.timestamp <= firstVipEnd){
            return priceInWeiFirstPresale;
        } 
        // Second Vip Sale
        if(block.timestamp > firstVipEnd && block.timestamp <= firstVipEnd + secondVipDuration) {
            return priceInWeiSecondPresale;
        }

        // Public sale
        return priceInWeiPublicSale;
    }
}

File 2 of 17 : 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 17 : 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 4 of 17 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 5 of 17 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.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.
 */
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 Merklee 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 6 of 17 : VRFConsumerBase.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./interfaces/LinkTokenInterface.sol";

import "./VRFRequestIDBase.sol";

/** ****************************************************************************
 * @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.
 * *****************************************************************************
 * @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, _link) 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), and have told you the minimum LINK
 * @dev price for VRF service. Make sure your contract has sufficient LINK, and
 * @dev call requestRandomness(keyHash, fee, seed), where seed is the input you
 * @dev want to generate randomness from.
 *
 * @dev Once the VRFCoordinator has received and validated the oracle's response
 * @dev to your request, it will call your contract's fulfillRandomness method.
 *
 * @dev The randomness argument to fulfillRandomness is the actual random value
 * @dev generated from your seed.
 *
 * @dev The requestId argument is generated from the keyHash and the seed by
 * @dev makeRequestId(keyHash, seed). If your contract could have concurrent
 * @dev requests open, you can use the requestId to track which seed is
 * @dev associated with which randomness. See VRFRequestIDBase.sol for more
 * @dev details. (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. (Which is critical to making unpredictable randomness! See the
 * @dev next section.)
 *
 * *****************************************************************************
 * @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 ultimate input to the VRF is mixed with the block hash of the
 * @dev block in which the request is made, user-provided seeds have no impact
 * @dev on its economic security properties. They are only included for API
 * @dev compatability with previous versions of this contract.
 *
 * @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.
 */
abstract contract VRFConsumerBase is VRFRequestIDBase {
  /**
   * @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 VRFConsumerBase 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 randomness the VRF output
   */
  function fulfillRandomness(bytes32 requestId, uint256 randomness) internal virtual;

  /**
   * @dev In order to keep backwards compatibility we have kept the user
   * seed field around. We remove the use of it because given that the blockhash
   * enters later, it overrides whatever randomness the used seed provides.
   * Given that it adds no security, and can easily lead to misunderstandings,
   * we have removed it from usage and can now provide a simpler API.
   */
  uint256 private constant USER_SEED_PLACEHOLDER = 0;

  /**
   * @notice requestRandomness initiates a request for VRF output given _seed
   *
   * @dev The fulfillRandomness method receives the output, once it's provided
   * @dev by the Oracle, and verified by the vrfCoordinator.
   *
   * @dev The _keyHash must already be registered with the VRFCoordinator, and
   * @dev the _fee must exceed the fee specified during registration of the
   * @dev _keyHash.
   *
   * @dev The _seed parameter is vestigial, and is kept only for API
   * @dev compatibility with older versions. It can't *hurt* to mix in some of
   * @dev your own randomness, here, but it's not necessary because the VRF
   * @dev oracle will mix the hash of the block containing your request into the
   * @dev VRF seed it ultimately uses.
   *
   * @param _keyHash ID of public key against which randomness is generated
   * @param _fee The amount of LINK to send with the request
   *
   * @return requestId unique ID for this request
   *
   * @dev The returned requestId can be used to distinguish responses to
   * @dev concurrent requests. It is passed as the first argument to
   * @dev fulfillRandomness.
   */
  function requestRandomness(bytes32 _keyHash, uint256 _fee) internal returns (bytes32 requestId) {
    LINK.transferAndCall(vrfCoordinator, _fee, abi.encode(_keyHash, USER_SEED_PLACEHOLDER));
    // This is the seed passed to VRFCoordinator. The oracle will mix this with
    // the hash of the block containing this request to obtain the seed/input
    // which is finally passed to the VRF cryptographic machinery.
    uint256 vRFSeed = makeVRFInputSeed(_keyHash, USER_SEED_PLACEHOLDER, address(this), nonces[_keyHash]);
    // nonces[_keyHash] must stay in sync with
    // VRFCoordinator.nonces[_keyHash][this], which was incremented by the above
    // successful LINK.transferAndCall (in VRFCoordinator.randomnessRequest).
    // This provides protection against the user repeating their input seed,
    // which would result in a predictable/duplicate output, if multiple such
    // requests appeared in the same block.
    nonces[_keyHash] = nonces[_keyHash] + 1;
    return makeRequestId(_keyHash, vRFSeed);
  }

  LinkTokenInterface internal immutable LINK;
  address private immutable vrfCoordinator;

  // Nonces for each VRF key from which randomness has been requested.
  //
  // Must stay in sync with VRFCoordinator[_keyHash][this]
  mapping(bytes32 => uint256) /* keyHash */ /* nonce */
    private nonces;

  /**
   * @param _vrfCoordinator address of VRFCoordinator contract
   * @param _link address of LINK token contract
   *
   * @dev https://docs.chain.link/docs/link-token-contracts
   */
  constructor(address _vrfCoordinator, address _link) {
    vrfCoordinator = _vrfCoordinator;
    LINK = LinkTokenInterface(_link);
  }

  // rawFulfillRandomness is called by VRFCoordinator when it receives a valid VRF
  // proof. rawFulfillRandomness then calls fulfillRandomness, after validating
  // the origin of the call
  function rawFulfillRandomness(bytes32 requestId, uint256 randomness) external {
    require(msg.sender == vrfCoordinator, "Only VRFCoordinator can fulfill");
    fulfillRandomness(requestId, randomness);
  }
}

File 7 of 17 : 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 17 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

File 9 of 17 : 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 17 : 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 17 : 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 17 : 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 17 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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`, 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 Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

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

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

File 14 of 17 : 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 17 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 16 of 17 : LinkTokenInterface.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface LinkTokenInterface {
  function allowance(address owner, address spender) external view returns (uint256 remaining);

  function approve(address spender, uint256 value) external returns (bool success);

  function balanceOf(address owner) external view returns (uint256 balance);

  function decimals() external view returns (uint8 decimalPlaces);

  function decreaseApproval(address spender, uint256 addedValue) external returns (bool success);

  function increaseApproval(address spender, uint256 subtractedValue) external;

  function name() external view returns (string memory tokenName);

  function symbol() external view returns (string memory tokenSymbol);

  function totalSupply() external view returns (uint256 totalTokensIssued);

  function transfer(address to, uint256 value) external returns (bool success);

  function transferAndCall(
    address to,
    uint256 value,
    bytes calldata data
  ) external returns (bool success);

  function transferFrom(
    address from,
    address to,
    uint256 value
  ) external returns (bool success);
}

File 17 of 17 : VRFRequestIDBase.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

contract VRFRequestIDBase {
  /**
   * @notice returns the seed which is actually input to the VRF coordinator
   *
   * @dev To prevent repetition of VRF output due to repetition of the
   * @dev user-supplied seed, that seed is combined in a hash with the
   * @dev user-specific nonce, and the address of the consuming contract. The
   * @dev risk of repetition is mostly mitigated by inclusion of a blockhash in
   * @dev the final seed, but the nonce does protect against repetition in
   * @dev requests which are included in a single block.
   *
   * @param _userSeed VRF seed input provided by user
   * @param _requester Address of the requesting contract
   * @param _nonce User-specific nonce at the time of the request
   */
  function makeVRFInputSeed(
    bytes32 _keyHash,
    uint256 _userSeed,
    address _requester,
    uint256 _nonce
  ) internal pure returns (uint256) {
    return uint256(keccak256(abi.encode(_keyHash, _userSeed, _requester, _nonce)));
  }

  /**
   * @notice Returns the id for this request
   * @param _keyHash The serviceAgreement ID to be used for this request
   * @param _vRFInputSeed The seed to be passed directly to the VRF
   * @return The id for this request
   *
   * @dev Note that _vRFInputSeed is not the seed passed by the consuming
   * @dev contract, but the one generated by makeVRFInputSeed
   */
  function makeRequestId(bytes32 _keyHash, uint256 _vRFInputSeed) internal pure returns (bytes32) {
    return keccak256(abi.encodePacked(_keyHash, _vRFInputSeed));
  }
}

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":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"},{"internalType":"string","name":"baseTokenURI","type":"string"},{"internalType":"uint256[3]","name":"_pricesInWei","type":"uint256[3]"},{"internalType":"uint256[4]","name":"_limits","type":"uint256[4]"},{"internalType":"uint256","name":"_start","type":"uint256"},{"internalType":"uint256","name":"_firstVipDuration","type":"uint256"},{"internalType":"uint256","name":"_secondVipDuration","type":"uint256"},{"components":[{"internalType":"bytes32","name":"first","type":"bytes32"},{"internalType":"bytes32","name":"second","type":"bytes32"}],"internalType":"struct MiamiNFT.VipMerkleRoots","name":"vipMerkleRoots","type":"tuple"},{"internalType":"bytes32","name":"_provenanceHash","type":"bytes32"},{"components":[{"internalType":"address","name":"coordinator","type":"address"},{"internalType":"address","name":"linkToken","type":"address"},{"internalType":"bytes32","name":"keyHash","type":"bytes32"},{"internalType":"uint256","name":"fee","type":"uint256"}],"internalType":"struct MiamiNFT.VrfConstructorParameters","name":"vrf","type":"tuple"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ApprovalCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"ApprovalQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"ApprovalToCurrentOwner","type":"error"},{"inputs":[],"name":"ApproveToCaller","type":"error"},{"inputs":[],"name":"BalanceQueryForZeroAddress","type":"error"},{"inputs":[],"name":"MintToZeroAddress","type":"error"},{"inputs":[],"name":"MintZeroQuantity","type":"error"},{"inputs":[],"name":"OwnerQueryForNonexistentToken","type":"error"},{"inputs":[],"name":"TransferCallerNotOwnerNorApproved","type":"error"},{"inputs":[],"name":"TransferFromIncorrectOwner","type":"error"},{"inputs":[],"name":"TransferToNonERC721ReceiverImplementer","type":"error"},{"inputs":[],"name":"TransferToZeroAddress","type":"error"},{"inputs":[],"name":"URIQueryForNonexistentToken","type":"error"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"bool","name":"active","type":"bool"}],"name":"ActiveSet","type":"event"},{"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":false,"internalType":"uint256","name":"start","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"firstVipDuration","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"secondVipDuration","type":"uint256"}],"name":"DurationSet","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":false,"internalType":"uint256","name":"startingIndex","type":"uint256"}],"name":"StartingIndexSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"target","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"TokenMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_MINT_PER_BLOCK","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"active","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"},{"internalType":"uint8","name":"_amount","type":"uint8"}],"name":"buyTokensFromAllowList","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint8","name":"_amount","type":"uint8"}],"name":"buyTokensFromPublicSale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"fee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"firstVipDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"firstVipMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"firstVipMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"firstVipTotalLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"flipActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"flipOwnerClaimActive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isOwnerClaimActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isStartingIndexRequested","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"keyHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mintUnsold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"ownerClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"priceInWeiFirstPresale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"priceInWeiPublicSale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"priceInWeiSecondPresale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"provenanceHash","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"purchasedByAddress","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"},{"internalType":"uint256","name":"randomness","type":"uint256"}],"name":"rawFulfillRandomness","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"remainingOwnerMintableAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"requestRandomness","outputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleLimitPerAddress","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"secondVipDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"secondVipMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","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":"baseTokenURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_start","type":"uint256"},{"internalType":"uint256","name":"_firstVipDuration","type":"uint256"},{"internalType":"uint256","name":"_secondVipDuration","type":"uint256"}],"name":"setDurationValues","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_firstVipMerkleRoot","type":"bytes32"}],"name":"setFirstVipMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_priceInWei","type":"uint256"}],"name":"setPriceFirstPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_priceInWei","type":"uint256"}],"name":"setPricePublicSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_priceInWei","type":"uint256"}],"name":"setPriceSecondPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_provenanceHash","type":"bytes32"}],"name":"setProvenanceHash","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_secondVipMerkleRoot","type":"bytes32"}],"name":"setSecondVipMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"start","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"startingIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"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":"totalLimit","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

610180604052606460c0526018805462ff00001916620100001790553480156200002857600080fd5b50604051620037a7380380620037a78339810160408190526200004b9162000536565b80516020808301518d5190918e918e916200006c9160029185019062000209565b5080516200008290600390602084019062000209565b505060008055506200009433620001b7565b60016009556001600160a01b0391821660a05216608052865160608801516040890151620000c3919062000651565b1115620001305760405162461bcd60e51b815260206004820152603160248201527f53756d206f66206c696d697473206d757374206e6f7420626520626967676572604482015270081d1a195b881d1bdd185b081b1a5b5a5d607a1b606482015260840160405180910390fd5b88516200014590600d9060208c019062000209565b50875160125560208089015160135560409889015160145587516101205287810151610140528789015161016052606097880151601655600e96909655600f949094556010929092558051600b5590920151600c556011919091559182015160e05201516101005250620006b5915050565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b828054620002179062000678565b90600052602060002090601f0160209004810192826200023b576000855562000286565b82601f106200025657805160ff191683800117855562000286565b8280016001018555821562000286579182015b828111156200028657825182559160200191906001019062000269565b506200029492915062000298565b5090565b5b8082111562000294576000815560010162000299565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715620002f057620002f0620002af565b604052919050565b600082601f8301126200030a57600080fd5b81516001600160401b03811115620003265762000326620002af565b60206200033c601f8301601f19168201620002c5565b82815285828487010111156200035157600080fd5b60005b838110156200037157858101830151828201840152820162000354565b83811115620003835760008385840101525b5095945050505050565b600082601f8301126200039f57600080fd5b604051606081016001600160401b0381118282101715620003c457620003c4620002af565b604052806060840185811115620003da57600080fd5b845b81811015620003f6578051835260209283019201620003dc565b509195945050505050565b600082601f8301126200041357600080fd5b604051608081016001600160401b0381118282101715620004385762000438620002af565b604052806080840185811115620003da57600080fd5b6000604082840312156200046157600080fd5b604080519081016001600160401b0381118282101715620004865762000486620002af565b604052825181526020928301519281019290925250919050565b80516001600160a01b0381168114620004b857600080fd5b919050565b600060808284031215620004d057600080fd5b604051608081016001600160401b0381118282101715620004f557620004f5620002af565b6040529050806200050683620004a0565b81526200051660208401620004a0565b602082015260408301516040820152606083015160608201525092915050565b60008060008060008060008060008060006102808c8e0312156200055957600080fd5b8b516001600160401b038111156200057057600080fd5b6200057e8e828f01620002f8565b60208e0151909c5090506001600160401b038111156200059d57600080fd5b620005ab8e828f01620002f8565b60408e0151909b5090506001600160401b03811115620005ca57600080fd5b620005d88e828f01620002f8565b995050620005ea8d60608e016200038d565b9750620005fb8d60c08e0162000401565b96506101408c015195506101608c015194506101808c01519350620006258d6101a08e016200044e565b92506101e08c015191506200063f8d6102008e01620004bd565b90509295989b509295989b9093969950565b600082198211156200067357634e487b7160e01b600052601160045260246000fd5b500190565b600181811c908216806200068d57607f821691505b60208210811415620006af57634e487b7160e01b600052602260045260246000fd5b50919050565b60805160a05160c05160e051610100516101205161014051610160516130386200076f600039600081816103e20152610e2d01526000818161085e01528181610d6f01526114ba0152600081816107dc015281816111510152611d4a01526000818161098001528181611a240152611b2e0152600081816106600152611b0d0152600081816108100152818161111101526117df01526000818161151a0152612493015260008181611a46015261246401526130386000f3fe6080604052600436106103765760003560e01c806374c56c94116101d1578063be9a655511610102578063ddca3f43116100a0578063ef7b9beb1161006f578063ef7b9beb14610a21578063efe652a914610a37578063f2fde38b14610a79578063f8413b0714610a9957600080fd5b8063ddca3f431461096e578063e6ec320e146109a2578063e985e9c5146109c2578063eb87c19b14610a0b57600080fd5b8063c6ab67a3116100dc578063c6ab67a31461090c578063c87b56dd14610922578063c988c9a914610942578063cb774d471461095857600080fd5b8063be9a6555146108c0578063c2fadd6c146108d6578063c5ca30b1146108f657600080fd5b8063a22cb4651161016f578063afaae5fa11610149578063afaae5fa14610832578063b3ea92a11461084c578063b88d4fde14610880578063be715a66146108a057600080fd5b8063a22cb465146107aa578063a36298c7146107ca578063ae510a58146107fe57600080fd5b806383404672116101ab57806383404672146107415780638da5cb5b1461075757806394985ddd1461077557806395d89b411461079557600080fd5b806374c56c94146107025780637a3fdf9a146107185780637fa3fbbd1461072b57600080fd5b806332c4faf9116102ab57806355f804b3116102495780636b54c934116102235780636b54c934146106a25780636c0360eb146106b857806370a08231146106cd578063715018a6146106ed57600080fd5b806355f804b31461062e57806361728f391461064e5780636352211e1461068257600080fd5b80634008eae4116102855780634008eae4146105c457806342842e0e146105e4578063514ede741461060457806352d939e31461061957600080fd5b806332c4faf9146105795780633ccfd60b1461058f5780633fa3137b146105a457600080fd5b80630c8db7e01161031857806318160ddd116102f257806318160ddd14610500578063189a5bcf1461051957806323b872dd14610539578063279ad4171461055957600080fd5b80630c8db7e0146104ae5780630e4277a8146104cd57806315c96db7146104ed57600080fd5b806306fdde031161035457806306fdde0314610412578063081812fc14610434578063095ea7b31461046c578063099b6bfa1461048e57600080fd5b806301ffc9a71461037b57806302fb0c5e146103b057806306523128146103d0575b600080fd5b34801561038757600080fd5b5061039b610396366004612928565b610aae565b60405190151581526020015b60405180910390f35b3480156103bc57600080fd5b5060185461039b9062010000900460ff1681565b3480156103dc57600080fd5b506104047f000000000000000000000000000000000000000000000000000000000000000081565b6040519081526020016103a7565b34801561041e57600080fd5b50610427610b00565b6040516103a7919061299d565b34801561044057600080fd5b5061045461044f3660046129b0565b610b92565b6040516001600160a01b0390911681526020016103a7565b34801561047857600080fd5b5061048c6104873660046129e5565b610bd6565b005b34801561049a57600080fd5b5061048c6104a93660046129b0565b610c5d565b3480156104ba57600080fd5b5060185461039b90610100900460ff1681565b3480156104d957600080fd5b5061048c6104e83660046129b0565b610c95565b61048c6104fb366004612a20565b610cc4565b34801561050c57600080fd5b5060015460005403610404565b34801561052557600080fd5b5061048c6105343660046129b0565b610fa0565b34801561054557600080fd5b5061048c610554366004612aa4565b610fcf565b34801561056557600080fd5b5061048c6105743660046129b0565b610fda565b34801561058557600080fd5b50610404600b5481565b34801561059b57600080fd5b5061048c611009565b3480156105b057600080fd5b5061048c6105bf3660046129b0565b611065565b3480156105d057600080fd5b5061048c6105df3660046129e5565b611094565b3480156105f057600080fd5b5061048c6105ff366004612aa4565b611227565b34801561061057600080fd5b5061048c611242565b34801561062557600080fd5b5061048c611280565b34801561063a57600080fd5b5061048c610649366004612b6c565b61130e565b34801561065a57600080fd5b506104047f000000000000000000000000000000000000000000000000000000000000000081565b34801561068e57600080fd5b5061045461069d3660046129b0565b61134b565b3480156106ae57600080fd5b5061040460135481565b3480156106c457600080fd5b5061042761135d565b3480156106d957600080fd5b506104046106e8366004612bb5565b61136c565b3480156106f957600080fd5b5061048c6113bb565b34801561070e57600080fd5b5061040460145481565b61048c610726366004612bd0565b6113f1565b34801561073757600080fd5b5061040460125481565b34801561074d57600080fd5b50610404600f5481565b34801561076357600080fd5b506008546001600160a01b0316610454565b34801561078157600080fd5b5061048c610790366004612beb565b61150f565b3480156107a157600080fd5b50610427611591565b3480156107b657600080fd5b5061048c6107c5366004612c1b565b6115a0565b3480156107d657600080fd5b506104047f000000000000000000000000000000000000000000000000000000000000000081565b34801561080a57600080fd5b506104047f000000000000000000000000000000000000000000000000000000000000000081565b34801561083e57600080fd5b5060185461039b9060ff1681565b34801561085857600080fd5b506104047f000000000000000000000000000000000000000000000000000000000000000081565b34801561088c57600080fd5b5061048c61089b366004612c52565b611636565b3480156108ac57600080fd5b5061048c6108bb3660046129b0565b611680565b3480156108cc57600080fd5b50610404600e5481565b3480156108e257600080fd5b5061048c6108f1366004612cce565b6116af565b34801561090257600080fd5b5061040460165481565b34801561091857600080fd5b5061040460115481565b34801561092e57600080fd5b5061042761093d3660046129b0565b61172e565b34801561094e57600080fd5b5061040460155481565b34801561096457600080fd5b5061040460175481565b34801561097a57600080fd5b506104047f000000000000000000000000000000000000000000000000000000000000000081565b3480156109ae57600080fd5b5061048c6109bd3660046129e5565b6117b3565b3480156109ce57600080fd5b5061039b6109dd366004612cfa565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610a1757600080fd5b50610404600c5481565b348015610a2d57600080fd5b5061040460105481565b348015610a4357600080fd5b50610a67610a52366004612bb5565b60196020526000908152604090205460ff1681565b60405160ff90911681526020016103a7565b348015610a8557600080fd5b5061048c610a94366004612bb5565b6118ef565b348015610aa557600080fd5b5061040461198a565b60006001600160e01b031982166380ac58cd60e01b1480610adf57506001600160e01b03198216635b5e139f60e01b145b80610afa57506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060028054610b0f90612d2d565b80601f0160208091040260200160405190810160405280929190818152602001828054610b3b90612d2d565b8015610b885780601f10610b5d57610100808354040283529160200191610b88565b820191906000526020600020905b815481529060010190602001808311610b6b57829003601f168201915b5050505050905090565b6000610b9d82611b52565b610bba576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610be18261134b565b9050806001600160a01b0316836001600160a01b03161415610c165760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614610c4d57610c3081336109dd565b610c4d576040516367d9dca160e11b815260040160405180910390fd5b610c58838383611b7d565b505050565b6008546001600160a01b03163314610c905760405162461bcd60e51b8152600401610c8790612d68565b60405180910390fd5b601155565b6008546001600160a01b03163314610cbf5760405162461bcd60e51b8152600401610c8790612d68565b600b55565b8282826000600f54600e54610cd99190612db3565b9050600e54421080610cf65750601054610cf39082612db3565b42115b15610d5d5760405162461bcd60e51b815260206004820152603160248201527f416c6c6f774c6973742073616c65206861736e27742073746172746564206f726044820152702066696e697368656420616c726561647960781b6064820152608401610c87565b336000908152601960205260409020547f000000000000000000000000000000000000000000000000000000000000000090610d9d90849060ff16612dcb565b60ff161115610dbe5760405162461bcd60e51b8152600401610c8790612df0565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050600e544210158015610e095750814211155b15610eee578260ff1660156000828254610e239190612db3565b90915550506015547f00000000000000000000000000000000000000000000000000000000000000001015610e6a5760405162461bcd60e51b8152600401610c8790612df0565b610eab85858080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600b549150849050611bd9565b610ee95760405162461bcd60e51b815260206004820152600f60248201526e139bdd08185b1b1bddd31a5cdd1959608a1b6044820152606401610c87565b610f8d565b8142118015610f095750601054610f059083612db3565b4211155b15610f8d57610f4f85858080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600c549150849050611bd9565b610f8d5760405162461bcd60e51b815260206004820152600f60248201526e139bdd08185b1b1bddd31a5cdd1959608a1b6044820152606401610c87565b610f9686611bef565b5050505050505050565b6008546001600160a01b03163314610fca5760405162461bcd60e51b8152600401610c8790612d68565b600c55565b610c58838383611ea6565b6008546001600160a01b031633146110045760405162461bcd60e51b8152600401610c8790612d68565b601455565b6008546001600160a01b031633146110335760405162461bcd60e51b8152600401610c8790612d68565b604051339081904780156108fc02916000818181858888f19350505050158015611061573d6000803e3d6000fd5b5050565b6008546001600160a01b0316331461108f5760405162461bcd60e51b8152600401610c8790612d68565b601355565b6008546001600160a01b031633146110be5760405162461bcd60e51b8152600401610c8790612d68565b60185462010000900460ff161561110f5760405162461bcd60e51b81526020600482015260156024820152745075626c69632073616c652069732061637469766560581b6044820152606401610c87565b7f000000000000000000000000000000000000000000000000000000000000000081111561114f5760405162461bcd60e51b8152600401610c8790612e27565b7f00000000000000000000000000000000000000000000000000000000000000008161117e6001546000540390565b6111889190612db3565b11156111d65760405162461bcd60e51b815260206004820152601b60248201527f476c6f62616c206c696d697420616d6f756e74207265616368656400000000006044820152606401610c87565b6111e08282612095565b816001600160a01b03167f36bf5aa3964be01dbd95a0154a8930793fe68353bdc580871ffb2c911366bbc78260405161121b91815260200190565b60405180910390a25050565b610c5883838360405180602001604052806000815250611636565b6008546001600160a01b0316331461126c5760405162461bcd60e51b8152600401610c8790612d68565b6018805460ff19811660ff90911615179055565b6008546001600160a01b031633146112aa5760405162461bcd60e51b8152600401610c8790612d68565b6018805460ff62010000808304821615810262ff00001990931692909217928390556040517f73c72e6316305d5331524911633518964ce9a6074030dbe657e4d2b8a5e6685a936113049390049091161515815260200190565b60405180910390a1565b6008546001600160a01b031633146113385760405162461bcd60e51b8152600401610c8790612d68565b805161106190600d906020840190612879565b6000611356826120af565b5192915050565b60606113676121cb565b905090565b60006001600160a01b038216611395576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b031633146113e55760405162461bcd60e51b8152600401610c8790612d68565b6113ef60006121da565b565b60ff81163332146114385760405162461bcd60e51b81526020600482015260116024820152704275796572206d75737420626520454f4160781b6044820152606401610c87565b6000601054600f54600e5461144d9190612db3565b6114579190612db3565b90508042116114a85760405162461bcd60e51b815260206004820152601a60248201527f5075626c69632073616c65206861736e277420737461727465640000000000006044820152606401610c87565b336000908152601960205260409020547f0000000000000000000000000000000000000000000000000000000000000000906114e890849060ff16612db3565b11156115065760405162461bcd60e51b8152600401610c8790612df0565b610c5883611bef565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146115875760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c006044820152606401610c87565b611061828261222c565b606060038054610b0f90612d2d565b6001600160a01b0382163314156115ca5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611641848484611ea6565b6001600160a01b0383163b1561167a5761165d84848484612279565b61167a576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6008546001600160a01b031633146116aa5760405162461bcd60e51b8152600401610c8790612d68565b601255565b6008546001600160a01b031633146116d95760405162461bcd60e51b8152600401610c8790612d68565b600e839055600f829055601081905560408051848152602081018490529081018290527f0d73020f1b544cc438b3393ff7f69e158b3c3d394d86a68c74ef9d28893898819060600160405180910390a1505050565b606061173982611b52565b61175657604051630a14c4b560e41b815260040160405180910390fd5b60006117606121cb565b905080516000141561178157604051806020016040528060008152506117ac565b8061178b84612362565b60405160200161179c929190612e6e565b6040516020818303038152906040525b9392505050565b6008546001600160a01b031633146117dd5760405162461bcd60e51b8152600401610c8790612d68565b7f000000000000000000000000000000000000000000000000000000000000000081111561181d5760405162461bcd60e51b8152600401610c8790612e27565b60185460ff1661186f5760405162461bcd60e51b815260206004820152601c60248201527f436c61696d206279206f776e6572206973206e6f7420616374697665000000006044820152606401610c87565b6016548111156118cd5760405162461bcd60e51b815260206004820152602360248201527f4f776e6572206d696e7461626c6520616d6f756e74206c696d697420726561636044820152621a195960ea1b6064820152608401610c87565b80601660008282546118df9190612e9d565b9091555061106190508282612095565b6008546001600160a01b031633146119195760405162461bcd60e51b8152600401610c8790612d68565b6001600160a01b03811661197e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c87565b611987816121da565b50565b6008546000906001600160a01b031633146119b75760405162461bcd60e51b8152600401610c8790612d68565b601854610100900460ff1615611a0f5760405162461bcd60e51b815260206004820181905260248201527f5374617274696e6720496e64657820616c7265616479207265717565737465646044820152606401610c87565b6040516370a0823160e01b81523060048201527f0000000000000000000000000000000000000000000000000000000000000000907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015611a95573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ab99190612eb4565b1015611af95760405162461bcd60e51b815260206004820152600f60248201526e4e6f7420656e6f756768204c494e4b60881b6044820152606401610c87565b6018805461ff0019166101001790556113677f00000000000000000000000000000000000000000000000000000000000000007f0000000000000000000000000000000000000000000000000000000000000000612460565b6000805482108015610afa575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600082611be685846125dc565b14949350505050565b60185462010000900460ff16611c325760405162461bcd60e51b8152602060048201526008602482015267496e61637469766560c01b6044820152606401610c87565b60026009541415611c855760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c87565b600260095560ff8116611cd25760405162461bcd60e51b8152602060048201526015602482015274125b9d985b1a5908185b5bdd5b9d081bd988139195605a1b6044820152606401610c87565b60008160ff16611ce0612650565b611cea9190612ecd565b905080341015611d485760405162461bcd60e51b8152602060048201526024808201527f5468657265206973206e6f7420656e6f7567682066756e647320746f206275796044820152630813919560e21b6064820152608401610c87565b7f00000000000000000000000000000000000000000000000000000000000000008260ff16611d7a6001546000540390565b611d849190612db3565b1115611dd25760405162461bcd60e51b815260206004820152601b60248201527f476c6f62616c206c696d697420616d6f756e74207265616368656400000000006044820152606401610c87565b3360009081526019602052604081208054849290611df490849060ff16612dcb565b92506101000a81548160ff021916908360ff16021790555060008134611e1a9190612e9d565b1115611e5857336108fc611e2e8334612e9d565b6040518115909202916000818181858888f19350505050158015611e56573d6000803e3d6000fd5b505b611e65338360ff16612095565b60405160ff8316815233907f36bf5aa3964be01dbd95a0154a8930793fe68353bdc580871ffb2c911366bbc79060200160405180910390a250506001600955565b6000611eb1826120af565b9050836001600160a01b031681600001516001600160a01b031614611ee85760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480611f065750611f0685336109dd565b80611f21575033611f1684610b92565b6001600160a01b0316145b905080611f4157604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416611f6857604051633a954ecd60e21b815260040160405180910390fd5b611f7460008487611b7d565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b4290921691909102178355870180845292208054919390911661204a57600054821461204a578054602086015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b6110618282604051806020016040528060008152506126b4565b6040805160608101825260008082526020820181905291810191909152816000548110156121b257600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161515918101829052906121b05780516001600160a01b031615612146579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff16151592810192909252156121ab579392505050565b612146565b505b604051636f96cda160e11b815260040160405180910390fd5b6060600d8054610b0f90612d2d565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001546000540361223d9082612f02565b60178190556040519081527fca6fb0afaccdd6d4e6bae677f2228557803ae36f831e27606d4f4ccffc4286599060200160405180910390a15050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906122ae903390899088908890600401612f16565b6020604051808303816000875af19250505080156122e9575060408051601f3d908101601f191682019092526122e691810190612f53565b60015b612344573d808015612317576040519150601f19603f3d011682016040523d82523d6000602084013e61231c565b606091505b50805161233c576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060816123865750506040805180820190915260018152600360fc1b602082015290565b8160005b81156123b0578061239a81612f70565b91506123a99050600a83612f8b565b915061238a565b60008167ffffffffffffffff8111156123cb576123cb612ae0565b6040519080825280601f01601f1916602001820160405280156123f5576020820181803683370190505b5090505b841561235a5761240a600183612e9d565b9150612417600a86612f02565b612422906030612db3565b60f81b81838151811061243757612437612f9f565b60200101906001600160f81b031916908160001a905350612459600a86612f8b565b94506123f9565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634000aea07f0000000000000000000000000000000000000000000000000000000000000000848660006040516020016124d0929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b81526004016124fd93929190612fb5565b6020604051808303816000875af115801561251c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125409190612fe5565b506000838152600a6020818152604080842054815180840189905280830186905230606082015260808082018390528351808303909101815260a09091019092528151918301919091209387905291905261259c906001612db3565b6000858152600a602052604090205561235a8482604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b600081815b84518110156126485760008582815181106125fe576125fe612f9f565b602002602001015190508083116126245760008381526020829052604090209250612635565b600081815260208490526040902092505b508061264081612f70565b9150506125e1565b509392505050565b600080600f54600e546126639190612db3565b9050600e5442101580156126775750804211155b1561268457505060125490565b804211801561269f575060105461269b9082612db3565b4211155b156126ac57505060135490565b505060145490565b6000546001600160a01b0384166126dd57604051622e076360e81b815260040160405180910390fd5b826126fb5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038416600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff19811667ffffffffffffffff8083168b0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168b01811690920217909155858452600490925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b15612824575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46127ed6000878480600101955087612279565b61280a576040516368d2bf6b60e11b815260040160405180910390fd5b8082106127a257826000541461281f57600080fd5b612869565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210612825575b50600090815561167a9085838684565b82805461288590612d2d565b90600052602060002090601f0160209004810192826128a757600085556128ed565b82601f106128c057805160ff19168380011785556128ed565b828001600101855582156128ed579182015b828111156128ed5782518255916020019190600101906128d2565b506128f99291506128fd565b5090565b5b808211156128f957600081556001016128fe565b6001600160e01b03198116811461198757600080fd5b60006020828403121561293a57600080fd5b81356117ac81612912565b60005b83811015612960578181015183820152602001612948565b8381111561167a5750506000910152565b60008151808452612989816020860160208601612945565b601f01601f19169290920160200192915050565b6020815260006117ac6020830184612971565b6000602082840312156129c257600080fd5b5035919050565b80356001600160a01b03811681146129e057600080fd5b919050565b600080604083850312156129f857600080fd5b612a01836129c9565b946020939093013593505050565b803560ff811681146129e057600080fd5b600080600060408486031215612a3557600080fd5b833567ffffffffffffffff80821115612a4d57600080fd5b818601915086601f830112612a6157600080fd5b813581811115612a7057600080fd5b8760208260051b8501011115612a8557600080fd5b602092830195509350612a9b9186019050612a0f565b90509250925092565b600080600060608486031215612ab957600080fd5b612ac2846129c9565b9250612ad0602085016129c9565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612b1157612b11612ae0565b604051601f8501601f19908116603f01168101908282118183101715612b3957612b39612ae0565b81604052809350858152868686011115612b5257600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215612b7e57600080fd5b813567ffffffffffffffff811115612b9557600080fd5b8201601f81018413612ba657600080fd5b61235a84823560208401612af6565b600060208284031215612bc757600080fd5b6117ac826129c9565b600060208284031215612be257600080fd5b6117ac82612a0f565b60008060408385031215612bfe57600080fd5b50508035926020909101359150565b801515811461198757600080fd5b60008060408385031215612c2e57600080fd5b612c37836129c9565b91506020830135612c4781612c0d565b809150509250929050565b60008060008060808587031215612c6857600080fd5b612c71856129c9565b9350612c7f602086016129c9565b925060408501359150606085013567ffffffffffffffff811115612ca257600080fd5b8501601f81018713612cb357600080fd5b612cc287823560208401612af6565b91505092959194509250565b600080600060608486031215612ce357600080fd5b505081359360208301359350604090920135919050565b60008060408385031215612d0d57600080fd5b612d16836129c9565b9150612d24602084016129c9565b90509250929050565b600181811c90821680612d4157607f821691505b60208210811415612d6257634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115612dc657612dc6612d9d565b500190565b600060ff821660ff84168060ff03821115612de857612de8612d9d565b019392505050565b6020808252601e908201527f4d6178696d756d206d696e7461626c6520616d6f756e74206578636565640000604082015260600190565b60208082526027908201527f416d6f756e742063616e6e6f7420657863656564204d41585f4d494e545f5045604082015266525f424c4f434b60c81b606082015260800190565b60008351612e80818460208801612945565b835190830190612e94818360208801612945565b01949350505050565b600082821015612eaf57612eaf612d9d565b500390565b600060208284031215612ec657600080fd5b5051919050565b6000816000190483118215151615612ee757612ee7612d9d565b500290565b634e487b7160e01b600052601260045260246000fd5b600082612f1157612f11612eec565b500690565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612f4990830184612971565b9695505050505050565b600060208284031215612f6557600080fd5b81516117ac81612912565b6000600019821415612f8457612f84612d9d565b5060010190565b600082612f9a57612f9a612eec565b500490565b634e487b7160e01b600052603260045260246000fd5b60018060a01b0384168152826020820152606060408201526000612fdc6060830184612971565b95945050505050565b600060208284031215612ff757600080fd5b81516117ac81612c0d56fea2646970667358221220f60efd5c8caa84e7069ffb30397a6d08b21a84f3bb0cd15d79f66c521c8ab11564736f6c634300080a0033000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000002c0000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000029a2241af62c000000000000000000000000000000000000000000000000000029a2241af62c000000000000000000000000000000000000000000000000000029a2241af62c00000000000000000000000000000000000000000000000000000000000000000457000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000000000006f00000000000000000000000000000000000000000000000000000000628ba17000000000000000000000000000000000000000000000000000000000000151800000000000000000000000000000000000000000000000000000000000015180184009cb15d9cd49b1868bd61a7f478d1f0f1b0053024cc9650c1dbac6e5af3056700f53e55e042e38fc47cdd515424737fd0349eddcb8770822a2bd1975dff8e4612afc6fb8889c8efe435b4ea2eb3fba37f349176c93d33eac5b93243ce097000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952000000000000000000000000514910771af9ca656af840dff83e8264ecf986caaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af4450000000000000000000000000000000000000000000000001bc16d674ec8000000000000000000000000000000000000000000000000000000000000000000113131204361707461696e277320436c756200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000043131434300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003e68747470733a2f2f6d69616d692d776f726b65722d70726f642e31316361707461696e73636c75622e776f726b6572732e6465762f6d657461646174612f0000

Deployed Bytecode

0x6080604052600436106103765760003560e01c806374c56c94116101d1578063be9a655511610102578063ddca3f43116100a0578063ef7b9beb1161006f578063ef7b9beb14610a21578063efe652a914610a37578063f2fde38b14610a79578063f8413b0714610a9957600080fd5b8063ddca3f431461096e578063e6ec320e146109a2578063e985e9c5146109c2578063eb87c19b14610a0b57600080fd5b8063c6ab67a3116100dc578063c6ab67a31461090c578063c87b56dd14610922578063c988c9a914610942578063cb774d471461095857600080fd5b8063be9a6555146108c0578063c2fadd6c146108d6578063c5ca30b1146108f657600080fd5b8063a22cb4651161016f578063afaae5fa11610149578063afaae5fa14610832578063b3ea92a11461084c578063b88d4fde14610880578063be715a66146108a057600080fd5b8063a22cb465146107aa578063a36298c7146107ca578063ae510a58146107fe57600080fd5b806383404672116101ab57806383404672146107415780638da5cb5b1461075757806394985ddd1461077557806395d89b411461079557600080fd5b806374c56c94146107025780637a3fdf9a146107185780637fa3fbbd1461072b57600080fd5b806332c4faf9116102ab57806355f804b3116102495780636b54c934116102235780636b54c934146106a25780636c0360eb146106b857806370a08231146106cd578063715018a6146106ed57600080fd5b806355f804b31461062e57806361728f391461064e5780636352211e1461068257600080fd5b80634008eae4116102855780634008eae4146105c457806342842e0e146105e4578063514ede741461060457806352d939e31461061957600080fd5b806332c4faf9146105795780633ccfd60b1461058f5780633fa3137b146105a457600080fd5b80630c8db7e01161031857806318160ddd116102f257806318160ddd14610500578063189a5bcf1461051957806323b872dd14610539578063279ad4171461055957600080fd5b80630c8db7e0146104ae5780630e4277a8146104cd57806315c96db7146104ed57600080fd5b806306fdde031161035457806306fdde0314610412578063081812fc14610434578063095ea7b31461046c578063099b6bfa1461048e57600080fd5b806301ffc9a71461037b57806302fb0c5e146103b057806306523128146103d0575b600080fd5b34801561038757600080fd5b5061039b610396366004612928565b610aae565b60405190151581526020015b60405180910390f35b3480156103bc57600080fd5b5060185461039b9062010000900460ff1681565b3480156103dc57600080fd5b506104047f00000000000000000000000000000000000000000000000000000000000003e881565b6040519081526020016103a7565b34801561041e57600080fd5b50610427610b00565b6040516103a7919061299d565b34801561044057600080fd5b5061045461044f3660046129b0565b610b92565b6040516001600160a01b0390911681526020016103a7565b34801561047857600080fd5b5061048c6104873660046129e5565b610bd6565b005b34801561049a57600080fd5b5061048c6104a93660046129b0565b610c5d565b3480156104ba57600080fd5b5060185461039b90610100900460ff1681565b3480156104d957600080fd5b5061048c6104e83660046129b0565b610c95565b61048c6104fb366004612a20565b610cc4565b34801561050c57600080fd5b5060015460005403610404565b34801561052557600080fd5b5061048c6105343660046129b0565b610fa0565b34801561054557600080fd5b5061048c610554366004612aa4565b610fcf565b34801561056557600080fd5b5061048c6105743660046129b0565b610fda565b34801561058557600080fd5b50610404600b5481565b34801561059b57600080fd5b5061048c611009565b3480156105b057600080fd5b5061048c6105bf3660046129b0565b611065565b3480156105d057600080fd5b5061048c6105df3660046129e5565b611094565b3480156105f057600080fd5b5061048c6105ff366004612aa4565b611227565b34801561061057600080fd5b5061048c611242565b34801561062557600080fd5b5061048c611280565b34801561063a57600080fd5b5061048c610649366004612b6c565b61130e565b34801561065a57600080fd5b506104047faa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af44581565b34801561068e57600080fd5b5061045461069d3660046129b0565b61134b565b3480156106ae57600080fd5b5061040460135481565b3480156106c457600080fd5b5061042761135d565b3480156106d957600080fd5b506104046106e8366004612bb5565b61136c565b3480156106f957600080fd5b5061048c6113bb565b34801561070e57600080fd5b5061040460145481565b61048c610726366004612bd0565b6113f1565b34801561073757600080fd5b5061040460125481565b34801561074d57600080fd5b50610404600f5481565b34801561076357600080fd5b506008546001600160a01b0316610454565b34801561078157600080fd5b5061048c610790366004612beb565b61150f565b3480156107a157600080fd5b50610427611591565b3480156107b657600080fd5b5061048c6107c5366004612c1b565b6115a0565b3480156107d657600080fd5b506104047f000000000000000000000000000000000000000000000000000000000000045781565b34801561080a57600080fd5b506104047f000000000000000000000000000000000000000000000000000000000000006481565b34801561083e57600080fd5b5060185461039b9060ff1681565b34801561085857600080fd5b506104047f000000000000000000000000000000000000000000000000000000000000000281565b34801561088c57600080fd5b5061048c61089b366004612c52565b611636565b3480156108ac57600080fd5b5061048c6108bb3660046129b0565b611680565b3480156108cc57600080fd5b50610404600e5481565b3480156108e257600080fd5b5061048c6108f1366004612cce565b6116af565b34801561090257600080fd5b5061040460165481565b34801561091857600080fd5b5061040460115481565b34801561092e57600080fd5b5061042761093d3660046129b0565b61172e565b34801561094e57600080fd5b5061040460155481565b34801561096457600080fd5b5061040460175481565b34801561097a57600080fd5b506104047f0000000000000000000000000000000000000000000000001bc16d674ec8000081565b3480156109ae57600080fd5b5061048c6109bd3660046129e5565b6117b3565b3480156109ce57600080fd5b5061039b6109dd366004612cfa565b6001600160a01b03918216600090815260076020908152604080832093909416825291909152205460ff1690565b348015610a1757600080fd5b50610404600c5481565b348015610a2d57600080fd5b5061040460105481565b348015610a4357600080fd5b50610a67610a52366004612bb5565b60196020526000908152604090205460ff1681565b60405160ff90911681526020016103a7565b348015610a8557600080fd5b5061048c610a94366004612bb5565b6118ef565b348015610aa557600080fd5b5061040461198a565b60006001600160e01b031982166380ac58cd60e01b1480610adf57506001600160e01b03198216635b5e139f60e01b145b80610afa57506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060028054610b0f90612d2d565b80601f0160208091040260200160405190810160405280929190818152602001828054610b3b90612d2d565b8015610b885780601f10610b5d57610100808354040283529160200191610b88565b820191906000526020600020905b815481529060010190602001808311610b6b57829003601f168201915b5050505050905090565b6000610b9d82611b52565b610bba576040516333d1c03960e21b815260040160405180910390fd5b506000908152600660205260409020546001600160a01b031690565b6000610be18261134b565b9050806001600160a01b0316836001600160a01b03161415610c165760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614610c4d57610c3081336109dd565b610c4d576040516367d9dca160e11b815260040160405180910390fd5b610c58838383611b7d565b505050565b6008546001600160a01b03163314610c905760405162461bcd60e51b8152600401610c8790612d68565b60405180910390fd5b601155565b6008546001600160a01b03163314610cbf5760405162461bcd60e51b8152600401610c8790612d68565b600b55565b8282826000600f54600e54610cd99190612db3565b9050600e54421080610cf65750601054610cf39082612db3565b42115b15610d5d5760405162461bcd60e51b815260206004820152603160248201527f416c6c6f774c6973742073616c65206861736e27742073746172746564206f726044820152702066696e697368656420616c726561647960781b6064820152608401610c87565b336000908152601960205260409020547f000000000000000000000000000000000000000000000000000000000000000290610d9d90849060ff16612dcb565b60ff161115610dbe5760405162461bcd60e51b8152600401610c8790612df0565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050600e544210158015610e095750814211155b15610eee578260ff1660156000828254610e239190612db3565b90915550506015547f00000000000000000000000000000000000000000000000000000000000003e81015610e6a5760405162461bcd60e51b8152600401610c8790612df0565b610eab85858080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600b549150849050611bd9565b610ee95760405162461bcd60e51b815260206004820152600f60248201526e139bdd08185b1b1bddd31a5cdd1959608a1b6044820152606401610c87565b610f8d565b8142118015610f095750601054610f059083612db3565b4211155b15610f8d57610f4f85858080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600c549150849050611bd9565b610f8d5760405162461bcd60e51b815260206004820152600f60248201526e139bdd08185b1b1bddd31a5cdd1959608a1b6044820152606401610c87565b610f9686611bef565b5050505050505050565b6008546001600160a01b03163314610fca5760405162461bcd60e51b8152600401610c8790612d68565b600c55565b610c58838383611ea6565b6008546001600160a01b031633146110045760405162461bcd60e51b8152600401610c8790612d68565b601455565b6008546001600160a01b031633146110335760405162461bcd60e51b8152600401610c8790612d68565b604051339081904780156108fc02916000818181858888f19350505050158015611061573d6000803e3d6000fd5b5050565b6008546001600160a01b0316331461108f5760405162461bcd60e51b8152600401610c8790612d68565b601355565b6008546001600160a01b031633146110be5760405162461bcd60e51b8152600401610c8790612d68565b60185462010000900460ff161561110f5760405162461bcd60e51b81526020600482015260156024820152745075626c69632073616c652069732061637469766560581b6044820152606401610c87565b7f000000000000000000000000000000000000000000000000000000000000006481111561114f5760405162461bcd60e51b8152600401610c8790612e27565b7f00000000000000000000000000000000000000000000000000000000000004578161117e6001546000540390565b6111889190612db3565b11156111d65760405162461bcd60e51b815260206004820152601b60248201527f476c6f62616c206c696d697420616d6f756e74207265616368656400000000006044820152606401610c87565b6111e08282612095565b816001600160a01b03167f36bf5aa3964be01dbd95a0154a8930793fe68353bdc580871ffb2c911366bbc78260405161121b91815260200190565b60405180910390a25050565b610c5883838360405180602001604052806000815250611636565b6008546001600160a01b0316331461126c5760405162461bcd60e51b8152600401610c8790612d68565b6018805460ff19811660ff90911615179055565b6008546001600160a01b031633146112aa5760405162461bcd60e51b8152600401610c8790612d68565b6018805460ff62010000808304821615810262ff00001990931692909217928390556040517f73c72e6316305d5331524911633518964ce9a6074030dbe657e4d2b8a5e6685a936113049390049091161515815260200190565b60405180910390a1565b6008546001600160a01b031633146113385760405162461bcd60e51b8152600401610c8790612d68565b805161106190600d906020840190612879565b6000611356826120af565b5192915050565b60606113676121cb565b905090565b60006001600160a01b038216611395576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b031660009081526005602052604090205467ffffffffffffffff1690565b6008546001600160a01b031633146113e55760405162461bcd60e51b8152600401610c8790612d68565b6113ef60006121da565b565b60ff81163332146114385760405162461bcd60e51b81526020600482015260116024820152704275796572206d75737420626520454f4160781b6044820152606401610c87565b6000601054600f54600e5461144d9190612db3565b6114579190612db3565b90508042116114a85760405162461bcd60e51b815260206004820152601a60248201527f5075626c69632073616c65206861736e277420737461727465640000000000006044820152606401610c87565b336000908152601960205260409020547f0000000000000000000000000000000000000000000000000000000000000002906114e890849060ff16612db3565b11156115065760405162461bcd60e51b8152600401610c8790612df0565b610c5883611bef565b336001600160a01b037f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb795216146115875760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c006044820152606401610c87565b611061828261222c565b606060038054610b0f90612d2d565b6001600160a01b0382163314156115ca5760405163b06307db60e01b815260040160405180910390fd5b3360008181526007602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b611641848484611ea6565b6001600160a01b0383163b1561167a5761165d84848484612279565b61167a576040516368d2bf6b60e11b815260040160405180910390fd5b50505050565b6008546001600160a01b031633146116aa5760405162461bcd60e51b8152600401610c8790612d68565b601255565b6008546001600160a01b031633146116d95760405162461bcd60e51b8152600401610c8790612d68565b600e839055600f829055601081905560408051848152602081018490529081018290527f0d73020f1b544cc438b3393ff7f69e158b3c3d394d86a68c74ef9d28893898819060600160405180910390a1505050565b606061173982611b52565b61175657604051630a14c4b560e41b815260040160405180910390fd5b60006117606121cb565b905080516000141561178157604051806020016040528060008152506117ac565b8061178b84612362565b60405160200161179c929190612e6e565b6040516020818303038152906040525b9392505050565b6008546001600160a01b031633146117dd5760405162461bcd60e51b8152600401610c8790612d68565b7f000000000000000000000000000000000000000000000000000000000000006481111561181d5760405162461bcd60e51b8152600401610c8790612e27565b60185460ff1661186f5760405162461bcd60e51b815260206004820152601c60248201527f436c61696d206279206f776e6572206973206e6f7420616374697665000000006044820152606401610c87565b6016548111156118cd5760405162461bcd60e51b815260206004820152602360248201527f4f776e6572206d696e7461626c6520616d6f756e74206c696d697420726561636044820152621a195960ea1b6064820152608401610c87565b80601660008282546118df9190612e9d565b9091555061106190508282612095565b6008546001600160a01b031633146119195760405162461bcd60e51b8152600401610c8790612d68565b6001600160a01b03811661197e5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c87565b611987816121da565b50565b6008546000906001600160a01b031633146119b75760405162461bcd60e51b8152600401610c8790612d68565b601854610100900460ff1615611a0f5760405162461bcd60e51b815260206004820181905260248201527f5374617274696e6720496e64657820616c7265616479207265717565737465646044820152606401610c87565b6040516370a0823160e01b81523060048201527f0000000000000000000000000000000000000000000000001bc16d674ec80000907f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316906370a0823190602401602060405180830381865afa158015611a95573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ab99190612eb4565b1015611af95760405162461bcd60e51b815260206004820152600f60248201526e4e6f7420656e6f756768204c494e4b60881b6044820152606401610c87565b6018805461ff0019166101001790556113677faa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af4457f0000000000000000000000000000000000000000000000001bc16d674ec80000612460565b6000805482108015610afa575050600090815260046020526040902054600160e01b900460ff161590565b60008281526006602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b600082611be685846125dc565b14949350505050565b60185462010000900460ff16611c325760405162461bcd60e51b8152602060048201526008602482015267496e61637469766560c01b6044820152606401610c87565b60026009541415611c855760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610c87565b600260095560ff8116611cd25760405162461bcd60e51b8152602060048201526015602482015274125b9d985b1a5908185b5bdd5b9d081bd988139195605a1b6044820152606401610c87565b60008160ff16611ce0612650565b611cea9190612ecd565b905080341015611d485760405162461bcd60e51b8152602060048201526024808201527f5468657265206973206e6f7420656e6f7567682066756e647320746f206275796044820152630813919560e21b6064820152608401610c87565b7f00000000000000000000000000000000000000000000000000000000000004578260ff16611d7a6001546000540390565b611d849190612db3565b1115611dd25760405162461bcd60e51b815260206004820152601b60248201527f476c6f62616c206c696d697420616d6f756e74207265616368656400000000006044820152606401610c87565b3360009081526019602052604081208054849290611df490849060ff16612dcb565b92506101000a81548160ff021916908360ff16021790555060008134611e1a9190612e9d565b1115611e5857336108fc611e2e8334612e9d565b6040518115909202916000818181858888f19350505050158015611e56573d6000803e3d6000fd5b505b611e65338360ff16612095565b60405160ff8316815233907f36bf5aa3964be01dbd95a0154a8930793fe68353bdc580871ffb2c911366bbc79060200160405180910390a250506001600955565b6000611eb1826120af565b9050836001600160a01b031681600001516001600160a01b031614611ee85760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480611f065750611f0685336109dd565b80611f21575033611f1684610b92565b6001600160a01b0316145b905080611f4157604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416611f6857604051633a954ecd60e21b815260040160405180910390fd5b611f7460008487611b7d565b6001600160a01b038581166000908152600560209081526040808320805467ffffffffffffffff1980821667ffffffffffffffff92831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600490945282852080546001600160e01b031916909417600160a01b4290921691909102178355870180845292208054919390911661204a57600054821461204a578054602086015167ffffffffffffffff16600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050505050565b6110618282604051806020016040528060008152506126b4565b6040805160608101825260008082526020820181905291810191909152816000548110156121b257600081815260046020908152604091829020825160608101845290546001600160a01b0381168252600160a01b810467ffffffffffffffff1692820192909252600160e01b90910460ff161515918101829052906121b05780516001600160a01b031615612146579392505050565b5060001901600081815260046020908152604091829020825160608101845290546001600160a01b038116808352600160a01b820467ffffffffffffffff1693830193909352600160e01b900460ff16151592810192909252156121ab579392505050565b612146565b505b604051636f96cda160e11b815260040160405180910390fd5b6060600d8054610b0f90612d2d565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001546000540361223d9082612f02565b60178190556040519081527fca6fb0afaccdd6d4e6bae677f2228557803ae36f831e27606d4f4ccffc4286599060200160405180910390a15050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a02906122ae903390899088908890600401612f16565b6020604051808303816000875af19250505080156122e9575060408051601f3d908101601f191682019092526122e691810190612f53565b60015b612344573d808015612317576040519150601f19603f3d011682016040523d82523d6000602084013e61231c565b606091505b50805161233c576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b6060816123865750506040805180820190915260018152600360fc1b602082015290565b8160005b81156123b0578061239a81612f70565b91506123a99050600a83612f8b565b915061238a565b60008167ffffffffffffffff8111156123cb576123cb612ae0565b6040519080825280601f01601f1916602001820160405280156123f5576020820181803683370190505b5090505b841561235a5761240a600183612e9d565b9150612417600a86612f02565b612422906030612db3565b60f81b81838151811061243757612437612f9f565b60200101906001600160f81b031916908160001a905350612459600a86612f8b565b94506123f9565b60007f000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca6001600160a01b0316634000aea07f000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952848660006040516020016124d0929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b81526004016124fd93929190612fb5565b6020604051808303816000875af115801561251c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125409190612fe5565b506000838152600a6020818152604080842054815180840189905280830186905230606082015260808082018390528351808303909101815260a09091019092528151918301919091209387905291905261259c906001612db3565b6000858152600a602052604090205561235a8482604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b600081815b84518110156126485760008582815181106125fe576125fe612f9f565b602002602001015190508083116126245760008381526020829052604090209250612635565b600081815260208490526040902092505b508061264081612f70565b9150506125e1565b509392505050565b600080600f54600e546126639190612db3565b9050600e5442101580156126775750804211155b1561268457505060125490565b804211801561269f575060105461269b9082612db3565b4211155b156126ac57505060135490565b505060145490565b6000546001600160a01b0384166126dd57604051622e076360e81b815260040160405180910390fd5b826126fb5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038416600081815260056020908152604080832080546fffffffffffffffffffffffffffffffff19811667ffffffffffffffff8083168b0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168b01811690920217909155858452600490925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b15612824575b60405182906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a46127ed6000878480600101955087612279565b61280a576040516368d2bf6b60e11b815260040160405180910390fd5b8082106127a257826000541461281f57600080fd5b612869565b5b6040516001830192906001600160a01b038816906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4808210612825575b50600090815561167a9085838684565b82805461288590612d2d565b90600052602060002090601f0160209004810192826128a757600085556128ed565b82601f106128c057805160ff19168380011785556128ed565b828001600101855582156128ed579182015b828111156128ed5782518255916020019190600101906128d2565b506128f99291506128fd565b5090565b5b808211156128f957600081556001016128fe565b6001600160e01b03198116811461198757600080fd5b60006020828403121561293a57600080fd5b81356117ac81612912565b60005b83811015612960578181015183820152602001612948565b8381111561167a5750506000910152565b60008151808452612989816020860160208601612945565b601f01601f19169290920160200192915050565b6020815260006117ac6020830184612971565b6000602082840312156129c257600080fd5b5035919050565b80356001600160a01b03811681146129e057600080fd5b919050565b600080604083850312156129f857600080fd5b612a01836129c9565b946020939093013593505050565b803560ff811681146129e057600080fd5b600080600060408486031215612a3557600080fd5b833567ffffffffffffffff80821115612a4d57600080fd5b818601915086601f830112612a6157600080fd5b813581811115612a7057600080fd5b8760208260051b8501011115612a8557600080fd5b602092830195509350612a9b9186019050612a0f565b90509250925092565b600080600060608486031215612ab957600080fd5b612ac2846129c9565b9250612ad0602085016129c9565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612b1157612b11612ae0565b604051601f8501601f19908116603f01168101908282118183101715612b3957612b39612ae0565b81604052809350858152868686011115612b5257600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215612b7e57600080fd5b813567ffffffffffffffff811115612b9557600080fd5b8201601f81018413612ba657600080fd5b61235a84823560208401612af6565b600060208284031215612bc757600080fd5b6117ac826129c9565b600060208284031215612be257600080fd5b6117ac82612a0f565b60008060408385031215612bfe57600080fd5b50508035926020909101359150565b801515811461198757600080fd5b60008060408385031215612c2e57600080fd5b612c37836129c9565b91506020830135612c4781612c0d565b809150509250929050565b60008060008060808587031215612c6857600080fd5b612c71856129c9565b9350612c7f602086016129c9565b925060408501359150606085013567ffffffffffffffff811115612ca257600080fd5b8501601f81018713612cb357600080fd5b612cc287823560208401612af6565b91505092959194509250565b600080600060608486031215612ce357600080fd5b505081359360208301359350604090920135919050565b60008060408385031215612d0d57600080fd5b612d16836129c9565b9150612d24602084016129c9565b90509250929050565b600181811c90821680612d4157607f821691505b60208210811415612d6257634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008219821115612dc657612dc6612d9d565b500190565b600060ff821660ff84168060ff03821115612de857612de8612d9d565b019392505050565b6020808252601e908201527f4d6178696d756d206d696e7461626c6520616d6f756e74206578636565640000604082015260600190565b60208082526027908201527f416d6f756e742063616e6e6f7420657863656564204d41585f4d494e545f5045604082015266525f424c4f434b60c81b606082015260800190565b60008351612e80818460208801612945565b835190830190612e94818360208801612945565b01949350505050565b600082821015612eaf57612eaf612d9d565b500390565b600060208284031215612ec657600080fd5b5051919050565b6000816000190483118215151615612ee757612ee7612d9d565b500290565b634e487b7160e01b600052601260045260246000fd5b600082612f1157612f11612eec565b500690565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612f4990830184612971565b9695505050505050565b600060208284031215612f6557600080fd5b81516117ac81612912565b6000600019821415612f8457612f84612d9d565b5060010190565b600082612f9a57612f9a612eec565b500490565b634e487b7160e01b600052603260045260246000fd5b60018060a01b0384168152826020820152606060408201526000612fdc6060830184612971565b95945050505050565b600060208284031215612ff757600080fd5b81516117ac81612c0d56fea2646970667358221220f60efd5c8caa84e7069ffb30397a6d08b21a84f3bb0cd15d79f66c521c8ab11564736f6c634300080a0033

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

000000000000000000000000000000000000000000000000000000000000028000000000000000000000000000000000000000000000000000000000000002c0000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000029a2241af62c000000000000000000000000000000000000000000000000000029a2241af62c000000000000000000000000000000000000000000000000000029a2241af62c00000000000000000000000000000000000000000000000000000000000000000457000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000000000006f00000000000000000000000000000000000000000000000000000000628ba17000000000000000000000000000000000000000000000000000000000000151800000000000000000000000000000000000000000000000000000000000015180184009cb15d9cd49b1868bd61a7f478d1f0f1b0053024cc9650c1dbac6e5af3056700f53e55e042e38fc47cdd515424737fd0349eddcb8770822a2bd1975dff8e4612afc6fb8889c8efe435b4ea2eb3fba37f349176c93d33eac5b93243ce097000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952000000000000000000000000514910771af9ca656af840dff83e8264ecf986caaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af4450000000000000000000000000000000000000000000000001bc16d674ec8000000000000000000000000000000000000000000000000000000000000000000113131204361707461696e277320436c756200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000043131434300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003e68747470733a2f2f6d69616d692d776f726b65722d70726f642e31316361707461696e73636c75622e776f726b6572732e6465762f6d657461646174612f0000

-----Decoded View---------------
Arg [0] : name (string): 11 Captain's Club
Arg [1] : symbol (string): 11CC
Arg [2] : baseTokenURI (string): https://miami-worker-prod.11captainsclub.workers.dev/metadata/
Arg [3] : _pricesInWei (uint256[3]): 3000000000000000000,3000000000000000000,3000000000000000000
Arg [4] : _limits (uint256[4]): 1111,2,1000,111
Arg [5] : _start (uint256): 1653318000
Arg [6] : _firstVipDuration (uint256): 86400
Arg [7] : _secondVipDuration (uint256): 86400
Arg [8] : vipMerkleRoots (tuple): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]
Arg [9] : _provenanceHash (bytes32): 0xe4612afc6fb8889c8efe435b4ea2eb3fba37f349176c93d33eac5b93243ce097
Arg [10] : vrf (tuple): System.Collections.Generic.List`1[Nethereum.ABI.FunctionEncoding.ParameterOutput]

-----Encoded View---------------
27 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000280
Arg [1] : 00000000000000000000000000000000000000000000000000000000000002c0
Arg [2] : 0000000000000000000000000000000000000000000000000000000000000300
Arg [3] : 00000000000000000000000000000000000000000000000029a2241af62c0000
Arg [4] : 00000000000000000000000000000000000000000000000029a2241af62c0000
Arg [5] : 00000000000000000000000000000000000000000000000029a2241af62c0000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000457
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [8] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [9] : 000000000000000000000000000000000000000000000000000000000000006f
Arg [10] : 00000000000000000000000000000000000000000000000000000000628ba170
Arg [11] : 0000000000000000000000000000000000000000000000000000000000015180
Arg [12] : 0000000000000000000000000000000000000000000000000000000000015180
Arg [13] : 184009cb15d9cd49b1868bd61a7f478d1f0f1b0053024cc9650c1dbac6e5af30
Arg [14] : 56700f53e55e042e38fc47cdd515424737fd0349eddcb8770822a2bd1975dff8
Arg [15] : e4612afc6fb8889c8efe435b4ea2eb3fba37f349176c93d33eac5b93243ce097
Arg [16] : 000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952
Arg [17] : 000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca
Arg [18] : aa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445
Arg [19] : 0000000000000000000000000000000000000000000000001bc16d674ec80000
Arg [20] : 0000000000000000000000000000000000000000000000000000000000000011
Arg [21] : 3131204361707461696e277320436c7562000000000000000000000000000000
Arg [22] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [23] : 3131434300000000000000000000000000000000000000000000000000000000
Arg [24] : 000000000000000000000000000000000000000000000000000000000000003e
Arg [25] : 68747470733a2f2f6d69616d692d776f726b65722d70726f642e313163617074
Arg [26] : 61696e73636c75622e776f726b6572732e6465762f6d657461646174612f0000


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.