ETH Price: $3,473.73 (+0.72%)

Token

Graviton tNFT Collection (tNFT)
 

Overview

Max Total Supply

9 tNFT

Holders

7

Market

Volume (24H)

N/A

Min Price (24H)

N/A

Max Price (24H)

N/A

Other Info

Filtered by Token Holder
troymurs.eth
Balance
2 tNFT
0x601c6d9eff76ae8cd7bff5fc4900f20f6f80734f
Loading...
Loading
Loading...
Loading
Loading...
Loading

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

Contract Source Code Verified (Exact Match)

Contract Name:
GravitonTorrentERC721Core

Compiler Version
v0.8.11+commit.d7f03943

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 21 : GravitonTorrentERC721Core.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;

import "./GravitonTorrentERC721.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "./Verifier.sol";

contract GravitonTorrentERC721Core is GravitonTorrentERC721 {
    using Counters for Counters.Counter;

    Counters.Counter private _tokenIds;

    constructor(
        string memory _tokenName,
        string memory _tokenSymbol,
        address _signer
    ) GravitonTorrentERC721(
        _tokenName, _tokenSymbol, _signer, new address payable[](0), new uint96[](0)
    ) {}

    function mint(
        address receiver,
        string memory tokenURI,
        Fee[] memory fees,
        string memory torrentMagnetLink,
        Verifier.Signature memory signature
    ) public override returns (uint256) {
        bytes32 hash = keccak256(abi.encodePacked(torrentMagnetLink, msg.sender));
        address signer = _verifyString(hash, signature);
        require(signer == _tnftSigner, "E07");
        return
            _mintTorrent(
                receiver,
                tokenURI,
                fees,
                torrentMagnetLink
            );
    }
}

File 2 of 21 : GravitonTorrentERC721.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;

import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./ERC721Consumable.sol";
import "./HasSecondarySaleFees.sol";
import "./Verifier.sol";

