ETH Price: $3,101.09 (+2.50%)
Gas: 3 Gwei

Token

Grados (GRDS3D)
 

Overview

Max Total Supply

4,514 GRDS3D

Holders

1,349

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Filtered by Token Holder
weirdodivine.eth
Balance
1 GRDS3D
0x6a698412187c1234575679ad8b1c1b5b801c5003
Loading...
Loading
Loading...
Loading
Loading...
Loading

OVERVIEW

Grados are generative, game-ready creatures soon to be playable in our upcoming platformer. Out of 30 ancestries, features 2 original characters created by XCOPY. Grados co-exist with [Gradis](https://opensea.io/collection/gradis)

# Exchange Pair Price  24H Volume % Volume

Contract Source Code Verified (Exact Match)

Contract Name:
Grados3D

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 16 : Grados3D.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/token/common/ERC2981.sol";

contract Grados3D is ERC721, ERC721Enumerable, ERC2981, Ownable {
    using Strings for uint256;
    using Strings for uint8;
    bytes32 private root = 0xdc5cd25a44c36e69e9ca3896e833de1e3b9662279222692b7c97594a67dcdec5;
    //Weights of each Grados property
    uint8[] private VALUE1 = [10, 10, 10, 10, 10, 10, 10, 10, 10, 10];
    uint8[] private VALUE2 = [7, 7, 7, 7, 7, 7, 7, 7, 7, 6, 7, 7, 1, 1, 1, 7, 7];
    uint8[] private VALUE3 = [5, 15, 15, 15, 15, 15, 15];
    uint8[] private VALUE4 = [100, 100, 100, 100, 100, 50, 50, 50, 50, 50, 50, 50, 25, 25, 25, 25, 25, 25];
    uint8[] private VALUE5 = [8, 8, 6, 6, 6, 6, 5, 4, 4, 4, 4, 4, 4, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1];
    uint8[] private VALUE6 = [175, 130, 130, 130, 130, 130, 130, 5, 30, 10];
    uint8[] private VALUE7 = [68, 15, 10, 7];


    // uint8[] private VALUE1 = [30, 25, 22, 18, 15, 10, 5, 1];
    // uint8[] private VALUE2 = [30, 25, 22, 18, 15, 10, 5, 1];
    // uint8[] private VALUE3 = [30, 25, 22, 18, 15, 10, 5, 1];
    // uint8[] private VALUE4 = [30, 25, 22, 18, 15, 10, 5, 1];
    // uint8[] private VALUE5 = [30, 29,28,27,26,25,24,23,22,21,20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1];
    // uint8[] private VALUE6 = [30, 25, 22, 18, 15, 10, 5, 1];
    // uint8[] private VALUE7 = [30, 25, 22, 18, 15, 10, 5, 1];

    string private gradosBaseURI;
    uint256 private gradosPrice = 0; // 0 ETH
    uint8 private gradosPerTx = 1;
    bool private saleIsActive = false;
    uint256 private maxGradosSupply = 0;
    uint256 private totalToBeClaim = 0;
    bool private claimIsActive = false;
    bool private allowListIsActive = false;
    bool private skip = false;
    uint8 private maxGradosAllow = 2;


    mapping(address => uint) public rewards;
    mapping(address => uint) public mintByWallet;

    struct Rewards{
        address wallet;
        uint8 quantity;
    }

    constructor() ERC721("Grados", "GRDS3D") {
        _setDefaultRoyalty(msg.sender, 500);
    }

    event Minted(address wallet, uint256 tokenId);
    event Claimed(address wallet, uint256 amount);
    event ElToken(uint256 tokenId);
    /**
     * @dev function to convert a string to uint256.
     * https://ethereum.stackexchange.com/questions/62371/convert-a-string-to-a-uint256-with-error-handling
     */
    function strToUint(string memory _str) internal pure returns (uint256 res) {
        for (uint256 i = 0; i < bytes(_str).length; i++) {
            if (
                (uint8(bytes(_str)[i]) - 48) < 0 ||
                (uint8(bytes(_str)[i]) - 48) > 9
            ) {
                return 0;
            }
            res +=
                (uint8(bytes(_str)[i]) - 48) *
                10**(bytes(_str).length - i - 1);
        }

        return res;
    }
    
    function onAllowList(bytes32[] calldata _merkleProof) public view returns (bool) {
        bytes32 leafToCheck = keccak256(abi.encodePacked(msg.sender));
        return MerkleProof.verify(_merkleProof, root, leafToCheck); 
    }
    
    function setMerkleRoot(bytes32 newRoot) public onlyOwner {
        root = newRoot;
    }

    function setOGHolder(Rewards[] memory rewardsByWallet) public onlyOwner  {
        for(uint8 i = 0; i < rewardsByWallet.length; i++) {
          rewards[rewardsByWallet[i].wallet] += rewardsByWallet[i].quantity;
        }
    }

    function setBaseURI(string memory baseURI) public onlyOwner {
        gradosBaseURI = baseURI;
    }

    function setGradosPrice(uint256 price) public onlyOwner {
        gradosPrice = price;
    }

    function setGradosPerTx(uint8 perTx) public onlyOwner {
        gradosPerTx = perTx;
    }

    function setSaleStatus() public onlyOwner {
        saleIsActive = !saleIsActive;
    }

    function setClaimStatus() public onlyOwner {
        claimIsActive = !claimIsActive;
    }
    
    function setAllowListStatus() public onlyOwner {
         allowListIsActive = !allowListIsActive;
    }
    
    function setMaxGradosSupply(uint256 maxSupply) public onlyOwner {
        maxGradosSupply = maxSupply;
    }

    function setTotalToBeClaim(uint256 quantity) public onlyOwner {
        totalToBeClaim = quantity;
    }

    function setSkip() public onlyOwner {
        skip = !skip;
    }

    function setMaxGradosAllow(uint8 maxQuantity) public onlyOwner {
      maxGradosAllow = maxQuantity;
    }

    function getRandomWeightedIndex(uint seed, uint8[] memory arrayOfWeights, bool return2Characters) public view returns (string memory) {
        uint16 totalWeight = 0;
        for(uint8 i = 0; i < arrayOfWeights.length; i++) {
          totalWeight += arrayOfWeights[i];
        }
        
        uint randomWeight = uint256(keccak256(abi.encodePacked(block.timestamp, block.difficulty, seed))) % totalWeight;
        uint16 currentWeight = 0;
        
        for(uint8 i = 0; i < arrayOfWeights.length; i++) {
            currentWeight += arrayOfWeights[i]; 
            if(randomWeight < currentWeight && i < 10) {
               if(return2Characters){
                 return string(bytes.concat(bytes("0"), bytes(i.toString())));
               } else {
                 return i.toString();
                }
             } else if (randomWeight < currentWeight && i > 9) {
               return i.toString();
             }
        }
        
        if(return2Characters) {
          return "00";
        } else {
          return "0";
        }
    }

    // function getValue2(uint seed) public view returns (string memory) {
    //   return getRandomWeightedIndex(seed, VALUE11, true);
    // }

    function getOGHoldersRewards(address wallet) public view returns(uint) {
        return rewards[wallet];
    }

    function getTotalMinted(address wallet) public view returns(uint) {
        if(skip) {
          return 0;
        }
        if (mintByWallet[wallet] >= 0) {
            return mintByWallet[wallet];
        } 
        return 0;
      }

    function getTotalToBeClaim() public view returns(uint) {
        return totalToBeClaim;
    }

    function getClaimStatus() public view returns(bool) {
        return claimIsActive;
    }

    function getAllowListStatus() public view returns(bool) {
        return allowListIsActive;
    }
    
    function getSaleStatus() public view returns(bool) {
        return saleIsActive;
    }
    
    function getPrice() public view returns(uint256) {
        return gradosPrice;
    }
    
    function getMaxGradosAllowPerWallet() public view returns(uint256) {
        return maxGradosAllow;
    }
    
    function getMaxGradosSupply() public view returns(uint256) {
        return maxGradosSupply;
    }

    function getMaxPerTx() public view returns(uint256) {
        return gradosPerTx;
    }


    function validateSeeds(uint256[][] memory seeds) public pure returns (bool) {
        bool isValid = false;
        for(uint8 i = 0; i< seeds.length; i++) {
            if (seeds[i].length == 13){
              isValid = true;
            }
        }

        return isValid;
    }
  
    function generateTokenId(uint256[] memory tokenSeeds) public view returns (uint256) {
       string memory firstPartToken = string(bytes.concat(bytes("2"),bytes(getRandomWeightedIndex(tokenSeeds[0], VALUE1, true)),bytes(getRandomWeightedIndex(tokenSeeds[1], VALUE2, true)),bytes(getRandomWeightedIndex(tokenSeeds[2], VALUE3, false)),bytes(getRandomWeightedIndex(tokenSeeds[3], VALUE4, true)),bytes(getRandomWeightedIndex(tokenSeeds[4], VALUE4, true))));
       string memory secondPartToken = string(bytes.concat(bytes(getRandomWeightedIndex(tokenSeeds[5], VALUE5, true)),bytes(getRandomWeightedIndex(tokenSeeds[6], VALUE5, true)),bytes(getRandomWeightedIndex(tokenSeeds[7], VALUE3, false)),bytes(getRandomWeightedIndex(tokenSeeds[8], VALUE4, true)),bytes(getRandomWeightedIndex(tokenSeeds[9], VALUE4, true))));
       string memory thirdPartToken = string(bytes.concat(bytes(getRandomWeightedIndex(tokenSeeds[10], VALUE6, true)),bytes(getRandomWeightedIndex(tokenSeeds[11], VALUE7, false)),bytes(getRandomWeightedIndex(tokenSeeds[12], VALUE7, false))));
       return strToUint(string(bytes.concat(bytes(firstPartToken), bytes(secondPartToken), bytes(thirdPartToken))));
    }

    function totalSupplyWithTotalToClaim() public view returns (uint256) {
      if(!claimIsActive) {
          return totalSupply(); 
      }

      return totalSupply() + totalToBeClaim;
    }

    function mint(uint256[][] memory quantity) external payable{
        require(getSaleStatus(), "Mint: Sale is not active");
        require(validateSeeds(quantity), "Mint: provided seeds no valid");
        require(quantity.length <= gradosPerTx,"Mint: grados to mint exceeds max per transations");
        require(msg.value >= gradosPrice * quantity.length, "Mint: Ether amount incorrect");
        require(getTotalMinted(msg.sender) + quantity.length <= getMaxGradosAllowPerWallet(), "Mint: this wallet already owns some Grados");
        require(totalSupply() + quantity.length <= maxGradosSupply,"Mint: Purchase would exceed max supply");
        for(uint8 i = 0; i < quantity.length; i++) {

            uint256 generatedToken = generateTokenId(quantity[i]);

            if(super._exists(generatedToken)) {
                uint256[] memory reverseSeeds;
                for (uint j = quantity.length; j > 0; j--) {
                  reverseSeeds[12 - i] = quantity[i][j];
                }
                generatedToken = generateTokenId(reverseSeeds);
                emit ElToken(generatedToken);
            } else {
              emit ElToken(generatedToken);
              _safeMint(msg.sender, generatedToken);
              mintByWallet[msg.sender] += 1; 
              emit Minted(msg.sender, generatedToken);
            }
        }
    }

    function claimReward(uint256[][] memory seeds) public{
        require(claimIsActive, "Claim Reward: is not active");
        require(validateSeeds(seeds), "Claim Reward: provided seeds no valid");
        require(seeds.length <= getOGHoldersRewards(msg.sender), "Claim Reward: Claim amount is not correct");
        require(totalSupply() + seeds.length <= maxGradosSupply,"Claim Reward: Purchase would exceed max supply");
        for(uint8 i = 0; i < seeds.length; i++) {
          uint256 generatedToken = generateTokenId(seeds[i]);
         
          if(super._exists(generatedToken)) {
            uint256[] memory reverseSeeds;
            for (uint j = seeds.length; j > 0; j--) {
               reverseSeeds[12 - i] = seeds[i][j];
             }
             generatedToken = generateTokenId(reverseSeeds);
             emit ElToken(generatedToken);
          }else {
            _safeMint(msg.sender, generatedToken);
            totalToBeClaim -= 1;
            emit ElToken(generatedToken);
            emit Minted(msg.sender, generatedToken);
          }
        }
        rewards[msg.sender] = rewards[msg.sender] - seeds.length;
        emit Claimed(msg.sender, seeds.length);
    }
    
    function allowList(uint256[][] memory seeds, bytes32[] calldata _merkleProof) external payable {
        require(_merkleProof.length > 0, "AllowList: you should provide a _merkleProof");
        require(getAllowListStatus(), "AllowList: is not active");
        require(onAllowList(_merkleProof), "AllowList: you are not allowed to mint yet");
        require(validateSeeds(seeds), "AllowList: provided seeds no valid");
        require(seeds.length <= gradosPerTx, "AllowList: seeds amount is not correct");
        require(msg.value >= gradosPrice * seeds.length, "AllowList: Ether amount incorrect");
        require(getTotalMinted(msg.sender) + seeds.length <= getMaxGradosAllowPerWallet(), "AllowList: You can not mint this quantity of Grados");
        require(totalSupply() + seeds.length <= maxGradosSupply,"AllowList: Purchase would exceed max supply");
        for(uint8 i = 0; i < seeds.length; i++) {
            uint256 generatedToken = generateTokenId(seeds[i]);

            if(super._exists(generatedToken)) {
                uint256[] memory reverseSeeds;
                for (uint j = seeds.length; j > 0; j--) {
                  reverseSeeds[12 - i] = seeds[i][j];
                }
                generatedToken = generateTokenId(reverseSeeds);
                emit ElToken(generatedToken);
            } else {
              _safeMint(msg.sender, generatedToken);
              emit ElToken(generatedToken);
              mintByWallet[msg.sender] += 1; 
              emit Minted(msg.sender, generatedToken);
            }
        }
    }

    function safeMint(address to, uint256[][] memory seeds)
        public
        onlyOwner
    {
        require(validateSeeds(seeds), "SafeMint: provided seeds no valid");
        require(totalSupply() + seeds.length <= maxGradosSupply,"SafeMint: Purchase would exceed max supply");
        for(uint8 i = 0; i < seeds.length; i++) {
          uint256 generatedToken = generateTokenId(seeds[i]);
          _safeMint(to, generatedToken);
          emit ElToken(generatedToken);
          emit Minted(to, generatedToken);
        }
    }

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

    // The following functions are overrides required by Solidity.
    function tokenURI(uint256 tokenId)
        public
        view
        override(ERC721)
        returns (string memory)
    {
        return bytes(gradosBaseURI).length > 0 ? string(abi.encodePacked(gradosBaseURI, tokenId.toString())) : "";

    }

    function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal override(ERC721, ERC721Enumerable)
    {
        super._beforeTokenTransfer(from, to, tokenId);
    }

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

File 2 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);
}

