ETH Price: $1,790.51 (+4.17%)
Gas: 22 Gwei
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multi Chain

Multichain Addresses

3 addresses found via Blockscan
Transaction Hash
Method
Block
From
To
Value
Set Approval For...169266842023-03-28 15:20:3513 hrs 35 mins ago1680016835 arturionv.wallet IN
Pirates of the Metaverse: POMV Token
0 ETH0.0013641929.49356653
Set Approval For...169266822023-03-28 15:20:1113 hrs 35 mins ago1680016811 arturionv.wallet IN
Pirates of the Metaverse: POMV Token
0 ETH0.0014118730.5244796
Safe Transfer Fr...169207222023-03-27 19:12:351 day 9 hrs ago1679944355IN
Pirates of the Metaverse: POMV Token
0 ETH0.0012045427.38280206
Safe Transfer Fr...169182872023-03-27 11:01:351 day 17 hrs ago1679914895IN
Pirates of the Metaverse: POMV Token
0 ETH0.0008361319.00785365
Set Approval For...169160332023-03-27 3:23:592 days 1 hr ago1679887439IN
Pirates of the Metaverse: POMV Token
0 ETH0.0007969417.26109551
Set Approval For...169113482023-03-26 11:37:112 days 17 hrs ago1679830631IN
Pirates of the Metaverse: POMV Token
0 ETH0.0006218513.46888019
Set Approval For...169066092023-03-25 19:39:593 days 9 hrs ago1679773199IN
Pirates of the Metaverse: POMV Token
0 ETH0.000389216.04426761
Set Approval For...169058582023-03-25 17:07:233 days 11 hrs ago1679764043IN
Pirates of the Metaverse: POMV Token
0 ETH0.0006740527.69095246
Set Approval For...169011242023-03-25 1:10:354 days 3 hrs ago1679706635IN
Pirates of the Metaverse: POMV Token
0 ETH0.000819217.74325415
Set Approval For...169009492023-03-25 0:34:474 days 4 hrs ago1679704487IN
Pirates of the Metaverse: POMV Token
0 ETH0.0007409316.04807684
Safe Transfer Fr...168994492023-03-24 19:30:354 days 9 hrs ago1679686235IN
Pirates of the Metaverse: POMV Token
0 ETH0.0010279423.36827654
Safe Transfer Fr...168994152023-03-24 19:23:474 days 9 hrs ago1679685827IN
Pirates of the Metaverse: POMV Token
0 ETH0.001171426.62946038
Safe Transfer Fr...168988512023-03-24 17:29:474 days 11 hrs ago1679678987IN
Pirates of the Metaverse: POMV Token
0 ETH0.0018226941.43515267
Safe Transfer Fr...168974192023-03-24 12:40:114 days 16 hrs ago1679661611 growlery.dao IN
Pirates of the Metaverse: POMV Token
0 ETH0.0012945829.42983681
Safe Transfer Fr...168972062023-03-24 11:56:474 days 16 hrs ago1679659007 growlery.dao IN
Pirates of the Metaverse: POMV Token
0 ETH0.0012185827.70195858
Safe Transfer Fr...168965222023-03-24 9:39:114 days 19 hrs ago1679650751IN
Pirates of the Metaverse: POMV Token
0 ETH0.000703615.99942849
Set Approval For...168840022023-03-22 15:24:356 days 13 hrs ago1679498675IN
Pirates of the Metaverse: POMV Token
0 ETH0.0015152432.81882332
Set Approval For...168786192023-03-21 21:16:357 days 7 hrs ago1679433395IN
Pirates of the Metaverse: POMV Token
0 ETH0.0008989319.45998634
Set Approval For...168770532023-03-21 15:58:237 days 12 hrs ago1679414303IN
Pirates of the Metaverse: POMV Token
0 ETH0.001342829.08399104
Set Approval For...168767412023-03-21 14:55:357 days 14 hrs ago1679410535IN
Pirates of the Metaverse: POMV Token
0 ETH0.0017027736.8805252
Transfer From168754452023-03-21 10:33:117 days 18 hrs ago1679394791IN
Pirates of the Metaverse: POMV Token
0 ETH0.0005105212.57771101
Safe Transfer Fr...168711822023-03-20 20:12:118 days 8 hrs ago1679343131IN
Pirates of the Metaverse: POMV Token
0 ETH0.0013401230.47324962
Transfer From168662192023-03-20 3:30:239 days 1 hr ago1679283023IN
Pirates of the Metaverse: POMV Token
0 ETH0.0006156915.16867515
Safe Transfer Fr...168648182023-03-19 22:46:599 days 6 hrs ago1679266019IN
Pirates of the Metaverse: POMV Token
0 ETH0.0008183118.60277963
Safe Transfer Fr...168634912023-03-19 18:18:599 days 10 hrs ago1679249939IN
Pirates of the Metaverse: POMV Token
0 ETH0.0008459419.23091792
View all transactions

Latest 2 internal transactions

Advanced mode:
Parent Txn Hash Block From To Value
145404772022-04-07 18:55:52355 days 10 hrs ago1649357752
Pirates of the Metaverse: POMV Token
335.1 ETH
143867802022-03-14 20:02:45379 days 8 hrs ago1647288165
Pirates of the Metaverse: POMV Token
210.653 ETH
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
PiratesOfTheMetaverse

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 17 : PiratesOfTheMetaverse.sol
// contracts/PMV.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./ERC721Optimized.sol";
import "./PMVMixin.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@chainlink/contracts/src/v0.8/VRFConsumerBase.sol";


