ETH Price: $3,210.16 (-6.95%)
Gas: 5 Gwei

Token

LimitlessStudios (LS)
 

Overview

Max Total Supply

0 LS

Holders

28

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A
Balance
2 LS
0x21fa2eac56b620e49ff722211dfe0f1e5d612c5e
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:
LimitlessStudios

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 15 : LimitlessStudios.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

import {MerkleProof} from "@openzeppelin/contracts/utils/cryptography/MerkleProof.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";

contract LimitlessStudios is ERC721, ERC721Burnable, ERC721URIStorage, Ownable {
    using Strings for uint256;
    using Counters for Counters.Counter;

    uint256 public constant PRICE = 0.05 ether;
    uint256 public constant MAX_SUPPLY = 1000;

    string public baseURI;
    string public provenanceHash;
    bytes32 public whitelistMerkleTreeRoot;
    bool public isReveald = false;
    bool public aeFeeClaimed = false;

    enum DistributionPhase {
        closed,
        preSale,
        sale,
        ended
    }

    Counters.Counter private _tokenIdCounter;
    DistributionPhase public distributionPhase;
    mapping(address => uint) public buyers;

    constructor(
        string memory _baseURIc,
        string memory _provenanceHash,
        bytes32 _whitelistMerkleTreeRoot
    ) ERC721("LimitlessStudios", "LS") {
        baseURI = _baseURIc;
        provenanceHash = _provenanceHash;
        whitelistMerkleTreeRoot = _whitelistMerkleTreeRoot;
    }

    modifier whenDistributionEnded() {
        require(
            distributionPhase == DistributionPhase.ended,
            "Distribution not ended"
        );
        _;
    }

    function buyNFT(uint256 quantity, bytes32[] calldata merkleProof)
        external
        payable
    {
        require(quantity > 0, "Quantity cannot be 0");
        require(
            distributionPhase != DistributionPhase.closed,
            "Sale is closed"
        );
        require(distributionPhase != DistributionPhase.ended, "Sale ended");
        require(
            (_tokenIdCounter.current() + quantity) < MAX_SUPPLY,
            "Not enough tokens available"
        );
        require(msg.value >= (PRICE * quantity), "Sent amount is not enough");
        require(
            buyers[msg.sender] + quantity <= 6,
            "Already reached maximum buy limit"
        );

        if (distributionPhase == DistributionPhase.preSale) {
            require(
                buyers[msg.sender] == 0 && quantity == 1,
                "On pre sale you can only buy one token"
            );
            _requireWhitelisted(merkleProof);
        }

        for (uint256 i = 0; i < quantity; i++) {
            buyers[msg.sender] = buyers[msg.sender] + 1;
            safeMint(msg.sender);
        }
    }

    function activateNextDistributionPhase() external onlyOwner {
        if (distributionPhase == DistributionPhase.closed) {
            distributionPhase = DistributionPhase.preSale;
        } else if (distributionPhase == DistributionPhase.preSale) {
            distributionPhase = DistributionPhase.sale;
        } else if (distributionPhase == DistributionPhase.sale) {
            distributionPhase = DistributionPhase.ended;
        }
    }

    function reveal(string memory baseURIValue)
        external
        onlyOwner
        whenDistributionEnded
    {
        require(!isReveald, "NFTs already reveald");
        baseURI = baseURIValue;
        isReveald = true;
    }

    function _requireWhitelisted(bytes32[] calldata merkleProof) private view {
        bytes32 leaf = keccak256(abi.encodePacked(msg.sender));
        bool isWhitelisted = MerkleProof.verify(
            merkleProof,
            whitelistMerkleTreeRoot,
            leaf
        );
        require(isWhitelisted, "Not whitelisted");
    }

    function safeMint(address to) private {
        uint256 tokenId = _tokenIdCounter.current();
        _tokenIdCounter.increment();
        _safeMint(to, tokenId);
    }

    function withdraw(address to) external onlyOwner whenDistributionEnded {
        require(aeFeeClaimed, "AE fee must be claimed first");
        require(to != address(0), "Cannot withdraw to zero address");
        (bool success, ) = to.call{value: address(this).balance}("");
        require(success, "Transfer failed.");
    }

    function withdrawAEFee(address to)
        external
        onlyOwner
        whenDistributionEnded
    {
        require(!aeFeeClaimed, "Fee already claimed");
        require(to != address(0), "Cannot withdraw to zero address");
        aeFeeClaimed = true;
        uint256 currentBalance = address(this).balance;
        (bool success, ) = to.call{value: (currentBalance * 25) / 1000}("");
        require(success, "Transfer failed.");
    }

    function ownerMint(address to)
        external
        onlyOwner
    {   
        require(
            distributionPhase == DistributionPhase.closed,
            "Sale already open"
        );
        for (uint256 i = 0; i < 15; i++) {
            safeMint(to);
        }
    }

    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override(ERC721, ERC721URIStorage)
        returns (string memory)
    {
        _requireMinted(tokenId);
        if (!isReveald) {
            return baseURI;
        }
        return
            bytes(baseURI).length != 0
                ? string(
                    abi.encodePacked(baseURI, "/", tokenId.toString(), ".json")
                )
                : "";
    }

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

    function _burn(uint256 tokenId)
        internal
        override(ERC721, ERC721URIStorage)
    {
        super._burn(tokenId);
    }

    function contractURI() public view returns (string memory) {
        return "ipfs://QmdfBA1fiHtszUGD3i8DneiwQqxDXTXsUhAYjbvTZxdnKM";
    }
}

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

pragma solidity ^0.8.0;

import "../ERC721.sol";

/**
 * @dev ERC721 token with storage based token URI management.
 */
