ETH Price: $2,982.43 (-2.26%)
Gas: 4 Gwei

Token

CubeMelt (CM)
 

Overview

Max Total Supply

2,000 CM

Holders

260

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
2 CM
0x6d975690d1aaca306bfc633da56dd6219561a1aa
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Starting off as a webcomic, CubeMelt now has an animated series, with Season 2 launching in 2023. Now, this fan-favourite trademarked ice cube brand will be brought to Web 3. Join the coolest community of 8,888 NFTs, which provide holders brand ownership and utility tokens to...

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
CubeMelt

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 16 : Popsicle.sol
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%%%%%%%%%%%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@%%                          ......................... %@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@%                     ..................................%@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@%                   ....................................%@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@%            / /........................................%@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@%          ../ /........................................%@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@%     /....../ /........................................%@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@% ...//.................................................%@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@% ...//.................................................%@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@%..../ ,.//.............................................%@@@@@%%%@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@%..../    //....%%%......,......%.....#%%...............(@@@@@%%@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@,.../   / /..............%%%%%.........................*@@@@@%@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@%....///......%,........................................%%%%%@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@%............%%%.............................../  ......%@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@%.....%......%%................................/  ......%@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@%......%%%%%,................................../ ..../..%@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@%..............................................* /*////.%@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@%...............................................///////.%@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@%............................................//////////.%@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@@,........... ............................//////////*..,%@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@@%(/////////  /////////((##%%%%%%%%%%%%%%%%%%%%%//////%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@@@@@@%(/////  /////////%(///////%///////////////(%%%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%@@@@@@@%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%%@@@@@@@%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@%@@@@@@@@%@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@@@@@////........../...%%........%%.........///..../@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@@/////////////@@&.........................@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@*.........%@@@@@@@@@@%...,@@@@@@@@@@@@@@@@@@@@%......@@@%.......%@@@@@@@@@@%...%@@%...%@@@@@@@@@@@@
//@....%@%...% ...@@%...%...,@@@@@@@@@@........./%.......@#........%%.........%...%..........@@@@@@@@@
//@....&@@@@@%....@@%...%............%%...#@@@...%............%,...%....@@@%..%...%@@%...%@@@@@@@@@@@@
//@....@@@@@@%....@@%...%...*@@@@@%...%..........%...%/......&@....%..........%...%@@%...%@@@@@@@@@@@@
//%....@@@@@@%....@@%...%...,@@@@@%...%...%%%%%%@%...%%.....@@@....%....%%%%%@%...%@@%...#@@@@@@@@@@@@
//%....@@@%%%@....@@%...%...,@@@@@%...%...%@@@//%%...%@%*..@@@@....%....@@@#/(%...%@@%...#,..@@@@@@@@@
//%..........%/.........%............*%.........#%...%@@@@@@@@@....%..........%...%@@%.......@@@@@@@@@
//@%%%%%%%%%%@%%%%%%%%%@%...%%%%%%%%@@%%%%%%%%%%@%%%%@@@@@@@@@@%%%%@%%%%%%%%%@%%%%@@@@%%%%%%@@@@@@@@@@

pragma solidity ^0.8.4;

interface IIP {
    function transferFrom(address from, address to, uint256 tokenId) external;
    function ownerOf(uint256 tokenId) external returns (address);
    function setApprovalForAll(address _operator, bool _approved) external;
    function isApprovedForAll(address _owner, address _operator) external returns (bool);
    function mint(address _to, uint256 _mintAmount) external;
    function getAvailability() external returns (bool);
}

// SPDX-License-Identifier: GPL-3.0
pragma solidity >=0.7.0 <0.9.0;

//Standard NFT
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/utils/ERC721Holder.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

//Proof of Signature
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";

//Royalty
import "@openzeppelin/contracts/token/common/ERC2981.sol";

contract CubeMelt is ERC721, ERC721Holder, Ownable, ERC2981 {
  using Strings for uint256;
  using Counters for Counters.Counter;
  IIP public ipContract;
  
  uint256 public constant MAXSUPPLY = 8888;
  uint256 public constant ALCOSTM1 = 0.05 ether;
  uint256 public constant ALCOSTM2 = 0.04 ether;
  uint256 public constant ALCOSTM3 = 0.033 ether;
  uint256 public constant COSTM1 = 0.08 ether;
  uint256 public constant COSTM2 = 0.065 ether;
  uint256 public constant COSTM3 = 0.05 ether;
  uint256 public constant RESERVED = 792;
  uint256 public constant LEGENDARYRESERVED = 15;
  uint256 public constant MAXMINTAMOUNT = 3;

  Counters.Counter private supply;
  uint256 public firstIndex = 1;
  uint256 public lastIndex = MAXSUPPLY;

  address private t1 = 0x2283BF4705A9D4E850a4C8dEF2aAe9Ac98F4c495;
  string private _contractURI = "https://cubemelt.mypinata.cloud/ipfs/QmTBVBxseHCDq7186xWqixE5m3pJKbKXCfqc1qsCXB5jfn";

  string public baseURI = "https://cubemelt.mypinata.cloud/ipfs/QmRot4WiYmkJpfxzKm8NbADxNTmDvhH33pYvhdH7vkHh3A";
  bool public reveal = false;
  bool public paused = false;

  enum MintStatus {
    CLOSED,
    AL,
    PUBLIC
  }
  MintStatus public mintStatus = MintStatus.CLOSED;

  //Allowlist
  bytes32 public alMerkleRoot = 0x8f62519c00abe7499eeafaf92c56836beb2ef37ced9dbd029db4018d538dedb1;
  mapping(address => bool) public alClaimed;

  constructor(address _nftContractAddress) ERC721("CubeMelt", "CM") {
    //Contract interprets 10,000 as 100%.
    setDefaultRoyalty(t1, 500); //5%
    ipContract = IIP(_nftContractAddress);
   }

//*** INTERNAL FUNCTION ***//
  function _mintLoop(address _receiver, uint256 _mintAmount) internal {
    for (uint256 i = 0; i < _mintAmount; i++) {
      supply.increment();
      _safeMint(_receiver, firstIndex);
      firstIndex++;
    }
  }

  function _reverseMintLoop(address _receiver, uint256 _mintAmount) internal {
    for(uint256 i = 0; i < _mintAmount; i++) {
      supply.increment();
      _safeMint(_receiver, lastIndex);
      lastIndex--;
    }
  }

//*** PUBLIC FUNCTION ***//
  function alSaleMintWithIP(bytes32[] calldata _merkleProof) public payable {
    uint256 _mintAmount = 3;
    require(!paused);
    require(mintStatus == MintStatus.AL, "CP: Minting status invalid.");
    require(msg.sender == tx.origin, "CP: We like real users.");
    require(_mintAmount > 0 && _mintAmount <= MAXMINTAMOUNT, "Out of mint amount limit.");
    require(supply.current() + _mintAmount <= MAXSUPPLY, "Out of supply.");
    require(ipContract.getAvailability(), "Out of IP supply");

    require(!alClaimed[msg.sender], "Address has already claimed.");

    bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
    require(MerkleProof.verify(_merkleProof, alMerkleRoot, leaf), "Invalid proof.");
    
    alClaimed[msg.sender] = true;
      
    require(msg.value >= ALCOSTM3 * _mintAmount, "Insufficient Eth.");

    ipContract.mint(msg.sender, 1);
    _mintLoop(msg.sender, _mintAmount);
  }

  function alSaleMint(uint256 _mintAmount, bytes32[] calldata _merkleProof) public payable {
    require(!paused);
    require(mintStatus == MintStatus.AL, "CP: Minting status invalid.");
    require(msg.sender == tx.origin, "CP: We like real users.");
    require(_mintAmount > 0 && _mintAmount <= MAXMINTAMOUNT, "Out of mint amount limit.");
    require(supply.current() + _mintAmount <= MAXSUPPLY, "Out of supply.");

    require(!alClaimed[msg.sender], "Address has already claimed.");

    bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
    require(MerkleProof.verify(_merkleProof, alMerkleRoot, leaf), "Invalid proof.");
    
    alClaimed[msg.sender] = true;

    if(_mintAmount == 1)
      require(msg.value >= ALCOSTM1 * _mintAmount, "Insufficient Eth.");
    else if(_mintAmount == 2)
      require(msg.value >= ALCOSTM2 * _mintAmount, "Insufficient Eth.");
    else if(_mintAmount == 3)
      require(msg.value >= ALCOSTM3 * _mintAmount, "Insufficient Eth.");

    _mintLoop(msg.sender, _mintAmount);
  }

  function publicSaleMintWithIP() public payable {
    uint256 _mintAmount = 3;
    require(!paused);
    require(mintStatus == MintStatus.PUBLIC, "CP: Minting status invalid.");
    require(msg.sender == tx.origin, "CP: We like real users.");
    require(_mintAmount > 0 && _mintAmount <= MAXMINTAMOUNT, "Out of mint amount limit.");
    require(supply.current() + _mintAmount <= MAXSUPPLY, "Out of supply.");
    require(ipContract.getAvailability(), "Out of IP supply");

    require(msg.value >= COSTM3 * _mintAmount, "Insufficient Eth.");

    ipContract.mint(msg.sender, 1);
    _mintLoop(msg.sender, _mintAmount);
  }

  function publicSaleMint(uint256 _mintAmount) public payable {
    require(!paused);
    require(mintStatus == MintStatus.PUBLIC, "CP: Minting status invalid.");
    require(msg.sender == tx.origin, "CP: We like real users.");
    require(_mintAmount > 0 && _mintAmount <= MAXMINTAMOUNT, "Out of mint amount limit.");
    require(supply.current() + _mintAmount <= MAXSUPPLY, "Out of supply.");

    if(_mintAmount == 1)
      require(msg.value >= COSTM1 * _mintAmount, "Insufficient Eth.");
    else if(_mintAmount == 2)
      require(msg.value >= COSTM2 * _mintAmount, "Insufficient Eth.");
    else if(_mintAmount == 3)
      require(msg.value >= COSTM3 * _mintAmount, "Insufficient Eth.");

    _mintLoop(msg.sender, _mintAmount);
  }

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

    while (ownedTokenIndex < ownerTokenCount && currentTokenId <= MAXSUPPLY) {
      address currentTokenOwner = ownerOf(currentTokenId);

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

        ownedTokenIndex++;
      }

      currentTokenId++;
    }

    return ownedTokenIds;
  }

  function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) {
    require(_exists(_tokenId), "ERC721Metadata: URI query for nonexistent token.");

    if(reveal)
      return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, _tokenId.toString(), ".json")) : "";
    else
      return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI)) : "";
  }

  // Returns the URI for the contract-level metadata of the contract.
  function contractURI() public view returns (string memory) {
      return _contractURI;
  }

  function totalSupply() public view returns (uint256) {
    return supply.current();
  }

  function getAvailability() public view returns (bool) {
    if(supply.current() < MAXSUPPLY)
      return true;

    return false;
  }