contract PiratesOfTheMetaverse is PMVMixin, ERC721Optimized, VRFConsumerBase {
    using Strings for uint256;
    using MerkleProof for bytes32[];

    mapping (address => uint256) public presaleMints;
    mapping (address => uint256) public freeMints;
    bytes32 private s_keyHash;
    uint256 private s_fee;
    bool public allowBurning = false;

    constructor(bytes32 merkleroot, string memory uri, bytes32 _rootMintFree,
                bytes32 _provenanceHash, address vrfCoordinator,
                address link, bytes32 keyhash, uint256 fee, address _multiSigWallet) ERC721Optimized("Pirates of the Metaverse", "POMV") VRFConsumerBase(vrfCoordinator, link){
        root = merkleroot;
        notRevealedUri = uri;
        rootMintFree = _rootMintFree;
        provenanceHash = _provenanceHash;
        s_keyHash = keyhash;
        s_fee = fee;
        multiSigWallet = _multiSigWallet;
     }

    function mintPresale(uint256 allowance, bytes32[] calldata proof, uint256 tokenQuantity) external payable {
        require(presaleActive, "PRESALE NOT ACTIVE");
        require(proof.verify(root, keccak256(abi.encodePacked(msg.sender, allowance))), "NOT ON ALLOWLIST");
        require(presaleMints[msg.sender] + tokenQuantity <= allowance, "MINTING MORE THAN ALLOWED");

        uint256 currentSupply = totalNonBurnedSupply();

        require(tokenQuantity + currentSupply <= maxSupply, "NOT ENOUGH LEFT IN STOCK");
        require(tokenQuantity * presalePrice <= msg.value, "INCORRECT PAYMENT AMOUNT");

        for(uint256 i = 1; i <= tokenQuantity; i++) {
            _mint(msg.sender, currentSupply + i);
        }

        presaleMints[msg.sender] += tokenQuantity;
    }

    function mintFree(uint256 allowance, bytes32[] calldata proof, uint256 tokenQuantity) external {
        require(presaleActive, "Free mint not allowed");
        require(proof.verify(rootMintFree, keccak256(abi.encodePacked(msg.sender, allowance))), "NOT ON FREE MINT ALLOWLIST");
        require(freeMints[msg.sender] + tokenQuantity <= allowance, "MINTING MORE THAN ALLOWED");

        uint256 currentSupply = totalNonBurnedSupply();

        require(tokenQuantity + currentSupply <= maxSupply, "NOT ENOUGH LEFT IN STOCK");

        for(uint256 i = 1; i <= tokenQuantity; i++) {
            _mint(msg.sender, currentSupply + i);
        }

        freeMints[msg.sender] += tokenQuantity;
    }

    function mint(uint256 tokenQuantity) external payable {
        if (!letContractMint){
            require(msg.sender == tx.origin, "CONTRACT NOT ALLOWED TO MINT IN PUBLIC SALE");
        }
        require(saleActive, "SALE NOT ACTIVE");
        require(tokenQuantity <= maxPerTransaction, "MINTING MORE THAN ALLOWED IN A SINGLE TRANSACTION");

        uint256 currentSupply = totalNonBurnedSupply();

        require(tokenQuantity + currentSupply <= maxSupply, "NOT ENOUGH LEFT IN STOCK");
        require(tokenQuantity * salePrice <= msg.value, "INCORRECT PAYMENT AMOUNT");

        for(uint256 i = 1; i <= tokenQuantity; i++) {
            _mint(msg.sender, currentSupply + i);
        }
    }

    function ownerMint(uint256 tokenQuantity) external onlyOwner {
        uint256 currentSupply = totalNonBurnedSupply();
        require(tokenQuantity + currentSupply <= ownerMintBuffer, "NOT ENOUGH LEFT IN STOCK");

        for(uint256 i = 1; i <= tokenQuantity; i++) {
            _mint(multiSigWallet, currentSupply + i);
        }
    }

    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "URI query for nonexistent token");
        return _tokenURI(tokenId);
    }

    function generateRandomOffset() public onlyOwner returns (bytes32 requestId) {
        require(LINK.balanceOf(address(this)) >= s_fee, "Not enough LINK to pay fee");
        require(!offsetRequested, "Already generated random offset");
        requestId = requestRandomness(s_keyHash, s_fee);
    }

    function fulfillRandomness(bytes32 requestId, uint256 randomness) internal override {
        // transform the result to a number between 0 and 9,997 inclusively
        // token 1 and 2 are fixed and are not included for purposes of offsetting
        uint256 newOffset = (randomness % (maxSupply - 2));
        offset = newOffset;
        offsetRequested = true;
    }

    function setAllowBurning(bool _allowBurning) external onlyOwner {
        allowBurning = _allowBurning;
    }

    function burn(uint256 tokenId) public virtual {
        require(allowBurning, "Burning not currently allowed");
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721Burnable: caller is not owner nor approved");
        _burn(tokenId);
    }

}

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

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.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, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721Optimized is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Array containing mapping zero-indexed tokens to owners
    address[] private _owners;

    // 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;

    uint256 private _numBurned;

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @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 virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        uint256 count = 0;
        for (uint256 index = 0; index < _owners.length; index++){
            if (owner == _owners[index]) count++;
        }
        return count;
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: owner query for nonexistent token");
        return _owners[tokenId - 1];
    }

    /**
     * @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) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        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 virtual override {
        address owner = ERC721Optimized.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_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 {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _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 {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @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.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @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`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        bool positive = tokenId > 0;
        bool inBounds = tokenId < totalNonBurnedSupply() + 1;
        bool notBurned = true;
        // if 1 <= tokenId <= 10,000 need to make sure it wasn't burned.
        if (inBounds){
            address owner = _owners[tokenId - 1];
            notBurned = owner != address(0);
        }
        return positive && inBounds && notBurned;
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _owners.push(to);

        emit Transfer(address(0), to, tokenId);

        _afterTokenTransfer(address(0), to, tokenId);
    }

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

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        delete _owners[tokenId - 1];

        emit Transfer(owner, address(0), tokenId);

        _afterTokenTransfer(owner, address(0), tokenId);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * 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
    ) internal virtual {
        require(ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

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

        _owners[tokenId - 1] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a 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 _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _afterTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}


    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     * Call OffChain to not pay high gas costs.
     */
    function tokenOfOwnerByIndexOffChain(address owner, uint256 index) public view virtual returns (uint256) {
        require(index < balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        uint count;
        for (uint i; i < _owners.length; i ++){
            if (owner == _owners[i]){
                if (count == index) return i + 1;
                else count++;
            }
        }
        require(false, "ERC721Enumerable: owner index out of bounds");
    }

    /**
     * @dev Get all tokens owned by an address in two passes of the owner array.
     * Call OffChain to not pay high gas costs.
     */
    function tokensOfOwnerOffChain(address owner) public view returns (uint[] memory) {
        uint balance = balanceOf(owner);
        uint[] memory _tokens = new uint[](balance);
        uint count;
        for (uint i; i < _owners.length; i ++){
            if (owner == _owners[i]){
                _tokens[count] = i + 1;
                count++;
            }
        }
        return _tokens;
    }


    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual  returns (uint256) {
        return _owners.length - _numBurned;
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalNonBurnedSupply() public view virtual returns (uint256) {
        return _owners.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndexOffChain(uint256 index) public view virtual returns (uint256) {
        require(index < ERC721Optimized.totalSupply(), "ERC721Enumerable: global index out of bounds");
        uint256 count;

        // When a token is burned, the index of all tokens above that index
        // should be shifted by 1 to the left. Since we do not pop entries of _owners, we need
        // to add back the missing shift.
        for(uint i = 0; i < _owners.length; i++ ){
            if(_owners[i] == address(0)) count += 1;
            if(int(i) - int(count) == int(index)) return uint256(i) + 1;
        }
        require(false, "ERC721Enumerable: index not found");
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * 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, ``from``'s `tokenId` will be burned.
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        _numBurned += 1;
    }
}

File 3 of 17 : PMVMixin.sol
// contracts/PMV.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./ERC721Optimized.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Address.sol";

contract PMVMixin is Ownable {
    using Strings for uint256;
    using Address for address payable;

    uint256 public constant maxSupply = 10000;
    uint256 public maxPerTransaction = 10;
    uint public salePrice = 0.1 ether;
    uint public presalePrice = 0.077 ether;
    bool public presaleActive = false;
    bool public saleActive = false;
    string private tokenBaseURI;
    string internal notRevealedUri;
    bool private revealed = false;
    bytes32 public root;
    bytes32 public rootMintFree;
    bytes32 public provenanceHash;
    uint256 public offset;
    bool public offsetRequested = false;
    address public multiSigWallet;
    bool public letContractMint = false;
    uint256 public ownerMintBuffer = 200;

    function _tokenURI(uint256 tokenId) public view virtual returns (string memory) {

        if(revealed == false) {
            return notRevealedUri;
        }

        else {
            return string(abi.encodePacked(tokenBaseURI, tokenId.toString()));
        }
    }

    function setPresale(bool _presaleStatus) external onlyOwner {
        presaleActive = _presaleStatus;
    }

    function setSale(bool _saleStatus) external onlyOwner {
        saleActive = _saleStatus;
    }

    function setURIStatus(bool _revealed, string calldata _tokenBaseURI) external onlyOwner {
        require(bytes(_tokenBaseURI).length > 0, "_tokenBaseURI is empty");
        revealed = _revealed;
        tokenBaseURI = _tokenBaseURI;
    }

    function setRoot(bytes32 _root) external onlyOwner {
        require(_root.length > 0, "_root is empty");
        root = _root;
    }

    function setRootMintFree(bytes32 _root) external onlyOwner {
        require(_root.length > 0, "_root is empty");
        rootMintFree = _root;
    }

    function withdraw() external onlyOwner {
        payable(multiSigWallet).sendValue(address(this).balance);
    }

    function setMaxPerTransaction(uint256 _maxPerTransaction) external onlyOwner {
        require(_maxPerTransaction > 0, "maxPerTransaction should be positive");
        maxPerTransaction = _maxPerTransaction;
    }

    function setPrice(uint _salePrice) external onlyOwner {
        salePrice = _salePrice;
    }

    function setPresalePrice(uint _presalePrice) external onlyOwner {
        presalePrice = _presalePrice;
    }

    function setLetContractMint(bool _letContractMint) external onlyOwner {
        letContractMint = _letContractMint;
    }

    function setOwnerMintBuffer(uint256 _ownerMintBuffer) external onlyOwner {
        ownerMintBuffer = _ownerMintBuffer;
    }
}

File 4 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 5 of 17 : MerkleProof.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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 = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }
        return computedHash;
    }
}

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 : 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 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 : 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 10 of 17 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