abstract contract ERC721URIStorage is ERC721 {
    using Strings for uint256;

    // Optional mapping for token URIs
    mapping(uint256 => string) private _tokenURIs;

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        _requireMinted(tokenId);

        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = _baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(base, _tokenURI));
        }

        return super.tokenURI(tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

    /**
     * @dev See {ERC721-_burn}. This override additionally checks to see if a
     * token-specific URI was set for the token, and if so, it deletes the token URI from
     * the storage mapping.
     */
    function _burn(uint256 tokenId) internal virtual override {
        super._burn(tokenId);

        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

/**
 * @title ERC721 Burnable Token
 * @dev ERC721 Token that can be burned (destroyed).
 */
abstract contract ERC721Burnable is Context, ERC721 {
    /**
     * @dev Burns `tokenId`. See {ERC721-_burn}.
     *
     * Requirements:
     *
     * - The caller must own `tokenId` or be an approved operator.
     */
    function burn(uint256 tokenId) public virtual {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved");
        _burn(tokenId);
    }
}

File 5 of 15 : 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 6 of 15 : 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 15 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol)

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

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

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: address zero is not a valid owner");
        return _balances[owner];
    }

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

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        _requireMinted(tokenId);

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

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

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: caller is not token owner nor approved");
        _safeTransfer(from, to, tokenId, data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

    /**
     * @dev Reverts if the `tokenId` has not been minted yet.
     */
    function _requireMinted(uint256 tokenId) internal view virtual {
        require(_exists(tokenId), "ERC721: invalid token ID");
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    /// @solidity memory-safe-assembly
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

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

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

File 8 of 15 : 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 9 of 15 : 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 10 of 15 : 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 15 : 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 12 of 15 : 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 15 : 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 15 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_baseURIc","type":"string"},{"internalType":"string","name":"_provenanceHash","type":"string"},{"internalType":"bytes32","name":"_whitelistMerkleTreeRoot","type":"bytes32"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"MAX_SUPPLY","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"activateNextDistributionPhase","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"aeFeeClaimed","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"quantity","type":"uint256"},{"internalType":"bytes32[]","name":"merkleProof","type":"bytes32[]"}],"name":"buyNFT","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"buyers","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"contractURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"distributionPhase","outputs":[{"internalType":"enum LimitlessStudios.DistributionPhase","name":"","type":"uint8"}],"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":[],"name":"isReveald","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"ownerMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"provenanceHash","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURIValue","type":"string"}],"name":"reveal","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":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"whitelistMerkleTreeRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"}],"name":"withdrawAEFee","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600b805461ffff191690553480156200001c57600080fd5b5060405162002aec38038062002aec8339810160408190526200003f9162000205565b6040518060400160405280601081526020016f4c696d69746c65737353747564696f7360801b815250604051806040016040528060028152602001614c5360f01b815250816000908162000094919062000307565b506001620000a3828262000307565b505050620000c0620000ba620000ea60201b60201c565b620000ee565b6008620000ce848262000307565b506009620000dd838262000307565b50600a5550620003d39050565b3390565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200016857600080fd5b81516001600160401b038082111562000185576200018562000140565b604051601f8301601f19908116603f01168101908282118183101715620001b057620001b062000140565b81604052838152602092508683858801011115620001cd57600080fd5b600091505b83821015620001f15785820183015181830184015290820190620001d2565b600093810190920192909252949350505050565b6000806000606084860312156200021b57600080fd5b83516001600160401b03808211156200023357600080fd5b620002418783880162000156565b945060208601519150808211156200025857600080fd5b50620002678682870162000156565b925050604084015190509250925092565b600181811c908216806200028d57607f821691505b602082108103620002ae57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200030257600081815260208120601f850160051c81016020861015620002dd5750805b601f850160051c820191505b81811015620002fe57828155600101620002e9565b5050505b505050565b81516001600160401b0381111562000323576200032362000140565b6200033b8162000334845462000278565b84620002b4565b602080601f8311600181146200037357600084156200035a5750858301515b600019600386901b1c1916600185901b178555620002fe565b600085815260208120601f198616915b82811015620003a45788860151825594840194600190910190840162000383565b5085821015620003c35787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b61270980620003e36000396000f3fe6080604052600436106101ee5760003560e01c8063715018a61161010d578063b010085f116100a0578063c87b56dd1161006f578063c87b56dd14610560578063e8a3d48514610580578063e985e9c514610595578063f03f8b71146105b5578063f2fde38b146105d557600080fd5b8063b010085f146104e5578063b88d4fde1461050c578063b92699321461052c578063c6ab67a31461054b57600080fd5b8063932122be116100dc578063932122be1461046d57806395d89b411461048357806397a993aa14610498578063a22cb465146104c557600080fd5b8063715018a61461040a5780637a2caff01461041f5780638d859f3e146104345780638da5cb5b1461044f57600080fd5b806342842e0e11610185578063551e1da811610154578063551e1da81461039b5780636352211e146103b55780636c0360eb146103d557806370a08231146103ea57600080fd5b806342842e0e1461031b57806342966c681461033b5780634c2612471461035b57806351cff8d91461037b57600080fd5b80631e3bcc8e116101c15780631e3bcc8e146102a457806323b872dd146102c45780632446ea4f146102e457806332cb6b0c146102f757600080fd5b806301ffc9a7146101f357806306fdde0314610228578063081812fc1461024a578063095ea7b314610282575b600080fd5b3480156101ff57600080fd5b5061021361020e366004611f13565b6105f5565b60405190151581526020015b60405180910390f35b34801561023457600080fd5b5061023d610647565b60405161021f9190611f80565b34801561025657600080fd5b5061026a610265366004611f93565b6106d9565b6040516001600160a01b03909116815260200161021f565b34801561028e57600080fd5b506102a261029d366004611fc8565b610700565b005b3480156102b057600080fd5b506102a26102bf366004611ff2565b61081a565b3480156102d057600080fd5b506102a26102df36600461200d565b6108a7565b6102a26102f2366004612049565b6108d9565b34801561030357600080fd5b5061030d6103e881565b60405190815260200161021f565b34801561032757600080fd5b506102a261033636600461200d565b610bfe565b34801561034757600080fd5b506102a2610356366004611f93565b610c19565b34801561036757600080fd5b506102a2610376366004612154565b610c4a565b34801561038757600080fd5b506102a2610396366004611ff2565b610cef565b3480156103a757600080fd5b50600b546102139060ff1681565b3480156103c157600080fd5b5061026a6103d0366004611f93565b610e70565b3480156103e157600080fd5b5061023d610ed0565b3480156103f657600080fd5b5061030d610405366004611ff2565b610f5e565b34801561041657600080fd5b506102a2610fe4565b34801561042b57600080fd5b506102a2610ff8565b34801561044057600080fd5b5061030d66b1a2bc2ec5000081565b34801561045b57600080fd5b506007546001600160a01b031661026a565b34801561047957600080fd5b5061030d600a5481565b34801561048f57600080fd5b5061023d611093565b3480156104a457600080fd5b5061030d6104b3366004611ff2565b600e6020526000908152604090205481565b3480156104d157600080fd5b506102a26104e036600461219d565b6110a2565b3480156104f157600080fd5b50600d546104ff9060ff1681565b60405161021f91906121ef565b34801561051857600080fd5b506102a2610527366004612217565b6110ad565b34801561053857600080fd5b50600b5461021390610100900460ff1681565b34801561055757600080fd5b5061023d6110df565b34801561056c57600080fd5b5061023d61057b366004611f93565b6110ec565b34801561058c57600080fd5b5061023d6111ef565b3480156105a157600080fd5b506102136105b0366004612293565b61120f565b3480156105c157600080fd5b506102a26105d0366004611ff2565b61123d565b3480156105e157600080fd5b506102a26105f0366004611ff2565b6113d8565b60006001600160e01b031982166380ac58cd60e01b148061062657506001600160e01b03198216635b5e139f60e01b145b8061064157506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060008054610656906122c6565b80601f0160208091040260200160405190810160405280929190818152602001828054610682906122c6565b80156106cf5780601f106106a4576101008083540402835291602001916106cf565b820191906000526020600020905b8154815290600101906020018083116106b257829003601f168201915b5050505050905090565b60006106e48261144e565b506000908152600460205260409020546001600160a01b031690565b600061070b82610e70565b9050806001600160a01b0316836001600160a01b03160361077d5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806107995750610799813361120f565b61080b5760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610774565b61081583836114ad565b505050565b61082261151b565b6000600d5460ff16600381111561083b5761083b6121d9565b1461087c5760405162461bcd60e51b815260206004820152601160248201527029b0b6329030b63932b0b23c9037b832b760791b6044820152606401610774565b60005b600f8110156108a35761089182611575565b8061089b81612316565b91505061087f565b5050565b6108b2335b8261159a565b6108ce5760405162461bcd60e51b81526004016107749061232f565b6108158383836115f9565b600083116109205760405162461bcd60e51b815260206004820152601460248201527305175616e746974792063616e6e6f7420626520360641b6044820152606401610774565b6000600d5460ff166003811115610939576109396121d9565b036109775760405162461bcd60e51b815260206004820152600e60248201526d14d85b19481a5cc818db1bdcd95960921b6044820152606401610774565b6003600d5460ff166003811115610990576109906121d9565b036109ca5760405162461bcd60e51b815260206004820152600a60248201526914d85b1948195b99195960b21b6044820152606401610774565b6103e8836109d7600c5490565b6109e1919061237d565b10610a2e5760405162461bcd60e51b815260206004820152601b60248201527f4e6f7420656e6f75676820746f6b656e7320617661696c61626c6500000000006044820152606401610774565b610a3f8366b1a2bc2ec50000612390565b341015610a8e5760405162461bcd60e51b815260206004820152601960248201527f53656e7420616d6f756e74206973206e6f7420656e6f756768000000000000006044820152606401610774565b336000908152600e6020526040902054600690610aac90859061237d565b1115610b045760405162461bcd60e51b815260206004820152602160248201527f416c72656164792072656163686564206d6178696d756d20627579206c696d696044820152601d60fa1b6064820152608401610774565b6001600d5460ff166003811115610b1d57610b1d6121d9565b03610ba457336000908152600e6020526040902054158015610b3f5750826001145b610b9a5760405162461bcd60e51b815260206004820152602660248201527f4f6e207072652073616c6520796f752063616e206f6e6c7920627579206f6e65604482015265103a37b5b2b760d11b6064820152608401610774565b610ba48282611795565b60005b83811015610bf857336000908152600e6020526040902054610bca90600161237d565b336000818152600e6020526040902091909155610be690611575565b80610bf081612316565b915050610ba7565b50505050565b610815838383604051806020016040528060008152506110ad565b610c22336108ac565b610c3e5760405162461bcd60e51b81526004016107749061232f565b610c4781611852565b50565b610c5261151b565b6003600d5460ff166003811115610c6b57610c6b6121d9565b14610c885760405162461bcd60e51b8152600401610774906123a7565b600b5460ff1615610cd25760405162461bcd60e51b81526020600482015260146024820152731391951cc8185b1c9958591e481c995d99585b1960621b6044820152606401610774565b6008610cde8282612425565b5050600b805460ff19166001179055565b610cf761151b565b6003600d5460ff166003811115610d1057610d106121d9565b14610d2d5760405162461bcd60e51b8152600401610774906123a7565b600b54610100900460ff16610d845760405162461bcd60e51b815260206004820152601c60248201527f414520666565206d75737420626520636c61696d6564206669727374000000006044820152606401610774565b6001600160a01b038116610dda5760405162461bcd60e51b815260206004820152601f60248201527f43616e6e6f7420776974686472617720746f207a65726f2061646472657373006044820152606401610774565b6000816001600160a01b03164760405160006040518083038185875af1925050503d8060008114610e27576040519150601f19603f3d011682016040523d82523d6000602084013e610e2c565b606091505b50509050806108a35760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610774565b6000818152600260205260408120546001600160a01b0316806106415760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610774565b60088054610edd906122c6565b80601f0160208091040260200160405190810160405280929190818152602001828054610f09906122c6565b8015610f565780601f10610f2b57610100808354040283529160200191610f56565b820191906000526020600020905b815481529060010190602001808311610f3957829003601f168201915b505050505081565b60006001600160a01b038216610fc85760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610774565b506001600160a01b031660009081526003602052604090205490565b610fec61151b565b610ff6600061185b565b565b61100061151b565b6000600d5460ff166003811115611019576110196121d9565b0361103457600d80546001919060ff191682805b0217905550565b6001600d5460ff16600381111561104d5761104d6121d9565b0361106657600d80546002919060ff191660018361102d565b6002600d5460ff16600381111561107f5761107f6121d9565b03610ff657600d805460ff19166003179055565b606060018054610656906122c6565b6108a33383836118ad565b6110b7338361159a565b6110d35760405162461bcd60e51b81526004016107749061232f565b610bf88484848461197b565b60098054610edd906122c6565b60606110f78261144e565b600b5460ff16611193576008805461110e906122c6565b80601f016020809104026020016040519081016040528092919081815260200182805461113a906122c6565b80156111875780601f1061115c57610100808354040283529160200191611187565b820191906000526020600020905b81548152906001019060200180831161116a57829003601f168201915b50505050509050919050565b600880546111a0906122c6565b90506000036111be5760405180602001604052806000815250610641565b60086111c9836119ae565b6040516020016111da9291906124e5565b60405160208183030381529060405292915050565b606060405180606001604052806035815260200161269f60359139905090565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61124561151b565b6003600d5460ff16600381111561125e5761125e6121d9565b1461127b5760405162461bcd60e51b8152600401610774906123a7565b600b54610100900460ff16156112c95760405162461bcd60e51b815260206004820152601360248201527211995948185b1c9958591e4818db185a5b5959606a1b6044820152606401610774565b6001600160a01b03811661131f5760405162461bcd60e51b815260206004820152601f60248201527f43616e6e6f7420776974686472617720746f207a65726f2061646472657373006044820152606401610774565b600b805461ff0019166101001790554760006001600160a01b0383166103e8611349846019612390565b61135391906125a1565b604051600081818185875af1925050503d806000811461138f576040519150601f19603f3d011682016040523d82523d6000602084013e611394565b606091505b50509050806108155760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610774565b6113e061151b565b6001600160a01b0381166114455760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610774565b610c478161185b565b6000818152600260205260409020546001600160a01b0316610c475760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610774565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906114e282610e70565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6007546001600160a01b03163314610ff65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610774565b6000611580600c5490565b9050611590600c80546001019055565b6108a38282611aaf565b6000806115a683610e70565b9050806001600160a01b0316846001600160a01b031614806115cd57506115cd818561120f565b806115f15750836001600160a01b03166115e6846106d9565b6001600160a01b0316145b949350505050565b826001600160a01b031661160c82610e70565b6001600160a01b0316146116705760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610774565b6001600160a01b0382166116d25760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610774565b6116dd6000826114ad565b6001600160a01b03831660009081526003602052604081208054600192906117069084906125b5565b90915550506001600160a01b038216600090815260036020526040812080546001929061173490849061237d565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050600061181184848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600a549150859050611ac9565b905080610bf85760405162461bcd60e51b815260206004820152600f60248201526e139bdd081dda1a5d195b1a5cdd1959608a1b6044820152606401610774565b610c4781611adf565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03160361190e5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610774565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6119868484846115f9565b61199284848484611b1f565b610bf85760405162461bcd60e51b8152600401610774906125c8565b6060816000036119d55750506040805180820190915260018152600360fc1b602082015290565b8160005b81156119ff57806119e981612316565b91506119f89050600a836125a1565b91506119d9565b60008167ffffffffffffffff811115611a1a57611a1a6120c8565b6040519080825280601f01601f191660200182016040528015611a44576020820181803683370190505b5090505b84156115f157611a596001836125b5565b9150611a66600a8661261a565b611a7190603061237d565b60f81b818381518110611a8657611a8661262e565b60200101906001600160f81b031916908160001a905350611aa8600a866125a1565b9450611a48565b6108a3828260405180602001604052806000815250611c20565b600082611ad68584611c53565b14949350505050565b611ae881611ca0565b60008181526006602052604090208054611b01906122c6565b159050610c47576000818152600660205260408120610c4791611eaf565b60006001600160a01b0384163b15611c1557604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611b63903390899088908890600401612644565b6020604051808303816000875af1925050508015611b9e575060408051601f3d908101601f19168201909252611b9b91810190612681565b60015b611bfb573d808015611bcc576040519150601f19603f3d011682016040523d82523d6000602084013e611bd1565b606091505b508051600003611bf35760405162461bcd60e51b8152600401610774906125c8565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506115f1565b506001949350505050565b611c2a8383611d3b565b611c376000848484611b1f565b6108155760405162461bcd60e51b8152600401610774906125c8565b600081815b8451811015611c9857611c8482868381518110611c7757611c7761262e565b6020026020010151611e7d565b915080611c9081612316565b915050611c58565b509392505050565b6000611cab82610e70565b9050611cb86000836114ad565b6001600160a01b0381166000908152600360205260408120805460019290611ce19084906125b5565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b038216611d915760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610774565b6000818152600260205260409020546001600160a01b031615611df65760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610774565b6001600160a01b0382166000908152600360205260408120805460019290611e1f90849061237d565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000818310611e99576000828152602084905260409020611ea8565b60008381526020839052604090205b9392505050565b508054611ebb906122c6565b6000825580601f10611ecb575050565b601f016020900490600052602060002090810190610c4791905b80821115611ef95760008155600101611ee5565b5090565b6001600160e01b031981168114610c4757600080fd5b600060208284031215611f2557600080fd5b8135611ea881611efd565b60005b83811015611f4b578181015183820152602001611f33565b50506000910152565b60008151808452611f6c816020860160208601611f30565b601f01601f19169290920160200192915050565b602081526000611ea86020830184611f54565b600060208284031215611fa557600080fd5b5035919050565b80356001600160a01b0381168114611fc357600080fd5b919050565b60008060408385031215611fdb57600080fd5b611fe483611fac565b946020939093013593505050565b60006020828403121561200457600080fd5b611ea882611fac565b60008060006060848603121561202257600080fd5b61202b84611fac565b925061203960208501611fac565b9150604084013590509250925092565b60008060006040848603121561205e57600080fd5b83359250602084013567ffffffffffffffff8082111561207d57600080fd5b818601915086601f83011261209157600080fd5b8135818111156120a057600080fd5b8760208260051b85010111156120b557600080fd5b6020830194508093505050509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156120f9576120f96120c8565b604051601f8501601f19908116603f01168101908282118183101715612121576121216120c8565b8160405280935085815286868601111561213a57600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561216657600080fd5b813567ffffffffffffffff81111561217d57600080fd5b8201601f8101841361218e57600080fd5b6115f1848235602084016120de565b600080604083850312156121b057600080fd5b6121b983611fac565b9150602083013580151581146121ce57600080fd5b809150509250929050565b634e487b7160e01b600052602160045260246000fd5b602081016004831061221157634e487b7160e01b600052602160045260246000fd5b91905290565b6000806000806080858703121561222d57600080fd5b61223685611fac565b935061224460208601611fac565b925060408501359150606085013567ffffffffffffffff81111561226757600080fd5b8501601f8101871361227857600080fd5b612287878235602084016120de565b91505092959194509250565b600080604083850312156122a657600080fd5b6122af83611fac565b91506122bd60208401611fac565b90509250929050565b600181811c908216806122da57607f821691505b6020821081036122fa57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60006001820161232857612328612300565b5060010190565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b8082018082111561064157610641612300565b808202811582820484141761064157610641612300565b602080825260169082015275111a5cdd1c9a589d5d1a5bdb881b9bdd08195b99195960521b604082015260600190565b601f82111561081557600081815260208120601f850160051c810160208610156123fe5750805b601f850160051c820191505b8181101561241d5782815560010161240a565b505050505050565b815167ffffffffffffffff81111561243f5761243f6120c8565b6124538161244d84546122c6565b846123d7565b602080601f83116001811461248857600084156124705750858301515b600019600386901b1c1916600185901b17855561241d565b600085815260208120601f198616915b828110156124b757888601518255948401946001909101908401612498565b50858210156124d55787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008084546124f3816122c6565b6001828116801561250b57600181146125205761254f565b60ff198416875282151583028701945061254f565b8860005260208060002060005b858110156125465781548a82015290840190820161252d565b50505082870194505b50602f60f81b84528651925061256b8382860160208a01611f30565b64173539b7b760d91b939092019182019290925260060195945050505050565b634e487b7160e01b600052601260045260246000fd5b6000826125b0576125b061258b565b500490565b8181038181111561064157610641612300565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000826126295761262961258b565b500690565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061267790830184611f54565b9695505050505050565b60006020828403121561269357600080fd5b8151611ea881611efd56fe697066733a2f2f516d646642413166694874737a554744336938446e6569775171784458545873556841596a6276545a78646e4b4da2646970667358221220019ba46644980b522860718a7284c8c28ca3d6d9bb6207a9f5587ff1f731f2f664736f6c63430008110033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c02fecc2e307e65eec2e21cd395b564834947c303180de4eedeab407872f227b580000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d586f35656357716947694a503835654158504b72696a73574c724443457552353861364146654a39696339480000000000000000000000000000000000000000000000000000000000000000000000000000000000004063353439333762336662663230353636376631366533393434353434323432386662613064376562373739316330336462623635303531396532323332363437

