ETH Price: $2,287.22 (-3.94%)

Token

Beefy Blokes (BBL)
 

Overview

Max Total Supply

1,355 BBL

Holders

280

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
1 BBL
0xc91302e8e02b470ebdc8e4c7e74c72b82d026006
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
Blokes

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 16 : BeefyBlokes.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9 <0.9.0;

import "https://github.com/FrankNFT-labs/ERC721F/blob/v4.7.0/contracts/token/ERC721/ERC721FCOMMON.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.7.0/contracts/utils/cryptography/MerkleProof.sol";


/**
 * @title Beefy Blokes contract
 * @dev Extends ERC721FCOMMON Non-Fungible Token Standard basic implementation.
 * Optimized to no longer use ERC721Enumarable , but still provide a totalSupply() implementation.
 * @author @FrankNFT.eth
 * 
 */

contract Blokes is ERC721FCOMMON {
    
    uint256 public tokenPrice = 0.055 ether; 
    uint256 public preSaleTokenPrice = 0.050 ether; 
    uint256 public constant MAX_TOKENS=4110;
    uint public constant MAX_RESERVE = 101; // set 1 to high to avoid some gas
    // 0: sale off
    // 1: claim
    // 2: presale
    // 3: public
    uint public saleState;

    bytes32 public preSaleMerkleRoot;
    bytes32 public claimlistMerkleRoot;

    address private constant FRANK = 0xF40Fd88ac59A206D009A07F8c09828a01e2ACC0d;
    address private constant ONEPERC = 0xb3E86A37cc734B1cd463568D1F9E3219D52D8d18;  
    mapping(address => uint256) private userBalance;
    
    event priceChange(address _by, uint256 price);
    
    constructor() ERC721FCOMMON("Beefy Blokes", "BBL") {
        setBaseTokenURI("ipfs://QmQjnhP8dsqjntLRsgcU6Sw6mBrL8S8hss2F7qgQknZiwE/"); 
        _mint( FRANK, 0);
    }

    /**
     * Mint Tokens to a wallet.
     */
    function airdrop(address to,uint numberOfTokens) public onlyOwner {    
        uint supply = totalSupply();
        require(supply + numberOfTokens <= MAX_TOKENS, "Reserve would exceed max supply of Tokens");
        require(numberOfTokens < MAX_RESERVE, "Can only mint 100 tokens at a time");
        for (uint i = 0; i < numberOfTokens;) {
            _safeMint(to, supply + i);
            unchecked{ i++;}
        }
    }
     /**
     * Mint Tokens to the owners reserve.
     */   
    function reserveTokens() external onlyOwner {    
        airdrop(owner(),MAX_RESERVE-1);
    }

    /**     
    * Set price 
    */
    function setPrice(uint256 price) external onlyOwner {
        tokenPrice = price;
        preSaleTokenPrice = price - 0.005 ether;
        emit priceChange(msg.sender, tokenPrice);
    }

    /**
     * @notice  Set one of the merkle roots
     * @param   _ID         2 for whitelist root, 1 for claimlist root
     * @param   _newRoot    New Merkle tree root
     */
    function setMerkleRoot(uint256 _ID, bytes32 _newRoot) external onlyOwner {
        require(_ID < 3 && _ID > 0, "!id");
        if (_ID == 2) {
            preSaleMerkleRoot = _newRoot;
        } else if (_ID == 1) {
            claimlistMerkleRoot = _newRoot;
        }
    }

    /**
     * Changes the state of saleIsActive from true to false and false to true
     * 0: sale off
     * 1: claim
     * 2: presale
     * 3: public
     * @dev If saleIsActive becomes `true` sets preSaleIsActive to `false`
     */
    function setSaleState(uint256 _id) external onlyOwner {
        require(_id < 4, "!id");
        saleState=_id;
    }

    /**
     * @notice Mints a certain number of tokens
     * @param numberOfTokens Total tokens to be minted, must be larger than 0 and at most 30
     */
    function mint(uint256 numberOfTokens) external payable {
        require(numberOfTokens != 0, "numberOfNfts cannot be 0");
        require(msg.sender == tx.origin, "No Contracts allowed.");
        require( numberOfTokens < 21,
            "Can only mint 20 tokens at a time"
        );
        require(
            tokenPrice * numberOfTokens <= msg.value,
            "Ether value sent is not correct"
        );
        require(saleState==3, "Sale NOT active yet");
        uint256 supply = totalSupply();
        require(
            supply + numberOfTokens <= MAX_TOKENS,
            "Purchase would exceed max supply of Tokens"
        );

        for (uint256 i; i < numberOfTokens; ) {
            _mint(msg.sender, supply + i); // no need to use safeMint as we don't allow contracts.
            unchecked {
                i++;
            }
        }
    }


    /**
     * @notice Claims a certain number of tokens
     * @param numberOfTokens Total tokens to be minted, must be larger than 0 and at most 4
     * @param merkleProof Proof that an address is part of the whitelisted pre-sale addresses
     * @dev Uses MerkleProof to determine whether an address is allowed to mint during the pre-sale, non-mint name is due to hardhat being unable to handle function overloading
     */
    function claim(uint256 numberOfTokens, bytes32[] calldata merkleProof) external payable  {
        require(numberOfTokens != 0, "numberOfNfts cannot be 0");
        require(userBalance[msg.sender]+numberOfTokens<5,"max claim is 4 tokens");
        require(saleState==1, "claim is not active yet");
        require(
            preSaleTokenPrice * numberOfTokens <= msg.value,
            "Ether value sent is not correct"
        );
        uint256 supply = totalSupply();
        require(
            supply + numberOfTokens <= MAX_TOKENS,
            "Purchase would exceed max supply of Tokens"
        );
        require(checkValidity(merkleProof, claimlistMerkleRoot), "Invalid Merkle Proof");
        userBalance[msg.sender] += numberOfTokens;
        for (uint256 i; i < numberOfTokens; ) {
            _safeMint(msg.sender, supply + i);
            unchecked {
                i++;
            }
        }
    }
    /**
     * @notice Mints a certain number of tokens
     * @param numberOfTokens Total tokens to be minted, must be larger than 0 and at most 6
     * @param merkleProof Proof that an address is part of the whitelisted pre-sale addresses
     * @dev Uses MerkleProof to determine whether an address is allowed to mint during the pre-sale, non-mint name is due to hardhat being unable to handle function overloading
     */
    function mintPreSale(uint256 numberOfTokens, bytes32[] calldata merkleProof) external payable {
        require(numberOfTokens != 0, "numberOfNfts cannot be 0");
        require( numberOfTokens < 7,
            "Can only mint 6 tokens at a time"
        );
        require(saleState==2, "PreSale is not active yet");
        require(
            tokenPrice * numberOfTokens <= msg.value,
            "Ether value sent is not correct"
        );
        uint256 supply = totalSupply();
        require(
            supply + numberOfTokens <= MAX_TOKENS,
            "Purchase would exceed max supply of Tokens"
        );
        require(checkValidity(merkleProof, preSaleMerkleRoot), "Invalid Merkle Proof");

        for (uint256 i; i < numberOfTokens; ) {
            _safeMint(msg.sender, supply + i);
            unchecked {
                i++;
            }
        }
    }

    function checkValidity(bytes32[] calldata merkleProof, bytes32 root)
        internal
        view
        returns (bool)
    {
        bytes32 leafToCheck = keccak256(abi.encodePacked(msg.sender));
        return MerkleProof.verify(merkleProof, root, leafToCheck);
    }

    function withdraw() external onlyOwner {
        uint256 balance = address(this).balance;
        require(balance > 0, "Insufficient balance");
        _withdraw(ONEPERC,balance/100);
        _withdraw(owner(), address(this).balance);
    }
}