File 3 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 4 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 5 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 6 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 7 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 8 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 9 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 10 of 16 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "./IERC721Enumerable.sol";

/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

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

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

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, ``from``'s `tokenId` will be burned.
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

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

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

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

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

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

File 12 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 13 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 14 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 15 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 16 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);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"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":false,"internalType":"address","name":"wallet","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"}],"name":"Claimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ElToken","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"wallet","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Minted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"uint256[][]","name":"seeds","type":"uint256[][]"},{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"allowList","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":[{"internalType":"uint256[][]","name":"seeds","type":"uint256[][]"}],"name":"claimReward","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenSeeds","type":"uint256[]"}],"name":"generateTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAllowListStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"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":"getClaimStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMaxGradosAllowPerWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMaxGradosSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMaxPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"}],"name":"getOGHoldersRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"seed","type":"uint256"},{"internalType":"uint8[]","name":"arrayOfWeights","type":"uint8[]"},{"internalType":"bool","name":"return2Characters","type":"bool"}],"name":"getRandomWeightedIndex","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getSaleStatus","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"wallet","type":"address"}],"name":"getTotalMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTotalToBeClaim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":[{"internalType":"uint256[][]","name":"quantity","type":"uint256[][]"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintByWallet","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_merkleProof","type":"bytes32[]"}],"name":"onAllowList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"to","type":"address"},{"internalType":"uint256[][]","name":"seeds","type":"uint256[][]"}],"name":"safeMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setAllowListStatus","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":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setClaimStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"perTx","type":"uint8"}],"name":"setGradosPerTx","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setGradosPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint8","name":"maxQuantity","type":"uint8"}],"name":"setMaxGradosAllow","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"maxSupply","type":"uint256"}],"name":"setMaxGradosSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"newRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"wallet","type":"address"},{"internalType":"uint8","name":"quantity","type":"uint8"}],"internalType":"struct Grados3D.Rewards[]","name":"rewardsByWallet","type":"tuple[]"}],"name":"setOGHolder","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setSaleStatus","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"setSkip","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"}],"name":"setTotalToBeClaim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupplyWithTotalToClaim","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[][]","name":"seeds","type":"uint256[][]"}],"name":"validateSeeds","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