File 11 of 17 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 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 12 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 13 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 14 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 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": 1000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"bytes32","name":"merkleroot","type":"bytes32"},{"internalType":"string","name":"uri","type":"string"},{"internalType":"bytes32","name":"_rootMintFree","type":"bytes32"},{"internalType":"bytes32","name":"_provenanceHash","type":"bytes32"},{"internalType":"address","name":"vrfCoordinator","type":"address"},{"internalType":"address","name":"link","type":"address"},{"internalType":"bytes32","name":"keyhash","type":"bytes32"},{"internalType":"uint256","name":"fee","type":"uint256"},{"internalType":"address","name":"_multiSigWallet","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"_tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"allowBurning","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":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"freeMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"generateRandomOffset","outputs":[{"internalType":"bytes32","name":"requestId","type":"bytes32"}],"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":"letContractMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerTransaction","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenQuantity","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"uint256","name":"tokenQuantity","type":"uint256"}],"name":"mintFree","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"allowance","type":"uint256"},{"internalType":"bytes32[]","name":"proof","type":"bytes32[]"},{"internalType":"uint256","name":"tokenQuantity","type":"uint256"}],"name":"mintPresale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"multiSigWallet","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"offset","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"offsetRequested","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenQuantity","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"ownerMintBuffer","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presaleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"presaleMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"presalePrice","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":"bytes32","name":"requestId","type":"bytes32"},{"internalType":"uint256","name":"randomness","type":"uint256"}],"name":"rawFulfillRandomness","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"root","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"rootMintFree","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"saleActive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"salePrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_allowBurning","type":"bool"}],"name":"setAllowBurning","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_letContractMint","type":"bool"}],"name":"setLetContractMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_maxPerTransaction","type":"uint256"}],"name":"setMaxPerTransaction","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_ownerMintBuffer","type":"uint256"}],"name":"setOwnerMintBuffer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_presaleStatus","type":"bool"}],"name":"setPresale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_presalePrice","type":"uint256"}],"name":"setPresalePrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_root","type":"bytes32"}],"name":"setRootMintFree","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_saleStatus","type":"bool"}],"name":"setSale","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_revealed","type":"bool"},{"internalType":"string","name":"_tokenBaseURI","type":"string"}],"name":"setURIStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndexOffChain","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndexOffChain","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"tokensOfOwnerOffChain","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalNonBurnedSupply","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"}]