contract GravitonTorrentERC721 is
    ERC721Enumerable,
    ERC721URIStorage,
    ERC721Consumable,
    Ownable,
    HasSecondarySaleFees,
    Verifier
{
    using Counters for Counters.Counter;

    Counters.Counter private _tokenIds;

    // Mapping from token ID to creator address;
    mapping(uint256 => address) public creatorOf;

    // Mapping from token ID to torrent magnet links
    mapping(uint256 => string) public torrentMagnetLinkOf;

    Fee[] public collectionFees;

    // Graviton tNFT signer address
    address internal _tnftSigner;

    event GravitonTorrentERC721TokenMinted(
        uint256 tokenId,
        string tokenURI,
        address receiver,
        uint256 time
    );

    modifier onlyCreator(uint256 tokenId) {
        require(msg.sender == creatorOf[tokenId], "E01");
        _;
    }

    constructor(
        string memory _tokenName,
        string memory _tokenSymbol,
        address _signer,
        address payable[] memory _feeRecipients,
        uint96[] memory _feeValues
    ) ERC721(_tokenName, _tokenSymbol) {
        _tnftSigner = _signer;
        require(_feeRecipients.length == _feeValues.length, "E06");
        uint256 sum = 0;
        for (uint256 i = 0; i < _feeRecipients.length; i++) {
            require(_feeRecipients[i] != address(0x0), "E03");
            require(_feeValues[i] != 0, "E04");
            sum = sum + _feeValues[i];
            collectionFees.push(Fee({
                recipient: _feeRecipients[i],
                value: _feeValues[i]
            }));
        }
        require(sum <= 10000, "E05");
    }

    function updateTorrentMagnetLink(
        uint256 _tokenId,
        string memory _torrentMagnetLink
    ) external virtual onlyCreator(_tokenId) returns (string memory) {
        torrentMagnetLinkOf[_tokenId] = _torrentMagnetLink;

        return _torrentMagnetLink;
    }

    function ownedTokens(address ownerAddress)
        external
        view
        returns (uint256[] memory)
    {
        uint256 tokenBalance = balanceOf(ownerAddress);
        uint256[] memory tokens = new uint256[](tokenBalance);

        for (uint256 i = 0; i < tokenBalance; i++) {
            uint256 tokenId = tokenOfOwnerByIndex(ownerAddress, i);
            tokens[i] = tokenId;
        }

        return tokens;
    }

    function mint(
        address receiver,
        string memory newTokenURI,
        Fee[] memory fees,
        string memory torrentMagnetLink,
        Verifier.Signature memory signature
    ) public virtual onlyOwner returns (uint256) {
        bytes32 hash = keccak256(abi.encodePacked(torrentMagnetLink));
        address signer = _verifyString(hash, signature);
        require(signer == _tnftSigner, "E07");
        return
            _mintTorrent(
                receiver,
                newTokenURI,
                fees,
                torrentMagnetLink
            );
    }

    function _mintTorrent(
        address receiver,
        string memory newTokenURI,
        Fee[] memory fees,
        string memory torrentMagnetLink
    ) internal returns (uint256) {
        _tokenIds.increment();

        uint256 newItemId = _tokenIds.current();
        _mint(receiver, newItemId);
        _setTokenURI(newItemId, newTokenURI);
        if (fees.length > 0 || collectionFees.length > 0) {
            _registerFees(newItemId, fees);
        }
        // We use tx.origin to set the creator, as there are cases when a contract can call this funciton
        creatorOf[newItemId] = tx.origin;
        torrentMagnetLinkOf[newItemId] = torrentMagnetLink;

        emit GravitonTorrentERC721TokenMinted(
            newItemId,
            newTokenURI,
            receiver,
            block.timestamp
        );
        return newItemId;
    }

    function _registerFees(uint256 _tokenId, Fee[] memory _fees) internal {
        require((_fees.length + collectionFees.length) <= 6, "E02");
        address[] memory recipients = new address[](_fees.length + collectionFees.length);
        uint256[] memory bps = new uint256[](_fees.length + collectionFees.length);
        uint256 sum = 0;
        for (uint256 i = 0; i < _fees.length; i++) {
            require(_fees[i].recipient != address(0x0), "E03");
            require(_fees[i].value != 0, "E04");
            sum = sum + _fees[i].value;
            fees[_tokenId].push(_fees[i]);
            recipients[i] = _fees[i].recipient;
            bps[i] = _fees[i].value;
        }
        for (uint256 i = 0; i < collectionFees.length; i++) {
            sum = sum + collectionFees[i].value;
            fees[_tokenId].push(collectionFees[i]);
            recipients[i] = collectionFees[i].recipient;
            bps[i] = collectionFees[i].value;
        }
        require(sum <= 10000, "E05");
        if ((_fees.length + collectionFees.length) > 0) {
            emit SecondarySaleFees(_tokenId, recipients, bps);
        }
    }

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

    function tokenURI(uint256 tokenId)
        public
        view
        virtual
        override(ERC721URIStorage, ERC721)
        returns (string memory)
    {
        return super.tokenURI(tokenId);
    }

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

File 4 of 21 : Verifier.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;

contract Verifier {
    struct Signature {
        uint8 v;
        bytes32 r;
        bytes32 s;
    }
    // Returns the address that signed a given string message
    function _verifyString(
        bytes32 messageHash,
        Signature memory signature
    ) internal pure returns (address signer) {
        bytes32 messageDigest = keccak256(
            abi.encodePacked("\x19Ethereum Signed Message:\n32", messageHash)
        );
        return ecrecover(messageDigest, signature.v, signature.r, signature.s);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "../ERC721.sol";

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

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

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

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

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

        return super.tokenURI(tokenId);
    }

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

File 8 of 21 : ERC721Consumable.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "./interfaces/IERC721Consumable.sol";

abstract contract ERC721Consumable is IERC721Consumable, ERC721 {

    // Mapping from token ID to consumer address
    mapping (uint256 => address) _tokenConsumers;

    /**
     * @dev See {IERC721Consumable-consumerOf}
     */
    function consumerOf(uint256 _tokenId) view external returns (address) {
        require(_exists(_tokenId), "ERC721Consumable: consumer query for nonexistent token");
        return _tokenConsumers[_tokenId];
    }

    /**
     * @dev See {IERC721Consumable-changeConsumer}
     */
    function changeConsumer(address _consumer, uint256 _tokenId) external {
        address owner = this.ownerOf(_tokenId);
        require(msg.sender == owner || msg.sender == getApproved(_tokenId) ||
            isApprovedForAll(owner, msg.sender),
            "ERC721Consumable: changeConsumer caller is not owner nor approved");
        _changeConsumer(owner, _consumer, _tokenId);
    }

    /**
     * @dev Changes the consumer
     * Requirement: `tokenId` must exist
     */
    function _changeConsumer(address _owner, address _consumer, uint256 _tokenId) internal {
        _tokenConsumers[_tokenId] = _consumer;
        emit ConsumerChanged(_owner, _consumer, _tokenId);
    }

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

    function _beforeTokenTransfer(address _from, address _to, uint256 _tokenId) internal virtual override (ERC721) {
        super._beforeTokenTransfer(_from, _to, _tokenId);

        _changeConsumer(_from, address(0), _tokenId);
    }

}

File 9 of 21 : HasSecondarySaleFees.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;

import "@openzeppelin/contracts/utils/introspection/ERC165Storage.sol";

contract HasSecondarySaleFees is ERC165Storage {
    struct Fee {
        address payable recipient;
        uint96 value;
    }

    // id => fees
    mapping (uint256 => Fee[]) public fees;
    event SecondarySaleFees(uint256 tokenId, address[] recipients, uint[] bps);

    /*
     * bytes4(keccak256('getFeeBps(uint256)')) == 0x0ebd4c7f
     * bytes4(keccak256('getFeeRecipients(uint256)')) == 0xb9c4d9fb
     *
     * => 0x0ebd4c7f ^ 0xb9c4d9fb == 0xb7799584
     */
    bytes4 private constant _INTERFACE_ID_FEES = 0xb7799584;
    constructor() {
        _registerInterface(_INTERFACE_ID_FEES);
    }

    function getFeeRecipients(uint256 id) external view returns (address payable[] memory) {
        Fee[] memory _fees = fees[id];
        address payable[] memory result = new address payable[](_fees.length);
        for (uint i = 0; i < _fees.length; i++) {
            result[i] = _fees[i].recipient;
        }
        return result;
    }

    function getFeeBps(uint256 id) external view returns (uint[] memory) {
        Fee[] memory _fees = fees[id];
        uint[] memory result = new uint[](_fees.length);
        for (uint i = 0; i < _fees.length; i++) {
            result[i] = _fees[i].value;
        }
        return result;
    }

}

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

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

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

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

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

File 11 of 21 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

File 18 of 21 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

File 20 of 21 : IERC721Consumable.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.11;

/// @title ERC-721 Consumer Role extension
///  Note: the ERC-165 identifier for this interface is 0x953c8dfa
interface IERC721Consumable { /* is ERC721 */ 

    /// @notice Emitted when `owner` changes the `consumer` of an NFT
    /// The zero address for consumer indicates that there is no consumer address
    /// When a Transfer event emits, this also indicates that the consumer address
    /// for that NFT (if any) is set to none
    event ConsumerChanged(address indexed owner, address indexed consumer, uint256 indexed tokenId);

    /// @notice Get the consumer address of an NFT
    /// @dev The zero address indicates that there is no consumer
    /// Throws if `_tokenId` is not a valid NFT
    /// @param _tokenId The NFT to get the consumer address for
    /// @return The consumer address for this NFT, or the zero address if there is none
    function consumerOf(uint256 _tokenId) external view returns (address);

    /// @notice Change or reaffirm the consumer address for an NFT
    /// @dev The zero address indicates there is no consumer address
    /// Throws unless `msg.sender` is the current NFT owner, an authorised
    /// operator of the current owner or approved address
    /// Throws if `_tokenId` is not valid NFT
    /// @param _consumer The new consumer of the NFT
    function changeConsumer(address _consumer, uint256 _tokenId) external;
}

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

pragma solidity ^0.8.0;

import "./ERC165.sol";

/**
 * @dev Storage based implementation of the {IERC165} interface.
 *
 * Contracts may inherit from this and call {_registerInterface} to declare
 * their support of an interface.
 */
abstract contract ERC165Storage is ERC165 {
    /**
     * @dev Mapping of interface ids to whether or not it's supported.
     */
    mapping(bytes4 => bool) private _supportedInterfaces;

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return super.supportsInterface(interfaceId) || _supportedInterfaces[interfaceId];
    }

    /**
     * @dev Registers the contract as an implementer of the interface defined by
     * `interfaceId`. Support of the actual ERC165 interface is automatic and
     * registering its interface id is not required.
     *
     * See {IERC165-supportsInterface}.
     *
     * Requirements:
     *
     * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`).
     */
    function _registerInterface(bytes4 interfaceId) internal virtual {
        require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
        _supportedInterfaces[interfaceId] = true;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_tokenName","type":"string"},{"internalType":"string","name":"_tokenSymbol","type":"string"},{"internalType":"address","name":"_signer","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"consumer","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ConsumerChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"tokenURI","type":"string"},{"indexed":false,"internalType":"address","name":"receiver","type":"address"},{"indexed":false,"internalType":"uint256","name":"time","type":"uint256"}],"name":"GravitonTorrentERC721TokenMinted","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":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address[]","name":"recipients","type":"address[]"},{"indexed":false,"internalType":"uint256[]","name":"bps","type":"uint256[]"}],"name":"SecondarySaleFees","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":"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":"address","name":"_consumer","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"changeConsumer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"collectionFees","outputs":[{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"consumerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"creatorOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"fees","outputs":[{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getFeeBps","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getFeeRecipients","outputs":[{"internalType":"address payable[]","name":"","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"string","name":"tokenURI","type":"string"},{"components":[{"internalType":"address payable","name":"recipient","type":"address"},{"internalType":"uint96","name":"value","type":"uint96"}],"internalType":"struct HasSecondarySaleFees.Fee[]","name":"fees","type":"tuple[]"},{"internalType":"string","name":"torrentMagnetLink","type":"string"},{"components":[{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"internalType":"struct Verifier.Signature","name":"signature","type":"tuple"}],"name":"mint","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"ownerAddress","type":"address"}],"name":"ownedTokens","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"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":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"torrentMagnetLinkOf","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"_torrentMagnetLink","type":"string"}],"name":"updateTorrentMagnetLink","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"nonpayable","type":"function"}]

60806040523480156200001157600080fd5b506040516200355638038062003556833981016040819052620000349162000553565b6040805160008082526020808301828152838501909452865187948794879490939192879287926200006b929091850190620003e0565b50805162000081906001906020840190620003e0565b5050506200009e620000986200030960201b60201c565b6200030d565b620000b0632dde656160e21b6200035f565b601380546001600160a01b0319166001600160a01b0385161790558051825114620001085760405162461bcd60e51b815260206004820152600360248201526222981b60e91b60448201526064015b60405180910390fd5b6000805b8351811015620002bf5760006001600160a01b0316848281518110620001365762000136620005e0565b60200260200101516001600160a01b031614156200017d5760405162461bcd60e51b815260206004820152600360248201526245303360e81b6044820152606401620000ff565b828181518110620001925762000192620005e0565b60200260200101516001600160601b031660001415620001db5760405162461bcd60e51b8152602060048201526003602482015262114c0d60ea1b6044820152606401620000ff565b828181518110620001f057620001f0620005e0565b60200260200101516001600160601b0316826200020e91906200060c565b915060126040518060400160405280868481518110620002325762000232620005e0565b60200260200101516001600160a01b031681526020018584815181106200025d576200025d620005e0565b6020908102919091018101516001600160601b03908116909252835460018101855560009485529381902083519390910151909116600160a01b026001600160a01b039092169190911791015580620002b68162000627565b9150506200010c565b50612710811115620002fa5760405162461bcd60e51b815260206004820152600360248201526245303560e81b6044820152606401620000ff565b50505050505050505062000682565b3390565b600c80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6001600160e01b03198082161415620003bb5760405162461bcd60e51b815260206004820152601c60248201527f4552433136353a20696e76616c696420696e74657266616365206964000000006044820152606401620000ff565b6001600160e01b0319166000908152600d60205260409020805460ff19166001179055565b828054620003ee9062000645565b90600052602060002090601f0160209004810192826200041257600085556200045d565b82601f106200042d57805160ff19168380011785556200045d565b828001600101855582156200045d579182015b828111156200045d57825182559160200191906001019062000440565b506200046b9291506200046f565b5090565b5b808211156200046b576000815560010162000470565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620004ae57600080fd5b81516001600160401b0380821115620004cb57620004cb62000486565b604051601f8301601f19908116603f01168101908282118183101715620004f657620004f662000486565b816040528381526020925086838588010111156200051357600080fd5b600091505b8382101562000537578582018301518183018401529082019062000518565b83821115620005495760008385830101525b9695505050505050565b6000806000606084860312156200056957600080fd5b83516001600160401b03808211156200058157600080fd5b6200058f878388016200049c565b94506020860151915080821115620005a657600080fd5b50620005b5868287016200049c565b604086015190935090506001600160a01b0381168114620005d557600080fd5b809150509250925092565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b60008219821115620006225762000622620005f6565b500190565b60006000198214156200063e576200063e620005f6565b5060010190565b600181811c908216806200065a57607f821691505b602082108114156200067c57634e487b7160e01b600052602260045260246000fd5b50919050565b612ec480620006926000396000f3fe608060405234801561001057600080fd5b50600436106101da5760003560e01c806370a0823111610104578063b12ab40f116100a2578063dc2f0d0f11610071578063dc2f0d0f1461043c578063e58923311461044f578063e985e9c514610462578063f2fde38b1461047557600080fd5b8063b12ab40f146103e3578063b88d4fde146103f6578063b9c4d9fb14610409578063c87b56dd1461042957600080fd5b80638da5cb5b116100de5780638da5cb5b146103a457806390333dcf146103b557806395d89b41146103c8578063a22cb465146103d057600080fd5b806370a082311461037657806370b5aecb14610389578063715018a61461039c57600080fd5b806323b872dd1161017c5780634f6ccce71161014b5780634f6ccce714610314578063589a1743146103275780636308f1cd146103505780636352211e1461036357600080fd5b806323b872dd146102a15780632f745c59146102b45780633bd2ad8a146102c757806342842e0e1461030157600080fd5b8063095ea7b3116101b8578063095ea7b3146102475780630ebd4c7f1461025c57806314bb932f1461027c57806318160ddd1461028f57600080fd5b806301ffc9a7146101df57806306fdde0314610207578063081812fc1461021c575b600080fd5b6101f26101ed3660046125a7565b610488565b60405190151581526020015b60405180910390f35b61020f610499565b6040516101fe919061261c565b61022f61022a36600461262f565b61052b565b6040516001600160a01b0390911681526020016101fe565b61025a61025536600461265d565b610552565b005b61026f61026a36600461262f565b61066d565b6040516101fe91906126c4565b61020f61028a36600461262f565b61079e565b6008545b6040519081526020016101fe565b61025a6102af3660046126d7565b610838565b6102936102c236600461265d565b610869565b6102da6102d536600461262f565b6108ff565b604080516001600160a01b0390931683526001600160601b039091166020830152016101fe565b61025a61030f3660046126d7565b61093a565b61029361032236600461262f565b610955565b61022f61033536600461262f565b6010602052600090815260409020546001600160a01b031681565b6102da61035e366004612718565b6109e8565b61022f61037136600461262f565b610a31565b61029361038436600461273a565b610a91565b61025a61039736600461265d565b610b17565b61025a610c43565b600c546001600160a01b031661022f565b6102936103c33660046128a6565b610c57565b61020f610cef565b61025a6103de3660046129fb565b610cfe565b61026f6103f136600461273a565b610d0d565b61025a610404366004612a39565b610dac565b61041c61041736600461262f565b610de4565b6040516101fe9190612ab8565b61020f61043736600461262f565b610f11565b61020f61044a366004612b05565b610f1c565b61022f61045d36600461262f565b610f95565b6101f2610470366004612b4b565b611034565b61025a61048336600461273a565b611062565b6000610493826110db565b92915050565b6060600080546104a890612b79565b80601f01602080910402602001604051908101604052809291908181526020018280546104d490612b79565b80156105215780601f106104f657610100808354040283529160200191610521565b820191906000526020600020905b81548152906001019060200180831161050457829003601f168201915b5050505050905090565b60006105368261110c565b506000908152600460205260409020546001600160a01b031690565b600061055d82610a31565b9050806001600160a01b0316836001600160a01b031614156105d05760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806105ec57506105ec8133611034565b61065e5760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c000060648201526084016105c7565b610668838361116b565b505050565b6000818152600e60209081526040808320805482518185028101850190935280835260609493849084015b828210156106e757600084815260209081902060408051808201909152908401546001600160a01b0381168252600160a01b90046001600160601b031681830152825260019092019101610698565b505050509050600081516001600160401b0381111561070857610708612757565b604051908082528060200260200182016040528015610731578160200160208202803683370190505b50905060005b82518110156107965782818151811061075257610752612bb4565b6020026020010151602001516001600160601b031682828151811061077957610779612bb4565b60209081029190910101528061078e81612be0565b915050610737565b509392505050565b601160205260009081526040902080546107b790612b79565b80601f01602080910402602001604051908101604052809291908181526020018280546107e390612b79565b80156108305780601f1061080557610100808354040283529160200191610830565b820191906000526020600020905b81548152906001019060200180831161081357829003601f168201915b505050505081565b61084233826111d9565b61085e5760405162461bcd60e51b81526004016105c790612bfb565b610668838383611238565b600061087483610a91565b82106108d65760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016105c7565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6012818154811061090f57600080fd5b6000918252602090912001546001600160a01b0381169150600160a01b90046001600160601b031682565b61066883838360405180602001604052806000815250610dac565b600061096060085490565b82106109c35760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016105c7565b600882815481106109d6576109d6612bb4565b90600052602060002001549050919050565b600e6020528160005260406000208181548110610a0457600080fd5b6000918252602090912001546001600160a01b0381169250600160a01b90046001600160601b0316905082565b6000818152600260205260408120546001600160a01b0316806104935760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016105c7565b60006001600160a01b038216610afb5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016105c7565b506001600160a01b031660009081526003602052604090205490565b6040516331a9108f60e11b8152600481018290526000903090636352211e90602401602060405180830381865afa158015610b56573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b7a9190612c49565b9050336001600160a01b0382161480610bac5750610b978261052b565b6001600160a01b0316336001600160a01b0316145b80610bbc5750610bbc8133611034565b610c385760405162461bcd60e51b815260206004820152604160248201527f455243373231436f6e73756d61626c653a206368616e6765436f6e73756d657260448201527f2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656064820152601960fa1b608482015260a4016105c7565b6106688184846113df565b610c4b61143b565b610c556000611495565b565b6000808333604051602001610c6d929190612c66565b6040516020818303038152906040528051906020012090506000610c9182856114e7565b6013549091506001600160a01b03808316911614610cd75760405162461bcd60e51b815260206004820152600360248201526245303760e81b60448201526064016105c7565b610ce3888888886115a4565b98975050505050505050565b6060600180546104a890612b79565b610d09338383611672565b5050565b60606000610d1a83610a91565b90506000816001600160401b03811115610d3657610d36612757565b604051908082528060200260200182016040528015610d5f578160200160208202803683370190505b50905060005b82811015610796576000610d798683610869565b905080838381518110610d8e57610d8e612bb4565b60209081029190910101525080610da481612be0565b915050610d65565b610db633836111d9565b610dd25760405162461bcd60e51b81526004016105c790612bfb565b610dde84848484611741565b50505050565b6000818152600e60209081526040808320805482518185028101850190935280835260609493849084015b82821015610e5e57600084815260209081902060408051808201909152908401546001600160a01b0381168252600160a01b90046001600160601b031681830152825260019092019101610e0f565b505050509050600081516001600160401b03811115610e7f57610e7f612757565b604051908082528060200260200182016040528015610ea8578160200160208202803683370190505b50905060005b825181101561079657828181518110610ec957610ec9612bb4565b602002602001015160000151828281518110610ee757610ee7612bb4565b6001600160a01b039092166020928302919091019091015280610f0981612be0565b915050610eae565b606061049382611774565b60008281526010602052604090205460609083906001600160a01b03163314610f6d5760405162461bcd60e51b815260206004820152600360248201526245303160e81b60448201526064016105c7565b60008481526011602090815260409091208451610f8c928601906124f8565b50919392505050565b6000818152600260205260408120546001600160a01b03166110185760405162461bcd60e51b815260206004820152603660248201527f455243373231436f6e73756d61626c653a20636f6e73756d6572207175657279604482015275103337b9103737b732bc34b9ba32b73a103a37b5b2b760511b60648201526084016105c7565b506000908152600b60205260409020546001600160a01b031690565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61106a61143b565b6001600160a01b0381166110cf5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105c7565b6110d881611495565b50565b60006110e68261187d565b806104935750506001600160e01b0319166000908152600d602052604090205460ff1690565b6000818152600260205260409020546001600160a01b03166110d85760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016105c7565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906111a082610a31565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806111e583610a31565b9050806001600160a01b0316846001600160a01b0316148061120c575061120c8185611034565b806112305750836001600160a01b03166112258461052b565b6001600160a01b0316145b949350505050565b826001600160a01b031661124b82610a31565b6001600160a01b0316146112af5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016105c7565b6001600160a01b0382166113115760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016105c7565b61131c8383836118a2565b61132760008261116b565b6001600160a01b0383166000908152600360205260408120805460019290611350908490612c9d565b90915550506001600160a01b038216600090815260036020526040812080546001929061137e908490612cb4565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000818152600b602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917f42ef856c2602f37ce625d252830bed486c5c8e9a4de8aa36cc3d15f304eb662b91a4505050565b600c546001600160a01b03163314610c555760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105c7565b600c80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c81018390526000908190605c0160408051601f198184030181528282528051602091820120865187830151888501516000875293860180865283905260ff9091169385019390935260608401929092526080830152915060019060a0016020604051602081039080840390855afa158015611591573d6000803e3d6000fd5b5050604051601f19015195945050505050565b60006115b4600f80546001019055565b60006115bf600f5490565b90506115cb86826118ad565b6115d581866119fb565b6000845111806115e6575060125415155b156115f5576115f58185611a95565b600081815260106020908152604080832080546001600160a01b0319163217905560118252909120845161162b928601906124f8565b507f6176817e3510ddc16574c36491141d9923690d0a754d9b1abeafec9acf8a4035818688426040516116619493929190612ccc565b60405180910390a195945050505050565b816001600160a01b0316836001600160a01b031614156116d45760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016105c7565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61174c848484611238565b61175884848484611fb8565b610dde5760405162461bcd60e51b81526004016105c790612d01565b606061177f8261110c565b6000828152600a60205260408120805461179890612b79565b80601f01602080910402602001604051908101604052809291908181526020018280546117c490612b79565b80156118115780601f106117e657610100808354040283529160200191611811565b820191906000526020600020905b8154815290600101906020018083116117f457829003601f168201915b50505050509050600061182f60408051602081019091526000815290565b9050805160001415611842575092915050565b81511561187457808260405160200161185c929190612d53565b60405160208183030381529060405292505050919050565b611230846120b3565b60006001600160e01b03198216634a9e46fd60e11b1480610493575061049382612127565b61066883838361214c565b6001600160a01b0382166119035760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016105c7565b6000818152600260205260409020546001600160a01b0316156119685760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016105c7565b611974600083836118a2565b6001600160a01b038216600090815260036020526040812080546001929061199d908490612cb4565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000828152600260205260409020546001600160a01b0316611a765760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b60648201526084016105c7565b6000828152600a602090815260409091208251610668928401906124f8565b6012548151600691611aa691612cb4565b1115611ada5760405162461bcd60e51b815260206004820152600360248201526222981960e91b60448201526064016105c7565b6012548151600091611aeb91612cb4565b6001600160401b03811115611b0257611b02612757565b604051908082528060200260200182016040528015611b2b578160200160208202803683370190505b506012548351919250600091611b419190612cb4565b6001600160401b03811115611b5857611b58612757565b604051908082528060200260200182016040528015611b81578160200160208202803683370190505b5090506000805b8451811015611d975760006001600160a01b0316858281518110611bae57611bae612bb4565b6020026020010151600001516001600160a01b03161415611bf75760405162461bcd60e51b815260206004820152600360248201526245303360e81b60448201526064016105c7565b848181518110611c0957611c09612bb4565b6020026020010151602001516001600160601b031660001415611c545760405162461bcd60e51b8152602060048201526003602482015262114c0d60ea1b60448201526064016105c7565b848181518110611c6657611c66612bb4565b6020026020010151602001516001600160601b031682611c869190612cb4565b9150600e6000878152602001908152602001600020858281518110611cad57611cad612bb4565b6020908102919091018101518254600181018455600093845292829020815191909201516001600160601b0316600160a01b026001600160a01b03909116179101558451859082908110611d0357611d03612bb4565b602002602001015160000151848281518110611d2157611d21612bb4565b60200260200101906001600160a01b031690816001600160a01b031681525050848181518110611d5357611d53612bb4565b6020026020010151602001516001600160601b0316838281518110611d7a57611d7a612bb4565b602090810291909101015280611d8f81612be0565b915050611b88565b5060005b601254811015611f255760128181548110611db857611db8612bb4565b600091825260209091200154611dde90600160a01b90046001600160601b031683612cb4565b9150600e600087815260200190815260200160002060128281548110611e0657611e06612bb4565b6000918252602080832084546001810186559484529220910180549190920180546001600160a01b0319166001600160a01b03909216918217815591546001600160601b03600160a01b9182900416021790556012805482908110611e6d57611e6d612bb4565b60009182526020909120015484516001600160a01b0390911690859083908110611e9957611e99612bb4565b60200260200101906001600160a01b031690816001600160a01b03168152505060128181548110611ecc57611ecc612bb4565b9060005260206000200160000160149054906101000a90046001600160601b03166001600160601b0316838281518110611f0857611f08612bb4565b602090810291909101015280611f1d81612be0565b915050611d9b565b50612710811115611f5e5760405162461bcd60e51b815260206004820152600360248201526245303560e81b60448201526064016105c7565b6012548451600091611f6f91612cb4565b1115611fb1577f99aba1d63749cfd5ad1afda7c4663840924d54eb5f005bbbeadedc6ec13674b2858484604051611fa893929190612d82565b60405180910390a15b5050505050565b60006001600160a01b0384163b156120ab57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611ffc903390899088908890600401612de0565b6020604051808303816000875af1925050508015612037575060408051601f3d908101601f1916820190925261203491810190612e1d565b60015b612091573d808015612065576040519150601f19603f3d011682016040523d82523d6000602084013e61206a565b606091505b5080516120895760405162461bcd60e51b81526004016105c790612d01565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611230565b506001611230565b60606120be8261110c565b60006120d560408051602081019091526000815290565b905060008151116120f55760405180602001604052806000815250612120565b806120ff84612163565b604051602001612110929190612d53565b6040516020818303038152906040525b9392505050565b60006001600160e01b0319821663780e9d6360e01b1480610493575061049382612260565b6121578383836122b0565b610668836000836113df565b6060816121875750506040805180820190915260018152600360fc1b602082015290565b8160005b81156121b1578061219b81612be0565b91506121aa9050600a83612e50565b915061218b565b6000816001600160401b038111156121cb576121cb612757565b6040519080825280601f01601f1916602001820160405280156121f5576020820181803683370190505b5090505b84156112305761220a600183612c9d565b9150612217600a86612e64565b612222906030612cb4565b60f81b81838151811061223757612237612bb4565b60200101906001600160f81b031916908160001a905350612259600a86612e50565b94506121f9565b60006001600160e01b031982166380ac58cd60e01b148061229157506001600160e01b03198216635b5e139f60e01b145b8061049357506301ffc9a760e01b6001600160e01b0319831614610493565b6001600160a01b03831661230b5761230681600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b61232e565b816001600160a01b0316836001600160a01b03161461232e5761232e8382612368565b6001600160a01b0382166123455761066881612405565b826001600160a01b0316826001600160a01b0316146106685761066882826124b4565b6000600161237584610a91565b61237f9190612c9d565b6000838152600760205260409020549091508082146123d2576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061241790600190612c9d565b6000838152600960205260408120546008805493945090928490811061243f5761243f612bb4565b90600052602060002001549050806008838154811061246057612460612bb4565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061249857612498612e78565b6001900381819060005260206000200160009055905550505050565b60006124bf83610a91565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b82805461250490612b79565b90600052602060002090601f016020900481019282612526576000855561256c565b82601f1061253f57805160ff191683800117855561256c565b8280016001018555821561256c579182015b8281111561256c578251825591602001919060010190612551565b5061257892915061257c565b5090565b5b80821115612578576000815560010161257d565b6001600160e01b0319811681146110d857600080fd5b6000602082840312156125b957600080fd5b813561212081612591565b60005b838110156125df5781810151838201526020016125c7565b83811115610dde5750506000910152565b600081518084526126088160208601602086016125c4565b601f01601f19169290920160200192915050565b60208152600061212060208301846125f0565b60006020828403121561264157600080fd5b5035919050565b6001600160a01b03811681146110d857600080fd5b6000806040838503121561267057600080fd5b823561267b81612648565b946020939093013593505050565b600081518084526020808501945080840160005b838110156126b95781518752958201959082019060010161269d565b509495945050505050565b6020815260006121206020830184612689565b6000806000606084860312156126ec57600080fd5b83356126f781612648565b9250602084013561270781612648565b929592945050506040919091013590565b6000806040838503121561272b57600080fd5b50508035926020909101359150565b60006020828403121561274c57600080fd5b813561212081612648565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b038111828210171561278f5761278f612757565b60405290565b604051601f8201601f191681016001600160401b03811182821017156127bd576127bd612757565b604052919050565b60006001600160401b038311156127de576127de612757565b6127f1601f8401601f1916602001612795565b905082815283838301111561280557600080fd5b828260208301376000602084830101529392505050565b600082601f83011261282d57600080fd5b612120838335602085016127c5565b60006060828403121561284e57600080fd5b604051606081018181106001600160401b038211171561287057612870612757565b604052905080823560ff8116811461288757600080fd5b8082525060208301356020820152604083013560408201525092915050565b600080600080600060e086880312156128be57600080fd5b85356128c981612648565b94506020868101356001600160401b03808211156128e657600080fd5b6128f28a838b0161281c565b965060409150818901358181111561290957600080fd5b8901601f81018b1361291a57600080fd5b80358281111561292c5761292c612757565b61293a858260051b01612795565b81815260069190911b8201850190858101908d83111561295957600080fd5b928601925b828410156129b85785848f0312156129765760008081fd5b61297e61276d565b843561298981612648565b8152848801356001600160601b03811681146129a55760008081fd5b818901528252928501929086019061295e565b985050505060608901359250808311156129d157600080fd5b50506129df8882890161281c565b9250506129ef876080880161283c565b90509295509295909350565b60008060408385031215612a0e57600080fd5b8235612a1981612648565b915060208301358015158114612a2e57600080fd5b809150509250929050565b60008060008060808587031215612a4f57600080fd5b8435612a5a81612648565b93506020850135612a6a81612648565b92506040850135915060608501356001600160401b03811115612a8c57600080fd5b8501601f81018713612a9d57600080fd5b612aac878235602084016127c5565b91505092959194509250565b6020808252825182820181905260009190848201906040850190845b81811015612af95783516001600160a01b031683529284019291840191600101612ad4565b50909695505050505050565b60008060408385031215612b1857600080fd5b8235915060208301356001600160401b03811115612b3557600080fd5b612b418582860161281c565b9150509250929050565b60008060408385031215612b5e57600080fd5b8235612b6981612648565b91506020830135612a2e81612648565b600181811c90821680612b8d57607f821691505b60208210811415612bae57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415612bf457612bf4612bca565b5060010190565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b600060208284031215612c5b57600080fd5b815161212081612648565b60008351612c788184602088016125c4565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b600082821015612caf57612caf612bca565b500390565b60008219821115612cc757612cc7612bca565b500190565b848152608060208201526000612ce560808301866125f0565b6001600160a01b03949094166040830152506060015292915050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008351612d658184602088016125c4565b835190830190612d798183602088016125c4565b01949350505050565b6000606082018583526020606081850152818651808452608086019150828801935060005b81811015612dcc5784516001600160a01b031683529383019391830191600101612da7565b50508481036040860152610ce38187612689565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612e13908301846125f0565b9695505050505050565b600060208284031215612e2f57600080fd5b815161212081612591565b634e487b7160e01b600052601260045260246000fd5b600082612e5f57612e5f612e3a565b500490565b600082612e7357612e73612e3a565b500690565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220afff1b0a3360facad5bb759ea7570be2fa779e5069671928e0c3f8504230442b64736f6c634300080b0033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000005ce463b3de32741bef2551b656b8f1eb95d7ce6a00000000000000000000000000000000000000000000000000000000000000184772617669746f6e20744e465420436f6c6c656374696f6e00000000000000000000000000000000000000000000000000000000000000000000000000000004744e465400000000000000000000000000000000000000000000000000000000

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101da5760003560e01c806370a0823111610104578063b12ab40f116100a2578063dc2f0d0f11610071578063dc2f0d0f1461043c578063e58923311461044f578063e985e9c514610462578063f2fde38b1461047557600080fd5b8063b12ab40f146103e3578063b88d4fde146103f6578063b9c4d9fb14610409578063c87b56dd1461042957600080fd5b80638da5cb5b116100de5780638da5cb5b146103a457806390333dcf146103b557806395d89b41146103c8578063a22cb465146103d057600080fd5b806370a082311461037657806370b5aecb14610389578063715018a61461039c57600080fd5b806323b872dd1161017c5780634f6ccce71161014b5780634f6ccce714610314578063589a1743146103275780636308f1cd146103505780636352211e1461036357600080fd5b806323b872dd146102a15780632f745c59146102b45780633bd2ad8a146102c757806342842e0e1461030157600080fd5b8063095ea7b3116101b8578063095ea7b3146102475780630ebd4c7f1461025c57806314bb932f1461027c57806318160ddd1461028f57600080fd5b806301ffc9a7146101df57806306fdde0314610207578063081812fc1461021c575b600080fd5b6101f26101ed3660046125a7565b610488565b60405190151581526020015b60405180910390f35b61020f610499565b6040516101fe919061261c565b61022f61022a36600461262f565b61052b565b6040516001600160a01b0390911681526020016101fe565b61025a61025536600461265d565b610552565b005b61026f61026a36600461262f565b61066d565b6040516101fe91906126c4565b61020f61028a36600461262f565b61079e565b6008545b6040519081526020016101fe565b61025a6102af3660046126d7565b610838565b6102936102c236600461265d565b610869565b6102da6102d536600461262f565b6108ff565b604080516001600160a01b0390931683526001600160601b039091166020830152016101fe565b61025a61030f3660046126d7565b61093a565b61029361032236600461262f565b610955565b61022f61033536600461262f565b6010602052600090815260409020546001600160a01b031681565b6102da61035e366004612718565b6109e8565b61022f61037136600461262f565b610a31565b61029361038436600461273a565b610a91565b61025a61039736600461265d565b610b17565b61025a610c43565b600c546001600160a01b031661022f565b6102936103c33660046128a6565b610c57565b61020f610cef565b61025a6103de3660046129fb565b610cfe565b61026f6103f136600461273a565b610d0d565b61025a610404366004612a39565b610dac565b61041c61041736600461262f565b610de4565b6040516101fe9190612ab8565b61020f61043736600461262f565b610f11565b61020f61044a366004612b05565b610f1c565b61022f61045d36600461262f565b610f95565b6101f2610470366004612b4b565b611034565b61025a61048336600461273a565b611062565b6000610493826110db565b92915050565b6060600080546104a890612b79565b80601f01602080910402602001604051908101604052809291908181526020018280546104d490612b79565b80156105215780601f106104f657610100808354040283529160200191610521565b820191906000526020600020905b81548152906001019060200180831161050457829003601f168201915b5050505050905090565b60006105368261110c565b506000908152600460205260409020546001600160a01b031690565b600061055d82610a31565b9050806001600160a01b0316836001600160a01b031614156105d05760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b03821614806105ec57506105ec8133611034565b61065e5760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c000060648201526084016105c7565b610668838361116b565b505050565b6000818152600e60209081526040808320805482518185028101850190935280835260609493849084015b828210156106e757600084815260209081902060408051808201909152908401546001600160a01b0381168252600160a01b90046001600160601b031681830152825260019092019101610698565b505050509050600081516001600160401b0381111561070857610708612757565b604051908082528060200260200182016040528015610731578160200160208202803683370190505b50905060005b82518110156107965782818151811061075257610752612bb4565b6020026020010151602001516001600160601b031682828151811061077957610779612bb4565b60209081029190910101528061078e81612be0565b915050610737565b509392505050565b601160205260009081526040902080546107b790612b79565b80601f01602080910402602001604051908101604052809291908181526020018280546107e390612b79565b80156108305780601f1061080557610100808354040283529160200191610830565b820191906000526020600020905b81548152906001019060200180831161081357829003601f168201915b505050505081565b61084233826111d9565b61085e5760405162461bcd60e51b81526004016105c790612bfb565b610668838383611238565b600061087483610a91565b82106108d65760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016105c7565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6012818154811061090f57600080fd5b6000918252602090912001546001600160a01b0381169150600160a01b90046001600160601b031682565b61066883838360405180602001604052806000815250610dac565b600061096060085490565b82106109c35760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016105c7565b600882815481106109d6576109d6612bb4565b90600052602060002001549050919050565b600e6020528160005260406000208181548110610a0457600080fd5b6000918252602090912001546001600160a01b0381169250600160a01b90046001600160601b0316905082565b6000818152600260205260408120546001600160a01b0316806104935760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016105c7565b60006001600160a01b038216610afb5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b60648201526084016105c7565b506001600160a01b031660009081526003602052604090205490565b6040516331a9108f60e11b8152600481018290526000903090636352211e90602401602060405180830381865afa158015610b56573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b7a9190612c49565b9050336001600160a01b0382161480610bac5750610b978261052b565b6001600160a01b0316336001600160a01b0316145b80610bbc5750610bbc8133611034565b610c385760405162461bcd60e51b815260206004820152604160248201527f455243373231436f6e73756d61626c653a206368616e6765436f6e73756d657260448201527f2063616c6c6572206973206e6f74206f776e6572206e6f7220617070726f76656064820152601960fa1b608482015260a4016105c7565b6106688184846113df565b610c4b61143b565b610c556000611495565b565b6000808333604051602001610c6d929190612c66565b6040516020818303038152906040528051906020012090506000610c9182856114e7565b6013549091506001600160a01b03808316911614610cd75760405162461bcd60e51b815260206004820152600360248201526245303760e81b60448201526064016105c7565b610ce3888888886115a4565b98975050505050505050565b6060600180546104a890612b79565b610d09338383611672565b5050565b60606000610d1a83610a91565b90506000816001600160401b03811115610d3657610d36612757565b604051908082528060200260200182016040528015610d5f578160200160208202803683370190505b50905060005b82811015610796576000610d798683610869565b905080838381518110610d8e57610d8e612bb4565b60209081029190910101525080610da481612be0565b915050610d65565b610db633836111d9565b610dd25760405162461bcd60e51b81526004016105c790612bfb565b610dde84848484611741565b50505050565b6000818152600e60209081526040808320805482518185028101850190935280835260609493849084015b82821015610e5e57600084815260209081902060408051808201909152908401546001600160a01b0381168252600160a01b90046001600160601b031681830152825260019092019101610e0f565b505050509050600081516001600160401b03811115610e7f57610e7f612757565b604051908082528060200260200182016040528015610ea8578160200160208202803683370190505b50905060005b825181101561079657828181518110610ec957610ec9612bb4565b602002602001015160000151828281518110610ee757610ee7612bb4565b6001600160a01b039092166020928302919091019091015280610f0981612be0565b915050610eae565b606061049382611774565b60008281526010602052604090205460609083906001600160a01b03163314610f6d5760405162461bcd60e51b815260206004820152600360248201526245303160e81b60448201526064016105c7565b60008481526011602090815260409091208451610f8c928601906124f8565b50919392505050565b6000818152600260205260408120546001600160a01b03166110185760405162461bcd60e51b815260206004820152603660248201527f455243373231436f6e73756d61626c653a20636f6e73756d6572207175657279604482015275103337b9103737b732bc34b9ba32b73a103a37b5b2b760511b60648201526084016105c7565b506000908152600b60205260409020546001600160a01b031690565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61106a61143b565b6001600160a01b0381166110cf5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016105c7565b6110d881611495565b50565b60006110e68261187d565b806104935750506001600160e01b0319166000908152600d602052604090205460ff1690565b6000818152600260205260409020546001600160a01b03166110d85760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b60448201526064016105c7565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906111a082610a31565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000806111e583610a31565b9050806001600160a01b0316846001600160a01b0316148061120c575061120c8185611034565b806112305750836001600160a01b03166112258461052b565b6001600160a01b0316145b949350505050565b826001600160a01b031661124b82610a31565b6001600160a01b0316146112af5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b60648201526084016105c7565b6001600160a01b0382166113115760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016105c7565b61131c8383836118a2565b61132760008261116b565b6001600160a01b0383166000908152600360205260408120805460019290611350908490612c9d565b90915550506001600160a01b038216600090815260036020526040812080546001929061137e908490612cb4565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000818152600b602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917f42ef856c2602f37ce625d252830bed486c5c8e9a4de8aa36cc3d15f304eb662b91a4505050565b600c546001600160a01b03163314610c555760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016105c7565b600c80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c81018390526000908190605c0160408051601f198184030181528282528051602091820120865187830151888501516000875293860180865283905260ff9091169385019390935260608401929092526080830152915060019060a0016020604051602081039080840390855afa158015611591573d6000803e3d6000fd5b5050604051601f19015195945050505050565b60006115b4600f80546001019055565b60006115bf600f5490565b90506115cb86826118ad565b6115d581866119fb565b6000845111806115e6575060125415155b156115f5576115f58185611a95565b600081815260106020908152604080832080546001600160a01b0319163217905560118252909120845161162b928601906124f8565b507f6176817e3510ddc16574c36491141d9923690d0a754d9b1abeafec9acf8a4035818688426040516116619493929190612ccc565b60405180910390a195945050505050565b816001600160a01b0316836001600160a01b031614156116d45760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016105c7565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61174c848484611238565b61175884848484611fb8565b610dde5760405162461bcd60e51b81526004016105c790612d01565b606061177f8261110c565b6000828152600a60205260408120805461179890612b79565b80601f01602080910402602001604051908101604052809291908181526020018280546117c490612b79565b80156118115780601f106117e657610100808354040283529160200191611811565b820191906000526020600020905b8154815290600101906020018083116117f457829003601f168201915b50505050509050600061182f60408051602081019091526000815290565b9050805160001415611842575092915050565b81511561187457808260405160200161185c929190612d53565b60405160208183030381529060405292505050919050565b611230846120b3565b60006001600160e01b03198216634a9e46fd60e11b1480610493575061049382612127565b61066883838361214c565b6001600160a01b0382166119035760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016105c7565b6000818152600260205260409020546001600160a01b0316156119685760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016105c7565b611974600083836118a2565b6001600160a01b038216600090815260036020526040812080546001929061199d908490612cb4565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000828152600260205260409020546001600160a01b0316611a765760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b60648201526084016105c7565b6000828152600a602090815260409091208251610668928401906124f8565b6012548151600691611aa691612cb4565b1115611ada5760405162461bcd60e51b815260206004820152600360248201526222981960e91b60448201526064016105c7565b6012548151600091611aeb91612cb4565b6001600160401b03811115611b0257611b02612757565b604051908082528060200260200182016040528015611b2b578160200160208202803683370190505b506012548351919250600091611b419190612cb4565b6001600160401b03811115611b5857611b58612757565b604051908082528060200260200182016040528015611b81578160200160208202803683370190505b5090506000805b8451811015611d975760006001600160a01b0316858281518110611bae57611bae612bb4565b6020026020010151600001516001600160a01b03161415611bf75760405162461bcd60e51b815260206004820152600360248201526245303360e81b60448201526064016105c7565b848181518110611c0957611c09612bb4565b6020026020010151602001516001600160601b031660001415611c545760405162461bcd60e51b8152602060048201526003602482015262114c0d60ea1b60448201526064016105c7565b848181518110611c6657611c66612bb4565b6020026020010151602001516001600160601b031682611c869190612cb4565b9150600e6000878152602001908152602001600020858281518110611cad57611cad612bb4565b6020908102919091018101518254600181018455600093845292829020815191909201516001600160601b0316600160a01b026001600160a01b03909116179101558451859082908110611d0357611d03612bb4565b602002602001015160000151848281518110611d2157611d21612bb4565b60200260200101906001600160a01b031690816001600160a01b031681525050848181518110611d5357611d53612bb4565b6020026020010151602001516001600160601b0316838281518110611d7a57611d7a612bb4565b602090810291909101015280611d8f81612be0565b915050611b88565b5060005b601254811015611f255760128181548110611db857611db8612bb4565b600091825260209091200154611dde90600160a01b90046001600160601b031683612cb4565b9150600e600087815260200190815260200160002060128281548110611e0657611e06612bb4565b6000918252602080832084546001810186559484529220910180549190920180546001600160a01b0319166001600160a01b03909216918217815591546001600160601b03600160a01b9182900416021790556012805482908110611e6d57611e6d612bb4565b60009182526020909120015484516001600160a01b0390911690859083908110611e9957611e99612bb4565b60200260200101906001600160a01b031690816001600160a01b03168152505060128181548110611ecc57611ecc612bb4565b9060005260206000200160000160149054906101000a90046001600160601b03166001600160601b0316838281518110611f0857611f08612bb4565b602090810291909101015280611f1d81612be0565b915050611d9b565b50612710811115611f5e5760405162461bcd60e51b815260206004820152600360248201526245303560e81b60448201526064016105c7565b6012548451600091611f6f91612cb4565b1115611fb1577f99aba1d63749cfd5ad1afda7c4663840924d54eb5f005bbbeadedc6ec13674b2858484604051611fa893929190612d82565b60405180910390a15b5050505050565b60006001600160a01b0384163b156120ab57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611ffc903390899088908890600401612de0565b6020604051808303816000875af1925050508015612037575060408051601f3d908101601f1916820190925261203491810190612e1d565b60015b612091573d808015612065576040519150601f19603f3d011682016040523d82523d6000602084013e61206a565b606091505b5080516120895760405162461bcd60e51b81526004016105c790612d01565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611230565b506001611230565b60606120be8261110c565b60006120d560408051602081019091526000815290565b905060008151116120f55760405180602001604052806000815250612120565b806120ff84612163565b604051602001612110929190612d53565b6040516020818303038152906040525b9392505050565b60006001600160e01b0319821663780e9d6360e01b1480610493575061049382612260565b6121578383836122b0565b610668836000836113df565b6060816121875750506040805180820190915260018152600360fc1b602082015290565b8160005b81156121b1578061219b81612be0565b91506121aa9050600a83612e50565b915061218b565b6000816001600160401b038111156121cb576121cb612757565b6040519080825280601f01601f1916602001820160405280156121f5576020820181803683370190505b5090505b84156112305761220a600183612c9d565b9150612217600a86612e64565b612222906030612cb4565b60f81b81838151811061223757612237612bb4565b60200101906001600160f81b031916908160001a905350612259600a86612e50565b94506121f9565b60006001600160e01b031982166380ac58cd60e01b148061229157506001600160e01b03198216635b5e139f60e01b145b8061049357506301ffc9a760e01b6001600160e01b0319831614610493565b6001600160a01b03831661230b5761230681600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b61232e565b816001600160a01b0316836001600160a01b03161461232e5761232e8382612368565b6001600160a01b0382166123455761066881612405565b826001600160a01b0316826001600160a01b0316146106685761066882826124b4565b6000600161237584610a91565b61237f9190612c9d565b6000838152600760205260409020549091508082146123d2576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b60085460009061241790600190612c9d565b6000838152600960205260408120546008805493945090928490811061243f5761243f612bb4565b90600052602060002001549050806008838154811061246057612460612bb4565b600091825260208083209091019290925582815260099091526040808220849055858252812055600880548061249857612498612e78565b6001900381819060005260206000200160009055905550505050565b60006124bf83610a91565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b82805461250490612b79565b90600052602060002090601f016020900481019282612526576000855561256c565b82601f1061253f57805160ff191683800117855561256c565b8280016001018555821561256c579182015b8281111561256c578251825591602001919060010190612551565b5061257892915061257c565b5090565b5b80821115612578576000815560010161257d565b6001600160e01b0319811681146110d857600080fd5b6000602082840312156125b957600080fd5b813561212081612591565b60005b838110156125df5781810151838201526020016125c7565b83811115610dde5750506000910152565b600081518084526126088160208601602086016125c4565b601f01601f19169290920160200192915050565b60208152600061212060208301846125f0565b60006020828403121561264157600080fd5b5035919050565b6001600160a01b03811681146110d857600080fd5b6000806040838503121561267057600080fd5b823561267b81612648565b946020939093013593505050565b600081518084526020808501945080840160005b838110156126b95781518752958201959082019060010161269d565b509495945050505050565b6020815260006121206020830184612689565b6000806000606084860312156126ec57600080fd5b83356126f781612648565b9250602084013561270781612648565b929592945050506040919091013590565b6000806040838503121561272b57600080fd5b50508035926020909101359150565b60006020828403121561274c57600080fd5b813561212081612648565b634e487b7160e01b600052604160045260246000fd5b604080519081016001600160401b038111828210171561278f5761278f612757565b60405290565b604051601f8201601f191681016001600160401b03811182821017156127bd576127bd612757565b604052919050565b60006001600160401b038311156127de576127de612757565b6127f1601f8401601f1916602001612795565b905082815283838301111561280557600080fd5b828260208301376000602084830101529392505050565b600082601f83011261282d57600080fd5b612120838335602085016127c5565b60006060828403121561284e57600080fd5b604051606081018181106001600160401b038211171561287057612870612757565b604052905080823560ff8116811461288757600080fd5b8082525060208301356020820152604083013560408201525092915050565b600080600080600060e086880312156128be57600080fd5b85356128c981612648565b94506020868101356001600160401b03808211156128e657600080fd5b6128f28a838b0161281c565b965060409150818901358181111561290957600080fd5b8901601f81018b1361291a57600080fd5b80358281111561292c5761292c612757565b61293a858260051b01612795565b81815260069190911b8201850190858101908d83111561295957600080fd5b928601925b828410156129b85785848f0312156129765760008081fd5b61297e61276d565b843561298981612648565b8152848801356001600160601b03811681146129a55760008081fd5b818901528252928501929086019061295e565b985050505060608901359250808311156129d157600080fd5b50506129df8882890161281c565b9250506129ef876080880161283c565b90509295509295909350565b60008060408385031215612a0e57600080fd5b8235612a1981612648565b915060208301358015158114612a2e57600080fd5b809150509250929050565b60008060008060808587031215612a4f57600080fd5b8435612a5a81612648565b93506020850135612a6a81612648565b92506040850135915060608501356001600160401b03811115612a8c57600080fd5b8501601f81018713612a9d57600080fd5b612aac878235602084016127c5565b91505092959194509250565b6020808252825182820181905260009190848201906040850190845b81811015612af95783516001600160a01b031683529284019291840191600101612ad4565b50909695505050505050565b60008060408385031215612b1857600080fd5b8235915060208301356001600160401b03811115612b3557600080fd5b612b418582860161281c565b9150509250929050565b60008060408385031215612b5e57600080fd5b8235612b6981612648565b91506020830135612a2e81612648565b600181811c90821680612b8d57607f821691505b60208210811415612bae57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6000600019821415612bf457612bf4612bca565b5060010190565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b600060208284031215612c5b57600080fd5b815161212081612648565b60008351612c788184602088016125c4565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b600082821015612caf57612caf612bca565b500390565b60008219821115612cc757612cc7612bca565b500190565b848152608060208201526000612ce560808301866125f0565b6001600160a01b03949094166040830152506060015292915050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60008351612d658184602088016125c4565b835190830190612d798183602088016125c4565b01949350505050565b6000606082018583526020606081850152818651808452608086019150828801935060005b81811015612dcc5784516001600160a01b031683529383019391830191600101612da7565b50508481036040860152610ce38187612689565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612e13908301846125f0565b9695505050505050565b600060208284031215612e2f57600080fd5b815161212081612591565b634e487b7160e01b600052601260045260246000fd5b600082612e5f57612e5f612e3a565b500490565b600082612e7357612e73612e3a565b500690565b634e487b7160e01b600052603160045260246000fdfea2646970667358221220afff1b0a3360facad5bb759ea7570be2fa779e5069671928e0c3f8504230442b64736f6c634300080b0033

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

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000005ce463b3de32741bef2551b656b8f1eb95d7ce6a00000000000000000000000000000000000000000000000000000000000000184772617669746f6e20744e465420436f6c6c656374696f6e00000000000000000000000000000000000000000000000000000000000000000000000000000004744e465400000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _tokenName (string): Graviton tNFT Collection
Arg [1] : _tokenSymbol (string): tNFT
Arg [2] : _signer (address): 0x5Ce463b3de32741bEf2551B656B8F1eb95d7cE6a

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 0000000000000000000000005ce463b3de32741bef2551b656b8f1eb95d7ce6a
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000018
Arg [4] : 4772617669746f6e20744e465420436f6c6c656374696f6e0000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [6] : 744e465400000000000000000000000000000000000000000000000000000000


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

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