MATIC Price: $0.548032 (+1.98%)
Gas: 30.1 GWei
 

Overview

Max Total Supply

57,824 GenNFT

Holders

959

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Balance
31 GenNFT
0x590276423fc3fcf6b008929cf1a65ccfa5ff4dc8
Loading...
Loading
Loading...
Loading
Loading...
Loading

Click here to update the token information / general information

Contract Source Code Verified (Exact Match)

Contract Name:
GenNFT

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 14 : GenNFT.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.6.12;
pragma experimental ABIEncoderV2;

import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";

contract GenNFT is ERC721Enumerable, Ownable  {

    using EnumerableSet for EnumerableSet.UintSet;
    using Strings for uint256;

    // Trusted
    mapping(address=>bool) public _isTrusted;
    modifier onlyTrusted {
        require(_isTrusted[msg.sender] || msg.sender == owner(), "not trusted");
        _;
    }

    function addTrusted(address user) public onlyOwner {
        _isTrusted[user] = true;
    }

    function removeTrusted(address user) public onlyOwner {
        _isTrusted[user] = false;
    }

    struct Type {
        uint id;
        uint bonus;
        uint rarity;
    }

    constructor() ERC721("Gen NFT","GenNFT") {}

    // Token.Type data
    EnumerableSet.UintSet typeIds;

    mapping (uint=>Type) typesById;
    mapping (uint=>EnumerableSet.UintSet) private typeIdsByRarity;
    mapping (uint=>uint) private mintIndexByTokenId;

    uint nextTokenId = 0;
    mapping (uint=>uint) private typeIdByTokenId;

    function createToken(address holder, uint typeId) public onlyTrusted returns (uint tokenId) {
        tokenId = ++nextTokenId;
        typeIdByTokenId[tokenId] = typeId;
        _mint(holder, tokenId);
    }

    function createRandomNFT(address holder, uint rarity, uint seed) public onlyTrusted returns (uint) {
        EnumerableSet.UintSet storage filter = typeIdsByRarity[rarity];
        require(filter.length() > 0, "there are no types with that rarity");
        uint typeId = filter.at(seed % filter.length());
        return createToken(holder, typeId);
    }

    function changeType(uint tokenId, uint toTypeId) public onlyTrusted {
        typeIdByTokenId[tokenId] = toTypeId;
    }

    function addType(uint id, uint bonus, uint rarity) public onlyOwner {
        require(!typeIds.contains(id), "id already exists");
        typeIds.add(id);
        typesById[id] = Type(id, bonus, rarity);
        typeIdsByRarity[rarity].add(id);
    }

    function removeType(uint id) public onlyOwner {
        require(typeIds.contains(id), "id does not exist");
        typeIds.remove(id);
        typeIdsByRarity[typesById[id].rarity].remove(id);
    }

    function replaceType(uint id, uint bonus, uint rarity) public onlyOwner {
        removeType(id);
        addType(id, bonus, rarity);
    }

    function getTypeById(uint id) public view returns (Type memory) { return typesById[id]; }

    function getTypeByTokenId(uint id) public view returns (Type memory) { return typesById[typeIdByTokenId[id]]; }

    function getTypeCount() public view returns (uint) {
        return typeIds.length();
    }

    function getTypeIdAtIndex(uint index) public view returns (uint) {
        return typeIds.at(index);
    }

    function getTypeAtIndex(uint index) public view returns (Type memory tokenType) {
        tokenType = typesById[typeIds.at(index)];
    }

    function _baseURI() internal view virtual override returns (string memory) {
        return "https://nft.evodefi.com/";
    }

    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        string memory baseURI = ERC721.tokenURI(tokenId);
        Type memory tokenType = getTypeByTokenId(tokenId);
        return string(abi.encodePacked(
            baseURI, "/",
            tokenId.toString(), "/",
            tokenType.bonus.toString(), "/",
            tokenType.rarity.toString()));
    }
}

File 2 of 14 : EnumerableSet.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;

        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping (bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) { // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        require(set._values.length > index, "EnumerableSet: index out of bounds");
        return set._values[index];
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }


    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }
}

File 3 of 14 : Ownable.sol
// SPDX-License-Identifier: MIT

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 () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

File 4 of 14 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 5 of 14 : Context.sol
// SPDX-License-Identifier: MIT

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) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