7fdc5cd25a44c36e69e9ca3896e833de1e3b9662279222692b7c97594a67dcdec5600d556101c0604052600a608081815260a082905260c082905260e08290526101008290526101208290526101408290526101608290526101808290526101a08290526200007291600e9190620005cd565b506040805161022081018252600780825260208201819052918101829052606081018290526080810182905260a0810182905260c0810182905260e081018290526101008101829052600661012082015261014081018290526101608101829052600161018082018190526101a082018190526101c08201526101e081018290526102008101919091526200010c90600f906011620005cd565b506040805160e08101825260058152600f60208201819052918101829052606081018290526080810182905260a0810182905260c081019190915262000157906010906007620005cd565b506040805161024081018252606480825260208201819052918101829052606081018290526080810191909152603260a0820181905260c0820181905260e08201819052610100820181905261012082018190526101408201819052610160820152601961018082018190526101a082018190526101c082018190526101e082018190526102008201819052610220820152620001f9906011906012620005cd565b50604080516103c081018252600880825260208201526006918101829052606081018290526080810182905260a0810191909152600560c0820152600460e08201819052610100820181905261012082018190526101408201819052610160820181905261018082015260036101a082018190526101c082018190526101e08201526002610200820181905261022082018190526102408201819052610260820181905261028082018190526102a082018190526102c082018190526102e08201526001610300820181905261032082018190526103408201819052610360820181905261038082018190526103a0820152620002fb90601290601e620005cd565b50604080516101408101825260af8152608260208201819052918101829052606081018290526080810182905260a0810182905260c0810191909152600560e0820152601e610100820152600a61012082018190526200035e91601391620005cd565b506040805160808101825260448152600f6020820152600a918101919091526007606082015262000394906014906004620005cd565b50600060168190556017805461ffff191660011790556018819055601955601a8054630200000063ffffffff19909116179055348015620003d457600080fd5b5060405180604001604052806006815260200165477261646f7360d01b8152506040518060400160405280600681526020016511d49114ccd160d21b81525081600090805190602001906200042b9291906200067a565b508051620004419060019060208401906200067a565b5050506200045e620004586200047260201b60201c565b62000476565b6200046c336101f4620004c8565b6200074b565b3390565b600c80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6127106001600160601b03821611156200053c5760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b60648201526084015b60405180910390fd5b6001600160a01b038216620005945760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c696420726563656976657200000000000000604482015260640162000533565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600a55565b82805482825590600052602060002090601f01602090048101928215620006685791602002820160005b838211156200063757835183826101000a81548160ff021916908360ff1602179055509260200192600101602081600001049283019260010302620005f7565b8015620006665782816101000a81549060ff021916905560010160208160000104928301926001030262000637565b505b5062000676929150620006f7565b5090565b82805462000688906200070e565b90600052602060002090601f016020900481019282620006ac576000855562000668565b82601f10620006c757805160ff191683800117855562000668565b8280016001018555821562000668579182015b8281111562000668578251825591602001919060010190620006da565b5b80821115620006765760008155600101620006f8565b600181811c908216806200072357607f821691505b602082108114156200074557634e487b7160e01b600052602260045260246000fd5b50919050565b614508806200075b6000396000f3fe6080604052600436106103355760003560e01c806351e6f5ac116101ab5780639a9c1bb1116100f7578063c87b56dd11610095578063e809f5701161006f578063e809f57014610944578063e985e9c514610964578063f0a4e848146109ad578063f2fde38b146109da57600080fd5b8063c87b56dd146108f1578063c97afa3914610911578063d26dc36f1461093157600080fd5b8063a4697f70116100d1578063a4697f7014610866578063b88d4fde1461089c578063bd05cc6e146108bc578063c3f9cea9146108d157600080fd5b80639a9c1bb11461080e5780639b77c21a1461082e578063a22cb4651461084657600080fd5b80637cb64759116101645780638da5cb5b1161013e5780638da5cb5b146107b157806395d89b41146107cf578063972c2c04146107e457806398d5fdca146107f957600080fd5b80637cb647591461075457806385791536146107745780638c3c4b341461079457600080fd5b806351e6f5ac146106aa57806355f804b3146106ca5780635a40de34146106ea5780636352211e146106ff57806370a082311461071f578063715018a61461073f57600080fd5b80631a534faf116102855780633f3aac001161022357806342842e0e116101fd57806342842e0e146106405780634f6ccce714610660578063502b33af14610680578063502eb9981461069557600080fd5b80633f3aac00146105e15780633f79b7d314610601578063404324c61461062157600080fd5b80632a55205a1161025f5780632a55205a1461054d5780632f745c591461058c57806331527a17146105ac5780633ccfd60b146105cc57600080fd5b80631a534faf146104f057806323b872dd1461050d578063247f26ad1461052d57600080fd5b80630b5a7d3d116102f2578063120e4f35116102cc578063120e4f35146104865780631345646a146104a657806318160ddd146104c657806319e10ddd146104db57600080fd5b80630b5a7d3d146104465780630bf220c01461045b5780630ea1b5111461046e57600080fd5b806301ffc9a71461033a57806303c247a71461036f57806306fdde031461038f5780630700037d146103b1578063081812fc146103ec578063095ea7b314610424575b600080fd5b34801561034657600080fd5b5061035a610355366004613ccd565b6109fa565b60405190151581526020015b60405180910390f35b34801561037b57600080fd5b5061035a61038a366004613aec565b610a0b565b34801561039b57600080fd5b506103a4610a6e565b60405161036691906140b8565b3480156103bd57600080fd5b506103de6103cc366004613950565b601b6020526000908152604090205481565b604051908152602001610366565b3480156103f857600080fd5b5061040c610407366004613cb5565b610b00565b6040516001600160a01b039091168152602001610366565b34801561043057600080fd5b5061044461043f366004613ac3565b610b27565b005b34801561045257600080fd5b506103de610c42565b610444610469366004613aec565b610c6b565b34801561047a57600080fd5b5060175460ff166103de565b34801561049257600080fd5b506104446104a1366004613e20565b6110ae565b3480156104b257600080fd5b506104446104c1366004613e20565b6110d6565b3480156104d257600080fd5b506008546103de565b3480156104e757600080fd5b506018546103de565b3480156104fc57600080fd5b50601a54610100900460ff1661035a565b34801561051957600080fd5b5061044461052836600461399c565b6110f4565b34801561053957600080fd5b50610444610548366004613aec565b611125565b34801561055957600080fd5b5061056d610568366004613dff565b6114eb565b604080516001600160a01b039093168352602083019190915201610366565b34801561059857600080fd5b506103de6105a7366004613ac3565b611599565b3480156105b857600080fd5b506104446105c7366004613cb5565b61162f565b3480156105d857600080fd5b5061044461163c565b3480156105ed57600080fd5b506104446105fc366004613a4f565b611673565b34801561060d57600080fd5b5061035a61061c366004613b83565b6117f4565b34801561062d57600080fd5b50601a546301000000900460ff166103de565b34801561064c57600080fd5b5061044461065b36600461399c565b611878565b34801561066c57600080fd5b506103de61067b366004613cb5565b611893565b34801561068c57600080fd5b50610444611934565b3480156106a157600080fd5b506019546103de565b3480156106b657600080fd5b506104446106c5366004613cb5565b611959565b3480156106d657600080fd5b506104446106e5366004613d05565b611966565b3480156106f657600080fd5b50610444611981565b34801561070b57600080fd5b5061040c61071a366004613cb5565b6119a6565b34801561072b57600080fd5b506103de61073a366004613950565b611a06565b34801561074b57600080fd5b50610444611a8c565b34801561076057600080fd5b5061044461076f366004613cb5565b611aa0565b34801561078057600080fd5b506103a461078f366004613d4a565b611aad565b3480156107a057600080fd5b50601754610100900460ff1661035a565b3480156107bd57600080fd5b50600c546001600160a01b031661040c565b3480156107db57600080fd5b506103a4611cb7565b3480156107f057600080fd5b50610444611cc6565b34801561080557600080fd5b506016546103de565b34801561081a57600080fd5b506103de610829366004613950565b611ce2565b34801561083a57600080fd5b50601a5460ff1661035a565b34801561085257600080fd5b50610444610861366004613a9a565b611d1a565b34801561087257600080fd5b506103de610881366004613950565b6001600160a01b03166000908152601b602052604090205490565b3480156108a857600080fd5b506104446108b73660046139d7565b611d25565b3480156108c857600080fd5b50610444611d5d565b3480156108dd57600080fd5b506104446108ec366004613bc2565b611d84565b3480156108fd57600080fd5b506103a461090c366004613cb5565b611e47565b34801561091d57600080fd5b5061044461092c366004613cb5565b611ea5565b61044461093f366004613b1e565b611eb2565b34801561095057600080fd5b506103de61095f366004613c83565b6123c8565b34801561097057600080fd5b5061035a61097f36600461396a565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156109b957600080fd5b506103de6109c8366004613950565b601c6020526000908152604090205481565b3480156109e657600080fd5b506104446109f5366004613950565b612946565b6000610a05826129bf565b92915050565b600080805b83518160ff161015610a6757838160ff1681518110610a3f57634e487b7160e01b600052603260045260246000fd5b602002602001015151600d1415610a5557600191505b80610a5f81614406565b915050610a10565b5092915050565b606060008054610a7d906143b6565b80601f0160208091040260200160405190810160405280929190818152602001828054610aa9906143b6565b8015610af65780601f10610acb57610100808354040283529160200191610af6565b820191906000526020600020905b815481529060010190602001808311610ad957829003601f168201915b5050505050905090565b6000610b0b826129e4565b506000908152600460205260409020546001600160a01b031690565b6000610b32826119a6565b9050806001600160a01b0316836001600160a01b03161415610ba55760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b0382161480610bc15750610bc1813361097f565b610c335760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610b9c565b610c3d8383612a43565b505050565b601a5460009060ff16610c5b575060085490565b905090565b601954600854610c569190614203565b601754610100900460ff16610cc25760405162461bcd60e51b815260206004820152601860248201527f4d696e743a2053616c65206973206e6f742061637469766500000000000000006044820152606401610b9c565b610ccb81610a0b565b610d175760405162461bcd60e51b815260206004820152601d60248201527f4d696e743a2070726f7669646564207365656473206e6f2076616c69640000006044820152606401610b9c565b601754815160ff9091161015610d885760405162461bcd60e51b815260206004820152603060248201527f4d696e743a20677261646f7320746f206d696e742065786365656473206d617860448201526f20706572207472616e736174696f6e7360801b6064820152608401610b9c565b8051601654610d97919061431a565b341015610de65760405162461bcd60e51b815260206004820152601c60248201527f4d696e743a20457468657220616d6f756e7420696e636f7272656374000000006044820152606401610b9c565b601a546301000000900460ff168151610dfe33611ce2565b610e089190614203565b1115610e695760405162461bcd60e51b815260206004820152602a60248201527f4d696e743a20746869732077616c6c657420616c7265616479206f776e7320736044820152696f6d6520477261646f7360b01b6064820152608401610b9c565b6018548151600854610e7b9190614203565b1115610ed85760405162461bcd60e51b815260206004820152602660248201527f4d696e743a20507572636861736520776f756c6420657863656564206d617820604482015265737570706c7960d01b6064820152608401610b9c565b60005b81518160ff1610156110aa576000610f1c838360ff1681518110610f0f57634e487b7160e01b600052603260045260246000fd5b60200260200101516123c8565b6000818152600260205260409020549091506001600160a01b03161561101f5782516060905b8015610fe657848460ff1681518110610f6b57634e487b7160e01b600052603260045260246000fd5b60200260200101518181518110610f9257634e487b7160e01b600052603260045260246000fd5b60200260200101518285600c610fa89190614350565b60ff1681518110610fc957634e487b7160e01b600052603260045260246000fd5b602090810291909101015280610fde8161439f565b915050610f42565b50610ff0816123c8565b91506000805160206144938339815191528260405161101191815260200190565b60405180910390a150611097565b6040518181526000805160206144938339815191529060200160405180910390a161104a3382612ab1565b336000908152601c6020526040812080546001929061106a908490614203565b909155505060408051338152602081018390526000805160206144b3833981519152910160405180910390a15b50806110a281614406565b915050610edb565b5050565b6110b6612acb565b601a805460ff90921663010000000263ff00000019909216919091179055565b6110de612acb565b6017805460ff191660ff92909216919091179055565b6110fe3382612b25565b61111a5760405162461bcd60e51b8152600401610b9c9061411d565b610c3d838383612ba3565b601a5460ff166111775760405162461bcd60e51b815260206004820152601b60248201527f436c61696d205265776172643a206973206e6f742061637469766500000000006044820152606401610b9c565b61118081610a0b565b6111da5760405162461bcd60e51b815260206004820152602560248201527f436c61696d205265776172643a2070726f7669646564207365656473206e6f206044820152641d985b1a5960da1b6064820152608401610b9c565b336000908152601b60205260409020548151111561124c5760405162461bcd60e51b815260206004820152602960248201527f436c61696d205265776172643a20436c61696d20616d6f756e74206973206e6f6044820152681d0818dbdc9c9958dd60ba1b6064820152608401610b9c565b601854815160085461125e9190614203565b11156112c35760405162461bcd60e51b815260206004820152602e60248201527f436c61696d205265776172643a20507572636861736520776f756c642065786360448201526d656564206d617820737570706c7960901b6064820152608401610b9c565b60005b81518160ff16101561147b5760006112fa838360ff1681518110610f0f57634e487b7160e01b600052603260045260246000fd5b6000818152600260205260409020549091506001600160a01b0316156113fd5782516060905b80156113c457848460ff168151811061134957634e487b7160e01b600052603260045260246000fd5b6020026020010151818151811061137057634e487b7160e01b600052603260045260246000fd5b60200260200101518285600c6113869190614350565b60ff16815181106113a757634e487b7160e01b600052603260045260246000fd5b6020908102919091010152806113bc8161439f565b915050611320565b506113ce816123c8565b9150600080516020614493833981519152826040516113ef91815260200190565b60405180910390a150611468565b6114073382612ab1565b60016019600082825461141a9190614339565b90915550506040518181526000805160206144938339815191529060200160405180910390a160408051338152602081018390526000805160206144b3833981519152910160405180910390a15b508061147381614406565b9150506112c6565b508051336000908152601b60205260409020546114989190614339565b336000818152601b60209081526040918290209390935583518151928352928201929092527fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a910160405180910390a150565b6000828152600b602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291611560575060408051808201909152600a546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101516000906127109061157f906001600160601b03168761431a565b611589919061421b565b91519350909150505b9250929050565b60006115a483611a06565b82106116065760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610b9c565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b611637612acb565b601655565b611644612acb565b6040514790339082156108fc029083906000818181858888f193505050501580156110aa573d6000803e3d6000fd5b61167b612acb565b61168481610a0b565b6116da5760405162461bcd60e51b815260206004820152602160248201527f536166654d696e743a2070726f7669646564207365656473206e6f2076616c696044820152601960fa1b6064820152608401610b9c565b60185481516008546116ec9190614203565b111561174d5760405162461bcd60e51b815260206004820152602a60248201527f536166654d696e743a20507572636861736520776f756c6420657863656564206044820152696d617820737570706c7960b01b6064820152608401610b9c565b60005b81518160ff161015610c3d576000611784838360ff1681518110610f0f57634e487b7160e01b600052603260045260246000fd5b90506117908482612ab1565b6040518181526000805160206144938339815191529060200160405180910390a1604080516001600160a01b0386168152602081018390526000805160206144b3833981519152910160405180910390a150806117ec81614406565b915050611750565b6040516bffffffffffffffffffffffff193360601b166020820152600090819060340160405160208183030381529060405280519060200120905061187084848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600d549150849050612d4a565b949350505050565b610c3d83838360405180602001604052806000815250611d25565b600061189e60085490565b82106119015760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610b9c565b6008828154811061192257634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b61193c612acb565b6017805461ff001981166101009182900460ff1615909102179055565b611961612acb565b601955565b61196e612acb565b80516110aa9060159060208401906136f3565b611989612acb565b601a805461ff001981166101009182900460ff1615909102179055565b6000818152600260205260408120546001600160a01b031680610a055760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610b9c565b60006001600160a01b038216611a705760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610b9c565b506001600160a01b031660009081526003602052604090205490565b611a94612acb565b611a9e6000612d60565b565b611aa8612acb565b600d55565b60606000805b84518160ff161015611b0c57848160ff1681518110611ae257634e487b7160e01b600052603260045260246000fd5b602002602001015160ff1682611af891906141e6565b915080611b0481614406565b915050611ab3565b506040805142602082015244918101919091526060810186905260009061ffff8316906080016040516020818303038152906040528051906020012060001c611b559190614426565b90506000805b86518160ff161015611c6457868160ff1681518110611b8a57634e487b7160e01b600052603260045260246000fd5b602002602001015160ff1682611ba091906141e6565b91508161ffff1683108015611bb85750600a8160ff16105b15611c2b578515611c1457604051806040016040528060018152602001600360fc1b815250611be98260ff16612db2565b604051602001611bfa929190613e82565b604051602081830303815290604052945050505050611cb0565b611c208160ff16612db2565b945050505050611cb0565b8161ffff1683108015611c41575060098160ff16115b15611c5257611c208160ff16612db2565b80611c5c81614406565b915050611b5b565b508415611c905760405180604001604052806002815260200161030360f41b8152509350505050611cb0565b604051806040016040528060018152602001600360fc1b81525093505050505b9392505050565b606060018054610a7d906143b6565b611cce612acb565b601a805460ff19811660ff90911615179055565b601a5460009062010000900460ff1615611cfe57506000919050565b506001600160a01b03166000908152601c602052604090205490565b6110aa338383612ecb565b611d2f3383612b25565b611d4b5760405162461bcd60e51b8152600401610b9c9061411d565b611d5784848484612f9a565b50505050565b611d65612acb565b601a805462ff0000198116620100009182900460ff1615909102179055565b611d8c612acb565b60005b81518160ff1610156110aa57818160ff1681518110611dbe57634e487b7160e01b600052603260045260246000fd5b60200260200101516020015160ff16601b6000848460ff1681518110611df457634e487b7160e01b600052603260045260246000fd5b6020026020010151600001516001600160a01b03166001600160a01b031681526020019081526020016000206000828254611e2f9190614203565b90915550819050611e3f81614406565b915050611d8f565b6060600060158054611e58906143b6565b905011611e745760405180602001604052806000815250610a05565b6015611e7f83612db2565b604051602001611e90929190613fde565b60405160208183030381529060405292915050565b611ead612acb565b601855565b80611f145760405162461bcd60e51b815260206004820152602c60248201527f416c6c6f774c6973743a20796f752073686f756c642070726f7669646520612060448201526b2fb6b2b935b632a83937b7b360a11b6064820152608401610b9c565b601a54610100900460ff16611f6b5760405162461bcd60e51b815260206004820152601860248201527f416c6c6f774c6973743a206973206e6f742061637469766500000000000000006044820152606401610b9c565b611f7582826117f4565b611fd45760405162461bcd60e51b815260206004820152602a60248201527f416c6c6f774c6973743a20796f7520617265206e6f7420616c6c6f77656420746044820152691bc81b5a5b9d081e595d60b21b6064820152608401610b9c565b611fdd83610a0b565b6120345760405162461bcd60e51b815260206004820152602260248201527f416c6c6f774c6973743a2070726f7669646564207365656473206e6f2076616c6044820152611a5960f21b6064820152608401610b9c565b601754835160ff909116101561209b5760405162461bcd60e51b815260206004820152602660248201527f416c6c6f774c6973743a20736565647320616d6f756e74206973206e6f7420636044820152651bdc9c9958dd60d21b6064820152608401610b9c565b82516016546120aa919061431a565b3410156121035760405162461bcd60e51b815260206004820152602160248201527f416c6c6f774c6973743a20457468657220616d6f756e7420696e636f727265636044820152601d60fa1b6064820152608401610b9c565b601a546301000000900460ff16835161211b33611ce2565b6121259190614203565b111561218f5760405162461bcd60e51b815260206004820152603360248201527f416c6c6f774c6973743a20596f752063616e206e6f74206d696e742074686973604482015272207175616e74697479206f6620477261646f7360681b6064820152608401610b9c565b60185483516008546121a19190614203565b11156122035760405162461bcd60e51b815260206004820152602b60248201527f416c6c6f774c6973743a20507572636861736520776f756c642065786365656460448201526a206d617820737570706c7960a81b6064820152608401610b9c565b60005b83518160ff161015611d5757600061223a858360ff1681518110610f0f57634e487b7160e01b600052603260045260246000fd5b6000818152600260205260409020549091506001600160a01b03161561233d5784516060905b801561230457868460ff168151811061228957634e487b7160e01b600052603260045260246000fd5b602002602001015181815181106122b057634e487b7160e01b600052603260045260246000fd5b60200260200101518285600c6122c69190614350565b60ff16815181106122e757634e487b7160e01b600052603260045260246000fd5b6020908102919091010152806122fc8161439f565b915050612260565b5061230e816123c8565b91506000805160206144938339815191528260405161232f91815260200190565b60405180910390a1506123b5565b6123473382612ab1565b6040518181526000805160206144938339815191529060200160405180910390a1336000908152601c60205260408120805460019290612388908490614203565b909155505060408051338152602081018390526000805160206144b3833981519152910160405180910390a15b50806123c081614406565b915050612206565b600080604051806040016040528060018152602001601960f91b8152506124878460008151811061240957634e487b7160e01b600052603260045260246000fd5b6020026020010151600e80548060200260200160405190810160405280929190818152602001828054801561247b57602002820191906000526020600020906000905b825461010083900a900460ff1681526020600192830181810494850194909303909202910180841161244c5790505b50505050506001611aad565b61250d856001815181106124ab57634e487b7160e01b600052603260045260246000fd5b6020026020010151600f80548060200260200160405190810160405280929190818152602001828054801561247b576000918252602091829020805460ff16845290820283019290916001910180841161244c57905050505050506001611aad565b6125af8660028151811061253157634e487b7160e01b600052603260045260246000fd5b602002602001015160108054806020026020016040519081016040528092919081815260200182805480156125a357602002820191906000526020600020906000905b825461010083900a900460ff168152602060019283018181049485019490930390920291018084116125745790505b50505050506000611aad565b612635876003815181106125d357634e487b7160e01b600052603260045260246000fd5b6020026020010151601180548060200260200160405190810160405280929190818152602001828054801561247b576000918252602091829020805460ff16845290820283019290916001910180841161244c57905050505050506001611aad565b612659886004815181106125d357634e487b7160e01b600052603260045260246000fd5b60405160200161266e96959493929190613f5f565b60405160208183030381529060405290506000612707846005815181106126a557634e487b7160e01b600052603260045260246000fd5b6020026020010151601280548060200260200160405190810160405280929190818152602001828054801561247b576000918252602091829020805460ff16845290820283019290916001910180841161244c57905050505050506001611aad565b61272b856006815181106126a557634e487b7160e01b600052603260045260246000fd5b61274f8660078151811061253157634e487b7160e01b600052603260045260246000fd5b612773876008815181106125d357634e487b7160e01b600052603260045260246000fd5b612797886009815181106125d357634e487b7160e01b600052603260045260246000fd5b6040516020016127ab959493929190613ef4565b6040516020818303038152906040529050600061284485600a815181106127e257634e487b7160e01b600052603260045260246000fd5b6020026020010151601380548060200260200160405190810160405280929190818152602001828054801561247b576000918252602091829020805460ff16845290820283019290916001910180841161244c57905050505050506001611aad565b6128ca86600b8151811061286857634e487b7160e01b600052603260045260246000fd5b602002602001015160148054806020026020016040519081016040528092919081815260200182805480156125a3576000918252602091829020805460ff16845290820283019290916001910180841161257457905050505050506000611aad565b6128ee87600c8151811061286857634e487b7160e01b600052603260045260246000fd5b60405160200161290093929190613eb1565b604051602081830303815290604052905061293d83838360405160200161292993929190613eb1565b604051602081830303815290604052612fcd565b95945050505050565b61294e612acb565b6001600160a01b0381166129b35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b9c565b6129bc81612d60565b50565b60006001600160e01b0319821663152a902d60e11b1480610a055750610a05826130ec565b6000818152600260205260409020546001600160a01b03166129bc5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610b9c565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612a78826119a6565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6110aa828260405180602001604052806000815250613111565b600c546001600160a01b03163314611a9e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b9c565b600080612b31836119a6565b9050806001600160a01b0316846001600160a01b03161480612b7857506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806118705750836001600160a01b0316612b9184610b00565b6001600160a01b031614949350505050565b826001600160a01b0316612bb6826119a6565b6001600160a01b031614612c1a5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610b9c565b6001600160a01b038216612c7c5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610b9c565b612c87838383613144565b612c92600082612a43565b6001600160a01b0383166000908152600360205260408120805460019290612cbb908490614339565b90915550506001600160a01b0382166000908152600360205260408120805460019290612ce9908490614203565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600082612d57858461314f565b14949350505050565b600c80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b606081612dd65750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612e005780612dea816143eb565b9150612df99050600a8361421b565b9150612dda565b6000816001600160401b03811115612e2857634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612e52576020820181803683370190505b5090505b841561187057612e67600183614339565b9150612e74600a86614426565b612e7f906030614203565b60f81b818381518110612ea257634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612ec4600a8661421b565b9450612e56565b816001600160a01b0316836001600160a01b03161415612f2d5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b9c565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612fa5848484612ba3565b612fb1848484846131aa565b611d575760405162461bcd60e51b8152600401610b9c906140cb565b6000805b82518110156130e65760006030848381518110612ffe57634e487b7160e01b600052603260045260246000fd5b0160200151613010919060f81c614350565b60ff16108061305557506009603084838151811061303e57634e487b7160e01b600052603260045260246000fd5b0160200151613050919060f81c614350565b60ff16115b156130635750600092915050565b60018184516130729190614339565b61307c9190614339565b61308790600a614272565b60308483815181106130a957634e487b7160e01b600052603260045260246000fd5b01602001516130bb919060f81c614350565b60ff166130c8919061431a565b6130d29083614203565b9150806130de816143eb565b915050612fd1565b50919050565b60006001600160e01b0319821663780e9d6360e01b1480610a055750610a05826132b7565b61311b8383613307565b61312860008484846131aa565b610c3d5760405162461bcd60e51b8152600401610b9c906140cb565b610c3d838383613455565b600081815b84518110156131a25761318e8286838151811061318157634e487b7160e01b600052603260045260246000fd5b602002602001015161350d565b91508061319a816143eb565b915050613154565b509392505050565b60006001600160a01b0384163b156132ac57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906131ee90339089908890889060040161407b565b602060405180830381600087803b15801561320857600080fd5b505af1925050508015613238575060408051601f3d908101601f1916820190925261323591810190613ce9565b60015b613292573d808015613266576040519150601f19603f3d011682016040523d82523d6000602084013e61326b565b606091505b50805161328a5760405162461bcd60e51b8152600401610b9c906140cb565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611870565b506001949350505050565b60006001600160e01b031982166380ac58cd60e01b14806132e857506001600160e01b03198216635b5e139f60e01b145b80610a0557506301ffc9a760e01b6001600160e01b0319831614610a05565b6001600160a01b03821661335d5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b9c565b6000818152600260205260409020546001600160a01b0316156133c25760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b9c565b6133ce60008383613144565b6001600160a01b03821660009081526003602052604081208054600192906133f7908490614203565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160a01b0383166134b0576134ab81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6134d3565b816001600160a01b0316836001600160a01b0316146134d3576134d38382613539565b6001600160a01b0382166134ea57610c3d816135d6565b826001600160a01b0316826001600160a01b031614610c3d57610c3d82826136af565b6000818310613529576000828152602084905260409020611cb0565b5060009182526020526040902090565b6000600161354684611a06565b6135509190614339565b6000838152600760205260409020549091508082146135a3576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906135e890600190614339565b6000838152600960205260408120546008805493945090928490811061361e57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061364d57634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061369357634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006136ba83611a06565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b8280546136ff906143b6565b90600052602060002090601f0160209004810192826137215760008555613767565b82601f1061373a57805160ff1916838001178555613767565b82800160010185558215613767579182015b8281111561376757825182559160200191906001019061374c565b50613773929150613777565b5090565b5b808211156137735760008155600101613778565b60006001600160401b038311156137a5576137a5614466565b6137b8601f8401601f1916602001614193565b90508281528383830111156137cc57600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b03811681146137fa57600080fd5b919050565b600082601f83011261380f578081fd5b8135602061382461381f836141c3565b614193565b80838252828201915082860187848660051b8901011115613843578586fd5b855b858110156138835781356001600160401b03811115613862578788fd5b6138708a87838c01016138d2565b8552509284019290840190600101613845565b5090979650505050505050565b60008083601f8401126138a1578182fd5b5081356001600160401b038111156138b7578182fd5b6020830191508360208260051b850101111561159257600080fd5b600082601f8301126138e2578081fd5b813560206138f261381f836141c3565b80838252828201915082860187848660051b8901011115613911578586fd5b855b8581101561388357813584529284019290840190600101613913565b803580151581146137fa57600080fd5b803560ff811681146137fa57600080fd5b600060208284031215613961578081fd5b611cb0826137e3565b6000806040838503121561397c578081fd5b613985836137e3565b9150613993602084016137e3565b90509250929050565b6000806000606084860312156139b0578081fd5b6139b9846137e3565b92506139c7602085016137e3565b9150604084013590509250925092565b600080600080608085870312156139ec578182fd5b6139f5856137e3565b9350613a03602086016137e3565b92506040850135915060608501356001600160401b03811115613a24578182fd5b8501601f81018713613a34578182fd5b613a438782356020840161378c565b91505092959194509250565b60008060408385031215613a61578182fd5b613a6a836137e3565b915060208301356001600160401b03811115613a84578182fd5b613a90858286016137ff565b9150509250929050565b60008060408385031215613aac578182fd5b613ab5836137e3565b91506139936020840161392f565b60008060408385031215613ad5578182fd5b613ade836137e3565b946020939093013593505050565b600060208284031215613afd578081fd5b81356001600160401b03811115613b12578182fd5b611870848285016137ff565b600080600060408486031215613b32578081fd5b83356001600160401b0380821115613b48578283fd5b613b54878388016137ff565b94506020860135915080821115613b69578283fd5b50613b7686828701613890565b9497909650939450505050565b60008060208385031215613b95578182fd5b82356001600160401b03811115613baa578283fd5b613bb685828601613890565b90969095509350505050565b60006020808385031215613bd4578182fd5b82356001600160401b03811115613be9578283fd5b8301601f81018513613bf9578283fd5b8035613c0761381f826141c3565b80828252848201915084840188868560061b8701011115613c26578687fd5b8694505b83851015613c7757604080828b031215613c42578788fd5b613c4a61416b565b613c53836137e3565b8152613c6088840161393f565b818901528452600195909501949286019201613c2a565b50979650505050505050565b600060208284031215613c94578081fd5b81356001600160401b03811115613ca9578182fd5b611870848285016138d2565b600060208284031215613cc6578081fd5b5035919050565b600060208284031215613cde578081fd5b8135611cb08161447c565b600060208284031215613cfa578081fd5b8151611cb08161447c565b600060208284031215613d16578081fd5b81356001600160401b03811115613d2b578182fd5b8201601f81018413613d3b578182fd5b6118708482356020840161378c565b600080600060608486031215613d5e578081fd5b833592506020808501356001600160401b03811115613d7b578283fd5b8501601f81018713613d8b578283fd5b8035613d9961381f826141c3565b8082825284820191508484018a868560051b8701011115613db8578687fd5b8694505b83851015613de157613dcd8161393f565b835260019490940193918501918501613dbc565b508096505050505050613df66040850161392f565b90509250925092565b60008060408385031215613e11578182fd5b50508035926020909101359150565b600060208284031215613e31578081fd5b611cb08261393f565b60008151808452613e52816020860160208601614373565b601f01601f19169290920160200192915050565b60008151613e78818560208601614373565b9290920192915050565b60008351613e94818460208801614373565b835190830190613ea8818360208801614373565b01949350505050565b60008451613ec3818460208901614373565b845190830190613ed7818360208901614373565b8451910190613eea818360208801614373565b0195945050505050565b60008651613f06818460208b01614373565b865190830190613f1a818360208b01614373565b8651910190613f2d818360208a01614373565b8551910190613f40818360208901614373565b8451910190613f53818360208801614373565b01979650505050505050565b600087516020613f728285838d01614373565b885191840191613f858184848d01614373565b8851920191613f978184848c01614373565b8751920191613fa98184848b01614373565b8651920191613fbb8184848a01614373565b8551920191613fcd8184848901614373565b919091019998505050505050505050565b600080845482600182811c915080831680613ffa57607f831692505b602080841082141561401a57634e487b7160e01b87526022600452602487fd5b81801561402e576001811461403f5761406b565b60ff1986168952848901965061406b565b60008b815260209020885b868110156140635781548b82015290850190830161404a565b505084890196505b50505050505061293d8185613e66565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906140ae90830184613e3a565b9695505050505050565b602081526000611cb06020830184613e3a565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b604080519081016001600160401b038111828210171561418d5761418d614466565b60405290565b604051601f8201601f191681016001600160401b03811182821017156141bb576141bb614466565b604052919050565b60006001600160401b038211156141dc576141dc614466565b5060051b60200190565b600061ffff808316818516808303821115613ea857613ea861443a565b600082198211156142165761421661443a565b500190565b60008261422a5761422a614450565b500490565b600181815b8085111561426a5781600019048211156142505761425061443a565b8085161561425d57918102915b93841c9390800290614234565b509250929050565b6000611cb0838360008261428857506001610a05565b8161429557506000610a05565b81600181146142ab57600281146142b5576142d1565b6001915050610a05565b60ff8411156142c6576142c661443a565b50506001821b610a05565b5060208310610133831016604e8410600b84101617156142f4575081810a610a05565b6142fe838361422f565b80600019048211156143125761431261443a565b029392505050565b60008160001904831182151516156143345761433461443a565b500290565b60008282101561434b5761434b61443a565b500390565b600060ff821660ff84168082101561436a5761436a61443a565b90039392505050565b60005b8381101561438e578181015183820152602001614376565b83811115611d575750506000910152565b6000816143ae576143ae61443a565b506000190190565b600181811c908216806143ca57607f821691505b602082108114156130e657634e487b7160e01b600052602260045260246000fd5b60006000198214156143ff576143ff61443a565b5060010190565b600060ff821660ff81141561441d5761441d61443a565b60010192915050565b60008261443557614435614450565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146129bc57600080fdfe289a8df2eac5a01ddf88360ee4d0daa14ea7b5e3b4d4fec3d1b20b2fcda1754230385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfea26469706673582212203d466042ca199ca6495d9b752f2dddfc2f8a748fafff668a8c4be20cf2b0188d64736f6c63430008040033