60c0604052600a60015567016345785d8a00006002556701118f178fb480006003556004805461ffff191690556007805460ff19908116909155600c805460ff60ff60a81b011916905560c8600d556019805490911690553480156200006457600080fd5b50604051620040bb380380620040bb8339810160408190526200008791620002b2565b84846040518060400160405280601881526020017f50697261746573206f6620746865204d65746176657273650000000000000000815250604051806040016040528060048152602001632827a6ab60e11b815250620000f6620000f06200019b60201b60201c565b6200019f565b81516200010b90600e906020850190620001ef565b5080516200012190600f906020840190620001ef565b5050506001600160601b0319606092831b811660a052911b1660805260088990558751620001579060069060208b0190620001ef565b50600996909655600a949094556017555050601855600c80546001600160a01b0390921661010002610100600160a81b0319909216919091179055506200044b9050565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b828054620001fd90620003f8565b90600052602060002090601f0160209004810192826200022157600085556200026c565b82601f106200023c57805160ff19168380011785556200026c565b828001600101855582156200026c579182015b828111156200026c5782518255916020019190600101906200024f565b506200027a9291506200027e565b5090565b5b808211156200027a57600081556001016200027f565b80516001600160a01b0381168114620002ad57600080fd5b919050565b60008060008060008060008060006101208a8c031215620002d1578485fd5b895160208b01519099506001600160401b0380821115620002f0578687fd5b818c0191508c601f83011262000304578687fd5b81518181111562000319576200031962000435565b604051601f8201601f19908116603f0116810190838211818310171562000344576200034462000435565b816040528281528f60208487010111156200035d57898afd5b8993505b828410156200038457602084860101516020858301015260208401935062000361565b82841115620003965789602084830101525b809c50505050505060408a0151965060608a01519550620003ba60808b0162000295565b9450620003ca60a08b0162000295565b935060c08a0151925060e08a01519150620003e96101008b0162000295565b90509295985092959850929598565b600181811c908216806200040d57607f821691505b602082108114156200042f57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b60805160601c60a05160601c613c366200048560003960008181611d32015261307c015260008181612249015261304d0152613c366000f3fe6080604052600436106103805760003560e01c806384c3672c116101d1578063c6ab67a311610102578063dab5f340116100a0578063f2fde38b1161006f578063f2fde38b14610a16578063f51f96dd14610a36578063fc05dc8014610a4c578063ff50188514610a6257600080fd5b8063dab5f34014610977578063e985e9c514610997578063ebf0c717146109e0578063f19e75d4146109f657600080fd5b8063ccfdd2f8116100dc578063ccfdd2f81461090b578063d55565441461092b578063d5a162f114610941578063d5abeb011461096157600080fd5b8063c6ab67a3146108c0578063c87b56dd146108d6578063cc7a856c146108f657600080fd5b806395d89b411161016f578063a22cb46511610149578063a22cb46514610840578063b88d4fde14610860578063c54e73e314610880578063c56c0b92146108a057600080fd5b806395d89b41146107f757806398029d2a1461080c578063a0712d681461082d57600080fd5b80638da5cb5b116101ab5780638da5cb5b1461077957806391b7f5ed1461079757806392c46da3146107b757806394985ddd146107d757600080fd5b806384c3672c1461071f5780638c0326af1461073f5780638d17e7121461075957600080fd5b806342966c68116102b65780635fc9c0e6116102545780636d41d4fb116102235780636d41d4fb1461069d5780636f8d9305146106ca57806370a08231146106ea578063715018a61461070a57600080fd5b80635fc9c0e61461062e5780636352211e1461064457806367753a151461066457806368428a1b1461067e57600080fd5b8063513f9ff711610290578063513f9ff7146105b257806353135ca0146105c7578063583c1775146105e15780635b7bcff71461060e57600080fd5b806342966c68146105575780634b8feb4f146105775780634b980d671461059c57600080fd5b80631d2e5a3a116103235780633549345e116102fd5780633549345e146104ef5780633c14a2de1461050f5780633ccfd60b1461052257806342842e0e1461053757600080fd5b80631d2e5a3a1461048f5780631fbb4e27146104af57806323b872dd146104cf57600080fd5b806306fdde031161035f57806306fdde03146103fe578063081812fc14610420578063095ea7b31461045857806318160ddd1461047a57600080fd5b80620e7fa81461038557806301ffc9a7146103ae578063038d7c67146103de575b600080fd5b34801561039157600080fd5b5061039b60035481565b6040519081526020015b60405180910390f35b3480156103ba57600080fd5b506103ce6103c93660046137a4565b610a8f565b60405190151581526020016103a5565b3480156103ea57600080fd5b5061039b6103f936600461368a565b610b2c565b34801561040a57600080fd5b50610413610c85565b6040516103a59190613a01565b34801561042c57600080fd5b5061044061043b36600461376b565b610d17565b6040516001600160a01b0390911681526020016103a5565b34801561046457600080fd5b5061047861047336600461368a565b610d9f565b005b34801561048657600080fd5b5061039b610ed1565b34801561049b57600080fd5b506104786104aa3660046136b3565b610ee8565b3480156104bb57600080fd5b506104786104ca36600461376b565b610f4a565b3480156104db57600080fd5b506104786104ea366004613544565b610f97565b3480156104fb57600080fd5b5061047861050a36600461376b565b61101f565b61047861051d3660046137f4565b61106c565b34801561052e57600080fd5b50610478611316565b34801561054357600080fd5b50610478610552366004613544565b61137b565b34801561056357600080fd5b5061047861057236600461376b565b611396565b34801561058357600080fd5b50600c546104409061010090046001600160a01b031681565b3480156105a857600080fd5b5061039b60015481565b3480156105be57600080fd5b5060105461039b565b3480156105d357600080fd5b506004546103ce9060ff1681565b3480156105ed57600080fd5b506106016105fc3660046134f1565b61146f565b6040516103a591906139bd565b34801561061a57600080fd5b5061047861062936600461376b565b611581565b34801561063a57600080fd5b5061039b60095481565b34801561065057600080fd5b5061044061065f36600461376b565b6115ce565b34801561067057600080fd5b50600c546103ce9060ff1681565b34801561068a57600080fd5b506004546103ce90610100900460ff1681565b3480156106a957600080fd5b5061039b6106b83660046134f1565b60166020526000908152604090205481565b3480156106d657600080fd5b506104786106e53660046136eb565b611691565b3480156106f657600080fd5b5061039b6107053660046134f1565b611746565b34801561071657600080fd5b50610478611839565b34801561072b57600080fd5b5061039b61073a36600461376b565b61188b565b34801561074b57600080fd5b506019546103ce9060ff1681565b34801561076557600080fd5b5061041361077436600461376b565b611a17565b34801561078557600080fd5b506000546001600160a01b0316610440565b3480156107a357600080fd5b506104786107b236600461376b565b611aed565b3480156107c357600080fd5b506104786107d23660046137f4565b611b3a565b3480156107e357600080fd5b506104786107f2366004613783565b611d27565b34801561080357600080fd5b50610413611dad565b34801561081857600080fd5b50600c546103ce90600160a81b900460ff1681565b61047861083b36600461376b565b611dbc565b34801561084c57600080fd5b5061047861085b366004613654565b612000565b34801561086c57600080fd5b5061047861087b36600461357f565b61200b565b34801561088c57600080fd5b5061047861089b3660046136b3565b612093565b3480156108ac57600080fd5b506104786108bb3660046136b3565b6120ee565b3480156108cc57600080fd5b5061039b600a5481565b3480156108e257600080fd5b506104136108f136600461376b565b61216f565b34801561090257600080fd5b5061039b6121cf565b34801561091757600080fd5b5061047861092636600461376b565b61237a565b34801561093757600080fd5b5061039b600b5481565b34801561094d57600080fd5b5061047861095c3660046136b3565b61243c565b34801561096d57600080fd5b5061039b61271081565b34801561098357600080fd5b5061047861099236600461376b565b612497565b3480156109a357600080fd5b506103ce6109b2366004613512565b6001600160a01b03918216600090815260126020908152604080832093909416825291909152205460ff1690565b3480156109ec57600080fd5b5061039b60085481565b348015610a0257600080fd5b50610478610a1136600461376b565b6124e4565b348015610a2257600080fd5b50610478610a313660046134f1565b6125d0565b348015610a4257600080fd5b5061039b60025481565b348015610a5857600080fd5b5061039b600d5481565b348015610a6e57600080fd5b5061039b610a7d3660046134f1565b60156020526000908152604090205481565b60006001600160e01b031982167f80ac58cd000000000000000000000000000000000000000000000000000000001480610af257506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610b2657507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b6000610b3783611746565b8210610b9e5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084015b60405180910390fd5b6000805b601054811015610c285760108181548110610bcd57634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0386811691161415610c165783821415610c0857610bff816001613a14565b92505050610b26565b81610c1281613b4b565b9250505b80610c2081613b4b565b915050610ba2565b5060405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610b95565b6060600e8054610c9490613b16565b80601f0160208091040260200160405190810160405280929190818152602001828054610cc090613b16565b8015610d0d5780601f10610ce257610100808354040283529160200191610d0d565b820191906000526020600020905b815481529060010190602001808311610cf057829003601f168201915b5050505050905090565b6000610d228261269d565b610d835760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b95565b506000908152601160205260409020546001600160a01b031690565b6000610daa826115ce565b9050806001600160a01b0316836001600160a01b03161415610e345760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610b95565b336001600160a01b0382161480610e505750610e5081336109b2565b610ec25760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610b95565b610ecc8383612727565b505050565b601354601054600091610ee391613ad3565b905090565b6000546001600160a01b03163314610f305760405162461bcd60e51b81526020600482018190526024820152600080516020613be18339815191526044820152606401610b95565b600480549115156101000261ff0019909216919091179055565b6000546001600160a01b03163314610f925760405162461bcd60e51b81526020600482018190526024820152600080516020613be18339815191526044820152606401610b95565b600955565b610fa2335b82612795565b6110145760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610b95565b610ecc83838361287b565b6000546001600160a01b031633146110675760405162461bcd60e51b81526020600482018190526024820152600080516020613be18339815191526044820152606401610b95565b600355565b60045460ff166110be5760405162461bcd60e51b815260206004820152601260248201527f50524553414c45204e4f542041435449564500000000000000000000000000006044820152606401610b95565b6008546040516bffffffffffffffffffffffff193360601b1660208201526034810186905261113f91906054015b60405160208183030381529060405280519060200120858580806020026020016040519081016040528093929190818152602001838360200280828437600092019190915250929493925050612a219050565b61118b5760405162461bcd60e51b815260206004820152601060248201527f4e4f54204f4e20414c4c4f574c495354000000000000000000000000000000006044820152606401610b95565b3360009081526015602052604090205484906111a8908390613a14565b11156111f65760405162461bcd60e51b815260206004820152601960248201527f4d494e54494e47204d4f5245205448414e20414c4c4f574544000000000000006044820152606401610b95565b600061120160105490565b90506127106112108284613a14565b111561125e5760405162461bcd60e51b815260206004820152601860248201527f4e4f5420454e4f554748204c45465420494e2053544f434b00000000000000006044820152606401610b95565b346003548361126d9190613a40565b11156112bb5760405162461bcd60e51b815260206004820152601860248201527f494e434f5252454354205041594d454e5420414d4f554e5400000000000000006044820152606401610b95565b60015b8281116112ea576112d8336112d38385613a14565b612a37565b806112e281613b4b565b9150506112be565b50336000908152601560205260408120805484929061130a908490613a14565b90915550505050505050565b6000546001600160a01b0316331461135e5760405162461bcd60e51b81526020600482018190526024820152600080516020613be18339815191526044820152606401610b95565b600c546113799061010090046001600160a01b031647612b6b565b565b610ecc8383836040518060200160405280600081525061200b565b60195460ff166113e85760405162461bcd60e51b815260206004820152601d60248201527f4275726e696e67206e6f742063757272656e746c7920616c6c6f7765640000006044820152606401610b95565b6113f133610f9c565b6114635760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f766564000000000000000000000000000000006064820152608401610b95565b61146c81612c84565b50565b6060600061147c83611746565b905060008167ffffffffffffffff8111156114a757634e487b7160e01b600052604160045260246000fd5b6040519080825280602002602001820160405280156114d0578160200160208202803683370190505b5090506000805b601054811015611577576010818154811061150257634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b03878116911614156115655761152c816001613a14565b83838151811061154c57634e487b7160e01b600052603260045260246000fd5b60209081029190910101528161156181613b4b565b9250505b8061156f81613b4b565b9150506114d7565b5090949350505050565b6000546001600160a01b031633146115c95760405162461bcd60e51b81526020600482018190526024820152600080516020613be18339815191526044820152606401610b95565b600d55565b60006115d98261269d565b61164b5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610b95565b6010611658600184613ad3565b8154811061167657634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031692915050565b6000546001600160a01b031633146116d95760405162461bcd60e51b81526020600482018190526024820152600080516020613be18339815191526044820152606401610b95565b806117265760405162461bcd60e51b815260206004820152601660248201527f5f746f6b656e4261736555524920697320656d707479000000000000000000006044820152606401610b95565b6007805460ff191684151517905561174060058383613441565b50505050565b60006001600160a01b0382166117c45760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610b95565b6000805b60105481101561183257601081815481106117f357634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0385811691161415611820578161181c81613b4b565b9250505b8061182a81613b4b565b9150506117c8565b5092915050565b6000546001600160a01b031633146118815760405162461bcd60e51b81526020600482018190526024820152600080516020613be18339815191526044820152606401610b95565b6113796000612d25565b6000611895610ed1565b82106119095760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201527f7574206f6620626f756e647300000000000000000000000000000000000000006064820152608401610b95565b6000805b6010548110156119a25760006001600160a01b03166010828154811061194357634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b0316141561196c57611969600183613a14565b91505b836119778383613a5f565b141561199057611988816001613a14565b949350505050565b8061199a81613b4b565b91505061190d565b5060405162461bcd60e51b815260206004820152602160248201527f455243373231456e756d657261626c653a20696e646578206e6f7420666f756e60448201527f64000000000000000000000000000000000000000000000000000000000000006064820152608401610b95565b50919050565b60075460609060ff16611ab65760068054611a3190613b16565b80601f0160208091040260200160405190810160405280929190818152602001828054611a5d90613b16565b8015611aaa5780601f10611a7f57610100808354040283529160200191611aaa565b820191906000526020600020905b815481529060010190602001808311611a8d57829003601f168201915b50505050509050919050565b6005611ac183612d75565b604051602001611ad29291906138bc565b6040516020818303038152906040529050919050565b919050565b6000546001600160a01b03163314611b355760405162461bcd60e51b81526020600482018190526024820152600080516020613be18339815191526044820152606401610b95565b600255565b60045460ff16611b8c5760405162461bcd60e51b815260206004820152601560248201527f46726565206d696e74206e6f7420616c6c6f77656400000000000000000000006044820152606401610b95565b6009546040516bffffffffffffffffffffffff193360601b16602082015260348101869052611bbe91906054016110ec565b611c0a5760405162461bcd60e51b815260206004820152601a60248201527f4e4f54204f4e2046524545204d494e5420414c4c4f574c4953540000000000006044820152606401610b95565b336000908152601660205260409020548490611c27908390613a14565b1115611c755760405162461bcd60e51b815260206004820152601960248201527f4d494e54494e47204d4f5245205448414e20414c4c4f574544000000000000006044820152606401610b95565b6000611c8060105490565b9050612710611c8f8284613a14565b1115611cdd5760405162461bcd60e51b815260206004820152601860248201527f4e4f5420454e4f554748204c45465420494e2053544f434b00000000000000006044820152606401610b95565b60015b828111611d0757611cf5336112d38385613a14565b80611cff81613b4b565b915050611ce0565b50336000908152601660205260408120805484929061130a908490613a14565b336001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001614611d9f5760405162461bcd60e51b815260206004820152601f60248201527f4f6e6c7920565246436f6f7264696e61746f722063616e2066756c66696c6c006044820152606401610b95565b611da98282612ec3565b5050565b6060600f8054610c9490613b16565b600c54600160a81b900460ff16611e4257333214611e425760405162461bcd60e51b815260206004820152602b60248201527f434f4e5452414354204e4f5420414c4c4f57454420544f204d494e5420494e2060448201527f5055424c49432053414c450000000000000000000000000000000000000000006064820152608401610b95565b600454610100900460ff16611e995760405162461bcd60e51b815260206004820152600f60248201527f53414c45204e4f542041435449564500000000000000000000000000000000006044820152606401610b95565b600154811115611f115760405162461bcd60e51b815260206004820152603160248201527f4d494e54494e47204d4f5245205448414e20414c4c4f57454420494e2041205360448201527f494e474c45205452414e53414354494f4e0000000000000000000000000000006064820152608401610b95565b6000611f1c60105490565b9050612710611f2b8284613a14565b1115611f795760405162461bcd60e51b815260206004820152601860248201527f4e4f5420454e4f554748204c45465420494e2053544f434b00000000000000006044820152606401610b95565b3460025483611f889190613a40565b1115611fd65760405162461bcd60e51b815260206004820152601860248201527f494e434f5252454354205041594d454e5420414d4f554e5400000000000000006044820152606401610b95565b60015b828111610ecc57611fee336112d38385613a14565b80611ff881613b4b565b915050611fd9565b611da9338383612ef1565b6120153383612795565b6120875760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610b95565b61174084848484612fc0565b6000546001600160a01b031633146120db5760405162461bcd60e51b81526020600482018190526024820152600080516020613be18339815191526044820152606401610b95565b6004805460ff1916911515919091179055565b6000546001600160a01b031633146121365760405162461bcd60e51b81526020600482018190526024820152600080516020613be18339815191526044820152606401610b95565b600c8054911515600160a81b027fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff909216919091179055565b606061217a8261269d565b6121c65760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610b95565b610b2682611a17565b600080546001600160a01b031633146122185760405162461bcd60e51b81526020600482018190526024820152600080516020613be18339815191526044820152606401610b95565b6018546040517f70a082310000000000000000000000000000000000000000000000000000000081523060048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a082319060240160206040518083038186803b15801561229357600080fd5b505afa1580156122a7573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122cb91906137dc565b10156123195760405162461bcd60e51b815260206004820152601a60248201527f4e6f7420656e6f756768204c494e4b20746f20706179206665650000000000006044820152606401610b95565b600c5460ff161561236c5760405162461bcd60e51b815260206004820152601f60248201527f416c72656164792067656e6572617465642072616e646f6d206f6666736574006044820152606401610b95565b610ee3601754601854613049565b6000546001600160a01b031633146123c25760405162461bcd60e51b81526020600482018190526024820152600080516020613be18339815191526044820152606401610b95565b600081116124375760405162461bcd60e51b8152602060048201526024808201527f6d61785065725472616e73616374696f6e2073686f756c6420626520706f736960448201527f74697665000000000000000000000000000000000000000000000000000000006064820152608401610b95565b600155565b6000546001600160a01b031633146124845760405162461bcd60e51b81526020600482018190526024820152600080516020613be18339815191526044820152606401610b95565b6019805460ff1916911515919091179055565b6000546001600160a01b031633146124df5760405162461bcd60e51b81526020600482018190526024820152600080516020613be18339815191526044820152606401610b95565b600855565b6000546001600160a01b0316331461252c5760405162461bcd60e51b81526020600482018190526024820152600080516020613be18339815191526044820152606401610b95565b600061253760105490565b600d549091506125478284613a14565b11156125955760405162461bcd60e51b815260206004820152601860248201527f4e4f5420454e4f554748204c45465420494e2053544f434b00000000000000006044820152606401610b95565b60015b828111610ecc57600c546125be9061010090046001600160a01b03166112d38385613a14565b806125c881613b4b565b915050612598565b6000546001600160a01b031633146126185760405162461bcd60e51b81526020600482018190526024820152600080516020613be18339815191526044820152606401610b95565b6001600160a01b0381166126945760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610b95565b61146c81612d25565b6000811515816126ac60105490565b6126b7906001613a14565b841090506001811561270b57600060106126d2600188613ad3565b815481106126f057634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031615159150505b8280156127155750815b801561271e5750805b95945050505050565b600081815260116020526040902080546001600160a01b0319166001600160a01b038416908117909155819061275c826115ce565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006127a08261269d565b6128015760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610b95565b600061280c836115ce565b9050806001600160a01b0316846001600160a01b031614806128475750836001600160a01b031661283c84610d17565b6001600160a01b0316145b8061198857506001600160a01b0380821660009081526012602090815260408083209388168352929052205460ff16611988565b826001600160a01b031661288e826115ce565b6001600160a01b03161461290a5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610b95565b6001600160a01b0382166129855760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610b95565b6129908383836131d4565b61299b600082612727565b8160106129a9600184613ad3565b815481106129c757634e487b7160e01b600052603260045260246000fd5b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b600082612a2e8584613209565b14949350505050565b6001600160a01b038216612a8d5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b95565b612a968161269d565b15612ae35760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b95565b612aef600083836131d4565b6010805460018101825560009182527f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae6720180546001600160a01b0319166001600160a01b0385169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b80471015612bbb5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610b95565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612c08576040519150601f19603f3d011682016040523d82523d6000602084013e612c0d565b606091505b5050905080610ecc5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610b95565b6000612c8f826115ce565b9050612c9d816000846131d4565b612ca8600083612727565b6010612cb5600184613ad3565b81548110612cd357634e487b7160e01b600052603260045260246000fd5b6000918252602082200180546001600160a01b03191690556040518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b606081612db557505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115612ddf5780612dc981613b4b565b9150612dd89050600a83613a2c565b9150612db9565b60008167ffffffffffffffff811115612e0857634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612e32576020820181803683370190505b5090505b841561198857612e47600183613ad3565b9150612e54600a86613b66565b612e5f906030613a14565b60f81b818381518110612e8257634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612ebc600a86613a2c565b9450612e36565b6000612ed26002612710613ad3565b612edc9083613b66565b600b555050600c805460ff1916600117905550565b816001600160a01b0316836001600160a01b03161415612f535760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b95565b6001600160a01b03838116600081815260126020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612fcb84848461287b565b612fd7848484846132c3565b6117405760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610b95565b60007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316634000aea07f0000000000000000000000000000000000000000000000000000000000000000848660006040516020016130b9929190918252602082015260400190565b6040516020818303038152906040526040518463ffffffff1660e01b81526004016130e693929190613995565b602060405180830381600087803b15801561310057600080fd5b505af1158015613114573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061313891906136cf565b50600083815260146020818152604080842054815180840189905280830186905230606082015260808082018390528351808303909101815260a090910190925281519183019190912093879052919052613194906001613a14565b6000858152601460205260409020556119888482604080516020808201949094528082019290925280518083038201815260609092019052805191012090565b6001600160a01b0382166131eb57610ecc81613426565b826001600160a01b0316826001600160a01b031614610ecc57505050565b600081815b84518110156132bb57600085828151811061323957634e487b7160e01b600052603260045260246000fd5b6020026020010151905080831161327b5760408051602081018590529081018290526060016040516020818303038152906040528051906020012092506132a8565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b50806132b381613b4b565b91505061320e565b509392505050565b60006001600160a01b0384163b1561341b57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613307903390899088908890600401613959565b602060405180830381600087803b15801561332157600080fd5b505af1925050508015613351575060408051601f3d908101601f1916820190925261334e918101906137c0565b60015b613401573d80801561337f576040519150601f19603f3d011682016040523d82523d6000602084013e613384565b606091505b5080516133f95760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610b95565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611988565b506001949350505050565b6001601360008282546134399190613a14565b909155505050565b82805461344d90613b16565b90600052602060002090601f01602090048101928261346f57600085556134b5565b82601f106134885782800160ff198235161785556134b5565b828001600101855582156134b5579182015b828111156134b557823582559160200191906001019061349a565b506134c19291506134c5565b5090565b5b808211156134c157600081556001016134c6565b80356001600160a01b0381168114611ae857600080fd5b600060208284031215613502578081fd5b61350b826134da565b9392505050565b60008060408385031215613524578081fd5b61352d836134da565b915061353b602084016134da565b90509250929050565b600080600060608486031215613558578081fd5b613561846134da565b925061356f602085016134da565b9150604084013590509250925092565b60008060008060808587031215613594578081fd5b61359d856134da565b93506135ab602086016134da565b925060408501359150606085013567ffffffffffffffff808211156135ce578283fd5b818701915087601f8301126135e1578283fd5b8135818111156135f3576135f3613ba6565b604051601f8201601f19908116603f0116810190838211818310171561361b5761361b613ba6565b816040528281528a6020848701011115613633578586fd5b82602086016020830137918201602001949094529598949750929550505050565b60008060408385031215613666578182fd5b61366f836134da565b9150602083013561367f81613bbc565b809150509250929050565b6000806040838503121561369c578182fd5b6136a5836134da565b946020939093013593505050565b6000602082840312156136c4578081fd5b813561350b81613bbc565b6000602082840312156136e0578081fd5b815161350b81613bbc565b6000806000604084860312156136ff578283fd5b833561370a81613bbc565b9250602084013567ffffffffffffffff80821115613726578384fd5b818601915086601f830112613739578384fd5b813581811115613747578485fd5b876020828501011115613758578485fd5b6020830194508093505050509250925092565b60006020828403121561377c578081fd5b5035919050565b60008060408385031215613795578182fd5b50508035926020909101359150565b6000602082840312156137b5578081fd5b813561350b81613bca565b6000602082840312156137d1578081fd5b815161350b81613bca565b6000602082840312156137ed578081fd5b5051919050565b60008060008060608587031215613809578182fd5b84359350602085013567ffffffffffffffff80821115613827578384fd5b818701915087601f83011261383a578384fd5b813581811115613848578485fd5b8860208260051b850101111561385c578485fd5b95986020929092019750949560400135945092505050565b6000815180845261388c816020860160208601613aea565b601f01601f19169290920160200192915050565b600081516138b2818560208601613aea565b9290920192915050565b600080845482600182811c9150808316806138d857607f831692505b60208084108214156138f857634e487b7160e01b87526022600452602487fd5b81801561390c576001811461391d57613949565b60ff19861689528489019650613949565b60008b815260209020885b868110156139415781548b820152908501908301613928565b505084890196505b50505050505061271e81856138a0565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261398b6080830184613874565b9695505050505050565b6001600160a01b038416815282602082015260606040820152600061271e6060830184613874565b6020808252825182820181905260009190848201906040850190845b818110156139f5578351835292840192918401916001016139d9565b50909695505050505050565b60208152600061350b6020830184613874565b60008219821115613a2757613a27613b7a565b500190565b600082613a3b57613a3b613b90565b500490565b6000816000190483118215151615613a5a57613a5a613b7a565b500290565b6000808312837f800000000000000000000000000000000000000000000000000000000000000001831281151615613a9957613a99613b7a565b837f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff018313811615613acd57613acd613b7a565b50500390565b600082821015613ae557613ae5613b7a565b500390565b60005b83811015613b05578181015183820152602001613aed565b838111156117405750506000910152565b600181811c90821680613b2a57607f821691505b60208210811415611a1157634e487b7160e01b600052602260045260246000fd5b6000600019821415613b5f57613b5f613b7a565b5060010190565b600082613b7557613b75613b90565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b801515811461146c57600080fd5b6001600160e01b03198116811461146c57600080fdfe4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572a2646970667358221220364180a08dc50787660e1028f35d4b0484bb3dd57e1ff5e1617f4648866da06964736f6c63430008040033e4130558f9ea3fcb929737d7d0feb37fd9db2816990a779b7396c56d144bb57a0000000000000000000000000000000000000000000000000000000000000120a74a6335936fbe099b04a7d8b1cb23edc13aabd5a92b8ea1670da711e2acf3bded6587c34eb5cadfb2ef3af47d60919169dd837613c0e46a78601962849d125b000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952000000000000000000000000514910771af9ca656af840dff83e8264ecf986caaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af4450000000000000000000000000000000000000000000000001bc16d674ec80000000000000000000000000000b01a3021f067c16fa1ac56f790cfde75cd8e63e30000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d6272674a726a757339356931554665627a323762466d7a39677766633651485348385169424a3671323273370000000000000000000000

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