Deployed Bytecode

0x6080604052600436106101ee5760003560e01c8063715018a61161010d578063b010085f116100a0578063c87b56dd1161006f578063c87b56dd14610560578063e8a3d48514610580578063e985e9c514610595578063f03f8b71146105b5578063f2fde38b146105d557600080fd5b8063b010085f146104e5578063b88d4fde1461050c578063b92699321461052c578063c6ab67a31461054b57600080fd5b8063932122be116100dc578063932122be1461046d57806395d89b411461048357806397a993aa14610498578063a22cb465146104c557600080fd5b8063715018a61461040a5780637a2caff01461041f5780638d859f3e146104345780638da5cb5b1461044f57600080fd5b806342842e0e11610185578063551e1da811610154578063551e1da81461039b5780636352211e146103b55780636c0360eb146103d557806370a08231146103ea57600080fd5b806342842e0e1461031b57806342966c681461033b5780634c2612471461035b57806351cff8d91461037b57600080fd5b80631e3bcc8e116101c15780631e3bcc8e146102a457806323b872dd146102c45780632446ea4f146102e457806332cb6b0c146102f757600080fd5b806301ffc9a7146101f357806306fdde0314610228578063081812fc1461024a578063095ea7b314610282575b600080fd5b3480156101ff57600080fd5b5061021361020e366004611f13565b6105f5565b60405190151581526020015b60405180910390f35b34801561023457600080fd5b5061023d610647565b60405161021f9190611f80565b34801561025657600080fd5b5061026a610265366004611f93565b6106d9565b6040516001600160a01b03909116815260200161021f565b34801561028e57600080fd5b506102a261029d366004611fc8565b610700565b005b3480156102b057600080fd5b506102a26102bf366004611ff2565b61081a565b3480156102d057600080fd5b506102a26102df36600461200d565b6108a7565b6102a26102f2366004612049565b6108d9565b34801561030357600080fd5b5061030d6103e881565b60405190815260200161021f565b34801561032757600080fd5b506102a261033636600461200d565b610bfe565b34801561034757600080fd5b506102a2610356366004611f93565b610c19565b34801561036757600080fd5b506102a2610376366004612154565b610c4a565b34801561038757600080fd5b506102a2610396366004611ff2565b610cef565b3480156103a757600080fd5b50600b546102139060ff1681565b3480156103c157600080fd5b5061026a6103d0366004611f93565b610e70565b3480156103e157600080fd5b5061023d610ed0565b3480156103f657600080fd5b5061030d610405366004611ff2565b610f5e565b34801561041657600080fd5b506102a2610fe4565b34801561042b57600080fd5b506102a2610ff8565b34801561044057600080fd5b5061030d66b1a2bc2ec5000081565b34801561045b57600080fd5b506007546001600160a01b031661026a565b34801561047957600080fd5b5061030d600a5481565b34801561048f57600080fd5b5061023d611093565b3480156104a457600080fd5b5061030d6104b3366004611ff2565b600e6020526000908152604090205481565b3480156104d157600080fd5b506102a26104e036600461219d565b6110a2565b3480156104f157600080fd5b50600d546104ff9060ff1681565b60405161021f91906121ef565b34801561051857600080fd5b506102a2610527366004612217565b6110ad565b34801561053857600080fd5b50600b5461021390610100900460ff1681565b34801561055757600080fd5b5061023d6110df565b34801561056c57600080fd5b5061023d61057b366004611f93565b6110ec565b34801561058c57600080fd5b5061023d6111ef565b3480156105a157600080fd5b506102136105b0366004612293565b61120f565b3480156105c157600080fd5b506102a26105d0366004611ff2565b61123d565b3480156105e157600080fd5b506102a26105f0366004611ff2565b6113d8565b60006001600160e01b031982166380ac58cd60e01b148061062657506001600160e01b03198216635b5e139f60e01b145b8061064157506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060008054610656906122c6565b80601f0160208091040260200160405190810160405280929190818152602001828054610682906122c6565b80156106cf5780601f106106a4576101008083540402835291602001916106cf565b820191906000526020600020905b8154815290600101906020018083116106b257829003601f168201915b5050505050905090565b60006106e48261144e565b506000908152600460205260409020546001600160a01b031690565b600061070b82610e70565b9050806001600160a01b0316836001600160a01b03160361077d5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806107995750610799813361120f565b61080b5760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610774565b61081583836114ad565b505050565b61082261151b565b6000600d5460ff16600381111561083b5761083b6121d9565b1461087c5760405162461bcd60e51b815260206004820152601160248201527029b0b6329030b63932b0b23c9037b832b760791b6044820152606401610774565b60005b600f8110156108a35761089182611575565b8061089b81612316565b91505061087f565b5050565b6108b2335b8261159a565b6108ce5760405162461bcd60e51b81526004016107749061232f565b6108158383836115f9565b600083116109205760405162461bcd60e51b815260206004820152601460248201527305175616e746974792063616e6e6f7420626520360641b6044820152606401610774565b6000600d5460ff166003811115610939576109396121d9565b036109775760405162461bcd60e51b815260206004820152600e60248201526d14d85b19481a5cc818db1bdcd95960921b6044820152606401610774565b6003600d5460ff166003811115610990576109906121d9565b036109ca5760405162461bcd60e51b815260206004820152600a60248201526914d85b1948195b99195960b21b6044820152606401610774565b6103e8836109d7600c5490565b6109e1919061237d565b10610a2e5760405162461bcd60e51b815260206004820152601b60248201527f4e6f7420656e6f75676820746f6b656e7320617661696c61626c6500000000006044820152606401610774565b610a3f8366b1a2bc2ec50000612390565b341015610a8e5760405162461bcd60e51b815260206004820152601960248201527f53656e7420616d6f756e74206973206e6f7420656e6f756768000000000000006044820152606401610774565b336000908152600e6020526040902054600690610aac90859061237d565b1115610b045760405162461bcd60e51b815260206004820152602160248201527f416c72656164792072656163686564206d6178696d756d20627579206c696d696044820152601d60fa1b6064820152608401610774565b6001600d5460ff166003811115610b1d57610b1d6121d9565b03610ba457336000908152600e6020526040902054158015610b3f5750826001145b610b9a5760405162461bcd60e51b815260206004820152602660248201527f4f6e207072652073616c6520796f752063616e206f6e6c7920627579206f6e65604482015265103a37b5b2b760d11b6064820152608401610774565b610ba48282611795565b60005b83811015610bf857336000908152600e6020526040902054610bca90600161237d565b336000818152600e6020526040902091909155610be690611575565b80610bf081612316565b915050610ba7565b50505050565b610815838383604051806020016040528060008152506110ad565b610c22336108ac565b610c3e5760405162461bcd60e51b81526004016107749061232f565b610c4781611852565b50565b610c5261151b565b6003600d5460ff166003811115610c6b57610c6b6121d9565b14610c885760405162461bcd60e51b8152600401610774906123a7565b600b5460ff1615610cd25760405162461bcd60e51b81526020600482015260146024820152731391951cc8185b1c9958591e481c995d99585b1960621b6044820152606401610774565b6008610cde8282612425565b5050600b805460ff19166001179055565b610cf761151b565b6003600d5460ff166003811115610d1057610d106121d9565b14610d2d5760405162461bcd60e51b8152600401610774906123a7565b600b54610100900460ff16610d845760405162461bcd60e51b815260206004820152601c60248201527f414520666565206d75737420626520636c61696d6564206669727374000000006044820152606401610774565b6001600160a01b038116610dda5760405162461bcd60e51b815260206004820152601f60248201527f43616e6e6f7420776974686472617720746f207a65726f2061646472657373006044820152606401610774565b6000816001600160a01b03164760405160006040518083038185875af1925050503d8060008114610e27576040519150601f19603f3d011682016040523d82523d6000602084013e610e2c565b606091505b50509050806108a35760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610774565b6000818152600260205260408120546001600160a01b0316806106415760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610774565b60088054610edd906122c6565b80601f0160208091040260200160405190810160405280929190818152602001828054610f09906122c6565b8015610f565780601f10610f2b57610100808354040283529160200191610f56565b820191906000526020600020905b815481529060010190602001808311610f3957829003601f168201915b505050505081565b60006001600160a01b038216610fc85760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610774565b506001600160a01b031660009081526003602052604090205490565b610fec61151b565b610ff6600061185b565b565b61100061151b565b6000600d5460ff166003811115611019576110196121d9565b0361103457600d80546001919060ff191682805b0217905550565b6001600d5460ff16600381111561104d5761104d6121d9565b0361106657600d80546002919060ff191660018361102d565b6002600d5460ff16600381111561107f5761107f6121d9565b03610ff657600d805460ff19166003179055565b606060018054610656906122c6565b6108a33383836118ad565b6110b7338361159a565b6110d35760405162461bcd60e51b81526004016107749061232f565b610bf88484848461197b565b60098054610edd906122c6565b60606110f78261144e565b600b5460ff16611193576008805461110e906122c6565b80601f016020809104026020016040519081016040528092919081815260200182805461113a906122c6565b80156111875780601f1061115c57610100808354040283529160200191611187565b820191906000526020600020905b81548152906001019060200180831161116a57829003601f168201915b50505050509050919050565b600880546111a0906122c6565b90506000036111be5760405180602001604052806000815250610641565b60086111c9836119ae565b6040516020016111da9291906124e5565b60405160208183030381529060405292915050565b606060405180606001604052806035815260200161269f60359139905090565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61124561151b565b6003600d5460ff16600381111561125e5761125e6121d9565b1461127b5760405162461bcd60e51b8152600401610774906123a7565b600b54610100900460ff16156112c95760405162461bcd60e51b815260206004820152601360248201527211995948185b1c9958591e4818db185a5b5959606a1b6044820152606401610774565b6001600160a01b03811661131f5760405162461bcd60e51b815260206004820152601f60248201527f43616e6e6f7420776974686472617720746f207a65726f2061646472657373006044820152606401610774565b600b805461ff0019166101001790554760006001600160a01b0383166103e8611349846019612390565b61135391906125a1565b604051600081818185875af1925050503d806000811461138f576040519150601f19603f3d011682016040523d82523d6000602084013e611394565b606091505b50509050806108155760405162461bcd60e51b815260206004820152601060248201526f2a3930b739b332b9103330b4b632b21760811b6044820152606401610774565b6113e061151b565b6001600160a01b0381166114455760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610774565b610c478161185b565b6000818152600260205260409020546001600160a01b0316610c475760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610774565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906114e282610e70565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6007546001600160a01b03163314610ff65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610774565b6000611580600c5490565b9050611590600c80546001019055565b6108a38282611aaf565b6000806115a683610e70565b9050806001600160a01b0316846001600160a01b031614806115cd57506115cd818561120f565b806115f15750836001600160a01b03166115e6846106d9565b6001600160a01b0316145b949350505050565b826001600160a01b031661160c82610e70565b6001600160a01b0316146116705760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610774565b6001600160a01b0382166116d25760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610774565b6116dd6000826114ad565b6001600160a01b03831660009081526003602052604081208054600192906117069084906125b5565b90915550506001600160a01b038216600090815260036020526040812080546001929061173490849061237d565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050600061181184848080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050600a549150859050611ac9565b905080610bf85760405162461bcd60e51b815260206004820152600f60248201526e139bdd081dda1a5d195b1a5cdd1959608a1b6044820152606401610774565b610c4781611adf565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03160361190e5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610774565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6119868484846115f9565b61199284848484611b1f565b610bf85760405162461bcd60e51b8152600401610774906125c8565b6060816000036119d55750506040805180820190915260018152600360fc1b602082015290565b8160005b81156119ff57806119e981612316565b91506119f89050600a836125a1565b91506119d9565b60008167ffffffffffffffff811115611a1a57611a1a6120c8565b6040519080825280601f01601f191660200182016040528015611a44576020820181803683370190505b5090505b84156115f157611a596001836125b5565b9150611a66600a8661261a565b611a7190603061237d565b60f81b818381518110611a8657611a8661262e565b60200101906001600160f81b031916908160001a905350611aa8600a866125a1565b9450611a48565b6108a3828260405180602001604052806000815250611c20565b600082611ad68584611c53565b14949350505050565b611ae881611ca0565b60008181526006602052604090208054611b01906122c6565b159050610c47576000818152600660205260408120610c4791611eaf565b60006001600160a01b0384163b15611c1557604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611b63903390899088908890600401612644565b6020604051808303816000875af1925050508015611b9e575060408051601f3d908101601f19168201909252611b9b91810190612681565b60015b611bfb573d808015611bcc576040519150601f19603f3d011682016040523d82523d6000602084013e611bd1565b606091505b508051600003611bf35760405162461bcd60e51b8152600401610774906125c8565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506115f1565b506001949350505050565b611c2a8383611d3b565b611c376000848484611b1f565b6108155760405162461bcd60e51b8152600401610774906125c8565b600081815b8451811015611c9857611c8482868381518110611c7757611c7761262e565b6020026020010151611e7d565b915080611c9081612316565b915050611c58565b509392505050565b6000611cab82610e70565b9050611cb86000836114ad565b6001600160a01b0381166000908152600360205260408120805460019290611ce19084906125b5565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b038216611d915760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610774565b6000818152600260205260409020546001600160a01b031615611df65760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610774565b6001600160a01b0382166000908152600360205260408120805460019290611e1f90849061237d565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000818310611e99576000828152602084905260409020611ea8565b60008381526020839052604090205b9392505050565b508054611ebb906122c6565b6000825580601f10611ecb575050565b601f016020900490600052602060002090810190610c4791905b80821115611ef95760008155600101611ee5565b5090565b6001600160e01b031981168114610c4757600080fd5b600060208284031215611f2557600080fd5b8135611ea881611efd565b60005b83811015611f4b578181015183820152602001611f33565b50506000910152565b60008151808452611f6c816020860160208601611f30565b601f01601f19169290920160200192915050565b602081526000611ea86020830184611f54565b600060208284031215611fa557600080fd5b5035919050565b80356001600160a01b0381168114611fc357600080fd5b919050565b60008060408385031215611fdb57600080fd5b611fe483611fac565b946020939093013593505050565b60006020828403121561200457600080fd5b611ea882611fac565b60008060006060848603121561202257600080fd5b61202b84611fac565b925061203960208501611fac565b9150604084013590509250925092565b60008060006040848603121561205e57600080fd5b83359250602084013567ffffffffffffffff8082111561207d57600080fd5b818601915086601f83011261209157600080fd5b8135818111156120a057600080fd5b8760208260051b85010111156120b557600080fd5b6020830194508093505050509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156120f9576120f96120c8565b604051601f8501601f19908116603f01168101908282118183101715612121576121216120c8565b8160405280935085815286868601111561213a57600080fd5b858560208301376000602087830101525050509392505050565b60006020828403121561216657600080fd5b813567ffffffffffffffff81111561217d57600080fd5b8201601f8101841361218e57600080fd5b6115f1848235602084016120de565b600080604083850312156121b057600080fd5b6121b983611fac565b9150602083013580151581146121ce57600080fd5b809150509250929050565b634e487b7160e01b600052602160045260246000fd5b602081016004831061221157634e487b7160e01b600052602160045260246000fd5b91905290565b6000806000806080858703121561222d57600080fd5b61223685611fac565b935061224460208601611fac565b925060408501359150606085013567ffffffffffffffff81111561226757600080fd5b8501601f8101871361227857600080fd5b612287878235602084016120de565b91505092959194509250565b600080604083850312156122a657600080fd5b6122af83611fac565b91506122bd60208401611fac565b90509250929050565b600181811c908216806122da57607f821691505b6020821081036122fa57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60006001820161232857612328612300565b5060010190565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b8082018082111561064157610641612300565b808202811582820484141761064157610641612300565b602080825260169082015275111a5cdd1c9a589d5d1a5bdb881b9bdd08195b99195960521b604082015260600190565b601f82111561081557600081815260208120601f850160051c810160208610156123fe5750805b601f850160051c820191505b8181101561241d5782815560010161240a565b505050505050565b815167ffffffffffffffff81111561243f5761243f6120c8565b6124538161244d84546122c6565b846123d7565b602080601f83116001811461248857600084156124705750858301515b600019600386901b1c1916600185901b17855561241d565b600085815260208120601f198616915b828110156124b757888601518255948401946001909101908401612498565b50858210156124d55787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60008084546124f3816122c6565b6001828116801561250b57600181146125205761254f565b60ff198416875282151583028701945061254f565b8860005260208060002060005b858110156125465781548a82015290840190820161252d565b50505082870194505b50602f60f81b84528651925061256b8382860160208a01611f30565b64173539b7b760d91b939092019182019290925260060195945050505050565b634e487b7160e01b600052601260045260246000fd5b6000826125b0576125b061258b565b500490565b8181038181111561064157610641612300565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000826126295761262961258b565b500690565b634e487b7160e01b600052603260045260246000fd5b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061267790830184611f54565b9695505050505050565b60006020828403121561269357600080fd5b8151611ea881611efd56fe697066733a2f2f516d646642413166694874737a554744336938446e6569775171784458545873556841596a6276545a78646e4b4da2646970667358221220019ba46644980b522860718a7284c8c28ca3d6d9bb6207a9f5587ff1f731f2f664736f6c63430008110033

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

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000c02fecc2e307e65eec2e21cd395b564834947c303180de4eedeab407872f227b580000000000000000000000000000000000000000000000000000000000000035697066733a2f2f516d586f35656357716947694a503835654158504b72696a73574c724443457552353861364146654a39696339480000000000000000000000000000000000000000000000000000000000000000000000000000000000004063353439333762336662663230353636376631366533393434353434323432386662613064376562373739316330336462623635303531396532323332363437

-----Decoded View---------------
Arg [0] : _baseURIc (string): ipfs://QmXo5ecWqiGiJP85eAXPKrijsWLrDCEuR58a6AFeJ9ic9H
Arg [1] : _provenanceHash (string): c54937b3fbf205667f16e39445442428fba0d7eb7791c03dbb650519e2232647
Arg [2] : _whitelistMerkleTreeRoot (bytes32): 0x2fecc2e307e65eec2e21cd395b564834947c303180de4eedeab407872f227b58

-----Encoded View---------------
9 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000c0
Arg [2] : 2fecc2e307e65eec2e21cd395b564834947c303180de4eedeab407872f227b58
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000035
Arg [4] : 697066733a2f2f516d586f35656357716947694a503835654158504b72696a73
Arg [5] : 574c724443457552353861364146654a39696339480000000000000000000000
Arg [6] : 0000000000000000000000000000000000000000000000000000000000000040
Arg [7] : 6335343933376233666266323035363637663136653339343435343432343238
Arg [8] : 6662613064376562373739316330336462623635303531396532323332363437


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.