File 6 of 14 : ERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "./extensions/IERC721Enumerable.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: balance query for the zero address");
        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: owner query for nonexistent token");
        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) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

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

    /**
     * @dev Base URI for computing {tokenURI}. Empty by default, can be overriden
     * in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        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) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || ERC721.isApprovedForAll(owner, spender));
    }

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

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

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

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

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

        emit Transfer(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);
    }

    /**
     * @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 of token that is not own");
        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);
    }

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

    /**
     * @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(to).onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    // solhint-disable-next-line no-inline-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` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal virtual { }
}

File 7 of 14 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

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

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

File 8 of 14 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 9 of 14 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 10 of 14 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

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 11 of 14 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

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

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 12 of 14 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant alphabet = "0123456789abcdef";

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

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

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

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

}

File 13 of 14 : ERC165.sol
// SPDX-License-Identifier: MIT

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 14 of 14 : IERC165.sol
// SPDX-License-Identifier: MIT

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",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"_isTrusted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"addTrusted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"bonus","type":"uint256"},{"internalType":"uint256","name":"rarity","type":"uint256"}],"name":"addType","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"toTypeId","type":"uint256"}],"name":"changeType","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"},{"internalType":"uint256","name":"rarity","type":"uint256"},{"internalType":"uint256","name":"seed","type":"uint256"}],"name":"createRandomNFT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"holder","type":"address"},{"internalType":"uint256","name":"typeId","type":"uint256"}],"name":"createToken","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getTypeAtIndex","outputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"bonus","type":"uint256"},{"internalType":"uint256","name":"rarity","type":"uint256"}],"internalType":"struct GenNFT.Type","name":"tokenType","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getTypeById","outputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"bonus","type":"uint256"},{"internalType":"uint256","name":"rarity","type":"uint256"}],"internalType":"struct GenNFT.Type","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getTypeByTokenId","outputs":[{"components":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"bonus","type":"uint256"},{"internalType":"uint256","name":"rarity","type":"uint256"}],"internalType":"struct GenNFT.Type","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTypeCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getTypeIdAtIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"removeTrusted","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"removeType","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"bonus","type":"uint256"},{"internalType":"uint256","name":"rarity","type":"uint256"}],"name":"replaceType","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":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"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"}]

608060405260006011553480156200001657600080fd5b50604080518082018252600781526611d95b8813919560ca1b60208083019182528351808501909452600684526511d95b93919560d21b9084015281519192916200006491600091620000e7565b5080516200007a906001906020840190620000e7565b50505060006200008f620000e360201b60201c565b600a80546001600160a01b0319166001600160a01b038316908117909155604051919250906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a350620001ca565b3390565b828054620000f5906200018d565b90600052602060002090601f01602090048101928262000119576000855562000164565b82601f106200013457805160ff191683800117855562000164565b8280016001018555821562000164579182015b828111156200016457825182559160200191906001019062000147565b506200017292915062000176565b5090565b5b8082111562000172576000815560010162000177565b600281046001821680620001a257607f821691505b60208210811415620001c457634e487b7160e01b600052602260045260246000fd5b50919050565b6126a780620001da6000396000f3fe608060405234801561001057600080fd5b50600436106101fb5760003560e01c8063715018a61161011a578063b6aa9916116100ad578063d4d0d6e61161007c578063d4d0d6e61461041e578063d55e62a014610431578063e985e9c514610444578063eede7b4414610457578063f2fde38b1461046a576101fb565b8063b6aa9916146103d2578063b8645a49146103e5578063b88d4fde146103f8578063c87b56dd1461040b576101fb565b80638de8f848116100e95780638de8f8481461039157806395d89b41146103a45780639cfeb6d2146103ac578063a22cb465146103bf576101fb565b8063715018a6146103595780637d02b1a31461036157806386620a46146103695780638da5cb5b14610389576101fb565b80633ffd402c11610192578063590315a611610161578063590315a61461030d5780636352211e146103205780636a10d4d61461033357806370a0823114610346576101fb565b80633ffd402c146102c157806342842e0e146102d45780634ee3ae75146102e75780634f6ccce7146102fa576101fb565b8063095ea7b3116101ce578063095ea7b31461027357806318160ddd1461028657806323b872dd1461029b5780632f745c59146102ae576101fb565b806301ffc9a71461020057806306fdde0314610229578063081812fc1461023e578063095660111461025e575b600080fd5b61021361020e366004611d42565b61047d565b6040516102209190611ef8565b60405180910390f35b6102316104aa565b6040516102209190611f03565b61025161024c366004611d7a565b61053c565b6040516102209190611eb1565b61027161026c366004611d92565b610588565b005b610271610281366004611ce7565b6105ec565b61028e610684565b6040516102209190612534565b6102716102a9366004611ba6565b61068a565b61028e6102bc366004611ce7565b6106c2565b6102136102cf366004611b5a565b610717565b6102716102e2366004611ba6565b61072c565b6102716102f5366004611db3565b610747565b61028e610308366004611d7a565b61079a565b61027161031b366004611d7a565b6107f5565b61025161032e366004611d7a565b610893565b61028e610341366004611ce7565b6108c8565b61028e610354366004611b5a565b61094b565b61027161098f565b61028e610a18565b61037c610377366004611d7a565b610a29565b6040516102209190612513565b610251610a74565b61037c61039f366004611d7a565b610a83565b610231610ad8565b6102716103ba366004611db3565b610ae7565b6102716103cd366004611cad565b610bae565b61037c6103e0366004611d7a565b610c7c565b61028e6103f3366004611d10565b610cbd565b610271610406366004611be1565b610d79565b610231610419366004611d7a565b610db2565b61027161042c366004611b5a565b610e1d565b61027161043f366004611b5a565b610e80565b610213610452366004611b74565b610ee0565b61028e610465366004611d7a565b610f0e565b610271610478366004611b5a565b610f1b565b60006001600160e01b0319821663780e9d6360e01b14806104a257506104a282610fdc565b90505b919050565b6060600080546104b9906125ac565b80601f01602080910402602001604051908101604052809291908181526020018280546104e5906125ac565b80156105325780601f1061050757610100808354040283529160200191610532565b820191906000526020600020905b81548152906001019060200180831161051557829003601f168201915b5050505050905090565b60006105478261101c565b61056c5760405162461bcd60e51b815260040161056390612283565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b336000908152600b602052604090205460ff16806105be57506105a9610a74565b6001600160a01b0316336001600160a01b0316145b6105da5760405162461bcd60e51b815260040161056390612072565b60009182526012602052604090912055565b60006105f782610893565b9050806001600160a01b0316836001600160a01b0316141561062b5760405162461bcd60e51b8152600401610563906123c7565b806001600160a01b031661063d611039565b6001600160a01b03161480610659575061065981610452611039565b6106755760405162461bcd60e51b81526004016105639061215e565b61067f838361103d565b505050565b60085490565b61069b610695611039565b826110ab565b6106b75760405162461bcd60e51b815260040161056390612408565b61067f838383611130565b60006106cd8361094b565b82106106eb5760405162461bcd60e51b815260040161056390611f58565b506001600160a01b03821660009081526006602090815260408083208484529091529020545b92915050565b600b6020526000908152604090205460ff1681565b61067f83838360405180602001604052806000815250610d79565b61074f611039565b6001600160a01b0316610760610a74565b6001600160a01b0316146107865760405162461bcd60e51b8152600401610563906122cf565b61078f836107f5565b61067f838383610ae7565b60006107a4610684565b82106107c25760405162461bcd60e51b815260040161056390612459565b600882815481106107e357634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6107fd611039565b6001600160a01b031661080e610a74565b6001600160a01b0316146108345760405162461bcd60e51b8152600401610563906122cf565b61083f600c8261125d565b61085b5760405162461bcd60e51b8152600401610563906124a5565b610866600c82611270565b506000818152600e60209081526040808320600201548352600f909152902061088f9082611270565b5050565b6000818152600260205260408120546001600160a01b0316806104a25760405162461bcd60e51b815260040161056390612205565b336000908152600b602052604081205460ff16806108fe57506108e9610a74565b6001600160a01b0316336001600160a01b0316145b61091a5760405162461bcd60e51b815260040161056390612072565b601160008154610929906125e7565b918290555060008181526012602052604090208390559050610711838261127c565b60006001600160a01b0382166109735760405162461bcd60e51b8152600401610563906121bb565b506001600160a01b031660009081526003602052604090205490565b610997611039565b6001600160a01b03166109a8610a74565b6001600160a01b0316146109ce5760405162461bcd60e51b8152600401610563906122cf565b600a546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600a80546001600160a01b0319169055565b6000610a24600c61135b565b905090565b610a31611b22565b506000908152601260209081526040808320548352600e825291829020825160608101845281548152600182015492810192909252600201549181019190915290565b600a546001600160a01b031690565b610a8b611b22565b600e6000610a9a600c85611366565b815260200190815260200160002060405180606001604052908160008201548152602001600182015481526020016002820154815250509050919050565b6060600180546104b9906125ac565b610aef611039565b6001600160a01b0316610b00610a74565b6001600160a01b031614610b265760405162461bcd60e51b8152600401610563906122cf565b610b31600c8461125d565b15610b4e5760405162461bcd60e51b81526004016105639061239c565b610b59600c84611372565b506040805160608101825284815260208082018581528284018581526000888152600e8452858120945185559151600185015551600290930192909255838252600f905220610ba89084611372565b50505050565b610bb6611039565b6001600160a01b0316826001600160a01b03161415610be75760405162461bcd60e51b8152600401610563906120db565b8060056000610bf4611039565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610c38611039565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610c709190611ef8565b60405180910390a35050565b610c84611b22565b506000908152600e6020908152604091829020825160608101845281548152600182015492810192909252600201549181019190915290565b336000908152600b602052604081205460ff1680610cf35750610cde610a74565b6001600160a01b0316336001600160a01b0316145b610d0f5760405162461bcd60e51b815260040161056390612072565b6000838152600f6020526040812090610d278261135b565b11610d445760405162461bcd60e51b8152600401610563906124d0565b6000610d63610d528361135b565b610d5c9086612602565b8390611366565b9050610d6f86826108c8565b9695505050505050565b610d8a610d84611039565b836110ab565b610da65760405162461bcd60e51b815260040161056390612408565b610ba88484848461137e565b60606000610dbf836113b1565b90506000610dcc84610a29565b905081610dd885611433565b610de58360200151611433565b610df28460400151611433565b604051602001610e059493929190611e39565b60405160208183030381529060405292505050919050565b610e25611039565b6001600160a01b0316610e36610a74565b6001600160a01b031614610e5c5760405162461bcd60e51b8152600401610563906122cf565b6001600160a01b03166000908152600b60205260409020805460ff19166001179055565b610e88611039565b6001600160a01b0316610e99610a74565b6001600160a01b031614610ebf5760405162461bcd60e51b8152600401610563906122cf565b6001600160a01b03166000908152600b60205260409020805460ff19169055565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60006104a2600c83611366565b610f23611039565b6001600160a01b0316610f34610a74565b6001600160a01b031614610f5a5760405162461bcd60e51b8152600401610563906122cf565b6001600160a01b038116610f805760405162461bcd60e51b815260040161056390611ff5565b600a546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600a80546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160e01b031982166380ac58cd60e01b148061100d57506001600160e01b03198216635b5e139f60e01b145b806104a257506104a28261154e565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061107282610893565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006110b68261101c565b6110d25760405162461bcd60e51b815260040161056390612112565b60006110dd83610893565b9050806001600160a01b0316846001600160a01b031614806111185750836001600160a01b031661110d8461053c565b6001600160a01b0316145b8061112857506111288185610ee0565b949350505050565b826001600160a01b031661114382610893565b6001600160a01b0316146111695760405162461bcd60e51b815260040161056390612304565b6001600160a01b03821661118f5760405162461bcd60e51b815260040161056390612097565b61119a838383611567565b6111a560008261103d565b6001600160a01b03831660009081526003602052604081208054600192906111ce908490612569565b90915550506001600160a01b03821660009081526003602052604081208054600192906111fc90849061253d565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600061126983836115f0565b9392505050565b60006112698383611608565b6001600160a01b0382166112a25760405162461bcd60e51b81526004016105639061224e565b6112ab8161101c565b156112c85760405162461bcd60e51b81526004016105639061203b565b6112d460008383611567565b6001600160a01b03821660009081526003602052604081208054600192906112fd90849061253d565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006104a282611725565b60006112698383611729565b60006112698383611782565b611389848484611130565b611395848484846117cc565b610ba85760405162461bcd60e51b815260040161056390611fa3565b60606113bc8261101c565b6113d85760405162461bcd60e51b81526004016105639061234d565b60006113e26118e7565b905060008151116114025760405180602001604052806000815250611269565b8061140c84611433565b60405160200161141d929190611e0a565b6040516020818303038152906040529392505050565b60608161145857506040805180820190915260018152600360fc1b60208201526104a5565b8160005b8115611482578061146c816125e7565b915061147b9050600a83612555565b915061145c565b60008167ffffffffffffffff8111156114ab57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156114d5576020820181803683370190505b5090505b8415611128576114ea600183612569565b91506114f7600a86612602565b61150290603061253d565b60f81b81838151811061152557634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611547600a86612555565b94506114d9565b6001600160e01b031981166301ffc9a760e01b14919050565b61157283838361067f565b6001600160a01b03831661158e576115898161191e565b6115b1565b816001600160a01b0316836001600160a01b0316146115b1576115b18382611962565b6001600160a01b0382166115cd576115c8816119ff565b61067f565b826001600160a01b0316826001600160a01b03161461067f5761067f8282611ad8565b60009081526001919091016020526040902054151590565b6000818152600183016020526040812054801561171b57600061162c600183612569565b855490915060009061164090600190612569565b9050600086600001828154811061166757634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508087600001848154811061169857634e487b7160e01b600052603260045260246000fd5b6000918252602090912001556116af83600161253d565b600082815260018901602052604090205586548790806116df57634e487b7160e01b600052603160045260246000fd5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610711565b6000915050610711565b5490565b8154600090821061174c5760405162461bcd60e51b815260040161056390611f16565b82600001828154811061176f57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b600061178e83836115f0565b6117c457508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610711565b506000610711565b60006117e0846001600160a01b0316611b1c565b156118dc57836001600160a01b031663150b7a026117fc611039565b8786866040518563ffffffff1660e01b815260040161181e9493929190611ec5565b602060405180830381600087803b15801561183857600080fd5b505af1925050508015611868575060408051601f3d908101601f1916820190925261186591810190611d5e565b60015b6118c2573d808015611896576040519150601f19603f3d011682016040523d82523d6000602084013e61189b565b606091505b5080516118ba5760405162461bcd60e51b815260040161056390611fa3565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611128565b506001949350505050565b60408051808201909152601881527f68747470733a2f2f6e66742e65766f646566692e636f6d2f0000000000000000602082015290565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6000600161196f8461094b565b6119799190612569565b6000838152600760205260409020549091508082146119cc576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090611a1190600190612569565b60008381526009602052604081205460088054939450909284908110611a4757634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060088381548110611a7657634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480611abc57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000611ae38361094b565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b3b151590565b60405180606001604052806000815260200160008152602001600081525090565b80356001600160a01b03811681146104a557600080fd5b600060208284031215611b6b578081fd5b61126982611b43565b60008060408385031215611b86578081fd5b611b8f83611b43565b9150611b9d60208401611b43565b90509250929050565b600080600060608486031215611bba578081fd5b611bc384611b43565b9250611bd160208501611b43565b9150604084013590509250925092565b60008060008060808587031215611bf6578081fd5b611bff85611b43565b93506020611c0e818701611b43565b935060408601359250606086013567ffffffffffffffff80821115611c31578384fd5b818801915088601f830112611c44578384fd5b813581811115611c5657611c56612642565b604051601f8201601f1916810185018381118282101715611c7957611c79612642565b60405281815283820185018b1015611c8f578586fd5b81858501868301379081019093019390935250939692955090935050565b60008060408385031215611cbf578182fd5b611cc883611b43565b915060208301358015158114611cdc578182fd5b809150509250929050565b60008060408385031215611cf9578182fd5b611d0283611b43565b946020939093013593505050565b600080600060608486031215611d24578283fd5b611d2d84611b43565b95602085013595506040909401359392505050565b600060208284031215611d53578081fd5b813561126981612658565b600060208284031215611d6f578081fd5b815161126981612658565b600060208284031215611d8b578081fd5b5035919050565b60008060408385031215611da4578182fd5b50508035926020909101359150565b600080600060608486031215611dc7578283fd5b505081359360208301359350604090920135919050565b60008151808452611df6816020860160208601612580565b601f01601f19169290920160200192915050565b60008351611e1c818460208801612580565b835190830190611e30818360208801612580565b01949350505050565b60008551611e4b818460208a01612580565b8083019050602f60f81b8082528651611e6b816001850160208b01612580565b600192019182018190528551611e88816002850160208a01612580565b60029201918201528351611ea3816003840160208801612580565b016003019695505050505050565b6001600160a01b0391909116815260200190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090610d6f90830184611dde565b901515815260200190565b6000602082526112696020830184611dde565b60208082526022908201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e604082015261647360f01b606082015260800190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b6020808252600b908201526a1b9bdd081d1c9d5cdd195960aa1b604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b602080825260119082015270696420616c72656164792065786973747360781b604082015260600190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201526b7574206f6620626f756e647360a01b606082015260800190565b6020808252601190820152701a5908191bd95cc81b9bdd08195e1a5cdd607a1b604082015260600190565b60208082526023908201527f746865726520617265206e6f207479706573207769746820746861742072617260408201526269747960e81b606082015260800190565b81518152602080830151908201526040918201519181019190915260600190565b90815260200190565b6000821982111561255057612550612616565b500190565b6000826125645761256461262c565b500490565b60008282101561257b5761257b612616565b500390565b60005b8381101561259b578181015183820152602001612583565b83811115610ba85750506000910152565b6002810460018216806125c057607f821691505b602082108114156125e157634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156125fb576125fb612616565b5060010190565b6000826126115761261161262c565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461266e57600080fd5b5056fea26469706673582212201cee5f555e42b2313851688b8a118fb3d728f5b7f40e9acc3c77875b85f9441264736f6c63430008000033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101fb5760003560e01c8063715018a61161011a578063b6aa9916116100ad578063d4d0d6e61161007c578063d4d0d6e61461041e578063d55e62a014610431578063e985e9c514610444578063eede7b4414610457578063f2fde38b1461046a576101fb565b8063b6aa9916146103d2578063b8645a49146103e5578063b88d4fde146103f8578063c87b56dd1461040b576101fb565b80638de8f848116100e95780638de8f8481461039157806395d89b41146103a45780639cfeb6d2146103ac578063a22cb465146103bf576101fb565b8063715018a6146103595780637d02b1a31461036157806386620a46146103695780638da5cb5b14610389576101fb565b80633ffd402c11610192578063590315a611610161578063590315a61461030d5780636352211e146103205780636a10d4d61461033357806370a0823114610346576101fb565b80633ffd402c146102c157806342842e0e146102d45780634ee3ae75146102e75780634f6ccce7146102fa576101fb565b8063095ea7b3116101ce578063095ea7b31461027357806318160ddd1461028657806323b872dd1461029b5780632f745c59146102ae576101fb565b806301ffc9a71461020057806306fdde0314610229578063081812fc1461023e578063095660111461025e575b600080fd5b61021361020e366004611d42565b61047d565b6040516102209190611ef8565b60405180910390f35b6102316104aa565b6040516102209190611f03565b61025161024c366004611d7a565b61053c565b6040516102209190611eb1565b61027161026c366004611d92565b610588565b005b610271610281366004611ce7565b6105ec565b61028e610684565b6040516102209190612534565b6102716102a9366004611ba6565b61068a565b61028e6102bc366004611ce7565b6106c2565b6102136102cf366004611b5a565b610717565b6102716102e2366004611ba6565b61072c565b6102716102f5366004611db3565b610747565b61028e610308366004611d7a565b61079a565b61027161031b366004611d7a565b6107f5565b61025161032e366004611d7a565b610893565b61028e610341366004611ce7565b6108c8565b61028e610354366004611b5a565b61094b565b61027161098f565b61028e610a18565b61037c610377366004611d7a565b610a29565b6040516102209190612513565b610251610a74565b61037c61039f366004611d7a565b610a83565b610231610ad8565b6102716103ba366004611db3565b610ae7565b6102716103cd366004611cad565b610bae565b61037c6103e0366004611d7a565b610c7c565b61028e6103f3366004611d10565b610cbd565b610271610406366004611be1565b610d79565b610231610419366004611d7a565b610db2565b61027161042c366004611b5a565b610e1d565b61027161043f366004611b5a565b610e80565b610213610452366004611b74565b610ee0565b61028e610465366004611d7a565b610f0e565b610271610478366004611b5a565b610f1b565b60006001600160e01b0319821663780e9d6360e01b14806104a257506104a282610fdc565b90505b919050565b6060600080546104b9906125ac565b80601f01602080910402602001604051908101604052809291908181526020018280546104e5906125ac565b80156105325780601f1061050757610100808354040283529160200191610532565b820191906000526020600020905b81548152906001019060200180831161051557829003601f168201915b5050505050905090565b60006105478261101c565b61056c5760405162461bcd60e51b815260040161056390612283565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b336000908152600b602052604090205460ff16806105be57506105a9610a74565b6001600160a01b0316336001600160a01b0316145b6105da5760405162461bcd60e51b815260040161056390612072565b60009182526012602052604090912055565b60006105f782610893565b9050806001600160a01b0316836001600160a01b0316141561062b5760405162461bcd60e51b8152600401610563906123c7565b806001600160a01b031661063d611039565b6001600160a01b03161480610659575061065981610452611039565b6106755760405162461bcd60e51b81526004016105639061215e565b61067f838361103d565b505050565b60085490565b61069b610695611039565b826110ab565b6106b75760405162461bcd60e51b815260040161056390612408565b61067f838383611130565b60006106cd8361094b565b82106106eb5760405162461bcd60e51b815260040161056390611f58565b506001600160a01b03821660009081526006602090815260408083208484529091529020545b92915050565b600b6020526000908152604090205460ff1681565b61067f83838360405180602001604052806000815250610d79565b61074f611039565b6001600160a01b0316610760610a74565b6001600160a01b0316146107865760405162461bcd60e51b8152600401610563906122cf565b61078f836107f5565b61067f838383610ae7565b60006107a4610684565b82106107c25760405162461bcd60e51b815260040161056390612459565b600882815481106107e357634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6107fd611039565b6001600160a01b031661080e610a74565b6001600160a01b0316146108345760405162461bcd60e51b8152600401610563906122cf565b61083f600c8261125d565b61085b5760405162461bcd60e51b8152600401610563906124a5565b610866600c82611270565b506000818152600e60209081526040808320600201548352600f909152902061088f9082611270565b5050565b6000818152600260205260408120546001600160a01b0316806104a25760405162461bcd60e51b815260040161056390612205565b336000908152600b602052604081205460ff16806108fe57506108e9610a74565b6001600160a01b0316336001600160a01b0316145b61091a5760405162461bcd60e51b815260040161056390612072565b601160008154610929906125e7565b918290555060008181526012602052604090208390559050610711838261127c565b60006001600160a01b0382166109735760405162461bcd60e51b8152600401610563906121bb565b506001600160a01b031660009081526003602052604090205490565b610997611039565b6001600160a01b03166109a8610a74565b6001600160a01b0316146109ce5760405162461bcd60e51b8152600401610563906122cf565b600a546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600a80546001600160a01b0319169055565b6000610a24600c61135b565b905090565b610a31611b22565b506000908152601260209081526040808320548352600e825291829020825160608101845281548152600182015492810192909252600201549181019190915290565b600a546001600160a01b031690565b610a8b611b22565b600e6000610a9a600c85611366565b815260200190815260200160002060405180606001604052908160008201548152602001600182015481526020016002820154815250509050919050565b6060600180546104b9906125ac565b610aef611039565b6001600160a01b0316610b00610a74565b6001600160a01b031614610b265760405162461bcd60e51b8152600401610563906122cf565b610b31600c8461125d565b15610b4e5760405162461bcd60e51b81526004016105639061239c565b610b59600c84611372565b506040805160608101825284815260208082018581528284018581526000888152600e8452858120945185559151600185015551600290930192909255838252600f905220610ba89084611372565b50505050565b610bb6611039565b6001600160a01b0316826001600160a01b03161415610be75760405162461bcd60e51b8152600401610563906120db565b8060056000610bf4611039565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610c38611039565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610c709190611ef8565b60405180910390a35050565b610c84611b22565b506000908152600e6020908152604091829020825160608101845281548152600182015492810192909252600201549181019190915290565b336000908152600b602052604081205460ff1680610cf35750610cde610a74565b6001600160a01b0316336001600160a01b0316145b610d0f5760405162461bcd60e51b815260040161056390612072565b6000838152600f6020526040812090610d278261135b565b11610d445760405162461bcd60e51b8152600401610563906124d0565b6000610d63610d528361135b565b610d5c9086612602565b8390611366565b9050610d6f86826108c8565b9695505050505050565b610d8a610d84611039565b836110ab565b610da65760405162461bcd60e51b815260040161056390612408565b610ba88484848461137e565b60606000610dbf836113b1565b90506000610dcc84610a29565b905081610dd885611433565b610de58360200151611433565b610df28460400151611433565b604051602001610e059493929190611e39565b60405160208183030381529060405292505050919050565b610e25611039565b6001600160a01b0316610e36610a74565b6001600160a01b031614610e5c5760405162461bcd60e51b8152600401610563906122cf565b6001600160a01b03166000908152600b60205260409020805460ff19166001179055565b610e88611039565b6001600160a01b0316610e99610a74565b6001600160a01b031614610ebf5760405162461bcd60e51b8152600401610563906122cf565b6001600160a01b03166000908152600b60205260409020805460ff19169055565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b60006104a2600c83611366565b610f23611039565b6001600160a01b0316610f34610a74565b6001600160a01b031614610f5a5760405162461bcd60e51b8152600401610563906122cf565b6001600160a01b038116610f805760405162461bcd60e51b815260040161056390611ff5565b600a546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3600a80546001600160a01b0319166001600160a01b0392909216919091179055565b60006001600160e01b031982166380ac58cd60e01b148061100d57506001600160e01b03198216635b5e139f60e01b145b806104a257506104a28261154e565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061107282610893565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006110b68261101c565b6110d25760405162461bcd60e51b815260040161056390612112565b60006110dd83610893565b9050806001600160a01b0316846001600160a01b031614806111185750836001600160a01b031661110d8461053c565b6001600160a01b0316145b8061112857506111288185610ee0565b949350505050565b826001600160a01b031661114382610893565b6001600160a01b0316146111695760405162461bcd60e51b815260040161056390612304565b6001600160a01b03821661118f5760405162461bcd60e51b815260040161056390612097565b61119a838383611567565b6111a560008261103d565b6001600160a01b03831660009081526003602052604081208054600192906111ce908490612569565b90915550506001600160a01b03821660009081526003602052604081208054600192906111fc90849061253d565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600061126983836115f0565b9392505050565b60006112698383611608565b6001600160a01b0382166112a25760405162461bcd60e51b81526004016105639061224e565b6112ab8161101c565b156112c85760405162461bcd60e51b81526004016105639061203b565b6112d460008383611567565b6001600160a01b03821660009081526003602052604081208054600192906112fd90849061253d565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b60006104a282611725565b60006112698383611729565b60006112698383611782565b611389848484611130565b611395848484846117cc565b610ba85760405162461bcd60e51b815260040161056390611fa3565b60606113bc8261101c565b6113d85760405162461bcd60e51b81526004016105639061234d565b60006113e26118e7565b905060008151116114025760405180602001604052806000815250611269565b8061140c84611433565b60405160200161141d929190611e0a565b6040516020818303038152906040529392505050565b60608161145857506040805180820190915260018152600360fc1b60208201526104a5565b8160005b8115611482578061146c816125e7565b915061147b9050600a83612555565b915061145c565b60008167ffffffffffffffff8111156114ab57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156114d5576020820181803683370190505b5090505b8415611128576114ea600183612569565b91506114f7600a86612602565b61150290603061253d565b60f81b81838151811061152557634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350611547600a86612555565b94506114d9565b6001600160e01b031981166301ffc9a760e01b14919050565b61157283838361067f565b6001600160a01b03831661158e576115898161191e565b6115b1565b816001600160a01b0316836001600160a01b0316146115b1576115b18382611962565b6001600160a01b0382166115cd576115c8816119ff565b61067f565b826001600160a01b0316826001600160a01b03161461067f5761067f8282611ad8565b60009081526001919091016020526040902054151590565b6000818152600183016020526040812054801561171b57600061162c600183612569565b855490915060009061164090600190612569565b9050600086600001828154811061166757634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508087600001848154811061169857634e487b7160e01b600052603260045260246000fd5b6000918252602090912001556116af83600161253d565b600082815260018901602052604090205586548790806116df57634e487b7160e01b600052603160045260246000fd5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610711565b6000915050610711565b5490565b8154600090821061174c5760405162461bcd60e51b815260040161056390611f16565b82600001828154811061176f57634e487b7160e01b600052603260045260246000fd5b9060005260206000200154905092915050565b600061178e83836115f0565b6117c457508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610711565b506000610711565b60006117e0846001600160a01b0316611b1c565b156118dc57836001600160a01b031663150b7a026117fc611039565b8786866040518563ffffffff1660e01b815260040161181e9493929190611ec5565b602060405180830381600087803b15801561183857600080fd5b505af1925050508015611868575060408051601f3d908101601f1916820190925261186591810190611d5e565b60015b6118c2573d808015611896576040519150601f19603f3d011682016040523d82523d6000602084013e61189b565b606091505b5080516118ba5760405162461bcd60e51b815260040161056390611fa3565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611128565b506001949350505050565b60408051808201909152601881527f68747470733a2f2f6e66742e65766f646566692e636f6d2f0000000000000000602082015290565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b6000600161196f8461094b565b6119799190612569565b6000838152600760205260409020549091508082146119cc576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090611a1190600190612569565b60008381526009602052604081205460088054939450909284908110611a4757634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060088381548110611a7657634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480611abc57634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000611ae38361094b565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b3b151590565b60405180606001604052806000815260200160008152602001600081525090565b80356001600160a01b03811681146104a557600080fd5b600060208284031215611b6b578081fd5b61126982611b43565b60008060408385031215611b86578081fd5b611b8f83611b43565b9150611b9d60208401611b43565b90509250929050565b600080600060608486031215611bba578081fd5b611bc384611b43565b9250611bd160208501611b43565b9150604084013590509250925092565b60008060008060808587031215611bf6578081fd5b611bff85611b43565b93506020611c0e818701611b43565b935060408601359250606086013567ffffffffffffffff80821115611c31578384fd5b818801915088601f830112611c44578384fd5b813581811115611c5657611c56612642565b604051601f8201601f1916810185018381118282101715611c7957611c79612642565b60405281815283820185018b1015611c8f578586fd5b81858501868301379081019093019390935250939692955090935050565b60008060408385031215611cbf578182fd5b611cc883611b43565b915060208301358015158114611cdc578182fd5b809150509250929050565b60008060408385031215611cf9578182fd5b611d0283611b43565b946020939093013593505050565b600080600060608486031215611d24578283fd5b611d2d84611b43565b95602085013595506040909401359392505050565b600060208284031215611d53578081fd5b813561126981612658565b600060208284031215611d6f578081fd5b815161126981612658565b600060208284031215611d8b578081fd5b5035919050565b60008060408385031215611da4578182fd5b50508035926020909101359150565b600080600060608486031215611dc7578283fd5b505081359360208301359350604090920135919050565b60008151808452611df6816020860160208601612580565b601f01601f19169290920160200192915050565b60008351611e1c818460208801612580565b835190830190611e30818360208801612580565b01949350505050565b60008551611e4b818460208a01612580565b8083019050602f60f81b8082528651611e6b816001850160208b01612580565b600192019182018190528551611e88816002850160208a01612580565b60029201918201528351611ea3816003840160208801612580565b016003019695505050505050565b6001600160a01b0391909116815260200190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090610d6f90830184611dde565b901515815260200190565b6000602082526112696020830184611dde565b60208082526022908201527f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e604082015261647360f01b606082015260800190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201526a74206f6620626f756e647360a81b606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b6020808252600b908201526a1b9bdd081d1c9d5cdd195960aa1b604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646040820152637265737360e01b606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604082015269726f206164647265737360b01b606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201526832b73a103a37b5b2b760b91b606082015260800190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201526b34b9ba32b73a103a37b5b2b760a11b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201526839903737ba1037bbb760b91b606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201526e3732bc34b9ba32b73a103a37b5b2b760891b606082015260800190565b602080825260119082015270696420616c72656164792065786973747360781b604082015260600190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656040820152603960f91b606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201526b7574206f6620626f756e647360a01b606082015260800190565b6020808252601190820152701a5908191bd95cc81b9bdd08195e1a5cdd607a1b604082015260600190565b60208082526023908201527f746865726520617265206e6f207479706573207769746820746861742072617260408201526269747960e81b606082015260800190565b81518152602080830151908201526040918201519181019190915260600190565b90815260200190565b6000821982111561255057612550612616565b500190565b6000826125645761256461262c565b500490565b60008282101561257b5761257b612616565b500390565b60005b8381101561259b578181015183820152602001612583565b83811115610ba85750506000910152565b6002810460018216806125c057607f821691505b602082108114156125e157634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156125fb576125fb612616565b5060010190565b6000826126115761261161262c565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461266e57600080fd5b5056fea26469706673582212201cee5f555e42b2313851688b8a118fb3d728f5b7f40e9acc3c77875b85f9441264736f6c63430008000033

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.