File 2 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 3 of 16 : ERC721FCOMMON.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9 <0.9.0;

import "./ERC721F.sol";
import "./extensions/ERC721Payable.sol";

contract ERC721FCOMMON is ERC721F, ERC721Payable {
    constructor(string memory name_, string memory symbol_) ERC721F(name_, symbol_) {
    }
}

File 4 of 16 : ERC721Payable.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9 <0.9.0;

abstract contract ERC721Payable {
    /**
    * Helper method to allow ETH withdraws.
    */
    function _withdraw(address _address, uint256 _amount) internal {
        (bool success, ) = _address.call{ value: _amount }("");
        require(success, "Failed to withdraw Ether");
    }

    // contract can recieve Ether
    receive() external payable { }
}

File 5 of 16 : ERC721F.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9 <0.9.0;

import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.7.0/contracts/token/ERC721/ERC721.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.7.0/contracts/access/Ownable.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v4.7.0/contracts/utils/Counters.sol";


/**
 * @title ERC721F
 * @dev Extends ERC721 Non-Fungible Token Standard basic implementation.
 * Optimized to no longer use ERC721Enumerable , but still provide a totalSupply() and walletOfOwner(address _owner) implementation.
 * @author @FrankNFT.eth
 * 
 */

contract ERC721F is Ownable, ERC721 {
    using Counters for Counters.Counter;

    Counters.Counter private _tokenSupply;

    // Base URI for Meta data
    string private _baseTokenURI;

    
    constructor(string memory name_, string memory symbol_) ERC721(name_, symbol_) {
    }

    /** 
     * @dev walletofOwner
     * @return tokens id owned by the given address
     * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first.
     * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case.
     */
    function walletOfOwner(address _owner) external view returns (uint256[] memory){
        uint256 ownerTokenCount = balanceOf(_owner);
        uint256[] memory ownedTokenIds = new uint256[](ownerTokenCount);
        uint256 currentTokenId = _startTokenId();
        uint256 ownedTokenIndex = 0;

        while ( ownedTokenIndex < ownerTokenCount && currentTokenId < _tokenSupply.current() ) {
            if (ownerOf(currentTokenId) == _owner) {
                ownedTokenIds[ownedTokenIndex] = currentTokenId;
                unchecked{ ownedTokenIndex++;}
            }
            unchecked{ currentTokenId++;}
        }
        return ownedTokenIds;
    }
    
    /**
     * To change the starting tokenId, override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

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

    /**
     *    
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     */
    function _mint(address to, uint256 tokenId) internal virtual override {
        super._mint(to, tokenId);
        _tokenSupply.increment();
    }

    /**
     * @dev Gets the total amount of tokens stored by the contract.
     * @return uint256 representing the total amount of tokens
     */
    function totalSupply() public view returns (uint256) {
        return _tokenSupply.current();
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

File 8 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 9 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 10 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 11 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 12 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 13 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 14 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 15 of 16 : IERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 1000
  },
  "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":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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_by","type":"address"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"}],"name":"priceChange","type":"event"},{"inputs":[],"name":"MAX_RESERVE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAX_TOKENS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"airdrop","outputs":[],"stateMutability":"nonpayable","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":"numberOfTokens","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"claim","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"claimlistMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"numberOfTokens","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"mintPreSale","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preSaleMerkleRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"preSaleTokenPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"reserveTokens","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":"saleState","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_ID","type":"uint256"},{"internalType":"bytes32","name":"_newRoot","type":"bytes32"}],"name":"setMerkleRoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"}],"name":"setPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"}],"name":"setSaleState","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":[],"name":"tokenPrice","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":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"walletOfOwner","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]