e4130558f9ea3fcb929737d7d0feb37fd9db2816990a779b7396c56d144bb57a0000000000000000000000000000000000000000000000000000000000000120a74a6335936fbe099b04a7d8b1cb23edc13aabd5a92b8ea1670da711e2acf3bded6587c34eb5cadfb2ef3af47d60919169dd837613c0e46a78601962849d125b000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952000000000000000000000000514910771af9ca656af840dff83e8264ecf986caaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af4450000000000000000000000000000000000000000000000001bc16d674ec80000000000000000000000000000b01a3021f067c16fa1ac56f790cfde75cd8e63e30000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d6272674a726a757339356931554665627a323762466d7a39677766633651485348385169424a3671323273370000000000000000000000

-----Decoded View---------------
Arg [0] : merkleroot (bytes32): 0xe4130558f9ea3fcb929737d7d0feb37fd9db2816990a779b7396c56d144bb57a
Arg [1] : uri (string): ipfs://QmbrgJrjus95i1UFebz27bFmz9gwfc6QHSH8QiBJ6q22s7
Arg [2] : _rootMintFree (bytes32): 0xa74a6335936fbe099b04a7d8b1cb23edc13aabd5a92b8ea1670da711e2acf3bd
Arg [3] : _provenanceHash (bytes32): 0xed6587c34eb5cadfb2ef3af47d60919169dd837613c0e46a78601962849d125b
Arg [4] : vrfCoordinator (address): 0xf0d54349aDdcf704F77AE15b96510dEA15cb7952
Arg [5] : link (address): 0x514910771AF9Ca656af840dff83E8264EcF986CA
Arg [6] : keyhash (bytes32): 0xaa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445
Arg [7] : fee (uint256): 2000000000000000000
Arg [8] : _multiSigWallet (address): 0xB01A3021f067c16FA1ac56F790cFdE75CD8e63e3