//*** ONLY OWNER FUNCTION **** //
  function setBaseURI(string memory _newBaseURI) public onlyOwner {
    baseURI = _newBaseURI;
  }

  function pause(bool _state) public onlyOwner {
    paused = _state;
  }

  function setReveal(bool _reveal) public onlyOwner {
    reveal = _reveal;
  }

  function setMintStatus(uint256 status) public onlyOwner {
    require(status <= uint256(MintStatus.PUBLIC), "CP: Out of bounds.");

    mintStatus = MintStatus(status);
  }

  function setALMerkleRoot(bytes32 _merkleRoot) public onlyOwner {
    alMerkleRoot = _merkleRoot;
  }

  function ownerMint(uint256 _mintAmount) public onlyOwner {
    require(!paused);
    require(supply.current() + _mintAmount <= MAXSUPPLY, "Out of supply.");

    _mintLoop(t1, _mintAmount);
  }

  function airDropService(address[] calldata _airDropAddresses) public onlyOwner {
    require(!paused);
    require(supply.current() + _airDropAddresses.length <= MAXSUPPLY, "Out of supply.");

    for (uint256 i = 0; i < _airDropAddresses.length; i++) {
      supply.increment();
      _safeMint(_airDropAddresses[i], lastIndex);
      lastIndex--;
    }
  }

  function mintUnsettledSupply() public onlyOwner {
    require(!paused);

    uint256 _mintAmount = MAXSUPPLY - supply.current();
    require(_mintAmount > 0, "Invalid mint amount.");
    require(supply.current() + _mintAmount <= MAXSUPPLY, "Out of supply.");

    _mintLoop(t1, _mintAmount);
  }

  function mintUnsettledReserved() public onlyOwner {
    require(!paused);

    uint256 _mintAmount = lastIndex - (MAXSUPPLY - RESERVED);
    require(_mintAmount > 0, "Invalid mint amount.");
    require(supply.current() + _mintAmount <= MAXSUPPLY, "Out of supply.");

    _reverseMintLoop(t1, _mintAmount);
  }

  function mintInitialLegendary() public onlyOwner {
    require(!paused);

    uint256 _mintAmount = LEGENDARYRESERVED;
    require(supply.current() + _mintAmount <= MAXSUPPLY, "Out of supply.");

    _mintLoop(t1, _mintAmount);
  }

  function withdraw() public payable onlyOwner {
    (bool os, ) = payable(t1).call{value: address(this).balance}("");
    require(os);
  }

  function setIPContract(address _contractAddress) public onlyOwner {
      ipContract = IIP(_contractAddress);
  }

  // Sets contract URI for the contract-level metadata of the contract.
  function setContractURI(string calldata _URI) public onlyOwner {
      _contractURI = _URI;
  }

  function setDefaultRoyalty(address _receiver, uint96 _royaltyPercent) public onlyOwner {
      _setDefaultRoyalty(_receiver, _royaltyPercent);
  }

//REQUIRED OVERRIDE FOR ERC721 & ERC2981
  function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal override(ERC721) {
    super._beforeTokenTransfer(from, to, tokenId);
  }

  function supportsInterface(bytes4 interfaceId) public view override(ERC721, ERC2981)
        returns (bool)
    {
        return super.supportsInterface(interfaceId);
    }
}

File 2 of 16 : ERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;

import "../../interfaces/IERC2981.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

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

pragma solidity ^0.8.0;

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

    /**
     * @dev Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

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

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`,
     * consuming from one or the other at each step according to the instructions given by
     * `proofFlags`.
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 6 of 16 : ERC721Holder.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/utils/ERC721Holder.sol)

pragma solidity ^0.8.0;

import "../IERC721Receiver.sol";

/**
 * @dev Implementation of the {IERC721Receiver} interface.
 *
 * Accepts all token transfers.
 * Make sure the contract is able to use its token with {IERC721-safeTransferFrom}, {IERC721-approve} or {IERC721-setApprovalForAll}.
 */