608060405266c3663566a5800060095566b1a2bc2ec50000600a553480156200002757600080fd5b506040518060400160405280600c81526020016b426565667920426c6f6b657360a01b8152506040518060400160405280600381526020016210909360ea1b815250818181816200008762000081620000f660201b60201c565b620000fa565b6001620000958382620003f0565b506002620000a48282620003f0565b50505050505050620000cf60405180606001604052806036815260200162002ec1603691396200014a565b620000f073f40fd88ac59a206d009a07f8c09828a01e2acc0d600062000166565b620004e4565b3390565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6200015462000194565b6008620001628282620003f0565b5050565b6200017d8282620001f660201b6200178d1760201c565b6200016260076200033e60201b620018dc1760201c565b6000546001600160a01b03163314620001f45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b565b6001600160a01b0382166200024e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401620001eb565b6000818152600360205260409020546001600160a01b031615620002b55760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401620001eb565b6001600160a01b0382166000908152600460205260408120805460019290620002e0908490620004bc565b909155505060008181526003602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b80546001019055565b505050565b634e487b7160e01b600052604160045260246000fd5b600181811c908216806200037757607f821691505b6020821081036200039857634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200034757600081815260208120601f850160051c81016020861015620003c75750805b601f850160051c820191505b81811015620003e857828155600101620003d3565b505050505050565b81516001600160401b038111156200040c576200040c6200034c565b62000424816200041d845462000362565b846200039e565b602080601f8311600181146200045c5760008415620004435750858301515b600019600386901b1c1916600185901b178555620003e8565b600085815260208120601f198616915b828110156200048d578886015182559484019460019091019084016200046c565b5085821015620004ac5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b80820180821115620004de57634e487b7160e01b600052601160045260246000fd5b92915050565b6129cd80620004f46000396000f3fe6080604052600436106102385760003560e01c80636352211e116101385780639e6b2c5b116100b0578063c87b56dd1161007f578063eff31e9e11610064578063eff31e9e14610627578063f2fde38b1461063c578063f47c84c51461065c57600080fd5b8063c87b56dd146105be578063e985e9c5146105de57600080fd5b80639e6b2c5b14610558578063a0712d681461056b578063a22cb4651461057e578063b88d4fde1461059e57600080fd5b80637ff9b596116101075780638da5cb5b116100ec5780638da5cb5b1461050557806391b7f5ed1461052357806395d89b411461054357600080fd5b80637ff9b596146104cf5780638ba4cc3c146104e557600080fd5b80636352211e1461046457806370a0823114610484578063715018a6146104a45780637259bce3146104b957600080fd5b80632560e376116101cb5780633ccfd60b1161019a578063438388451161017f578063438388451461040b578063438b630014610421578063603f4d521461044e57600080fd5b80633ccfd60b146103d657806342842e0e146103eb57600080fd5b80632560e3761461037857806327ac36c41461038e5780632f52ebb7146103a357806330176e13146103b657600080fd5b8063095ea7b311610207578063095ea7b3146102f557806318160ddd1461031557806318712c211461033857806323b872dd1461035857600080fd5b806301ffc9a71461024457806306fdde0314610279578063081812fc1461029b578063084c4088146102d357600080fd5b3661023f57005b600080fd5b34801561025057600080fd5b5061026461025f36600461232c565b610672565b60405190151581526020015b60405180910390f35b34801561028557600080fd5b5061028e61070f565b6040516102709190612399565b3480156102a757600080fd5b506102bb6102b63660046123ac565b6107a1565b6040516001600160a01b039091168152602001610270565b3480156102df57600080fd5b506102f36102ee3660046123ac565b6107c8565b005b34801561030157600080fd5b506102f36103103660046123e1565b610810565b34801561032157600080fd5b5061032a61095f565b604051908152602001610270565b34801561034457600080fd5b506102f361035336600461240b565b61096f565b34801561036457600080fd5b506102f361037336600461242d565b6109d9565b34801561038457600080fd5b5061032a600d5481565b34801561039a57600080fd5b506102f3610a60565b6102f36103b1366004612469565b610a8b565b3480156103c257600080fd5b506102f36103d1366004612574565b610d1a565b3480156103e257600080fd5b506102f3610d2e565b3480156103f757600080fd5b506102f361040636600461242d565b610dca565b34801561041757600080fd5b5061032a600c5481565b34801561042d57600080fd5b5061044161043c3660046125bd565b610de5565b60405161027091906125d8565b34801561045a57600080fd5b5061032a600b5481565b34801561047057600080fd5b506102bb61047f3660046123ac565b610eac565b34801561049057600080fd5b5061032a61049f3660046125bd565b610f11565b3480156104b057600080fd5b506102f3610fab565b3480156104c557600080fd5b5061032a600a5481565b3480156104db57600080fd5b5061032a60095481565b3480156104f157600080fd5b506102f36105003660046123e1565b610fbd565b34801561051157600080fd5b506000546001600160a01b03166102bb565b34801561052f57600080fd5b506102f361053e3660046123ac565b6110ef565b34801561054f57600080fd5b5061028e611150565b6102f3610566366004612469565b61115f565b6102f36105793660046123ac565b6113a2565b34801561058a57600080fd5b506102f361059936600461261c565b611606565b3480156105aa57600080fd5b506102f36105b9366004612658565b611611565b3480156105ca57600080fd5b5061028e6105d93660046123ac565b611699565b3480156105ea57600080fd5b506102646105f93660046126d4565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561063357600080fd5b5061032a606581565b34801561064857600080fd5b506102f36106573660046125bd565b611700565b34801561066857600080fd5b5061032a61100e81565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806106d557506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061070957507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b60606001805461071e90612707565b80601f016020809104026020016040519081016040528092919081815260200182805461074a90612707565b80156107975780601f1061076c57610100808354040283529160200191610797565b820191906000526020600020905b81548152906001019060200180831161077a57829003601f168201915b5050505050905090565b60006107ac826118e5565b506000908152600560205260409020546001600160a01b031690565b6107d0611949565b6004811061080b5760405162461bcd60e51b8152602060048201526003602482015262085a5960ea1b60448201526064015b60405180910390fd5b600b55565b600061081b82610eac565b9050806001600160a01b0316836001600160a01b0316036108a45760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610802565b336001600160a01b03821614806108de57506001600160a01b038116600090815260066020908152604080832033845290915290205460ff165b6109505760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610802565b61095a83836119a3565b505050565b600061096a60075490565b905090565b610977611949565b6003821080156109875750600082115b6109b95760405162461bcd60e51b8152602060048201526003602482015262085a5960ea1b6044820152606401610802565b816002036109c757600c5550565b816001036109d557600d8190555b5050565b6109e33382611a1e565b610a555760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f7665640000000000000000000000000000000000006064820152608401610802565b61095a838383611a9d565b610a68611949565b610a89610a7d6000546001600160a01b031690565b61050060016065612757565b565b82600003610adb5760405162461bcd60e51b815260206004820152601860248201527f6e756d6265724f664e6674732063616e6e6f74206265203000000000000000006044820152606401610802565b336000908152600e6020526040902054600590610af990859061276a565b10610b465760405162461bcd60e51b815260206004820152601560248201527f6d617820636c61696d206973203420746f6b656e7300000000000000000000006044820152606401610802565b600b54600114610b985760405162461bcd60e51b815260206004820152601760248201527f636c61696d206973206e6f7420616374697665207965740000000000000000006044820152606401610802565b3483600a54610ba7919061277d565b1115610bf55760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610802565b6000610bff61095f565b905061100e610c0e858361276a565b1115610c6f5760405162461bcd60e51b815260206004820152602a60248201527f507572636861736520776f756c6420657863656564206d617820737570706c79604482015269206f6620546f6b656e7360b01b6064820152608401610802565b610c7c8383600d54611c77565b610cc85760405162461bcd60e51b815260206004820152601460248201527f496e76616c6964204d65726b6c652050726f6f660000000000000000000000006044820152606401610802565b336000908152600e602052604081208054869290610ce790849061276a565b90915550600090505b84811015610d1357610d0b33610d06838561276a565b611cfb565b600101610cf0565b5050505050565b610d22611949565b60086109d582826127e2565b610d36611949565b4780610d845760405162461bcd60e51b815260206004820152601460248201527f496e73756666696369656e742062616c616e63650000000000000000000000006044820152606401610802565b610dac73b3e86a37cc734b1cd463568d1f9e3219d52d8d18610da76064846128b8565b611d15565b610dc7610dc16000546001600160a01b031690565b47611d15565b50565b61095a83838360405180602001604052806000815250611611565b60606000610df283610f11565b905060008167ffffffffffffffff811115610e0f57610e0f6124e8565b604051908082528060200260200182016040528015610e38578160200160208202803683370190505b5090506000805b8381108015610e4f575060075482105b15610ea257856001600160a01b0316610e6783610eac565b6001600160a01b031603610e975781838281518110610e8857610e886128cc565b60209081029190910101526001015b600190910190610e3f565b5090949350505050565b6000818152600360205260408120546001600160a01b0316806107095760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610802565b60006001600160a01b038216610f8f5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e657200000000000000000000000000000000000000000000006064820152608401610802565b506001600160a01b031660009081526004602052604090205490565b610fb3611949565b610a896000611db8565b610fc5611949565b6000610fcf61095f565b905061100e610fde838361276a565b11156110525760405162461bcd60e51b815260206004820152602960248201527f5265736572766520776f756c6420657863656564206d617820737570706c792060448201527f6f6620546f6b656e7300000000000000000000000000000000000000000000006064820152608401610802565b606582106110c85760405162461bcd60e51b815260206004820152602260248201527f43616e206f6e6c79206d696e742031303020746f6b656e73206174206120746960448201527f6d650000000000000000000000000000000000000000000000000000000000006064820152608401610802565b60005b828110156110e9576110e184610d06838561276a565b6001016110cb565b50505050565b6110f7611949565b600981905561110d6611c37937e0800082612757565b600a556009546040805133815260208101929092527f2a270679203ad5c6be2af882c755f81ff060752614a378c1804df57dd7d2add0910160405180910390a150565b60606002805461071e90612707565b826000036111af5760405162461bcd60e51b815260206004820152601860248201527f6e756d6265724f664e6674732063616e6e6f74206265203000000000000000006044820152606401610802565b600783106111ff5760405162461bcd60e51b815260206004820181905260248201527f43616e206f6e6c79206d696e74203620746f6b656e7320617420612074696d656044820152606401610802565b600b546002146112515760405162461bcd60e51b815260206004820152601960248201527f50726553616c65206973206e6f742061637469766520796574000000000000006044820152606401610802565b3483600954611260919061277d565b11156112ae5760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610802565b60006112b861095f565b905061100e6112c7858361276a565b11156113285760405162461bcd60e51b815260206004820152602a60248201527f507572636861736520776f756c6420657863656564206d617820737570706c79604482015269206f6620546f6b656e7360b01b6064820152608401610802565b6113358383600c54611c77565b6113815760405162461bcd60e51b815260206004820152601460248201527f496e76616c6964204d65726b6c652050726f6f660000000000000000000000006044820152606401610802565b60005b84811015610d135761139a33610d06838561276a565b600101611384565b806000036113f25760405162461bcd60e51b815260206004820152601860248201527f6e756d6265724f664e6674732063616e6e6f74206265203000000000000000006044820152606401610802565b3332146114415760405162461bcd60e51b815260206004820152601560248201527f4e6f20436f6e74726163747320616c6c6f7765642e00000000000000000000006044820152606401610802565b601581106114b75760405162461bcd60e51b815260206004820152602160248201527f43616e206f6e6c79206d696e7420323020746f6b656e7320617420612074696d60448201527f65000000000000000000000000000000000000000000000000000000000000006064820152608401610802565b34816009546114c6919061277d565b11156115145760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610802565b600b546003146115665760405162461bcd60e51b815260206004820152601360248201527f53616c65204e4f542061637469766520796574000000000000000000000000006044820152606401610802565b600061157061095f565b905061100e61157f838361276a565b11156115e05760405162461bcd60e51b815260206004820152602a60248201527f507572636861736520776f756c6420657863656564206d617820737570706c79604482015269206f6620546f6b656e7360b01b6064820152608401610802565b60005b8281101561095a576115fe336115f9838561276a565b611e15565b6001016115e3565b6109d5338383611e2d565b61161b3383611a1e565b61168d5760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f7665640000000000000000000000000000000000006064820152608401610802565b6110e984848484611efb565b60606116a4826118e5565b60006116ae611f79565b905060008151116116ce57604051806020016040528060008152506116f9565b806116d884611f88565b6040516020016116e99291906128e2565b6040516020818303038152906040525b9392505050565b611708611949565b6001600160a01b0381166117845760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610802565b610dc781611db8565b6001600160a01b0382166117e35760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610802565b6000818152600360205260409020546001600160a01b0316156118485760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610802565b6001600160a01b038216600090815260046020526040812080546001929061187190849061276a565b9091555050600081815260036020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b80546001019055565b6000818152600360205260409020546001600160a01b0316610dc75760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610802565b6000546001600160a01b03163314610a895760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610802565b6000818152600560205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03841690811790915581906119e582610eac565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611a2a83610eac565b9050806001600160a01b0316846001600160a01b03161480611a7157506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b80611a955750836001600160a01b0316611a8a846107a1565b6001600160a01b0316145b949350505050565b826001600160a01b0316611ab082610eac565b6001600160a01b031614611b2c5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610802565b6001600160a01b038216611ba75760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610802565b611bb26000826119a3565b6001600160a01b0383166000908152600460205260408120805460019290611bdb908490612757565b90915550506001600160a01b0382166000908152600460205260408120805460019290611c0990849061276a565b9091555050600081815260036020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6040516bffffffffffffffffffffffff193360601b1660208201526000908190603401604051602081830303815290604052805190602001209050611cf28585808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508792508591506120bd9050565b95945050505050565b6109d58282604051806020016040528060008152506120d3565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611d62576040519150601f19603f3d011682016040523d82523d6000602084013e611d67565b606091505b505090508061095a5760405162461bcd60e51b815260206004820152601860248201527f4661696c656420746f20776974686472617720457468657200000000000000006044820152606401610802565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b611e1f828261178d565b6109d5600780546001019055565b816001600160a01b0316836001600160a01b031603611e8e5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610802565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611f06848484611a9d565b611f1284848484612151565b6110e95760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610802565b60606008805461071e90612707565b606081600003611fcb57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115611ff55780611fdf81612911565b9150611fee9050600a836128b8565b9150611fcf565b60008167ffffffffffffffff811115612010576120106124e8565b6040519080825280601f01601f19166020018201604052801561203a576020820181803683370190505b5090505b8415611a955761204f600183612757565b915061205c600a8661292a565b61206790603061276a565b60f81b81838151811061207c5761207c6128cc565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506120b6600a866128b8565b945061203e565b6000826120ca858461229d565b14949350505050565b6120dd8383611e15565b6120ea6000848484612151565b61095a5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610802565b60006001600160a01b0384163b1561229257604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061219590339089908890889060040161293e565b6020604051808303816000875af19250505080156121d0575060408051601f3d908101601f191682019092526121cd9181019061297a565b60015b612278573d8080156121fe576040519150601f19603f3d011682016040523d82523d6000602084013e612203565b606091505b5080516000036122705760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610802565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611a95565b506001949350505050565b600081815b84518110156122e2576122ce828683815181106122c1576122c16128cc565b60200260200101516122ea565b9150806122da81612911565b9150506122a2565b509392505050565b60008183106123065760008281526020849052604090206116f9565b5060009182526020526040902090565b6001600160e01b031981168114610dc757600080fd5b60006020828403121561233e57600080fd5b81356116f981612316565b60005b8381101561236457818101518382015260200161234c565b50506000910152565b60008151808452612385816020860160208601612349565b601f01601f19169290920160200192915050565b6020815260006116f9602083018461236d565b6000602082840312156123be57600080fd5b5035919050565b80356001600160a01b03811681146123dc57600080fd5b919050565b600080604083850312156123f457600080fd5b6123fd836123c5565b946020939093013593505050565b6000806040838503121561241e57600080fd5b50508035926020909101359150565b60008060006060848603121561244257600080fd5b61244b846123c5565b9250612459602085016123c5565b9150604084013590509250925092565b60008060006040848603121561247e57600080fd5b83359250602084013567ffffffffffffffff8082111561249d57600080fd5b818601915086601f8301126124b157600080fd5b8135818111156124c057600080fd5b8760208260051b85010111156124d557600080fd5b6020830194508093505050509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612519576125196124e8565b604051601f8501601f19908116603f01168101908282118183101715612541576125416124e8565b8160405280935085815286868601111561255a57600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561258657600080fd5b813567ffffffffffffffff81111561259d57600080fd5b8201601f810184136125ae57600080fd5b611a95848235602084016124fe565b6000602082840312156125cf57600080fd5b6116f9826123c5565b6020808252825182820181905260009190848201906040850190845b81811015612610578351835292840192918401916001016125f4565b50909695505050505050565b6000806040838503121561262f57600080fd5b612638836123c5565b91506020830135801515811461264d57600080fd5b809150509250929050565b6000806000806080858703121561266e57600080fd5b612677856123c5565b9350612685602086016123c5565b925060408501359150606085013567ffffffffffffffff8111156126a857600080fd5b8501601f810187136126b957600080fd5b6126c8878235602084016124fe565b91505092959194509250565b600080604083850312156126e757600080fd5b6126f0836123c5565b91506126fe602084016123c5565b90509250929050565b600181811c9082168061271b57607f821691505b60208210810361273b57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561070957610709612741565b8082018082111561070957610709612741565b808202811582820484141761070957610709612741565b601f82111561095a57600081815260208120601f850160051c810160208610156127bb5750805b601f850160051c820191505b818110156127da578281556001016127c7565b505050505050565b815167ffffffffffffffff8111156127fc576127fc6124e8565b6128108161280a8454612707565b84612794565b602080601f831160018114612845576000841561282d5750858301515b600019600386901b1c1916600185901b1785556127da565b600085815260208120601f198616915b8281101561287457888601518255948401946001909101908401612855565b50858210156128925787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601260045260246000fd5b6000826128c7576128c76128a2565b500490565b634e487b7160e01b600052603260045260246000fd5b600083516128f4818460208801612349565b835190830190612908818360208801612349565b01949350505050565b60006001820161292357612923612741565b5060010190565b600082612939576129396128a2565b500690565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612970608083018461236d565b9695505050505050565b60006020828403121561298c57600080fd5b81516116f98161231656fea2646970667358221220480850ed01c81d35921f2b86f51e2083d6b9e21a7cb32c60811fcec2718d204364736f6c63430008110033697066733a2f2f516d516a6e6850386473716a6e744c5273676355365377366d42724c3853386873733246377167516b6e5a6977452f