Deployed Bytecode

0x6080604052600436106103355760003560e01c806351e6f5ac116101ab5780639a9c1bb1116100f7578063c87b56dd11610095578063e809f5701161006f578063e809f57014610944578063e985e9c514610964578063f0a4e848146109ad578063f2fde38b146109da57600080fd5b8063c87b56dd146108f1578063c97afa3914610911578063d26dc36f1461093157600080fd5b8063a4697f70116100d1578063a4697f7014610866578063b88d4fde1461089c578063bd05cc6e146108bc578063c3f9cea9146108d157600080fd5b80639a9c1bb11461080e5780639b77c21a1461082e578063a22cb4651461084657600080fd5b80637cb64759116101645780638da5cb5b1161013e5780638da5cb5b146107b157806395d89b41146107cf578063972c2c04146107e457806398d5fdca146107f957600080fd5b80637cb647591461075457806385791536146107745780638c3c4b341461079457600080fd5b806351e6f5ac146106aa57806355f804b3146106ca5780635a40de34146106ea5780636352211e146106ff57806370a082311461071f578063715018a61461073f57600080fd5b80631a534faf116102855780633f3aac001161022357806342842e0e116101fd57806342842e0e146106405780634f6ccce714610660578063502b33af14610680578063502eb9981461069557600080fd5b80633f3aac00146105e15780633f79b7d314610601578063404324c61461062157600080fd5b80632a55205a1161025f5780632a55205a1461054d5780632f745c591461058c57806331527a17146105ac5780633ccfd60b146105cc57600080fd5b80631a534faf146104f057806323b872dd1461050d578063247f26ad1461052d57600080fd5b80630b5a7d3d116102f2578063120e4f35116102cc578063120e4f35146104865780631345646a146104a657806318160ddd146104c657806319e10ddd146104db57600080fd5b80630b5a7d3d146104465780630bf220c01461045b5780630ea1b5111461046e57600080fd5b806301ffc9a71461033a57806303c247a71461036f57806306fdde031461038f5780630700037d146103b1578063081812fc146103ec578063095ea7b314610424575b600080fd5b34801561034657600080fd5b5061035a610355366004613ccd565b6109fa565b60405190151581526020015b60405180910390f35b34801561037b57600080fd5b5061035a61038a366004613aec565b610a0b565b34801561039b57600080fd5b506103a4610a6e565b60405161036691906140b8565b3480156103bd57600080fd5b506103de6103cc366004613950565b601b6020526000908152604090205481565b604051908152602001610366565b3480156103f857600080fd5b5061040c610407366004613cb5565b610b00565b6040516001600160a01b039091168152602001610366565b34801561043057600080fd5b5061044461043f366004613ac3565b610b27565b005b34801561045257600080fd5b506103de610c42565b610444610469366004613aec565b610c6b565b34801561047a57600080fd5b5060175460ff166103de565b34801561049257600080fd5b506104446104a1366004613e20565b6110ae565b3480156104b257600080fd5b506104446104c1366004613e20565b6110d6565b3480156104d257600080fd5b506008546103de565b3480156104e757600080fd5b506018546103de565b3480156104fc57600080fd5b50601a54610100900460ff1661035a565b34801561051957600080fd5b5061044461052836600461399c565b6110f4565b34801561053957600080fd5b50610444610548366004613aec565b611125565b34801561055957600080fd5b5061056d610568366004613dff565b6114eb565b604080516001600160a01b039093168352602083019190915201610366565b34801561059857600080fd5b506103de6105a7366004613ac3565b611599565b3480156105b857600080fd5b506104446105c7366004613cb5565b61162f565b3480156105d857600080fd5b5061044461163c565b3480156105ed57600080fd5b506104446105fc366004613a4f565b611673565b34801561060d57600080fd5b5061035a61061c366004613b83565b6117f4565b34801561062d57600080fd5b50601a546301000000900460ff166103de565b34801561064c57600080fd5b5061044461065b36600461399c565b611878565b34801561066c57600080fd5b506103de61067b366004613cb5565b611893565b34801561068c57600080fd5b50610444611934565b3480156106a157600080fd5b506019546103de565b3480156106b657600080fd5b506104446106c5366004613cb5565b611959565b3480156106d657600080fd5b506104446106e5366004613d05565b611966565b3480156106f657600080fd5b50610444611981565b34801561070b57600080fd5b5061040c61071a366004613cb5565b6119a6565b34801561072b57600080fd5b506103de61073a366004613950565b611a06565b34801561074b57600080fd5b50610444611a8c565b34801561076057600080fd5b5061044461076f366004613cb5565b611aa0565b34801561078057600080fd5b506103a461078f366004613d4a565b611aad565b3480156107a057600080fd5b50601754610100900460ff1661035a565b3480156107bd57600080fd5b50600c546001600160a01b031661040c565b3480156107db57600080fd5b506103a4611cb7565b3480156107f057600080fd5b50610444611cc6565b34801561080557600080fd5b506016546103de565b34801561081a57600080fd5b506103de610829366004613950565b611ce2565b34801561083a57600080fd5b50601a5460ff1661035a565b34801561085257600080fd5b50610444610861366004613a9a565b611d1a565b34801561087257600080fd5b506103de610881366004613950565b6001600160a01b03166000908152601b602052604090205490565b3480156108a857600080fd5b506104446108b73660046139d7565b611d25565b3480156108c857600080fd5b50610444611d5d565b3480156108dd57600080fd5b506104446108ec366004613bc2565b611d84565b3480156108fd57600080fd5b506103a461090c366004613cb5565b611e47565b34801561091d57600080fd5b5061044461092c366004613cb5565b611ea5565b61044461093f366004613b1e565b611eb2565b34801561095057600080fd5b506103de61095f366004613c83565b6123c8565b34801561097057600080fd5b5061035a61097f36600461396a565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156109b957600080fd5b506103de6109c8366004613950565b601c6020526000908152604090205481565b3480156109e657600080fd5b506104446109f5366004613950565b612946565b6000610a05826129bf565b92915050565b600080805b83518160ff161015610a6757838160ff1681518110610a3f57634e487b7160e01b600052603260045260246000fd5b602002602001015151600d1415610a5557600191505b80610a5f81614406565b915050610a10565b5092915050565b606060008054610a7d906143b6565b80601f0160208091040260200160405190810160405280929190818152602001828054610aa9906143b6565b8015610af65780601f10610acb57610100808354040283529160200191610af6565b820191906000526020600020905b815481529060010190602001808311610ad957829003601f168201915b5050505050905090565b6000610b0b826129e4565b506000908152600460205260409020546001600160a01b031690565b6000610b32826119a6565b9050806001600160a01b0316836001600160a01b03161415610ba55760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b0382161480610bc15750610bc1813361097f565b610c335760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610b9c565b610c3d8383612a43565b505050565b601a5460009060ff16610c5b575060085490565b905090565b601954600854610c569190614203565b601754610100900460ff16610cc25760405162461bcd60e51b815260206004820152601860248201527f4d696e743a2053616c65206973206e6f742061637469766500000000000000006044820152606401610b9c565b610ccb81610a0b565b610d175760405162461bcd60e51b815260206004820152601d60248201527f4d696e743a2070726f7669646564207365656473206e6f2076616c69640000006044820152606401610b9c565b601754815160ff9091161015610d885760405162461bcd60e51b815260206004820152603060248201527f4d696e743a20677261646f7320746f206d696e742065786365656473206d617860448201526f20706572207472616e736174696f6e7360801b6064820152608401610b9c565b8051601654610d97919061431a565b341015610de65760405162461bcd60e51b815260206004820152601c60248201527f4d696e743a20457468657220616d6f756e7420696e636f7272656374000000006044820152606401610b9c565b601a546301000000900460ff168151610dfe33611ce2565b610e089190614203565b1115610e695760405162461bcd60e51b815260206004820152602a60248201527f4d696e743a20746869732077616c6c657420616c7265616479206f776e7320736044820152696f6d6520477261646f7360b01b6064820152608401610b9c565b6018548151600854610e7b9190614203565b1115610ed85760405162461bcd60e51b815260206004820152602660248201527f4d696e743a20507572636861736520776f756c6420657863656564206d617820604482015265737570706c7960d01b6064820152608401610b9c565b60005b81518160ff1610156110aa576000610f1c838360ff1681518110610f0f57634e487b7160e01b600052603260045260246000fd5b60200260200101516123c8565b6000818152600260205260409020549091506001600160a01b03161561101f5782516060905b8015610fe657848460ff1681518110610f6b57634e487b7160e01b600052603260045260246000fd5b60200260200101518181518110610f9257634e487b7160e01b600052603260045260246000fd5b60200260200101518285600c610fa89190614350565b60ff1681518110610fc957634e487b7160e01b600052603260045260246000fd5b602090810291909101015280610fde8161439f565b915050610f42565b50610ff0816123c8565b91506000805160206144938339815191528260405161101191815260200190565b60405180910390a150611097565b6040518181526000805160206144938339815191529060200160405180910390a161104a3382612ab1565b336000908152601c6020526040812080546001929061106a908490614203565b909155505060408051338152602081018390526000805160206144b3833981519152910160405180910390a15b50806110a281614406565b915050610edb565b5050565b6110b6612acb565b601a805460ff90921663010000000263ff00000019909216919091179055565b6110de612acb565b6017805460ff191660ff92909216919091179055565b6110fe3382612b25565b61111a5760405162461bcd60e51b8152600401610b9c9061411d565b610c3d838383612ba3565b601a5460ff166111775760405162461bcd60e51b815260206004820152601b60248201527f436c61696d205265776172643a206973206e6f742061637469766500000000006044820152606401610b9c565b61118081610a0b565b6111da5760405162461bcd60e51b815260206004820152602560248201527f436c61696d205265776172643a2070726f7669646564207365656473206e6f206044820152641d985b1a5960da1b6064820152608401610b9c565b336000908152601b60205260409020548151111561124c5760405162461bcd60e51b815260206004820152602960248201527f436c61696d205265776172643a20436c61696d20616d6f756e74206973206e6f6044820152681d0818dbdc9c9958dd60ba1b6064820152608401610b9c565b601854815160085461125e9190614203565b11156112c35760405162461bcd60e51b815260206004820152602e60248201527f436c61696d205265776172643a20507572636861736520776f756c642065786360448201526d656564206d617820737570706c7960901b6064820152608401610b9c565b60005b81518160ff16101561147b5760006112fa838360ff1681518110610f0f57634e487b7160e01b600052603260045260246000fd5b6000818152600260205260409020549091506001600160a01b0316156113fd5782516060905b80156113c457848460ff168151811061134957634e487b7160e01b600052603260045260246000fd5b6020026020010151818151811061137057634e487b7160e01b600052603260045260246000fd5b60200260200101518285600c6113869190614350565b60ff16815181106113a757634e487b7160e01b600052603260045260246000fd5b6020908102919091010152806113bc8161439f565b915050611320565b506113ce816123c8565b9150600080516020614493833981519152826040516113ef91815260200190565b60405180910390a150611468565b6114073382612ab1565b60016019600082825461141a9190614339565b90915550506040518181526000805160206144938339815191529060200160405180910390a160408051338152602081018390526000805160206144b3833981519152910160405180910390a15b508061147381614406565b9150506112c6565b508051336000908152601b60205260409020546114989190614339565b336000818152601b60209081526040918290209390935583518151928352928201929092527fd8138f8a3f377c5259ca548e70e4c2de94f129f5a11036a15b69513cba2b426a910160405180910390a150565b6000828152600b602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291611560575060408051808201909152600a546001600160a01b0381168252600160a01b90046001600160601b031660208201525b60208101516000906127109061157f906001600160601b03168761431a565b611589919061421b565b91519350909150505b9250929050565b60006115a483611a06565b82106116065760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610b9c565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b611637612acb565b601655565b611644612acb565b6040514790339082156108fc029083906000818181858888f193505050501580156110aa573d6000803e3d6000fd5b61167b612acb565b61168481610a0b565b6116da5760405162461bcd60e51b815260206004820152602160248201527f536166654d696e743a2070726f7669646564207365656473206e6f2076616c696044820152601960fa1b6064820152608401610b9c565b60185481516008546116ec9190614203565b111561174d5760405162461bcd60e51b815260206004820152602a60248201527f536166654d696e743a20507572636861736520776f756c6420657863656564206044820152696d617820737570706c7960b01b6064820152608401610b9c565b60005b81518160ff161015610c3d576000611784838360ff1681518110610f0f57634e487b7160e01b600052603260045260246000fd5b90506117908482612ab1565b6040518181526000805160206144938339815191529060200160405180910390a1604080516001600160a01b0386168152602081018390526000805160206144b3833981519152910160405180910390a150806117ec81614406565b915050611750565b6040516bffffffffffffffffffffffff193360601b166020820152600090819060340160405160208183030381529060405280519060200120905061187084848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600d549150849050612d4a565b949350505050565b610c3d83838360405180602001604052806000815250611d25565b600061189e60085490565b82106119015760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b6064820152608401610b9c565b6008828154811061192257634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b61193c612acb565b6017805461ff001981166101009182900460ff1615909102179055565b611961612acb565b601955565b61196e612acb565b80516110aa9060159060208401906136f3565b611989612acb565b601a805461ff001981166101009182900460ff1615909102179055565b6000818152600260205260408120546001600160a01b031680610a055760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610b9c565b60006001600160a01b038216611a705760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610b9c565b506001600160a01b031660009081526003602052604090205490565b611a94612acb565b611a9e6000612d60565b565b611aa8612acb565b600d55565b60606000805b84518160ff161015611b0c57848160ff1681518110611ae257634e487b7160e01b600052603260045260246000fd5b602002602001015160ff1682611af891906141e6565b915080611b0481614406565b915050611ab3565b506040805142602082015244918101919091526060810186905260009061ffff8316906080016040516020818303038152906040528051906020012060001c611b559190614426565b90506000805b86518160ff161015611c6457868160ff1681518110611b8a57634e487b7160e01b600052603260045260246000fd5b602002602001015160ff1682611ba091906141e6565b91508161ffff1683108015611bb85750600a8160ff16105b15611c2b578515611c1457604051806040016040528060018152602001600360fc1b815250611be98260ff16612db2565b604051602001611bfa929190613e82565b604051602081830303815290604052945050505050611cb0565b611c208160ff16612db2565b945050505050611cb0565b8161ffff1683108015611c41575060098160ff16115b15611c5257611c208160ff16612db2565b80611c5c81614406565b915050611b5b565b508415611c905760405180604001604052806002815260200161030360f41b8152509350505050611cb0565b604051806040016040528060018152602001600360fc1b81525093505050505b9392505050565b606060018054610a7d906143b6565b611cce612acb565b601a805460ff19811660ff90911615179055565b601a5460009062010000900460ff1615611cfe57506000919050565b506001600160a01b03166000908152601c602052604090205490565b6110aa338383612ecb565b611d2f3383612b25565b611d4b5760405162461bcd60e51b8152600401610b9c9061411d565b611d5784848484612f9a565b50505050565b611d65612acb565b601a805462ff0000198116620100009182900460ff1615909102179055565b611d8c612acb565b60005b81518160ff1610156110aa57818160ff1681518110611dbe57634e487b7160e01b600052603260045260246000fd5b60200260200101516020015160ff16601b6000848460ff1681518110611df457634e487b7160e01b600052603260045260246000fd5b6020026020010151600001516001600160a01b03166001600160a01b031681526020019081526020016000206000828254611e2f9190614203565b90915550819050611e3f81614406565b915050611d8f565b6060600060158054611e58906143b6565b905011611e745760405180602001604052806000815250610a05565b6015611e7f83612db2565b604051602001611e90929190613fde565b60405160208183030381529060405292915050565b611ead612acb565b601855565b80611f145760405162461bcd60e51b815260206004820152602c60248201527f416c6c6f774c6973743a20796f752073686f756c642070726f7669646520612060448201526b2fb6b2b935b632a83937b7b360a11b6064820152608401610b9c565b601a54610100900460ff16611f6b5760405162461bcd60e51b815260206004820152601860248201527f416c6c6f774c6973743a206973206e6f742061637469766500000000000000006044820152606401610b9c565b611f7582826117f4565b611fd45760405162461bcd60e51b815260206004820152602a60248201527f416c6c6f774c6973743a20796f7520617265206e6f7420616c6c6f77656420746044820152691bc81b5a5b9d081e595d60b21b6064820152608401610b9c565b611fdd83610a0b565b6120345760405162461bcd60e51b815260206004820152602260248201527f416c6c6f774c6973743a2070726f7669646564207365656473206e6f2076616c6044820152611a5960f21b6064820152608401610b9c565b601754835160ff909116101561209b5760405162461bcd60e51b815260206004820152602660248201527f416c6c6f774c6973743a20736565647320616d6f756e74206973206e6f7420636044820152651bdc9c9958dd60d21b6064820152608401610b9c565b82516016546120aa919061431a565b3410156121035760405162461bcd60e51b815260206004820152602160248201527f416c6c6f774c6973743a20457468657220616d6f756e7420696e636f727265636044820152601d60fa1b6064820152608401610b9c565b601a546301000000900460ff16835161211b33611ce2565b6121259190614203565b111561218f5760405162461bcd60e51b815260206004820152603360248201527f416c6c6f774c6973743a20596f752063616e206e6f74206d696e742074686973604482015272207175616e74697479206f6620477261646f7360681b6064820152608401610b9c565b60185483516008546121a19190614203565b11156122035760405162461bcd60e51b815260206004820152602b60248201527f416c6c6f774c6973743a20507572636861736520776f756c642065786365656460448201526a206d617820737570706c7960a81b6064820152608401610b9c565b60005b83518160ff161015611d5757600061223a858360ff1681518110610f0f57634e487b7160e01b600052603260045260246000fd5b6000818152600260205260409020549091506001600160a01b03161561233d5784516060905b801561230457868460ff168151811061228957634e487b7160e01b600052603260045260246000fd5b602002602001015181815181106122b057634e487b7160e01b600052603260045260246000fd5b60200260200101518285600c6122c69190614350565b60ff16815181106122e757634e487b7160e01b600052603260045260246000fd5b6020908102919091010152806122fc8161439f565b915050612260565b5061230e816123c8565b91506000805160206144938339815191528260405161232f91815260200190565b60405180910390a1506123b5565b6123473382612ab1565b6040518181526000805160206144938339815191529060200160405180910390a1336000908152601c60205260408120805460019290612388908490614203565b909155505060408051338152602081018390526000805160206144b3833981519152910160405180910390a15b50806123c081614406565b915050612206565b600080604051806040016040528060018152602001601960f91b8152506124878460008151811061240957634e487b7160e01b600052603260045260246000fd5b6020026020010151600e80548060200260200160405190810160405280929190818152602001828054801561247b57602002820191906000526020600020906000905b825461010083900a900460ff1681526020600192830181810494850194909303909202910180841161244c5790505b50505050506001611aad565b61250d856001815181106124ab57634e487b7160e01b600052603260045260246000fd5b6020026020010151600f80548060200260200160405190810160405280929190818152602001828054801561247b576000918252602091829020805460ff16845290820283019290916001910180841161244c57905050505050506001611aad565b6125af8660028151811061253157634e487b7160e01b600052603260045260246000fd5b602002602001015160108054806020026020016040519081016040528092919081815260200182805480156125a357602002820191906000526020600020906000905b825461010083900a900460ff168152602060019283018181049485019490930390920291018084116125745790505b50505050506000611aad565b612635876003815181106125d357634e487b7160e01b600052603260045260246000fd5b6020026020010151601180548060200260200160405190810160405280929190818152602001828054801561247b576000918252602091829020805460ff16845290820283019290916001910180841161244c57905050505050506001611aad565b612659886004815181106125d357634e487b7160e01b600052603260045260246000fd5b60405160200161266e96959493929190613f5f565b60405160208183030381529060405290506000612707846005815181106126a557634e487b7160e01b600052603260045260246000fd5b6020026020010151601280548060200260200160405190810160405280929190818152602001828054801561247b576000918252602091829020805460ff16845290820283019290916001910180841161244c57905050505050506001611aad565b61272b856006815181106126a557634e487b7160e01b600052603260045260246000fd5b61274f8660078151811061253157634e487b7160e01b600052603260045260246000fd5b612773876008815181106125d357634e487b7160e01b600052603260045260246000fd5b612797886009815181106125d357634e487b7160e01b600052603260045260246000fd5b6040516020016127ab959493929190613ef4565b6040516020818303038152906040529050600061284485600a815181106127e257634e487b7160e01b600052603260045260246000fd5b6020026020010151601380548060200260200160405190810160405280929190818152602001828054801561247b576000918252602091829020805460ff16845290820283019290916001910180841161244c57905050505050506001611aad565b6128ca86600b8151811061286857634e487b7160e01b600052603260045260246000fd5b602002602001015160148054806020026020016040519081016040528092919081815260200182805480156125a3576000918252602091829020805460ff16845290820283019290916001910180841161257457905050505050506000611aad565b6128ee87600c8151811061286857634e487b7160e01b600052603260045260246000fd5b60405160200161290093929190613eb1565b604051602081830303815290604052905061293d83838360405160200161292993929190613eb1565b604051602081830303815290604052612fcd565b95945050505050565b61294e612acb565b6001600160a01b0381166129b35760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b9c565b6129bc81612d60565b50565b60006001600160e01b0319821663152a902d60e11b1480610a055750610a05826130ec565b6000818152600260205260409020546001600160a01b03166129bc5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610b9c565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612a78826119a6565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6110aa828260405180602001604052806000815250613111565b600c546001600160a01b03163314611a9e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b9c565b600080612b31836119a6565b9050806001600160a01b0316846001600160a01b03161480612b7857506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b806118705750836001600160a01b0316612b9184610b00565b6001600160a01b031614949350505050565b826001600160a01b0316612bb6826119a6565b6001600160a01b031614612c1a5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610b9c565b6001600160a01b038216612c7c5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610b9c565b612c87838383613144565b612c92600082612a43565b6001600160a01b0383166000908152600360205260408120805460019290612cbb908490614339565b90915550506001600160a01b0382166000908152600360205260408120805460019290612ce9908490614203565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600082612d57858461314f565b14949350505050565b600c80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b606081612dd65750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612e005780612dea816143eb565b9150612df99050600a8361421b565b9150612dda565b6000816001600160401b03811115612e2857634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612e52576020820181803683370190505b5090505b841561187057612e67600183614339565b9150612e74600a86614426565b612e7f906030614203565b60f81b818381518110612ea257634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612ec4600a8661421b565b9450612e56565b816001600160a01b0316836001600160a01b03161415612f2d5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b9c565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612fa5848484612ba3565b612fb1848484846131aa565b611d575760405162461bcd60e51b8152600401610b9c906140cb565b6000805b82518110156130e65760006030848381518110612ffe57634e487b7160e01b600052603260045260246000fd5b0160200151613010919060f81c614350565b60ff16108061305557506009603084838151811061303e57634e487b7160e01b600052603260045260246000fd5b0160200151613050919060f81c614350565b60ff16115b156130635750600092915050565b60018184516130729190614339565b61307c9190614339565b61308790600a614272565b60308483815181106130a957634e487b7160e01b600052603260045260246000fd5b01602001516130bb919060f81c614350565b60ff166130c8919061431a565b6130d29083614203565b9150806130de816143eb565b915050612fd1565b50919050565b60006001600160e01b0319821663780e9d6360e01b1480610a055750610a05826132b7565b61311b8383613307565b61312860008484846131aa565b610c3d5760405162461bcd60e51b8152600401610b9c906140cb565b610c3d838383613455565b600081815b84518110156131a25761318e8286838151811061318157634e487b7160e01b600052603260045260246000fd5b602002602001015161350d565b91508061319a816143eb565b915050613154565b509392505050565b60006001600160a01b0384163b156132ac57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906131ee90339089908890889060040161407b565b602060405180830381600087803b15801561320857600080fd5b505af1925050508015613238575060408051601f3d908101601f1916820190925261323591810190613ce9565b60015b613292573d808015613266576040519150601f19603f3d011682016040523d82523d6000602084013e61326b565b606091505b50805161328a5760405162461bcd60e51b8152600401610b9c906140cb565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611870565b506001949350505050565b60006001600160e01b031982166380ac58cd60e01b14806132e857506001600160e01b03198216635b5e139f60e01b145b80610a0557506301ffc9a760e01b6001600160e01b0319831614610a05565b6001600160a01b03821661335d5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b9c565b6000818152600260205260409020546001600160a01b0316156133c25760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b9c565b6133ce60008383613144565b6001600160a01b03821660009081526003602052604081208054600192906133f7908490614203565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6001600160a01b0383166134b0576134ab81600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6134d3565b816001600160a01b0316836001600160a01b0316146134d3576134d38382613539565b6001600160a01b0382166134ea57610c3d816135d6565b826001600160a01b0316826001600160a01b031614610c3d57610c3d82826136af565b6000818310613529576000828152602084905260409020611cb0565b5060009182526020526040902090565b6000600161354684611a06565b6135509190614339565b6000838152600760205260409020549091508082146135a3576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906135e890600190614339565b6000838152600960205260408120546008805493945090928490811061361e57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061364d57634e487b7160e01b600052603260045260246000fd5b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061369357634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006136ba83611a06565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b8280546136ff906143b6565b90600052602060002090601f0160209004810192826137215760008555613767565b82601f1061373a57805160ff1916838001178555613767565b82800160010185558215613767579182015b8281111561376757825182559160200191906001019061374c565b50613773929150613777565b5090565b5b808211156137735760008155600101613778565b60006001600160401b038311156137a5576137a5614466565b6137b8601f8401601f1916602001614193565b90508281528383830111156137cc57600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b03811681146137fa57600080fd5b919050565b600082601f83011261380f578081fd5b8135602061382461381f836141c3565b614193565b80838252828201915082860187848660051b8901011115613843578586fd5b855b858110156138835781356001600160401b03811115613862578788fd5b6138708a87838c01016138d2565b8552509284019290840190600101613845565b5090979650505050505050565b60008083601f8401126138a1578182fd5b5081356001600160401b038111156138b7578182fd5b6020830191508360208260051b850101111561159257600080fd5b600082601f8301126138e2578081fd5b813560206138f261381f836141c3565b80838252828201915082860187848660051b8901011115613911578586fd5b855b8581101561388357813584529284019290840190600101613913565b803580151581146137fa57600080fd5b803560ff811681146137fa57600080fd5b600060208284031215613961578081fd5b611cb0826137e3565b6000806040838503121561397c578081fd5b613985836137e3565b9150613993602084016137e3565b90509250929050565b6000806000606084860312156139b0578081fd5b6139b9846137e3565b92506139c7602085016137e3565b9150604084013590509250925092565b600080600080608085870312156139ec578182fd5b6139f5856137e3565b9350613a03602086016137e3565b92506040850135915060608501356001600160401b03811115613a24578182fd5b8501601f81018713613a34578182fd5b613a438782356020840161378c565b91505092959194509250565b60008060408385031215613a61578182fd5b613a6a836137e3565b915060208301356001600160401b03811115613a84578182fd5b613a90858286016137ff565b9150509250929050565b60008060408385031215613aac578182fd5b613ab5836137e3565b91506139936020840161392f565b60008060408385031215613ad5578182fd5b613ade836137e3565b946020939093013593505050565b600060208284031215613afd578081fd5b81356001600160401b03811115613b12578182fd5b611870848285016137ff565b600080600060408486031215613b32578081fd5b83356001600160401b0380821115613b48578283fd5b613b54878388016137ff565b94506020860135915080821115613b69578283fd5b50613b7686828701613890565b9497909650939450505050565b60008060208385031215613b95578182fd5b82356001600160401b03811115613baa578283fd5b613bb685828601613890565b90969095509350505050565b60006020808385031215613bd4578182fd5b82356001600160401b03811115613be9578283fd5b8301601f81018513613bf9578283fd5b8035613c0761381f826141c3565b80828252848201915084840188868560061b8701011115613c26578687fd5b8694505b83851015613c7757604080828b031215613c42578788fd5b613c4a61416b565b613c53836137e3565b8152613c6088840161393f565b818901528452600195909501949286019201613c2a565b50979650505050505050565b600060208284031215613c94578081fd5b81356001600160401b03811115613ca9578182fd5b611870848285016138d2565b600060208284031215613cc6578081fd5b5035919050565b600060208284031215613cde578081fd5b8135611cb08161447c565b600060208284031215613cfa578081fd5b8151611cb08161447c565b600060208284031215613d16578081fd5b81356001600160401b03811115613d2b578182fd5b8201601f81018413613d3b578182fd5b6118708482356020840161378c565b600080600060608486031215613d5e578081fd5b833592506020808501356001600160401b03811115613d7b578283fd5b8501601f81018713613d8b578283fd5b8035613d9961381f826141c3565b8082825284820191508484018a868560051b8701011115613db8578687fd5b8694505b83851015613de157613dcd8161393f565b835260019490940193918501918501613dbc565b508096505050505050613df66040850161392f565b90509250925092565b60008060408385031215613e11578182fd5b50508035926020909101359150565b600060208284031215613e31578081fd5b611cb08261393f565b60008151808452613e52816020860160208601614373565b601f01601f19169290920160200192915050565b60008151613e78818560208601614373565b9290920192915050565b60008351613e94818460208801614373565b835190830190613ea8818360208801614373565b01949350505050565b60008451613ec3818460208901614373565b845190830190613ed7818360208901614373565b8451910190613eea818360208801614373565b0195945050505050565b60008651613f06818460208b01614373565b865190830190613f1a818360208b01614373565b8651910190613f2d818360208a01614373565b8551910190613f40818360208901614373565b8451910190613f53818360208801614373565b01979650505050505050565b600087516020613f728285838d01614373565b885191840191613f858184848d01614373565b8851920191613f978184848c01614373565b8751920191613fa98184848b01614373565b8651920191613fbb8184848a01614373565b8551920191613fcd8184848901614373565b919091019998505050505050505050565b600080845482600182811c915080831680613ffa57607f831692505b602080841082141561401a57634e487b7160e01b87526022600452602487fd5b81801561402e576001811461403f5761406b565b60ff1986168952848901965061406b565b60008b815260209020885b868110156140635781548b82015290850190830161404a565b505084890196505b50505050505061293d8185613e66565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906140ae90830184613e3a565b9695505050505050565b602081526000611cb06020830184613e3a565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b604080519081016001600160401b038111828210171561418d5761418d614466565b60405290565b604051601f8201601f191681016001600160401b03811182821017156141bb576141bb614466565b604052919050565b60006001600160401b038211156141dc576141dc614466565b5060051b60200190565b600061ffff808316818516808303821115613ea857613ea861443a565b600082198211156142165761421661443a565b500190565b60008261422a5761422a614450565b500490565b600181815b8085111561426a5781600019048211156142505761425061443a565b8085161561425d57918102915b93841c9390800290614234565b509250929050565b6000611cb0838360008261428857506001610a05565b8161429557506000610a05565b81600181146142ab57600281146142b5576142d1565b6001915050610a05565b60ff8411156142c6576142c661443a565b50506001821b610a05565b5060208310610133831016604e8410600b84101617156142f4575081810a610a05565b6142fe838361422f565b80600019048211156143125761431261443a565b029392505050565b60008160001904831182151516156143345761433461443a565b500290565b60008282101561434b5761434b61443a565b500390565b600060ff821660ff84168082101561436a5761436a61443a565b90039392505050565b60005b8381101561438e578181015183820152602001614376565b83811115611d575750506000910152565b6000816143ae576143ae61443a565b506000190190565b600181811c908216806143ca57607f821691505b602082108114156130e657634e487b7160e01b600052602260045260246000fd5b60006000198214156143ff576143ff61443a565b5060010190565b600060ff821660ff81141561441d5761441d61443a565b60010192915050565b60008261443557614435614450565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146129bc57600080fdfe289a8df2eac5a01ddf88360ee4d0daa14ea7b5e3b4d4fec3d1b20b2fcda1754230385c845b448a36257a6a1716e6ad2e1bc2cbe333cde1e69fe849ad6511adfea26469706673582212203d466042ca199ca6495d9b752f2dddfc2f8a748fafff668a8c4be20cf2b0188d64736f6c63430008040033

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.