-----Encoded View---------------
12 Constructor Arguments found :
Arg [0] : e4130558f9ea3fcb929737d7d0feb37fd9db2816990a779b7396c56d144bb57a
Arg [1] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [2] : a74a6335936fbe099b04a7d8b1cb23edc13aabd5a92b8ea1670da711e2acf3bd
Arg [3] : ed6587c34eb5cadfb2ef3af47d60919169dd837613c0e46a78601962849d125b
Arg [4] : 000000000000000000000000f0d54349addcf704f77ae15b96510dea15cb7952
Arg [5] : 000000000000000000000000514910771af9ca656af840dff83e8264ecf986ca
Arg [6] : aa77729d3466ca35ae8d28b3bbac7cc36a5031efdc430821c02bc31a238af445
Arg [7] : 0000000000000000000000000000000000000000000000001bc16d674ec80000
Arg [8] : 000000000000000000000000b01a3021f067c16fa1ac56f790cfde75cd8e63e3
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [10] : 697066733a2f2f516d6272674a726a757339356931554665627a323762466d7a
Arg [11] : 39677766633651485348385169424a3671323273370000000000000000000000


Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

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

OVERVIEW

Pirates of the Metaverse™ by Drip Studios is a collection of 10,000 digitally NFTs about to embark on an uncharted journey across blockchains.

Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.

Validator Index Block Amount
View All Withdrawals
[ Download: CSV Export  ]
[ Download: CSV Export  ]

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