Deployed Bytecode

0x6080604052600436106102385760003560e01c80636352211e116101385780639e6b2c5b116100b0578063c87b56dd1161007f578063eff31e9e11610064578063eff31e9e14610627578063f2fde38b1461063c578063f47c84c51461065c57600080fd5b8063c87b56dd146105be578063e985e9c5146105de57600080fd5b80639e6b2c5b14610558578063a0712d681461056b578063a22cb4651461057e578063b88d4fde1461059e57600080fd5b80637ff9b596116101075780638da5cb5b116100ec5780638da5cb5b1461050557806391b7f5ed1461052357806395d89b411461054357600080fd5b80637ff9b596146104cf5780638ba4cc3c146104e557600080fd5b80636352211e1461046457806370a0823114610484578063715018a6146104a45780637259bce3146104b957600080fd5b80632560e376116101cb5780633ccfd60b1161019a578063438388451161017f578063438388451461040b578063438b630014610421578063603f4d521461044e57600080fd5b80633ccfd60b146103d657806342842e0e146103eb57600080fd5b80632560e3761461037857806327ac36c41461038e5780632f52ebb7146103a357806330176e13146103b657600080fd5b8063095ea7b311610207578063095ea7b3146102f557806318160ddd1461031557806318712c211461033857806323b872dd1461035857600080fd5b806301ffc9a71461024457806306fdde0314610279578063081812fc1461029b578063084c4088146102d357600080fd5b3661023f57005b600080fd5b34801561025057600080fd5b5061026461025f36600461232c565b610672565b60405190151581526020015b60405180910390f35b34801561028557600080fd5b5061028e61070f565b6040516102709190612399565b3480156102a757600080fd5b506102bb6102b63660046123ac565b6107a1565b6040516001600160a01b039091168152602001610270565b3480156102df57600080fd5b506102f36102ee3660046123ac565b6107c8565b005b34801561030157600080fd5b506102f36103103660046123e1565b610810565b34801561032157600080fd5b5061032a61095f565b604051908152602001610270565b34801561034457600080fd5b506102f361035336600461240b565b61096f565b34801561036457600080fd5b506102f361037336600461242d565b6109d9565b34801561038457600080fd5b5061032a600d5481565b34801561039a57600080fd5b506102f3610a60565b6102f36103b1366004612469565b610a8b565b3480156103c257600080fd5b506102f36103d1366004612574565b610d1a565b3480156103e257600080fd5b506102f3610d2e565b3480156103f757600080fd5b506102f361040636600461242d565b610dca565b34801561041757600080fd5b5061032a600c5481565b34801561042d57600080fd5b5061044161043c3660046125bd565b610de5565b60405161027091906125d8565b34801561045a57600080fd5b5061032a600b5481565b34801561047057600080fd5b506102bb61047f3660046123ac565b610eac565b34801561049057600080fd5b5061032a61049f3660046125bd565b610f11565b3480156104b057600080fd5b506102f3610fab565b3480156104c557600080fd5b5061032a600a5481565b3480156104db57600080fd5b5061032a60095481565b3480156104f157600080fd5b506102f36105003660046123e1565b610fbd565b34801561051157600080fd5b506000546001600160a01b03166102bb565b34801561052f57600080fd5b506102f361053e3660046123ac565b6110ef565b34801561054f57600080fd5b5061028e611150565b6102f3610566366004612469565b61115f565b6102f36105793660046123ac565b6113a2565b34801561058a57600080fd5b506102f361059936600461261c565b611606565b3480156105aa57600080fd5b506102f36105b9366004612658565b611611565b3480156105ca57600080fd5b5061028e6105d93660046123ac565b611699565b3480156105ea57600080fd5b506102646105f93660046126d4565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b34801561063357600080fd5b5061032a606581565b34801561064857600080fd5b506102f36106573660046125bd565b611700565b34801561066857600080fd5b5061032a61100e81565b60006001600160e01b031982167f80ac58cd0000000000000000000000000000000000000000000000000000000014806106d557506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b8061070957507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b60606001805461071e90612707565b80601f016020809104026020016040519081016040528092919081815260200182805461074a90612707565b80156107975780601f1061076c57610100808354040283529160200191610797565b820191906000526020600020905b81548152906001019060200180831161077a57829003601f168201915b5050505050905090565b60006107ac826118e5565b506000908152600560205260409020546001600160a01b031690565b6107d0611949565b6004811061080b5760405162461bcd60e51b8152602060048201526003602482015262085a5960ea1b60448201526064015b60405180910390fd5b600b55565b600061081b82610eac565b9050806001600160a01b0316836001600160a01b0316036108a45760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610802565b336001600160a01b03821614806108de57506001600160a01b038116600090815260066020908152604080832033845290915290205460ff165b6109505760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610802565b61095a83836119a3565b505050565b600061096a60075490565b905090565b610977611949565b6003821080156109875750600082115b6109b95760405162461bcd60e51b8152602060048201526003602482015262085a5960ea1b6044820152606401610802565b816002036109c757600c5550565b816001036109d557600d8190555b5050565b6109e33382611a1e565b610a555760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f7665640000000000000000000000000000000000006064820152608401610802565b61095a838383611a9d565b610a68611949565b610a89610a7d6000546001600160a01b031690565b61050060016065612757565b565b82600003610adb5760405162461bcd60e51b815260206004820152601860248201527f6e756d6265724f664e6674732063616e6e6f74206265203000000000000000006044820152606401610802565b336000908152600e6020526040902054600590610af990859061276a565b10610b465760405162461bcd60e51b815260206004820152601560248201527f6d617820636c61696d206973203420746f6b656e7300000000000000000000006044820152606401610802565b600b54600114610b985760405162461bcd60e51b815260206004820152601760248201527f636c61696d206973206e6f7420616374697665207965740000000000000000006044820152606401610802565b3483600a54610ba7919061277d565b1115610bf55760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610802565b6000610bff61095f565b905061100e610c0e858361276a565b1115610c6f5760405162461bcd60e51b815260206004820152602a60248201527f507572636861736520776f756c6420657863656564206d617820737570706c79604482015269206f6620546f6b656e7360b01b6064820152608401610802565b610c7c8383600d54611c77565b610cc85760405162461bcd60e51b815260206004820152601460248201527f496e76616c6964204d65726b6c652050726f6f660000000000000000000000006044820152606401610802565b336000908152600e602052604081208054869290610ce790849061276a565b90915550600090505b84811015610d1357610d0b33610d06838561276a565b611cfb565b600101610cf0565b5050505050565b610d22611949565b60086109d582826127e2565b610d36611949565b4780610d845760405162461bcd60e51b815260206004820152601460248201527f496e73756666696369656e742062616c616e63650000000000000000000000006044820152606401610802565b610dac73b3e86a37cc734b1cd463568d1f9e3219d52d8d18610da76064846128b8565b611d15565b610dc7610dc16000546001600160a01b031690565b47611d15565b50565b61095a83838360405180602001604052806000815250611611565b60606000610df283610f11565b905060008167ffffffffffffffff811115610e0f57610e0f6124e8565b604051908082528060200260200182016040528015610e38578160200160208202803683370190505b5090506000805b8381108015610e4f575060075482105b15610ea257856001600160a01b0316610e6783610eac565b6001600160a01b031603610e975781838281518110610e8857610e886128cc565b60209081029190910101526001015b600190910190610e3f565b5090949350505050565b6000818152600360205260408120546001600160a01b0316806107095760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610802565b60006001600160a01b038216610f8f5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f74206120766160448201527f6c6964206f776e657200000000000000000000000000000000000000000000006064820152608401610802565b506001600160a01b031660009081526004602052604090205490565b610fb3611949565b610a896000611db8565b610fc5611949565b6000610fcf61095f565b905061100e610fde838361276a565b11156110525760405162461bcd60e51b815260206004820152602960248201527f5265736572766520776f756c6420657863656564206d617820737570706c792060448201527f6f6620546f6b656e7300000000000000000000000000000000000000000000006064820152608401610802565b606582106110c85760405162461bcd60e51b815260206004820152602260248201527f43616e206f6e6c79206d696e742031303020746f6b656e73206174206120746960448201527f6d650000000000000000000000000000000000000000000000000000000000006064820152608401610802565b60005b828110156110e9576110e184610d06838561276a565b6001016110cb565b50505050565b6110f7611949565b600981905561110d6611c37937e0800082612757565b600a556009546040805133815260208101929092527f2a270679203ad5c6be2af882c755f81ff060752614a378c1804df57dd7d2add0910160405180910390a150565b60606002805461071e90612707565b826000036111af5760405162461bcd60e51b815260206004820152601860248201527f6e756d6265724f664e6674732063616e6e6f74206265203000000000000000006044820152606401610802565b600783106111ff5760405162461bcd60e51b815260206004820181905260248201527f43616e206f6e6c79206d696e74203620746f6b656e7320617420612074696d656044820152606401610802565b600b546002146112515760405162461bcd60e51b815260206004820152601960248201527f50726553616c65206973206e6f742061637469766520796574000000000000006044820152606401610802565b3483600954611260919061277d565b11156112ae5760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610802565b60006112b861095f565b905061100e6112c7858361276a565b11156113285760405162461bcd60e51b815260206004820152602a60248201527f507572636861736520776f756c6420657863656564206d617820737570706c79604482015269206f6620546f6b656e7360b01b6064820152608401610802565b6113358383600c54611c77565b6113815760405162461bcd60e51b815260206004820152601460248201527f496e76616c6964204d65726b6c652050726f6f660000000000000000000000006044820152606401610802565b60005b84811015610d135761139a33610d06838561276a565b600101611384565b806000036113f25760405162461bcd60e51b815260206004820152601860248201527f6e756d6265724f664e6674732063616e6e6f74206265203000000000000000006044820152606401610802565b3332146114415760405162461bcd60e51b815260206004820152601560248201527f4e6f20436f6e74726163747320616c6c6f7765642e00000000000000000000006044820152606401610802565b601581106114b75760405162461bcd60e51b815260206004820152602160248201527f43616e206f6e6c79206d696e7420323020746f6b656e7320617420612074696d60448201527f65000000000000000000000000000000000000000000000000000000000000006064820152608401610802565b34816009546114c6919061277d565b11156115145760405162461bcd60e51b815260206004820152601f60248201527f45746865722076616c75652073656e74206973206e6f7420636f7272656374006044820152606401610802565b600b546003146115665760405162461bcd60e51b815260206004820152601360248201527f53616c65204e4f542061637469766520796574000000000000000000000000006044820152606401610802565b600061157061095f565b905061100e61157f838361276a565b11156115e05760405162461bcd60e51b815260206004820152602a60248201527f507572636861736520776f756c6420657863656564206d617820737570706c79604482015269206f6620546f6b656e7360b01b6064820152608401610802565b60005b8281101561095a576115fe336115f9838561276a565b611e15565b6001016115e3565b6109d5338383611e2d565b61161b3383611a1e565b61168d5760405162461bcd60e51b815260206004820152602e60248201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560448201527f72206e6f7220617070726f7665640000000000000000000000000000000000006064820152608401610802565b6110e984848484611efb565b60606116a4826118e5565b60006116ae611f79565b905060008151116116ce57604051806020016040528060008152506116f9565b806116d884611f88565b6040516020016116e99291906128e2565b6040516020818303038152906040525b9392505050565b611708611949565b6001600160a01b0381166117845760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610802565b610dc781611db8565b6001600160a01b0382166117e35760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610802565b6000818152600360205260409020546001600160a01b0316156118485760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610802565b6001600160a01b038216600090815260046020526040812080546001929061187190849061276a565b9091555050600081815260036020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b80546001019055565b6000818152600360205260409020546001600160a01b0316610dc75760405162461bcd60e51b815260206004820152601860248201527f4552433732313a20696e76616c696420746f6b656e20494400000000000000006044820152606401610802565b6000546001600160a01b03163314610a895760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610802565b6000818152600560205260409020805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b03841690811790915581906119e582610eac565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600080611a2a83610eac565b9050806001600160a01b0316846001600160a01b03161480611a7157506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b80611a955750836001600160a01b0316611a8a846107a1565b6001600160a01b0316145b949350505050565b826001600160a01b0316611ab082610eac565b6001600160a01b031614611b2c5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201527f6f776e65720000000000000000000000000000000000000000000000000000006064820152608401610802565b6001600160a01b038216611ba75760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610802565b611bb26000826119a3565b6001600160a01b0383166000908152600460205260408120805460019290611bdb908490612757565b90915550506001600160a01b0382166000908152600460205260408120805460019290611c0990849061276a565b9091555050600081815260036020526040808220805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6040516bffffffffffffffffffffffff193360601b1660208201526000908190603401604051602081830303815290604052805190602001209050611cf28585808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152508792508591506120bd9050565b95945050505050565b6109d58282604051806020016040528060008152506120d3565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611d62576040519150601f19603f3d011682016040523d82523d6000602084013e611d67565b606091505b505090508061095a5760405162461bcd60e51b815260206004820152601860248201527f4661696c656420746f20776974686472617720457468657200000000000000006044820152606401610802565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b611e1f828261178d565b6109d5600780546001019055565b816001600160a01b0316836001600160a01b031603611e8e5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610802565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611f06848484611a9d565b611f1284848484612151565b6110e95760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610802565b60606008805461071e90612707565b606081600003611fcb57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b8115611ff55780611fdf81612911565b9150611fee9050600a836128b8565b9150611fcf565b60008167ffffffffffffffff811115612010576120106124e8565b6040519080825280601f01601f19166020018201604052801561203a576020820181803683370190505b5090505b8415611a955761204f600183612757565b915061205c600a8661292a565b61206790603061276a565b60f81b81838151811061207c5761207c6128cc565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506120b6600a866128b8565b945061203e565b6000826120ca858461229d565b14949350505050565b6120dd8383611e15565b6120ea6000848484612151565b61095a5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610802565b60006001600160a01b0384163b1561229257604051630a85bd0160e11b81526001600160a01b0385169063150b7a029061219590339089908890889060040161293e565b6020604051808303816000875af19250505080156121d0575060408051601f3d908101601f191682019092526121cd9181019061297a565b60015b612278573d8080156121fe576040519150601f19603f3d011682016040523d82523d6000602084013e612203565b606091505b5080516000036122705760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6064820152608401610802565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611a95565b506001949350505050565b600081815b84518110156122e2576122ce828683815181106122c1576122c16128cc565b60200260200101516122ea565b9150806122da81612911565b9150506122a2565b509392505050565b60008183106123065760008281526020849052604090206116f9565b5060009182526020526040902090565b6001600160e01b031981168114610dc757600080fd5b60006020828403121561233e57600080fd5b81356116f981612316565b60005b8381101561236457818101518382015260200161234c565b50506000910152565b60008151808452612385816020860160208601612349565b601f01601f19169290920160200192915050565b6020815260006116f9602083018461236d565b6000602082840312156123be57600080fd5b5035919050565b80356001600160a01b03811681146123dc57600080fd5b919050565b600080604083850312156123f457600080fd5b6123fd836123c5565b946020939093013593505050565b6000806040838503121561241e57600080fd5b50508035926020909101359150565b60008060006060848603121561244257600080fd5b61244b846123c5565b9250612459602085016123c5565b9150604084013590509250925092565b60008060006040848603121561247e57600080fd5b83359250602084013567ffffffffffffffff8082111561249d57600080fd5b818601915086601f8301126124b157600080fd5b8135818111156124c057600080fd5b8760208260051b85010111156124d557600080fd5b6020830194508093505050509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115612519576125196124e8565b604051601f8501601f19908116603f01168101908282118183101715612541576125416124e8565b8160405280935085815286868601111561255a57600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561258657600080fd5b813567ffffffffffffffff81111561259d57600080fd5b8201601f810184136125ae57600080fd5b611a95848235602084016124fe565b6000602082840312156125cf57600080fd5b6116f9826123c5565b6020808252825182820181905260009190848201906040850190845b81811015612610578351835292840192918401916001016125f4565b50909695505050505050565b6000806040838503121561262f57600080fd5b612638836123c5565b91506020830135801515811461264d57600080fd5b809150509250929050565b6000806000806080858703121561266e57600080fd5b612677856123c5565b9350612685602086016123c5565b925060408501359150606085013567ffffffffffffffff8111156126a857600080fd5b8501601f810187136126b957600080fd5b6126c8878235602084016124fe565b91505092959194509250565b600080604083850312156126e757600080fd5b6126f0836123c5565b91506126fe602084016123c5565b90509250929050565b600181811c9082168061271b57607f821691505b60208210810361273b57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b8181038181111561070957610709612741565b8082018082111561070957610709612741565b808202811582820484141761070957610709612741565b601f82111561095a57600081815260208120601f850160051c810160208610156127bb5750805b601f850160051c820191505b818110156127da578281556001016127c7565b505050505050565b815167ffffffffffffffff8111156127fc576127fc6124e8565b6128108161280a8454612707565b84612794565b602080601f831160018114612845576000841561282d5750858301515b600019600386901b1c1916600185901b1785556127da565b600085815260208120601f198616915b8281101561287457888601518255948401946001909101908401612855565b50858210156128925787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b634e487b7160e01b600052601260045260246000fd5b6000826128c7576128c76128a2565b500490565b634e487b7160e01b600052603260045260246000fd5b600083516128f4818460208801612349565b835190830190612908818360208801612349565b01949350505050565b60006001820161292357612923612741565b5060010190565b600082612939576129396128a2565b500690565b60006001600160a01b03808716835280861660208401525083604083015260806060830152612970608083018461236d565b9695505050505050565b60006020828403121561298c57600080fd5b81516116f98161231656fea2646970667358221220480850ed01c81d35921f2b86f51e2083d6b9e21a7cb32c60811fcec2718d204364736f6c63430008110033

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

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