contract ERC721Holder is IERC721Receiver {
    /**
     * @dev See {IERC721Receiver-onERC721Received}.
     *
     * Always returns `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address,
        address,
        uint256,
        bytes memory
    ) public virtual override returns (bytes4) {
        return this.onERC721Received.selector;
    }
}

File 7 of 16 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../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 ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

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

    /**
     * @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: address zero is not a valid owner");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: invalid token ID");
        return owner;
    }

    /**
     * @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) {
        _requireMinted(tokenId);

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

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

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        _requireMinted(tokenId);

        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: caller is not token 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: caller is not token 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) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == 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);

        _balances[to] += 1;
        _owners[tokenId] = 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 = ERC721.ownerOf(tokenId);

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

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

        _balances[owner] -= 1;
        delete _owners[tokenId];

        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(ERC721.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);

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits an {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 Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

    /**
     * @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 {
                    /// @solidity memory-safe-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @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` and `to` are never both zero.
     *
     * 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 {}

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

File 8 of 16 : 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 9 of 16 : IERC2981.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

File 12 of 16 : 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 16 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_nftContractAddress","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":[],"name":"ALCOSTM1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ALCOSTM2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ALCOSTM3","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"COSTM1","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"COSTM2","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"COSTM3","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"LEGENDARYRESERVED","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAXMINTAMOUNT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAXSUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"RESERVED","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_airDropAddresses","type":"address[]"}],"name":"airDropService","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"alClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"alMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"alSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"alSaleMintWithIP","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"firstIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAvailability","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ipContract","outputs":[{"internalType":"contract IIP","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":"lastIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintInitialLegendary","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintStatus","outputs":[{"internalType":"enum CubeMelt.MintStatus","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintUnsettledReserved","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"mintUnsettledSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_mintAmount","type":"uint256"}],"name":"publicSaleMint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"publicSaleMintWithIP","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reveal","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_merkleRoot","type":"bytes32"}],"name":"setALMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_newBaseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_URI","type":"string"}],"name":"setContractURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_receiver","type":"address"},{"internalType":"uint96","name":"_royaltyPercent","type":"uint96"}],"name":"setDefaultRoyalty","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contractAddress","type":"address"}],"name":"setIPContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"status","type":"uint256"}],"name":"setMintStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_reveal","type":"bool"}],"name":"setReveal","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"}]

6001600b556122b8600c55600d80546001600160a01b031916732283bf4705a9d4e850a4c8def2aae9ac98f4c495179055610100604052605360808181529062003a6d60a03980516200005b91600e916020909101906200037d565b5060405180608001604052806053815260200162003a1a6053913980516200008c91600f916020909101906200037d565b506010805462ffffff191690557f8f62519c00abe7499eeafaf92c56836beb2ef37ced9dbd029db4018d538dedb1601155348015620000ca57600080fd5b5060405162003ac038038062003ac0833981016040819052620000ed9162000423565b604080518082018252600881526710dd589953595b1d60c21b602080830191825283518085019094526002845261434d60f01b90840152815191929162000137916000916200037d565b5080516200014d9060019060208401906200037d565b5050506200016a62000164620001aa60201b60201c565b620001ae565b600d5462000184906001600160a01b03166101f462000200565b600980546001600160a01b0319166001600160a01b039290921691909117905562000492565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6200020a6200021a565b6200021682826200027c565b5050565b6006546001600160a01b031633146200027a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b565b6127106001600160601b0382161115620002ec5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b606482015260840162000271565b6001600160a01b038216620003445760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640162000271565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600755565b8280546200038b9062000455565b90600052602060002090601f016020900481019282620003af5760008555620003fa565b82601f10620003ca57805160ff1916838001178555620003fa565b82800160010185558215620003fa579182015b82811115620003fa578251825591602001919060010190620003dd565b50620004089291506200040c565b5090565b5b808211156200040857600081556001016200040d565b6000602082840312156200043657600080fd5b81516001600160a01b03811681146200044e57600080fd5b9392505050565b600181811c908216806200046a57607f821691505b602082108114156200048c57634e487b7160e01b600052602260045260246000fd5b50919050565b61357880620004a26000396000f3fe60806040526004361061038c5760003560e01c806370a08231116101dc578063a475b5dd11610102578063e8a3d485116100a0578063f2fde38b1161006f578063f2fde38b14610a22578063f3f6f0d714610a42578063f789adc9146103e8578063fe7328c514610a5857600080fd5b8063e8a3d48514610984578063e985e9c514610999578063edecce74146109e2578063f19e75d414610a0257600080fd5b8063b88d4fde116100dc578063b88d4fde1461091c578063baae348b1461093c578063c87b56dd1461094f578063e28cc2b21461096f57600080fd5b8063a475b5dd146108d9578063aa592f25146108f3578063b3ab66b01461090957600080fd5b80638da5cb5b1161017a57806395d89b411161014957806395d89b41146108475780639da3f8fd1461085c5780639f0709d814610889578063a22cb465146108b957600080fd5b80638da5cb5b146107d257806390893026146107f0578063938e3d7b1461080c578063949de8ef1461082c57600080fd5b8063758b4e86116101b6578063758b4e86146107675780637a53e0401461077d5780637f2fe4f414610792578063887fee31146107b257600080fd5b806370a082311461071d578063715018a61461073d578063720867a91461075257600080fd5b806338e6025a116102c157806355f804b31161025f5780635fd5a0881161022e5780635fd5a088146106ca5780636352211e146106d25780636b4f2c0f146106f25780636c0360eb1461070857600080fd5b806355f804b31461065057806358536f3b14610670578063590539761461068b5780635c975abb146106ab57600080fd5b80633df01c5c1161029b5780633df01c5c146105d357806342842e0e146105ee578063438b63001461060e57806352ecfc301461063b57600080fd5b806338e6025a146105a25780633ca2bad7146105b85780633ccfd60b146105cb57600080fd5b8063141eb1ce1161032e57806318160ddd1161030857806318160ddd1461050e57806323b872dd146105235780632a3f300c146105435780632a55205a1461056357600080fd5b8063141eb1ce146104ab578063150b7a02146104c0578063159d1eb3146104f957600080fd5b806304634d8d1161036a57806304634d8d1461041157806306fdde0314610431578063081812fc14610453578063095ea7b31461048b57600080fd5b806301ffc9a71461039157806302329a29146103c657806303be37e3146103e8575b600080fd5b34801561039d57600080fd5b506103b16103ac366004612ee3565b610a78565b60405190151581526020015b60405180910390f35b3480156103d257600080fd5b506103e66103e1366004612e90565b610a89565b005b3480156103f457600080fd5b5061040366b1a2bc2ec5000081565b6040519081526020016103bd565b34801561041d57600080fd5b506103e661042c366004612e16565b610aab565b34801561043d57600080fd5b50610446610ac1565b6040516103bd91906131f6565b34801561045f57600080fd5b5061047361046e366004612eca565b610b53565b6040516001600160a01b0390911681526020016103bd565b34801561049757600080fd5b506103e66104a6366004612dec565b610b7a565b3480156104b757600080fd5b506103e6610c95565b3480156104cc57600080fd5b506104e06104db366004612d39565b610d66565b6040516001600160e01b031990911681526020016103bd565b34801561050557600080fd5b50610403600f81565b34801561051a57600080fd5b50610403610d77565b34801561052f57600080fd5b506103e661053e366004612cfd565b610d87565b34801561054f57600080fd5b506103e661055e366004612e90565b610db8565b34801561056f57600080fd5b5061058361057e366004613024565b610dd3565b604080516001600160a01b0390931683526020830191909152016103bd565b3480156105ae57600080fd5b5061040360115481565b6103e66105c6366004612fd8565b610e81565b6103e6611126565b3480156105df57600080fd5b5061040366753d533d96800081565b3480156105fa57600080fd5b506103e6610609366004612cfd565b61118e565b34801561061a57600080fd5b5061062e610629366004612caf565b6111a9565b6040516103bd919061318a565b34801561064757600080fd5b506103e661128a565b34801561065c57600080fd5b506103e661066b366004612f8f565b611352565b34801561067c57600080fd5b5061040366e6ed27d666800081565b34801561069757600080fd5b506103e66106a6366004612eca565b61136d565b3480156106b757600080fd5b506010546103b190610100900460ff1681565b6103e661137a565b3480156106de57600080fd5b506104736106ed366004612eca565b6115b4565b3480156106fe57600080fd5b50610403600b5481565b34801561071457600080fd5b50610446611614565b34801561072957600080fd5b50610403610738366004612caf565b6116a2565b34801561074957600080fd5b506103e6611728565b34801561075e57600080fd5b506103e661173c565b34801561077357600080fd5b506104036122b881565b34801561078957600080fd5b506103b1611768565b34801561079e57600080fd5b506103e66107ad366004612caf565b611788565b3480156107be57600080fd5b506103e66107cd366004612eca565b6117b2565b3480156107de57600080fd5b506006546001600160a01b0316610473565b3480156107fc57600080fd5b5061040367011c37937e08000081565b34801561081857600080fd5b506103e6610827366004612f1d565b61183a565b34801561083857600080fd5b50610403668e1bc9bf04000081565b34801561085357600080fd5b5061044661184e565b34801561086857600080fd5b5060105461087c9062010000900460ff1681565b6040516103bd91906131ce565b34801561089557600080fd5b506103b16108a4366004612caf565b60126020526000908152604090205460ff1681565b3480156108c557600080fd5b506103e66108d4366004612db5565b61185d565b3480156108e557600080fd5b506010546103b19060ff1681565b3480156108ff57600080fd5b5061040361031881565b6103e6610917366004612eca565b611868565b34801561092857600080fd5b506103e6610937366004612d39565b6119d6565b6103e661094a366004612e4e565b611a08565b34801561095b57600080fd5b5061044661096a366004612eca565b611d73565b34801561097b57600080fd5b50610403600381565b34801561099057600080fd5b50610446611e9c565b3480156109a557600080fd5b506103b16109b4366004612cca565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156109ee57600080fd5b50600954610473906001600160a01b031681565b348015610a0e57600080fd5b506103e6610a1d366004612eca565b611eab565b348015610a2e57600080fd5b506103e6610a3d366004612caf565b611ec8565b348015610a4e57600080fd5b50610403600c5481565b348015610a6457600080fd5b506103e6610a73366004612e4e565b611f3e565b6000610a8382612003565b92915050565b610a91612028565b601080549115156101000261ff0019909216919091179055565b610ab3612028565b610abd8282612082565b5050565b606060008054610ad090613446565b80601f0160208091040260200160405190810160405280929190818152602001828054610afc90613446565b8015610b495780601f10610b1e57610100808354040283529160200191610b49565b820191906000526020600020905b815481529060010190602001808311610b2c57829003601f168201915b5050505050905090565b6000610b5e8261217f565b506000908152600460205260409020546001600160a01b031690565b6000610b85826115b4565b9050806001600160a01b0316836001600160a01b03161415610bf85760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b0382161480610c145750610c1481336109b4565b610c865760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610bef565b610c9083836121de565b505050565b610c9d612028565b601054610100900460ff1615610cb257600080fd5b6000610cc26103186122b86133ec565b600c54610ccf91906133ec565b905060008111610d185760405162461bcd60e51b815260206004820152601460248201527324b73b30b634b21036b4b73a1030b6b7bab73a1760611b6044820152606401610bef565b6122b881610d25600a5490565b610d2f91906133a1565b1115610d4d5760405162461bcd60e51b8152600401610bef906132bd565b600d54610d63906001600160a01b03168261224c565b50565b630a85bd0160e11b5b949350505050565b6000610d82600a5490565b905090565b610d913382612299565b610dad5760405162461bcd60e51b8152600401610bef90613353565b610c90838383612317565b610dc0612028565b6010805460ff1916911515919091179055565b60008281526008602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610e485750604080518082019091526007546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610e67906001600160601b0316876133cd565b610e7191906133b9565b91519350909150505b9250929050565b601054610100900460ff1615610e9657600080fd5b600160105462010000900460ff166002811115610eb557610eb56134dc565b14610ed25760405162461bcd60e51b8152600401610bef906132e5565b333214610ef15760405162461bcd60e51b8152600401610bef90613286565b600083118015610f02575060038311155b610f1e5760405162461bcd60e51b8152600401610bef9061331c565b6122b883610f2b600a5490565b610f3591906133a1565b1115610f535760405162461bcd60e51b8152600401610bef906132bd565b3360009081526012602052604090205460ff1615610fb35760405162461bcd60e51b815260206004820152601c60248201527f416464726573732068617320616c726561647920636c61696d65642e000000006044820152606401610bef565b6040516bffffffffffffffffffffffff193360601b16602082015260009060340160405160208183030381529060405280519060200120905061102d8383808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060115491508490506124b3565b61106a5760405162461bcd60e51b815260206004820152600e60248201526d24b73b30b634b210383937b7b31760911b6044820152606401610bef565b336000908152601260205260409020805460ff191660019081179091558414156110c35761109f8466b1a2bc2ec500006133cd565b3410156110be5760405162461bcd60e51b8152600401610bef9061325b565b611116565b83600214156110dd5761109f84668e1bc9bf0400006133cd565b8360031415611116576110f78466753d533d9680006133cd565b3410156111165760405162461bcd60e51b8152600401610bef9061325b565b61112033856124c9565b50505050565b61112e612028565b600d546040516000916001600160a01b03169047908381818185875af1925050503d806000811461117b576040519150601f19603f3d011682016040523d82523d6000602084013e611180565b606091505b5050905080610d6357600080fd5b610c90838383604051806020016040528060008152506119d6565b606060006111b6836116a2565b905060008167ffffffffffffffff8111156111d3576111d3613508565b6040519080825280602002602001820160405280156111fc578160200160208202803683370190505b509050600160005b838110801561121557506122b88211155b15611280576000611225836115b4565b9050866001600160a01b0316816001600160a01b0316141561126d5782848381518110611254576112546134f2565b60209081029190910101528161126981613481565b9250505b8261127781613481565b93505050611204565b5090949350505050565b611292612028565b601054610100900460ff16156112a757600080fd5b60006112b2600a5490565b6112be906122b86133ec565b9050600081116113075760405162461bcd60e51b815260206004820152601460248201527324b73b30b634b21036b4b73a1030b6b7bab73a1760611b6044820152606401610bef565b6122b881611314600a5490565b61131e91906133a1565b111561133c5760405162461bcd60e51b8152600401610bef906132bd565b600d54610d63906001600160a01b0316826124c9565b61135a612028565b8051610abd90600f906020840190612ad0565b611375612028565b601155565b601054600390610100900460ff161561139257600080fd5b600260105462010000900460ff1660028111156113b1576113b16134dc565b146113ce5760405162461bcd60e51b8152600401610bef906132e5565b3332146113ed5760405162461bcd60e51b8152600401610bef90613286565b6000811180156113fe575060038111155b61141a5760405162461bcd60e51b8152600401610bef9061331c565b6122b881611427600a5490565b61143191906133a1565b111561144f5760405162461bcd60e51b8152600401610bef906132bd565b600960009054906101000a90046001600160a01b03166001600160a01b0316637a53e0406040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561149f57600080fd5b505af11580156114b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114d79190612ead565b6115165760405162461bcd60e51b815260206004820152601060248201526f4f7574206f6620495020737570706c7960801b6044820152606401610bef565b6115278166b1a2bc2ec500006133cd565b3410156115465760405162461bcd60e51b8152600401610bef9061325b565b6009546040516340c10f1960e01b8152336004820152600160248201526001600160a01b03909116906340c10f1990604401600060405180830381600087803b15801561159257600080fd5b505af11580156115a6573d6000803e3d6000fd5b50505050610d6333826124c9565b6000818152600260205260408120546001600160a01b031680610a835760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610bef565b600f805461162190613446565b80601f016020809104026020016040519081016040528092919081815260200182805461164d90613446565b801561169a5780601f1061166f5761010080835404028352916020019161169a565b820191906000526020600020905b81548152906001019060200180831161167d57829003601f168201915b505050505081565b60006001600160a01b03821661170c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610bef565b506001600160a01b031660009081526003602052604090205490565b611730612028565b61173a6000612516565b565b611744612028565b601054610100900460ff161561175957600080fd5b600f6122b881611314600a5490565b60006122b8611776600a5490565b10156117825750600190565b50600090565b611790612028565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6117ba612028565b60028111156118005760405162461bcd60e51b815260206004820152601260248201527121a81d1027baba1037b3103137bab732399760711b6044820152606401610bef565b806002811115611812576118126134dc565b6010805462ff0000191662010000836002811115611832576118326134dc565b021790555050565b611842612028565b610c90600e8383612b54565b606060018054610ad090613446565b610abd338383612568565b601054610100900460ff161561187d57600080fd5b600260105462010000900460ff16600281111561189c5761189c6134dc565b146118b95760405162461bcd60e51b8152600401610bef906132e5565b3332146118d85760405162461bcd60e51b8152600401610bef90613286565b6000811180156118e9575060038111155b6119055760405162461bcd60e51b8152600401610bef9061331c565b6122b881611912600a5490565b61191c91906133a1565b111561193a5760405162461bcd60e51b8152600401610bef906132bd565b8060011415611979576119558167011c37937e0800006133cd565b3410156119745760405162461bcd60e51b8152600401610bef9061325b565b6119cc565b8060021415611993576119558166e6ed27d66680006133cd565b80600314156119cc576119ad8166b1a2bc2ec500006133cd565b3410156119cc5760405162461bcd60e51b8152600401610bef9061325b565b610d6333826124c9565b6119e03383612299565b6119fc5760405162461bcd60e51b8152600401610bef90613353565b61112084848484612637565b601054600390610100900460ff1615611a2057600080fd5b600160105462010000900460ff166002811115611a3f57611a3f6134dc565b14611a5c5760405162461bcd60e51b8152600401610bef906132e5565b333214611a7b5760405162461bcd60e51b8152600401610bef90613286565b600081118015611a8c575060038111155b611aa85760405162461bcd60e51b8152600401610bef9061331c565b6122b881611ab5600a5490565b611abf91906133a1565b1115611add5760405162461bcd60e51b8152600401610bef906132bd565b600960009054906101000a90046001600160a01b03166001600160a01b0316637a53e0406040518163ffffffff1660e01b8152600401602060405180830381600087803b158015611b2d57600080fd5b505af1158015611b41573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b659190612ead565b611ba45760405162461bcd60e51b815260206004820152601060248201526f4f7574206f6620495020737570706c7960801b6044820152606401610bef565b3360009081526012602052604090205460ff1615611c045760405162461bcd60e51b815260206004820152601c60248201527f416464726573732068617320616c726561647920636c61696d65642e000000006044820152606401610bef565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050611c7e8484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060115491508490506124b3565b611cbb5760405162461bcd60e51b815260206004820152600e60248201526d24b73b30b634b210383937b7b31760911b6044820152606401610bef565b336000908152601260205260409020805460ff19166001179055611ce68266753d533d9680006133cd565b341015611d055760405162461bcd60e51b8152600401610bef9061325b565b6009546040516340c10f1960e01b8152336004820152600160248201526001600160a01b03909116906340c10f1990604401600060405180830381600087803b158015611d5157600080fd5b505af1158015611d65573d6000803e3d6000fd5b5050505061112033836124c9565b6000818152600260205260409020546060906001600160a01b0316611df35760405162461bcd60e51b815260206004820152603060248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526f3732bc34b9ba32b73a103a37b5b2b71760811b6064820152608401610bef565b60105460ff1615611e5a576000600f8054611e0d90613446565b905011611e295760405180602001604052806000815250610a83565b600f611e348361266a565b604051602001611e45929190613118565b60405160208183030381529060405292915050565b6000600f8054611e6990613446565b905011611e855760405180602001604052806000815250610a83565b600f604051602001611e45919061310c565b919050565b6060600e8054610ad090613446565b611eb3612028565b601054610100900460ff161561130757600080fd5b611ed0612028565b6001600160a01b038116611f355760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610bef565b610d6381612516565b611f46612028565b601054610100900460ff1615611f5b57600080fd5b6122b881611f68600a5490565b611f7291906133a1565b1115611f905760405162461bcd60e51b8152600401610bef906132bd565b60005b81811015610c9057611fa9600a80546001019055565b611fdb838383818110611fbe57611fbe6134f2565b9050602002016020810190611fd39190612caf565b600c54612768565b600c8054906000611feb8361342f565b91905055508080611ffb90613481565b915050611f93565b60006001600160e01b0319821663152a902d60e11b1480610a835750610a8382612782565b6006546001600160a01b0316331461173a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610bef565b6127106001600160601b03821611156120f05760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610bef565b6001600160a01b0382166121465760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610bef565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600755565b6000818152600260205260409020546001600160a01b0316610d635760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610bef565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612213826115b4565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60005b81811015610c9057612265600a80546001019055565b61227183600c54612768565b600c80549060006122818361342f565b9190505550808061229190613481565b91505061224f565b6000806122a5836115b4565b9050806001600160a01b0316846001600160a01b031614806122ec57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80610d6f5750836001600160a01b031661230584610b53565b6001600160a01b031614949350505050565b826001600160a01b031661232a826115b4565b6001600160a01b03161461238e5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610bef565b6001600160a01b0382166123f05760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610bef565b6123fb6000826121de565b6001600160a01b03831660009081526003602052604081208054600192906124249084906133ec565b90915550506001600160a01b03821660009081526003602052604081208054600192906124529084906133a1565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000826124c085846127d2565b14949350505050565b60005b81811015610c90576124e2600a80546001019055565b6124ee83600b54612768565b600b80549060006124fe83613481565b9190505550808061250e90613481565b9150506124cc565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156125ca5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610bef565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612642848484612317565b61264e8484848461281f565b6111205760405162461bcd60e51b8152600401610bef90613209565b60608161268e5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156126b857806126a281613481565b91506126b19050600a836133b9565b9150612692565b60008167ffffffffffffffff8111156126d3576126d3613508565b6040519080825280601f01601f1916602001820160405280156126fd576020820181803683370190505b5090505b8415610d6f576127126001836133ec565b915061271f600a8661349c565b61272a9060306133a1565b60f81b81838151811061273f5761273f6134f2565b60200101906001600160f81b031916908160001a905350612761600a866133b9565b9450612701565b610abd828260405180602001604052806000815250612929565b60006001600160e01b031982166380ac58cd60e01b14806127b357506001600160e01b03198216635b5e139f60e01b145b80610a8357506301ffc9a760e01b6001600160e01b0319831614610a83565b600081815b845181101561281757612803828683815181106127f6576127f66134f2565b602002602001015161295c565b91508061280f81613481565b9150506127d7565b509392505050565b60006001600160a01b0384163b1561292157604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061286390339089908890889060040161314d565b602060405180830381600087803b15801561287d57600080fd5b505af19250505080156128ad575060408051601f3d908101601f191682019092526128aa91810190612f00565b60015b612907573d8080156128db576040519150601f19603f3d011682016040523d82523d6000602084013e6128e0565b606091505b5080516128ff5760405162461bcd60e51b8152600401610bef90613209565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610d6f565b506001610d6f565b612933838361298e565b612940600084848461281f565b610c905760405162461bcd60e51b8152600401610bef90613209565b6000818310612978576000828152602084905260409020612987565b60008381526020839052604090205b9392505050565b6001600160a01b0382166129e45760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610bef565b6000818152600260205260409020546001600160a01b031615612a495760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610bef565b6001600160a01b0382166000908152600360205260408120805460019290612a729084906133a1565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054612adc90613446565b90600052602060002090601f016020900481019282612afe5760008555612b44565b82601f10612b1757805160ff1916838001178555612b44565b82800160010185558215612b44579182015b82811115612b44578251825591602001919060010190612b29565b50612b50929150612bc8565b5090565b828054612b6090613446565b90600052602060002090601f016020900481019282612b825760008555612b44565b82601f10612b9b5782800160ff19823516178555612b44565b82800160010185558215612b44579182015b82811115612b44578235825591602001919060010190612bad565b5b80821115612b505760008155600101612bc9565b600067ffffffffffffffff80841115612bf857612bf8613508565b604051601f8501601f19908116603f01168101908282118183101715612c2057612c20613508565b81604052809350858152868686011115612c3957600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b0381168114611e9757600080fd5b60008083601f840112612c7c57600080fd5b50813567ffffffffffffffff811115612c9457600080fd5b6020830191508360208260051b8501011115610e7a57600080fd5b600060208284031215612cc157600080fd5b61298782612c53565b60008060408385031215612cdd57600080fd5b612ce683612c53565b9150612cf460208401612c53565b90509250929050565b600080600060608486031215612d1257600080fd5b612d1b84612c53565b9250612d2960208501612c53565b9150604084013590509250925092565b60008060008060808587031215612d4f57600080fd5b612d5885612c53565b9350612d6660208601612c53565b925060408501359150606085013567ffffffffffffffff811115612d8957600080fd5b8501601f81018713612d9a57600080fd5b612da987823560208401612bdd565b91505092959194509250565b60008060408385031215612dc857600080fd5b612dd183612c53565b91506020830135612de18161351e565b809150509250929050565b60008060408385031215612dff57600080fd5b612e0883612c53565b946020939093013593505050565b60008060408385031215612e2957600080fd5b612e3283612c53565b915060208301356001600160601b0381168114612de157600080fd5b60008060208385031215612e6157600080fd5b823567ffffffffffffffff811115612e7857600080fd5b612e8485828601612c6a565b90969095509350505050565b600060208284031215612ea257600080fd5b81356129878161351e565b600060208284031215612ebf57600080fd5b81516129878161351e565b600060208284031215612edc57600080fd5b5035919050565b600060208284031215612ef557600080fd5b81356129878161352c565b600060208284031215612f1257600080fd5b81516129878161352c565b60008060208385031215612f3057600080fd5b823567ffffffffffffffff80821115612f4857600080fd5b818501915085601f830112612f5c57600080fd5b813581811115612f6b57600080fd5b866020828501011115612f7d57600080fd5b60209290920196919550909350505050565b600060208284031215612fa157600080fd5b813567ffffffffffffffff811115612fb857600080fd5b8201601f81018413612fc957600080fd5b610d6f84823560208401612bdd565b600080600060408486031215612fed57600080fd5b83359250602084013567ffffffffffffffff81111561300b57600080fd5b61301786828701612c6a565b9497909650939450505050565b6000806040838503121561303757600080fd5b50508035926020909101359150565b6000815180845261305e816020860160208601613403565b601f01601f19169290920160200192915050565b8054600090600181811c908083168061308c57607f831692505b60208084108214156130ae57634e487b7160e01b600052602260045260246000fd5b8180156130c257600181146130d357613100565b60ff19861689528489019650613100565b60008881526020902060005b868110156130f85781548b8201529085019083016130df565b505084890196505b50505050505092915050565b60006129878284613072565b60006131248285613072565b8351613134818360208801613403565b64173539b7b760d91b9101908152600501949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061318090830184613046565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156131c2578351835292840192918401916001016131a6565b50909695505050505050565b60208101600383106131f057634e487b7160e01b600052602160045260246000fd5b91905290565b6020815260006129876020830184613046565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526011908201527024b739bab33334b1b4b2b73a1022ba341760791b604082015260600190565b60208082526017908201527f43503a205765206c696b65207265616c2075736572732e000000000000000000604082015260600190565b6020808252600e908201526d27baba1037b31039bab838363c9760911b604082015260600190565b6020808252601b908201527f43503a204d696e74696e672073746174757320696e76616c69642e0000000000604082015260600190565b60208082526019908201527f4f7574206f66206d696e7420616d6f756e74206c696d69742e00000000000000604082015260600190565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b600082198211156133b4576133b46134b0565b500190565b6000826133c8576133c86134c6565b500490565b60008160001904831182151516156133e7576133e76134b0565b500290565b6000828210156133fe576133fe6134b0565b500390565b60005b8381101561341e578181015183820152602001613406565b838111156111205750506000910152565b60008161343e5761343e6134b0565b506000190190565b600181811c9082168061345a57607f821691505b6020821081141561347b57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613495576134956134b0565b5060010190565b6000826134ab576134ab6134c6565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b8015158114610d6357600080fd5b6001600160e01b031981168114610d6357600080fdfea2646970667358221220cdf6832ca5c1e3e6144bd4d9f8313eef4baf362289a894c9a365ee279ae8807d64736f6c6343000807003368747470733a2f2f637562656d656c742e6d7970696e6174612e636c6f75642f697066732f516d526f74345769596d6b4a7066787a4b6d384e624144784e546d44766848333370597668644837766b4868334168747470733a2f2f637562656d656c742e6d7970696e6174612e636c6f75642f697066732f516d544256427873654843447137313836785771697845356d33704a4b624b5843667163317173435842356a666e000000000000000000000000c547542a21124803019928e6cd26a847431f9bd6

Deployed Bytecode

0x60806040526004361061038c5760003560e01c806370a08231116101dc578063a475b5dd11610102578063e8a3d485116100a0578063f2fde38b1161006f578063f2fde38b14610a22578063f3f6f0d714610a42578063f789adc9146103e8578063fe7328c514610a5857600080fd5b8063e8a3d48514610984578063e985e9c514610999578063edecce74146109e2578063f19e75d414610a0257600080fd5b8063b88d4fde116100dc578063b88d4fde1461091c578063baae348b1461093c578063c87b56dd1461094f578063e28cc2b21461096f57600080fd5b8063a475b5dd146108d9578063aa592f25146108f3578063b3ab66b01461090957600080fd5b80638da5cb5b1161017a57806395d89b411161014957806395d89b41146108475780639da3f8fd1461085c5780639f0709d814610889578063a22cb465146108b957600080fd5b80638da5cb5b146107d257806390893026146107f0578063938e3d7b1461080c578063949de8ef1461082c57600080fd5b8063758b4e86116101b6578063758b4e86146107675780637a53e0401461077d5780637f2fe4f414610792578063887fee31146107b257600080fd5b806370a082311461071d578063715018a61461073d578063720867a91461075257600080fd5b806338e6025a116102c157806355f804b31161025f5780635fd5a0881161022e5780635fd5a088146106ca5780636352211e146106d25780636b4f2c0f146106f25780636c0360eb1461070857600080fd5b806355f804b31461065057806358536f3b14610670578063590539761461068b5780635c975abb146106ab57600080fd5b80633df01c5c1161029b5780633df01c5c146105d357806342842e0e146105ee578063438b63001461060e57806352ecfc301461063b57600080fd5b806338e6025a146105a25780633ca2bad7146105b85780633ccfd60b146105cb57600080fd5b8063141eb1ce1161032e57806318160ddd1161030857806318160ddd1461050e57806323b872dd146105235780632a3f300c146105435780632a55205a1461056357600080fd5b8063141eb1ce146104ab578063150b7a02146104c0578063159d1eb3146104f957600080fd5b806304634d8d1161036a57806304634d8d1461041157806306fdde0314610431578063081812fc14610453578063095ea7b31461048b57600080fd5b806301ffc9a71461039157806302329a29146103c657806303be37e3146103e8575b600080fd5b34801561039d57600080fd5b506103b16103ac366004612ee3565b610a78565b60405190151581526020015b60405180910390f35b3480156103d257600080fd5b506103e66103e1366004612e90565b610a89565b005b3480156103f457600080fd5b5061040366b1a2bc2ec5000081565b6040519081526020016103bd565b34801561041d57600080fd5b506103e661042c366004612e16565b610aab565b34801561043d57600080fd5b50610446610ac1565b6040516103bd91906131f6565b34801561045f57600080fd5b5061047361046e366004612eca565b610b53565b6040516001600160a01b0390911681526020016103bd565b34801561049757600080fd5b506103e66104a6366004612dec565b610b7a565b3480156104b757600080fd5b506103e6610c95565b3480156104cc57600080fd5b506104e06104db366004612d39565b610d66565b6040516001600160e01b031990911681526020016103bd565b34801561050557600080fd5b50610403600f81565b34801561051a57600080fd5b50610403610d77565b34801561052f57600080fd5b506103e661053e366004612cfd565b610d87565b34801561054f57600080fd5b506103e661055e366004612e90565b610db8565b34801561056f57600080fd5b5061058361057e366004613024565b610dd3565b604080516001600160a01b0390931683526020830191909152016103bd565b3480156105ae57600080fd5b5061040360115481565b6103e66105c6366004612fd8565b610e81565b6103e6611126565b3480156105df57600080fd5b5061040366753d533d96800081565b3480156105fa57600080fd5b506103e6610609366004612cfd565b61118e565b34801561061a57600080fd5b5061062e610629366004612caf565b6111a9565b6040516103bd919061318a565b34801561064757600080fd5b506103e661128a565b34801561065c57600080fd5b506103e661066b366004612f8f565b611352565b34801561067c57600080fd5b5061040366e6ed27d666800081565b34801561069757600080fd5b506103e66106a6366004612eca565b61136d565b3480156106b757600080fd5b506010546103b190610100900460ff1681565b6103e661137a565b3480156106de57600080fd5b506104736106ed366004612eca565b6115b4565b3480156106fe57600080fd5b50610403600b5481565b34801561071457600080fd5b50610446611614565b34801561072957600080fd5b50610403610738366004612caf565b6116a2565b34801561074957600080fd5b506103e6611728565b34801561075e57600080fd5b506103e661173c565b34801561077357600080fd5b506104036122b881565b34801561078957600080fd5b506103b1611768565b34801561079e57600080fd5b506103e66107ad366004612caf565b611788565b3480156107be57600080fd5b506103e66107cd366004612eca565b6117b2565b3480156107de57600080fd5b506006546001600160a01b0316610473565b3480156107fc57600080fd5b5061040367011c37937e08000081565b34801561081857600080fd5b506103e6610827366004612f1d565b61183a565b34801561083857600080fd5b50610403668e1bc9bf04000081565b34801561085357600080fd5b5061044661184e565b34801561086857600080fd5b5060105461087c9062010000900460ff1681565b6040516103bd91906131ce565b34801561089557600080fd5b506103b16108a4366004612caf565b60126020526000908152604090205460ff1681565b3480156108c557600080fd5b506103e66108d4366004612db5565b61185d565b3480156108e557600080fd5b506010546103b19060ff1681565b3480156108ff57600080fd5b5061040361031881565b6103e6610917366004612eca565b611868565b34801561092857600080fd5b506103e6610937366004612d39565b6119d6565b6103e661094a366004612e4e565b611a08565b34801561095b57600080fd5b5061044661096a366004612eca565b611d73565b34801561097b57600080fd5b50610403600381565b34801561099057600080fd5b50610446611e9c565b3480156109a557600080fd5b506103b16109b4366004612cca565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156109ee57600080fd5b50600954610473906001600160a01b031681565b348015610a0e57600080fd5b506103e6610a1d366004612eca565b611eab565b348015610a2e57600080fd5b506103e6610a3d366004612caf565b611ec8565b348015610a4e57600080fd5b50610403600c5481565b348015610a6457600080fd5b506103e6610a73366004612e4e565b611f3e565b6000610a8382612003565b92915050565b610a91612028565b601080549115156101000261ff0019909216919091179055565b610ab3612028565b610abd8282612082565b5050565b606060008054610ad090613446565b80601f0160208091040260200160405190810160405280929190818152602001828054610afc90613446565b8015610b495780601f10610b1e57610100808354040283529160200191610b49565b820191906000526020600020905b815481529060010190602001808311610b2c57829003601f168201915b5050505050905090565b6000610b5e8261217f565b506000908152600460205260409020546001600160a01b031690565b6000610b85826115b4565b9050806001600160a01b0316836001600160a01b03161415610bf85760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b0382161480610c145750610c1481336109b4565b610c865760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610bef565b610c9083836121de565b505050565b610c9d612028565b601054610100900460ff1615610cb257600080fd5b6000610cc26103186122b86133ec565b600c54610ccf91906133ec565b905060008111610d185760405162461bcd60e51b815260206004820152601460248201527324b73b30b634b21036b4b73a1030b6b7bab73a1760611b6044820152606401610bef565b6122b881610d25600a5490565b610d2f91906133a1565b1115610d4d5760405162461bcd60e51b8152600401610bef906132bd565b600d54610d63906001600160a01b03168261224c565b50565b630a85bd0160e11b5b949350505050565b6000610d82600a5490565b905090565b610d913382612299565b610dad5760405162461bcd60e51b8152600401610bef90613353565b610c90838383612317565b610dc0612028565b6010805460ff1916911515919091179055565b60008281526008602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610e485750604080518082019091526007546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610e67906001600160601b0316876133cd565b610e7191906133b9565b91519350909150505b9250929050565b601054610100900460ff1615610e9657600080fd5b600160105462010000900460ff166002811115610eb557610eb56134dc565b14610ed25760405162461bcd60e51b8152600401610bef906132e5565b333214610ef15760405162461bcd60e51b8152600401610bef90613286565b600083118015610f02575060038311155b610f1e5760405162461bcd60e51b8152600401610bef9061331c565b6122b883610f2b600a5490565b610f3591906133a1565b1115610f535760405162461bcd60e51b8152600401610bef906132bd565b3360009081526012602052604090205460ff1615610fb35760405162461bcd60e51b815260206004820152601c60248201527f416464726573732068617320616c726561647920636c61696d65642e000000006044820152606401610bef565b6040516bffffffffffffffffffffffff193360601b16602082015260009060340160405160208183030381529060405280519060200120905061102d8383808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060115491508490506124b3565b61106a5760405162461bcd60e51b815260206004820152600e60248201526d24b73b30b634b210383937b7b31760911b6044820152606401610bef565b336000908152601260205260409020805460ff191660019081179091558414156110c35761109f8466b1a2bc2ec500006133cd565b3410156110be5760405162461bcd60e51b8152600401610bef9061325b565b611116565b83600214156110dd5761109f84668e1bc9bf0400006133cd565b8360031415611116576110f78466753d533d9680006133cd565b3410156111165760405162461bcd60e51b8152600401610bef9061325b565b61112033856124c9565b50505050565b61112e612028565b600d546040516000916001600160a01b03169047908381818185875af1925050503d806000811461117b576040519150601f19603f3d011682016040523d82523d6000602084013e611180565b606091505b5050905080610d6357600080fd5b610c90838383604051806020016040528060008152506119d6565b606060006111b6836116a2565b905060008167ffffffffffffffff8111156111d3576111d3613508565b6040519080825280602002602001820160405280156111fc578160200160208202803683370190505b509050600160005b838110801561121557506122b88211155b15611280576000611225836115b4565b9050866001600160a01b0316816001600160a01b0316141561126d5782848381518110611254576112546134f2565b60209081029190910101528161126981613481565b9250505b8261127781613481565b93505050611204565b5090949350505050565b611292612028565b601054610100900460ff16156112a757600080fd5b60006112b2600a5490565b6112be906122b86133ec565b9050600081116113075760405162461bcd60e51b815260206004820152601460248201527324b73b30b634b21036b4b73a1030b6b7bab73a1760611b6044820152606401610bef565b6122b881611314600a5490565b61131e91906133a1565b111561133c5760405162461bcd60e51b8152600401610bef906132bd565b600d54610d63906001600160a01b0316826124c9565b61135a612028565b8051610abd90600f906020840190612ad0565b611375612028565b601155565b601054600390610100900460ff161561139257600080fd5b600260105462010000900460ff1660028111156113b1576113b16134dc565b146113ce5760405162461bcd60e51b8152600401610bef906132e5565b3332146113ed5760405162461bcd60e51b8152600401610bef90613286565b6000811180156113fe575060038111155b61141a5760405162461bcd60e51b8152600401610bef9061331c565b6122b881611427600a5490565b61143191906133a1565b111561144f5760405162461bcd60e51b8152600401610bef906132bd565b600960009054906101000a90046001600160a01b03166001600160a01b0316637a53e0406040518163ffffffff1660e01b8152600401602060405180830381600087803b15801561149f57600080fd5b505af11580156114b3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114d79190612ead565b6115165760405162461bcd60e51b815260206004820152601060248201526f4f7574206f6620495020737570706c7960801b6044820152606401610bef565b6115278166b1a2bc2ec500006133cd565b3410156115465760405162461bcd60e51b8152600401610bef9061325b565b6009546040516340c10f1960e01b8152336004820152600160248201526001600160a01b03909116906340c10f1990604401600060405180830381600087803b15801561159257600080fd5b505af11580156115a6573d6000803e3d6000fd5b50505050610d6333826124c9565b6000818152600260205260408120546001600160a01b031680610a835760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610bef565b600f805461162190613446565b80601f016020809104026020016040519081016040528092919081815260200182805461164d90613446565b801561169a5780601f1061166f5761010080835404028352916020019161169a565b820191906000526020600020905b81548152906001019060200180831161167d57829003601f168201915b505050505081565b60006001600160a01b03821661170c5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610bef565b506001600160a01b031660009081526003602052604090205490565b611730612028565b61173a6000612516565b565b611744612028565b601054610100900460ff161561175957600080fd5b600f6122b881611314600a5490565b60006122b8611776600a5490565b10156117825750600190565b50600090565b611790612028565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b6117ba612028565b60028111156118005760405162461bcd60e51b815260206004820152601260248201527121a81d1027baba1037b3103137bab732399760711b6044820152606401610bef565b806002811115611812576118126134dc565b6010805462ff0000191662010000836002811115611832576118326134dc565b021790555050565b611842612028565b610c90600e8383612b54565b606060018054610ad090613446565b610abd338383612568565b601054610100900460ff161561187d57600080fd5b600260105462010000900460ff16600281111561189c5761189c6134dc565b146118b95760405162461bcd60e51b8152600401610bef906132e5565b3332146118d85760405162461bcd60e51b8152600401610bef90613286565b6000811180156118e9575060038111155b6119055760405162461bcd60e51b8152600401610bef9061331c565b6122b881611912600a5490565b61191c91906133a1565b111561193a5760405162461bcd60e51b8152600401610bef906132bd565b8060011415611979576119558167011c37937e0800006133cd565b3410156119745760405162461bcd60e51b8152600401610bef9061325b565b6119cc565b8060021415611993576119558166e6ed27d66680006133cd565b80600314156119cc576119ad8166b1a2bc2ec500006133cd565b3410156119cc5760405162461bcd60e51b8152600401610bef9061325b565b610d6333826124c9565b6119e03383612299565b6119fc5760405162461bcd60e51b8152600401610bef90613353565b61112084848484612637565b601054600390610100900460ff1615611a2057600080fd5b600160105462010000900460ff166002811115611a3f57611a3f6134dc565b14611a5c5760405162461bcd60e51b8152600401610bef906132e5565b333214611a7b5760405162461bcd60e51b8152600401610bef90613286565b600081118015611a8c575060038111155b611aa85760405162461bcd60e51b8152600401610bef9061331c565b6122b881611ab5600a5490565b611abf91906133a1565b1115611add5760405162461bcd60e51b8152600401610bef906132bd565b600960009054906101000a90046001600160a01b03166001600160a01b0316637a53e0406040518163ffffffff1660e01b8152600401602060405180830381600087803b158015611b2d57600080fd5b505af1158015611b41573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b659190612ead565b611ba45760405162461bcd60e51b815260206004820152601060248201526f4f7574206f6620495020737570706c7960801b6044820152606401610bef565b3360009081526012602052604090205460ff1615611c045760405162461bcd60e51b815260206004820152601c60248201527f416464726573732068617320616c726561647920636c61696d65642e000000006044820152606401610bef565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050611c7e8484808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060115491508490506124b3565b611cbb5760405162461bcd60e51b815260206004820152600e60248201526d24b73b30b634b210383937b7b31760911b6044820152606401610bef565b336000908152601260205260409020805460ff19166001179055611ce68266753d533d9680006133cd565b341015611d055760405162461bcd60e51b8152600401610bef9061325b565b6009546040516340c10f1960e01b8152336004820152600160248201526001600160a01b03909116906340c10f1990604401600060405180830381600087803b158015611d5157600080fd5b505af1158015611d65573d6000803e3d6000fd5b5050505061112033836124c9565b6000818152600260205260409020546060906001600160a01b0316611df35760405162461bcd60e51b815260206004820152603060248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526f3732bc34b9ba32b73a103a37b5b2b71760811b6064820152608401610bef565b60105460ff1615611e5a576000600f8054611e0d90613446565b905011611e295760405180602001604052806000815250610a83565b600f611e348361266a565b604051602001611e45929190613118565b60405160208183030381529060405292915050565b6000600f8054611e6990613446565b905011611e855760405180602001604052806000815250610a83565b600f604051602001611e45919061310c565b919050565b6060600e8054610ad090613446565b611eb3612028565b601054610100900460ff161561130757600080fd5b611ed0612028565b6001600160a01b038116611f355760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610bef565b610d6381612516565b611f46612028565b601054610100900460ff1615611f5b57600080fd5b6122b881611f68600a5490565b611f7291906133a1565b1115611f905760405162461bcd60e51b8152600401610bef906132bd565b60005b81811015610c9057611fa9600a80546001019055565b611fdb838383818110611fbe57611fbe6134f2565b9050602002016020810190611fd39190612caf565b600c54612768565b600c8054906000611feb8361342f565b91905055508080611ffb90613481565b915050611f93565b60006001600160e01b0319821663152a902d60e11b1480610a835750610a8382612782565b6006546001600160a01b0316331461173a5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610bef565b6127106001600160601b03821611156120f05760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610bef565b6001600160a01b0382166121465760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610bef565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600755565b6000818152600260205260409020546001600160a01b0316610d635760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610bef565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612213826115b4565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60005b81811015610c9057612265600a80546001019055565b61227183600c54612768565b600c80549060006122818361342f565b9190505550808061229190613481565b91505061224f565b6000806122a5836115b4565b9050806001600160a01b0316846001600160a01b031614806122ec57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b80610d6f5750836001600160a01b031661230584610b53565b6001600160a01b031614949350505050565b826001600160a01b031661232a826115b4565b6001600160a01b03161461238e5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610bef565b6001600160a01b0382166123f05760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610bef565b6123fb6000826121de565b6001600160a01b03831660009081526003602052604081208054600192906124249084906133ec565b90915550506001600160a01b03821660009081526003602052604081208054600192906124529084906133a1565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000826124c085846127d2565b14949350505050565b60005b81811015610c90576124e2600a80546001019055565b6124ee83600b54612768565b600b80549060006124fe83613481565b9190505550808061250e90613481565b9150506124cc565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156125ca5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610bef565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612642848484612317565b61264e8484848461281f565b6111205760405162461bcd60e51b8152600401610bef90613209565b60608161268e5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156126b857806126a281613481565b91506126b19050600a836133b9565b9150612692565b60008167ffffffffffffffff8111156126d3576126d3613508565b6040519080825280601f01601f1916602001820160405280156126fd576020820181803683370190505b5090505b8415610d6f576127126001836133ec565b915061271f600a8661349c565b61272a9060306133a1565b60f81b81838151811061273f5761273f6134f2565b60200101906001600160f81b031916908160001a905350612761600a866133b9565b9450612701565b610abd828260405180602001604052806000815250612929565b60006001600160e01b031982166380ac58cd60e01b14806127b357506001600160e01b03198216635b5e139f60e01b145b80610a8357506301ffc9a760e01b6001600160e01b0319831614610a83565b600081815b845181101561281757612803828683815181106127f6576127f66134f2565b602002602001015161295c565b91508061280f81613481565b9150506127d7565b509392505050565b60006001600160a01b0384163b1561292157604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061286390339089908890889060040161314d565b602060405180830381600087803b15801561287d57600080fd5b505af19250505080156128ad575060408051601f3d908101601f191682019092526128aa91810190612f00565b60015b612907573d8080156128db576040519150601f19603f3d011682016040523d82523d6000602084013e6128e0565b606091505b5080516128ff5760405162461bcd60e51b8152600401610bef90613209565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610d6f565b506001610d6f565b612933838361298e565b612940600084848461281f565b610c905760405162461bcd60e51b8152600401610bef90613209565b6000818310612978576000828152602084905260409020612987565b60008381526020839052604090205b9392505050565b6001600160a01b0382166129e45760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610bef565b6000818152600260205260409020546001600160a01b031615612a495760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610bef565b6001600160a01b0382166000908152600360205260408120805460019290612a729084906133a1565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b828054612adc90613446565b90600052602060002090601f016020900481019282612afe5760008555612b44565b82601f10612b1757805160ff1916838001178555612b44565b82800160010185558215612b44579182015b82811115612b44578251825591602001919060010190612b29565b50612b50929150612bc8565b5090565b828054612b6090613446565b90600052602060002090601f016020900481019282612b825760008555612b44565b82601f10612b9b5782800160ff19823516178555612b44565b82800160010185558215612b44579182015b82811115612b44578235825591602001919060010190612bad565b5b80821115612b505760008155600101612bc9565b600067ffffffffffffffff80841115612bf857612bf8613508565b604051601f8501601f19908116603f01168101908282118183101715612c2057612c20613508565b81604052809350858152868686011115612c3957600080fd5b858560208301376000602087830101525050509392505050565b80356001600160a01b0381168114611e9757600080fd5b60008083601f840112612c7c57600080fd5b50813567ffffffffffffffff811115612c9457600080fd5b6020830191508360208260051b8501011115610e7a57600080fd5b600060208284031215612cc157600080fd5b61298782612c53565b60008060408385031215612cdd57600080fd5b612ce683612c53565b9150612cf460208401612c53565b90509250929050565b600080600060608486031215612d1257600080fd5b612d1b84612c53565b9250612d2960208501612c53565b9150604084013590509250925092565b60008060008060808587031215612d4f57600080fd5b612d5885612c53565b9350612d6660208601612c53565b925060408501359150606085013567ffffffffffffffff811115612d8957600080fd5b8501601f81018713612d9a57600080fd5b612da987823560208401612bdd565b91505092959194509250565b60008060408385031215612dc857600080fd5b612dd183612c53565b91506020830135612de18161351e565b809150509250929050565b60008060408385031215612dff57600080fd5b612e0883612c53565b946020939093013593505050565b60008060408385031215612e2957600080fd5b612e3283612c53565b915060208301356001600160601b0381168114612de157600080fd5b60008060208385031215612e6157600080fd5b823567ffffffffffffffff811115612e7857600080fd5b612e8485828601612c6a565b90969095509350505050565b600060208284031215612ea257600080fd5b81356129878161351e565b600060208284031215612ebf57600080fd5b81516129878161351e565b600060208284031215612edc57600080fd5b5035919050565b600060208284031215612ef557600080fd5b81356129878161352c565b600060208284031215612f1257600080fd5b81516129878161352c565b60008060208385031215612f3057600080fd5b823567ffffffffffffffff80821115612f4857600080fd5b818501915085601f830112612f5c57600080fd5b813581811115612f6b57600080fd5b866020828501011115612f7d57600080fd5b60209290920196919550909350505050565b600060208284031215612fa157600080fd5b813567ffffffffffffffff811115612fb857600080fd5b8201601f81018413612fc957600080fd5b610d6f84823560208401612bdd565b600080600060408486031215612fed57600080fd5b83359250602084013567ffffffffffffffff81111561300b57600080fd5b61301786828701612c6a565b9497909650939450505050565b6000806040838503121561303757600080fd5b50508035926020909101359150565b6000815180845261305e816020860160208601613403565b601f01601f19169290920160200192915050565b8054600090600181811c908083168061308c57607f831692505b60208084108214156130ae57634e487b7160e01b600052602260045260246000fd5b8180156130c257600181146130d357613100565b60ff19861689528489019650613100565b60008881526020902060005b868110156130f85781548b8201529085019083016130df565b505084890196505b50505050505092915050565b60006129878284613072565b60006131248285613072565b8351613134818360208801613403565b64173539b7b760d91b9101908152600501949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061318090830184613046565b9695505050505050565b6020808252825182820181905260009190848201906040850190845b818110156131c2578351835292840192918401916001016131a6565b50909695505050505050565b60208101600383106131f057634e487b7160e01b600052602160045260246000fd5b91905290565b6020815260006129876020830184613046565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526011908201527024b739bab33334b1b4b2b73a1022ba341760791b604082015260600190565b60208082526017908201527f43503a205765206c696b65207265616c2075736572732e000000000000000000604082015260600190565b6020808252600e908201526d27baba1037b31039bab838363c9760911b604082015260600190565b6020808252601b908201527f43503a204d696e74696e672073746174757320696e76616c69642e0000000000604082015260600190565b60208082526019908201527f4f7574206f66206d696e7420616d6f756e74206c696d69742e00000000000000604082015260600190565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b600082198211156133b4576133b46134b0565b500190565b6000826133c8576133c86134c6565b500490565b60008160001904831182151516156133e7576133e76134b0565b500290565b6000828210156133fe576133fe6134b0565b500390565b60005b8381101561341e578181015183820152602001613406565b838111156111205750506000910152565b60008161343e5761343e6134b0565b506000190190565b600181811c9082168061345a57607f821691505b6020821081141561347b57634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613495576134956134b0565b5060010190565b6000826134ab576134ab6134c6565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b8015158114610d6357600080fd5b6001600160e01b031981168114610d6357600080fdfea2646970667358221220cdf6832ca5c1e3e6144bd4d9f8313eef4baf362289a894c9a365ee279ae8807d64736f6c63430008070033

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

000000000000000000000000c547542a21124803019928e6cd26a847431f9bd6

-----Decoded View---------------
Arg [0] : _nftContractAddress (address): 0xc547542A21124803019928e6cd26a847431F9bd6

-----Encoded View---------------
1 Constructor Arguments found :
Arg [0] : 000000000000000000000000c547542a21124803019928e6cd26a847431f9bd6


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

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