Contract 0xb71c4a9c6bb7ae2379a20437596bec24a35931d2 2

Contract Overview

Balance:
0 HT

HT Value:
$0.00

Token:
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x5929c5faddcd649b253c8d54cbd146fcfe02c9b5497e9b26ea1bee5617101575Burn118693492022-01-18 10:34:391 min ago0x9ab363aee708075b0e19bf0c80740b68ac493c4b IN 0xb71c4a9c6bb7ae2379a20437596bec24a35931d20 HT0.000165629252.25
0xc83ed315b92c85f607c44a4694ebce0664391c922f4b8965a09b96419d8e5a48Approve118693472022-01-18 10:34:331 min ago0xa3a236825495ae6063898d3fdd8d6069034fc6a6 IN 0xb71c4a9c6bb7ae2379a20437596bec24a35931d20 HT0.000110054252.25
0x6f665b8650e97da588f415eba8231bcfdee9005b869571eb48d850dbfa64c263Withdraw118693402022-01-18 10:34:121 min ago0x9ab363aee708075b0e19bf0c80740b68ac493c4b IN 0xb71c4a9c6bb7ae2379a20437596bec24a35931d20 HT0.00036878852.25
0x98a378b1a69bb41c610ab4c3dea31e83ba489f8dd048019a058bb4a451bba52cWithdraw118693352022-01-18 10:33:571 min ago0x9ab363aee708075b0e19bf0c80740b68ac493c4b IN 0xb71c4a9c6bb7ae2379a20437596bec24a35931d20 HT0.00036876152.25
0x2acd60717bcbe42b8d842c61b72519b3fba714eff94760c63e38868037515ac6Withdraw118692902022-01-18 10:31:424 mins ago0x9ab363aee708075b0e19bf0c80740b68ac493c4b IN 0xb71c4a9c6bb7ae2379a20437596bec24a35931d20 HT0.00036876152.25
0x94f078be6f9c14ddd62a7c7c0ddbabe83af0e0058336201d3c9724cf75715976Withdraw118692782022-01-18 10:31:064 mins ago0x9ab363aee708075b0e19bf0c80740b68ac493c4b IN 0xb71c4a9c6bb7ae2379a20437596bec24a35931d20 HT0.00036248852.25
0x7fb0dccbba91a6c5982bbcc7ef0b967fa49669a25fedd8b8c4c2012330da7479Withdraw118692632022-01-18 10:30:215 mins ago0x9ab363aee708075b0e19bf0c80740b68ac493c4b IN 0xb71c4a9c6bb7ae2379a20437596bec24a35931d20 HT0.00036878852.25
0x8afe430083356d9593f265861f99f28d545229dd1f2ae879c8a71fb8267dbd6bBurn118692252022-01-18 10:28:277 mins ago0x9ab363aee708075b0e19bf0c80740b68ac493c4b IN 0xb71c4a9c6bb7ae2379a20437596bec24a35931d20 HT0.00014206052.25
0xc923daa7bd7783dc3594cd26edae1b3f616188de2af923708895f58edca6dc94Approve118692232022-01-18 10:28:217 mins ago0xeb478b90959e58a944f423cfb51981c4b19e280b IN 0xb71c4a9c6bb7ae2379a20437596bec24a35931d20 HT0.000110054252.25
0x808bcf17cea55ac28c19a432484d73203f65c9b4887bd0c4b9d6cc7de4f52cdfWithdraw118691992022-01-18 10:27:098 mins ago0x9ab363aee708075b0e19bf0c80740b68ac493c4b IN 0xb71c4a9c6bb7ae2379a20437596bec24a35931d20 HT0.00036878852.25
0x1803e8245ab9e37dcc8794c2734a54355751cff5aa0544f6748850d98b2e3b10Withdraw118691582022-01-18 10:25:0610 mins ago0x9ab363aee708075b0e19bf0c80740b68ac493c4b IN 0xb71c4a9c6bb7ae2379a20437596bec24a35931d20 HT0.00036243452.25
0x1f62690ddc1e184c89cdda8089e9f4faec398fa0f34bd10335b7a71208b1be45Withdraw118690832022-01-18 10:21:2114 mins ago0x9ab363aee708075b0e19bf0c80740b68ac493c4b IN 0xb71c4a9c6bb7ae2379a20437596bec24a35931d20 HT0.00036248852.25
0x0348b2d0fe6cab6756061c7ad7237fd955cdf6921825532ba7da50c1844f8e6aBurn118690662022-01-18 10:20:3015 mins ago0x9ab363aee708075b0e19bf0c80740b68ac493c4b IN 0xb71c4a9c6bb7ae2379a20437596bec24a35931d20 HT0.00014710052.25
0xdde336ca11e772fcb7337572dccf3410602fde10795014380a0775716a9969f2Approve118690632022-01-18 10:20:2115 mins ago0x536de3a9d2c243e097f627d640a45d99b266c4df IN 0xb71c4a9c6bb7ae2379a20437596bec24a35931d20 HT0.000110054252.25
0xffacfb204942bdee4007fa2883bf98b98fbc4411c68823fdce4f20e3a51ebab3Withdraw118690422022-01-18 10:19:1816 mins ago0x9ab363aee708075b0e19bf0c80740b68ac493c4b IN 0xb71c4a9c6bb7ae2379a20437596bec24a35931d20 HT0.00036248852.25
0x1a56898749fa5e9c4bce064bb70ebc9affb1690f5ca7cbee60186372565bef05Withdraw118690032022-01-18 10:17:2118 mins ago0x9ab363aee708075b0e19bf0c80740b68ac493c4b IN 0xb71c4a9c6bb7ae2379a20437596bec24a35931d20 HT0.00036246152.25
0xc86c8f0ae98b68aa4ae1d9f2bbb1a4734a16c1c09c999a218d5c1f36beba867eWithdraw118689842022-01-18 10:16:2419 mins ago0x9ab363aee708075b0e19bf0c80740b68ac493c4b IN 0xb71c4a9c6bb7ae2379a20437596bec24a35931d20 HT0.00036881552.25
0x8f0af25ca3955a588b204947532dbb79769e67800fd33457ab524e924ac27c2fWithdraw118689372022-01-18 10:14:0321 mins ago0x9ab363aee708075b0e19bf0c80740b68ac493c4b IN 0xb71c4a9c6bb7ae2379a20437596bec24a35931d20 HT0.00036881552.25
0x90e0057b373ae0d17e509cdd748dd443cfb2ad621b65b73ef2a81335d9fc2b11Burn118689022022-01-18 10:12:1823 mins ago0x9ab363aee708075b0e19bf0c80740b68ac493c4b IN 0xb71c4a9c6bb7ae2379a20437596bec24a35931d20 HT0.00014206052.25
0x2bab387f63ef6f6b1cc1864b93ef779e3c47ccf363f4b549482c8951a5977b14Withdraw118689022022-01-18 10:12:1823 mins ago0x9ab363aee708075b0e19bf0c80740b68ac493c4b IN 0xb71c4a9c6bb7ae2379a20437596bec24a35931d20 HT0.00036246152.25
0x84d3d8522abec34f45c6e4329f62623c1162dbc1bf47c0f74af47f176578c5f5Burn118689002022-01-18 10:12:1223 mins ago0x9ab363aee708075b0e19bf0c80740b68ac493c4b IN 0xb71c4a9c6bb7ae2379a20437596bec24a35931d20 HT0.000160589252.25
0xed612b1e9cb3cf4993f0e16d85f9098e64534a15df807fdc078e7b80a199db36Approve118688992022-01-18 10:12:0923 mins ago0x20c1d3107506408ed3fbefc5099eca3e45207a51 IN 0xb71c4a9c6bb7ae2379a20437596bec24a35931d20 HT0.000110054252.25
0x7a68cd74e217859d7486af8d42cc46f50ec6a49fe913492b6bef123151b26ee1Approve118688962022-01-18 10:12:0023 mins ago0x20c1d3107506408ed3fbefc5099eca3e45207a51 IN 0xb71c4a9c6bb7ae2379a20437596bec24a35931d20 HT0.000110054252.25
0xb2655955501351c0e8f8d2de05c96ef3bc002dec9936c110925b64ffb69bd07cBurn118688922022-01-18 10:11:4824 mins ago0x9ab363aee708075b0e19bf0c80740b68ac493c4b IN 0xb71c4a9c6bb7ae2379a20437596bec24a35931d20 HT0.000160589252.25
0x71d1c269a43640a082e7beaa8f53ede895c6dcc3ae00092612e9b1a2b551d47dBurn118688902022-01-18 10:11:4224 mins ago0x9ab363aee708075b0e19bf0c80740b68ac493c4b IN 0xb71c4a9c6bb7ae2379a20437596bec24a35931d20 HT0.000165629252.25
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MetaWorld

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
Yes with 1337 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 13 : MetaWorld.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8;
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

/**
 * @dev ERC721 token with storage based token URI management.
 */
abstract contract ERC721URIStorage is ERC721Enumerable {
    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) {
        require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token");

        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 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 override {
        super._burn(tokenId);

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


contract MetaWorld is ERC721URIStorage, Ownable {

    string private baseURI;

    address public operator;

    uint private unlocked = 1;

    address public withdrawSigner;

    mapping(address => uint256) public nonce;

    event Withdraw(address _user, uint256 _nonce, uint256[] _mpIds);

    modifier _lock() {
        require(unlocked == 1, 'Err: LOCKED');
        unlocked = 0;
        _;
        unlocked = 1;
    }

    modifier _onlyOperator() {
        require(operator == _msgSender(), "Operator: caller is not the operator");
        _;
    }

    modifier _onlyOperatorOrOwner() {
        require(operator == _msgSender() || owner() == _msgSender(), "Operator: caller is not the operator or owner");
        _;
    }

    constructor(string memory _name, string memory _symbol, address _withdrawSigner) ERC721(_name, _symbol) {
        withdrawSigner = _withdrawSigner;
    }

    function mint(address _to, uint256 _tokenId) external onlyOwner{
        _mint(_to, _tokenId);
    }

    function operatorMint(address _to, uint256[] memory _ids) external _onlyOperator {
        for(uint256 i = 0; i < _ids.length; i++){
            _mint(_to, _ids[i]);
        }
    }

    function withdraw(address _user, uint256[] calldata _ids, uint256 _nonce, uint8 _v, bytes32 _r, bytes32 _s) external _lock {

        require(_nonce == nonce[_user], "Err: nonce error");
        bytes32 _h = keccak256(abi.encodePacked(_user, _ids, _nonce));
        require(ecrecover(_h,_v,_r,_s) == withdrawSigner, "Err: Sign Error");

        nonce[_user]++;
        for(uint256 i = 0; i < _ids.length; i++){
            _mint(_user, _ids[i]);
        }

        emit Withdraw(_user, _nonce, _ids);
    }

    function burn(uint256 _tokenId) external {
        require(_isApprovedOrOwner(msg.sender, _tokenId), "caller is not owner nor approved");
        _burn(_tokenId);
    }

    function setWithdrawSigner(address _signer) public onlyOwner {
        withdrawSigner = _signer;
    }

    function setBaseUri(string memory _baseURIArg) external onlyOwner {
        baseURI = _baseURIArg;
    }

    function setOperator(address _operator) external onlyOwner {
        operator = _operator;
    }

    function setTokenURI(uint256 tokenId, string memory _tokenURI) external _onlyOperatorOrOwner {
        _setTokenURI(tokenId, _tokenURI);
    }

    function _setBaseURI(string memory baseURI_) internal virtual {
        baseURI = baseURI_;
    }

    function _baseURI() internal view virtual override returns (string memory) {
        return baseURI;
    }

    //获取用户NFT列表
    function getUserNftList(address _addr) public view returns(uint256[] memory){
        uint256 _len = ERC721.balanceOf(_addr);
        uint256[] memory _list = new uint256[](_len);
        for(uint256 i = 0; i < _len; i++){
            _list[i] = tokenOfOwnerByIndex(_addr, i);
        }
        return _list;
    }

    //迭代获取用户NFT列表
    function iterationUserNftList(address _addr, uint256 _start, uint256 _end) public view returns(uint256[] memory){
        uint256 _len = ERC721.balanceOf(_addr);
        if(_len < _end ){
            _end = _len;
        }
        uint256[] memory _list = new uint256[](_end - _start);
        for(uint256 i = _start; i < _end; i++){
            _list[i-_start] = tokenOfOwnerByIndex(_addr, i);
        }
        return _list;
    }
}

File 2 of 13 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 4 of 13 : ERC721.sol
// SPDX-License-Identifier: MIT

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: balance query for the zero address");
        return _balances[owner];
    }

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

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

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

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual 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 owner nor approved for all"
        );

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

File 5 of 13 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 6 of 13 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 7 of 13 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 8 of 13 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 9 of 13 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

        (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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 10 of 13 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 11 of 13 : Strings.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

pragma solidity ^0.8.0;

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

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"_name","type":"string"},{"internalType":"string","name":"_symbol","type":"string"},{"internalType":"address","name":"_withdrawSigner","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":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"_user","type":"address"},{"indexed":false,"internalType":"uint256","name":"_nonce","type":"uint256"},{"indexed":false,"internalType":"uint256[]","name":"_mpIds","type":"uint256[]"}],"name":"Withdraw","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":"uint256","name":"_tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"getUserNftList","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"},{"internalType":"uint256","name":"_start","type":"uint256"},{"internalType":"uint256","name":"_end","type":"uint256"}],"name":"iterationUserNftList","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"nonce","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"operator","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_to","type":"address"},{"internalType":"uint256[]","name":"_ids","type":"uint256[]"}],"name":"operatorMint","outputs":[],"stateMutability":"nonpayable","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":"string","name":"_baseURIArg","type":"string"}],"name":"setBaseUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_operator","type":"address"}],"name":"setOperator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"_tokenURI","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_signer","type":"address"}],"name":"setWithdrawSigner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_user","type":"address"},{"internalType":"uint256[]","name":"_ids","type":"uint256[]"},{"internalType":"uint256","name":"_nonce","type":"uint256"},{"internalType":"uint8","name":"_v","type":"uint8"},{"internalType":"bytes32","name":"_r","type":"bytes32"},{"internalType":"bytes32","name":"_s","type":"bytes32"}],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdrawSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60806040526001600e553480156200001657600080fd5b506040516200304738038062003047833981016040819052620000399162000255565b8251839083906200005290600090602085019062000104565b5080516200006890600190602084019062000104565b505050620000856200007f620000ae60201b60201c565b620000b2565b600f80546001600160a01b0319166001600160a01b039290921691909117905550620003319050565b3390565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200011290620002de565b90600052602060002090601f01602090048101928262000136576000855562000181565b82601f106200015157805160ff191683800117855562000181565b8280016001018555821562000181579182015b828111156200018157825182559160200191906001019062000164565b506200018f92915062000193565b5090565b5b808211156200018f576000815560010162000194565b600082601f830112620001bb578081fd5b81516001600160401b0380821115620001d857620001d86200031b565b6040516020601f8401601f19168201810183811183821017156200020057620002006200031b565b604052838252858401810187101562000217578485fd5b8492505b838310156200023a57858301810151828401820152918201916200021b565b838311156200024b57848185840101525b5095945050505050565b6000806000606084860312156200026a578283fd5b83516001600160401b038082111562000281578485fd5b6200028f87838801620001aa565b94506020860151915080821115620002a5578384fd5b50620002b486828701620001aa565b604086015190935090506001600160a01b0381168114620002d3578182fd5b809150509250925092565b600281046001821680620002f357607f821691505b602082108114156200031557634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052604160045260246000fd5b612d0680620003416000396000f3fe608060405234801561001057600080fd5b50600436106101f05760003560e01c80636352211e1161010f578063a0bcfc7f116100a2578063c87b56dd11610071578063c87b56dd14610408578063d73469a61461041b578063e985e9c51461042e578063f2fde38b14610441576101f0565b8063a0bcfc7f146103bc578063a22cb465146103cf578063b3ab15fb146103e2578063b88d4fde146103f5576101f0565b80637ccbfe7c116100de5780637ccbfe7c146103795780638da5cb5b1461038c57806395d89b41146103945780639e8f9de41461039c576101f0565b80636352211e1461033857806370a082311461034b57806370ae92d21461035e578063715018a614610371576101f0565b80632f745c59116101875780634e277ea2116101565780634e277ea2146103025780634f6ccce7146103155780634f8c3b3614610328578063570ca73514610330576101f0565b80632f745c59146102b657806340c10f19146102c957806342842e0e146102dc57806342966c68146102ef576101f0565b806314bb88f0116101c357806314bb88f014610268578063162094c41461027b57806318160ddd1461028e57806323b872dd146102a3576101f0565b806301ffc9a7146101f557806306fdde031461021e578063081812fc14610233578063095ea7b314610253575b600080fd5b61020861020336600461205c565b610454565b60405161021591906122f4565b60405180910390f35b61022661049a565b604051610215919061231d565b6102466102413660046120c7565b61052c565b60405161021591906121f6565b610266610261366004612001565b610578565b005b610266610276366004611e5f565b610610565b6102666102893660046120df565b6107e4565b610296610851565b6040516102159190612b6c565b6102666102b1366004611dab565b610857565b6102966102c4366004612001565b61088f565b6102666102d7366004612001565b6108e1565b6102666102ea366004611dab565b61092a565b6102666102fd3660046120c7565b610945565b610266610310366004611f0d565b610977565b6102966103233660046120c7565b6109fb565b610246610a56565b610246610a65565b6102466103463660046120c7565b610a74565b610296610359366004611d5f565b610aa9565b61029661036c366004611d5f565b610aed565b610266610aff565b610266610387366004611d5f565b610b4a565b610246610bab565b610226610bba565b6103af6103aa366004611d5f565b610bc9565b60405161021591906122b0565b6102666103ca366004612094565b610c87565b6102666103dd366004611fc7565b610cd9565b6102666103f0366004611d5f565b610da7565b610266610403366004611de6565b610e08565b6102266104163660046120c7565b610e47565b6103af61042936600461202a565b610f68565b61020861043c366004611d79565b611045565b61026661044f366004611d5f565b611073565b60006001600160e01b031982167f780e9d630000000000000000000000000000000000000000000000000000000014806104925750610492826110e1565b90505b919050565b6060600080546104a990612c0e565b80601f01602080910402602001604051908101604052809291908181526020018280546104d590612c0e565b80156105225780601f106104f757610100808354040283529160200191610522565b820191906000526020600020905b81548152906001019060200180831161050557829003601f168201915b5050505050905090565b600061053782611153565b61055c5760405162461bcd60e51b8152600401610553906127e3565b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061058382610a74565b9050806001600160a01b0316836001600160a01b031614156105b75760405162461bcd60e51b815260040161055390612964565b806001600160a01b03166105c9611170565b6001600160a01b031614806105e557506105e58161043c611170565b6106015760405162461bcd60e51b8152600401610553906125a6565b61060b8383611174565b505050565b600e546001146106325760405162461bcd60e51b815260040161055390612330565b6000600e8190556001600160a01b038816815260106020526040902054841461066d5760405162461bcd60e51b815260040161055390612a1e565b6000878787876040516020016106869493929190612150565b60408051601f198184030181528282528051602091820120600f5460008552939091019182905292506001600160a01b03909116906001906106cf9084908890889088906122ff565b6020604051602081039080840390855afa1580156106f1573d6000803e3d6000fd5b505050602060405103516001600160a01b0316146107215760405162461bcd60e51b81526004016105539061271a565b6001600160a01b038816600090815260106020526040812080549161074583612c49565b919050555060005b86811015610797576107858989898481811061077957634e487b7160e01b600052603260045260246000fd5b905060200201356111e2565b8061078f81612c49565b91505061074d565b507faef68853d1f7f9e4e5fe02896078a87a319c7b257208dac49346c8f03b36c685888689896040516107cd9493929190612246565b60405180910390a150506001600e55505050505050565b6107ec611170565b600d546001600160a01b0390811691161480610827575061080b611170565b6001600160a01b031661081c610bab565b6001600160a01b0316145b6108435760405162461bcd60e51b815260040161055390612ab2565b61084d82826112c1565b5050565b60085490565b610868610862611170565b82611305565b6108845760405162461bcd60e51b8152600401610553906129c1565b61060b838383611382565b600061089a83610aa9565b82106108b85760405162461bcd60e51b815260040161055390612367565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6108e9611170565b6001600160a01b03166108fa610bab565b6001600160a01b0316146109205760405162461bcd60e51b815260040161055390612840565b61084d82826111e2565b61060b83838360405180602001604052806000815250610e08565b61094f3382611305565b61096b5760405162461bcd60e51b81526004016105539061292f565b610974816114af565b50565b61097f611170565b600d546001600160a01b039081169116146109ac5760405162461bcd60e51b815260040161055390612b0f565b60005b815181101561060b576109e9838383815181106109dc57634e487b7160e01b600052603260045260246000fd5b60200260200101516111e2565b806109f381612c49565b9150506109af565b6000610a05610851565b8210610a235760405162461bcd60e51b815260040161055390612a55565b60088281548110610a4457634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b600f546001600160a01b031681565b600d546001600160a01b031681565b6000818152600260205260408120546001600160a01b0316806104925760405162461bcd60e51b815260040161055390612660565b60006001600160a01b038216610ad15760405162461bcd60e51b815260040161055390612603565b506001600160a01b031660009081526003602052604090205490565b60106020526000908152604090205481565b610b07611170565b6001600160a01b0316610b18610bab565b6001600160a01b031614610b3e5760405162461bcd60e51b815260040161055390612840565b610b4860006114ef565b565b610b52611170565b6001600160a01b0316610b63610bab565b6001600160a01b031614610b895760405162461bcd60e51b815260040161055390612840565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b600b546001600160a01b031690565b6060600180546104a990612c0e565b60606000610bd683610aa9565b905060008167ffffffffffffffff811115610c0157634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610c2a578160200160208202803683370190505b50905060005b82811015610c7f57610c42858261088f565b828281518110610c6257634e487b7160e01b600052603260045260246000fd5b602090810291909101015280610c7781612c49565b915050610c30565b509392505050565b610c8f611170565b6001600160a01b0316610ca0610bab565b6001600160a01b031614610cc65760405162461bcd60e51b815260040161055390612840565b805161084d90600c906020840190611bef565b610ce1611170565b6001600160a01b0316826001600160a01b03161415610d125760405162461bcd60e51b815260040161055390612512565b8060056000610d1f611170565b6001600160a01b03908116825260208083019390935260409182016000908120918716808252919093529120805460ff191692151592909217909155610d63611170565b6001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051610d9b91906122f4565b60405180910390a35050565b610daf611170565b6001600160a01b0316610dc0610bab565b6001600160a01b031614610de65760405162461bcd60e51b815260040161055390612840565b600d80546001600160a01b0319166001600160a01b0392909216919091179055565b610e19610e13611170565b83611305565b610e355760405162461bcd60e51b8152600401610553906129c1565b610e4184848484611541565b50505050565b6060610e5282611153565b610e6e5760405162461bcd60e51b815260040161055390612786565b6000828152600a602052604081208054610e8790612c0e565b80601f0160208091040260200160405190810160405280929190818152602001828054610eb390612c0e565b8015610f005780601f10610ed557610100808354040283529160200191610f00565b820191906000526020600020905b815481529060010190602001808311610ee357829003601f168201915b505050505090506000610f11611574565b9050805160001415610f2557509050610495565b815115610f57578082604051602001610f3f9291906121c7565b60405160208183030381529060405292505050610495565b610f6084611583565b949350505050565b60606000610f7585610aa9565b905082811015610f83578092505b6000610f8f8585612bcb565b67ffffffffffffffff811115610fb557634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015610fde578160200160208202803683370190505b509050845b8481101561103b57610ff5878261088f565b826110008884612bcb565b8151811061101e57634e487b7160e01b600052603260045260246000fd5b60209081029190910101528061103381612c49565b915050610fe3565b5095945050505050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b61107b611170565b6001600160a01b031661108c610bab565b6001600160a01b0316146110b25760405162461bcd60e51b815260040161055390612840565b6001600160a01b0381166110d85760405162461bcd60e51b815260040161055390612421565b610974816114ef565b60006001600160e01b031982167f80ac58cd00000000000000000000000000000000000000000000000000000000148061114457506001600160e01b031982167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610492575061049282611606565b6000908152600260205260409020546001600160a01b0316151590565b3390565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906111a982610a74565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b0382166112085760405162461bcd60e51b815260040161055390612751565b61121181611153565b1561122e5760405162461bcd60e51b81526004016105539061247e565b61123a60008383611638565b6001600160a01b0382166000908152600360205260408120805460019290611263908490612b9f565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6112ca82611153565b6112e65760405162461bcd60e51b8152600401610553906126bd565b6000828152600a60209081526040909120825161060b92840190611bef565b600061131082611153565b61132c5760405162461bcd60e51b815260040161055390612549565b600061133783610a74565b9050806001600160a01b0316846001600160a01b031614806113725750836001600160a01b03166113678461052c565b6001600160a01b0316145b80610f605750610f608185611045565b826001600160a01b031661139582610a74565b6001600160a01b0316146113bb5760405162461bcd60e51b815260040161055390612875565b6001600160a01b0382166113e15760405162461bcd60e51b8152600401610553906124b5565b6113ec838383611638565b6113f7600082611174565b6001600160a01b0383166000908152600360205260408120805460019290611420908490612bcb565b90915550506001600160a01b038216600090815260036020526040812080546001929061144e908490612b9f565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6114b8816116c1565b6000818152600a6020526040902080546114d190612c0e565b159050610974576000818152600a6020526040812061097491611c73565b600b80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61154c848484611382565b61155884848484611768565b610e415760405162461bcd60e51b8152600401610553906123c4565b6060600c80546104a990612c0e565b606061158e82611153565b6115aa5760405162461bcd60e51b8152600401610553906128d2565b60006115b4611574565b905060008151116115d457604051806020016040528060008152506115ff565b806115de8461189c565b6040516020016115ef9291906121c7565b6040516020818303038152906040525b9392505050565b6001600160e01b031981167f01ffc9a70000000000000000000000000000000000000000000000000000000014919050565b61164383838361060b565b6001600160a01b03831661165f5761165a816119eb565b611682565b816001600160a01b0316836001600160a01b031614611682576116828382611a2f565b6001600160a01b03821661169e5761169981611acc565b61060b565b826001600160a01b0316826001600160a01b03161461060b5761060b8282611ba5565b60006116cc82610a74565b90506116da81600084611638565b6116e5600083611174565b6001600160a01b038116600090815260036020526040812080546001929061170e908490612bcb565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600061177c846001600160a01b0316611be9565b1561189157836001600160a01b031663150b7a02611798611170565b8786866040518563ffffffff1660e01b81526004016117ba949392919061220a565b602060405180830381600087803b1580156117d457600080fd5b505af1925050508015611804575060408051601f3d908101601f1916820190925261180191810190612078565b60015b61185e573d808015611832576040519150601f19603f3d011682016040523d82523d6000602084013e611837565b606091505b5080516118565760405162461bcd60e51b8152600401610553906123c4565b805181602001fd5b6001600160e01b0319167f150b7a0200000000000000000000000000000000000000000000000000000000149050610f60565b506001949350505050565b6060816118dd575060408051808201909152600181527f30000000000000000000000000000000000000000000000000000000000000006020820152610495565b8160005b811561190757806118f181612c49565b91506119009050600a83612bb7565b91506118e1565b60008167ffffffffffffffff81111561193057634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561195a576020820181803683370190505b5090505b8415610f605761196f600183612bcb565b915061197c600a86612c64565b611987906030612b9f565b60f81b8183815181106119aa57634e487b7160e01b600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506119e4600a86612bb7565b945061195e565b600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b60006001611a3c84610aa9565b611a469190612bcb565b600083815260076020526040902054909150808214611a99576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090611ade90600190612bcb565b60008381526009602052604081205460088054939450909284908110611b1457634e487b7160e01b600052603260045260246000fd5b906000526020600020015490508060088381548110611b4357634e487b7160e01b600052603260045260246000fd5b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480611b8957634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000611bb083610aa9565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b3b151590565b828054611bfb90612c0e565b90600052602060002090601f016020900481019282611c1d5760008555611c63565b82601f10611c3657805160ff1916838001178555611c63565b82800160010185558215611c63579182015b82811115611c63578251825591602001919060010190611c48565b50611c6f929150611cab565b5090565b508054611c7f90612c0e565b6000825580601f10611c915750610974565b601f01602090049060005260206000209081019061097491905b5b80821115611c6f5760008155600101611cac565b600067ffffffffffffffff831115611cda57611cda612ca4565b611ced601f8401601f1916602001612b75565b9050828152838383011115611d0157600080fd5b828260208301376000602084830101529392505050565b80356001600160a01b038116811461049557600080fd5b600082601f830112611d3f578081fd5b6115ff83833560208501611cc0565b803560ff8116811461049557600080fd5b600060208284031215611d70578081fd5b6115ff82611d18565b60008060408385031215611d8b578081fd5b611d9483611d18565b9150611da260208401611d18565b90509250929050565b600080600060608486031215611dbf578081fd5b611dc884611d18565b9250611dd660208501611d18565b9150604084013590509250925092565b60008060008060808587031215611dfb578081fd5b611e0485611d18565b9350611e1260208601611d18565b925060408501359150606085013567ffffffffffffffff811115611e34578182fd5b8501601f81018713611e44578182fd5b611e5387823560208401611cc0565b91505092959194509250565b600080600080600080600060c0888a031215611e79578283fd5b611e8288611d18565b9650602088013567ffffffffffffffff80821115611e9e578485fd5b818a0191508a601f830112611eb1578485fd5b813581811115611ebf578586fd5b8b60208083028501011115611ed2578586fd5b60208301985080975050505060408801359350611ef160608901611d4e565b92506080880135915060a0880135905092959891949750929550565b60008060408385031215611f1f578182fd5b611f2883611d18565b915060208084013567ffffffffffffffff80821115611f45578384fd5b818601915086601f830112611f58578384fd5b813581811115611f6a57611f6a612ca4565b8381029150611f7a848301612b75565b8181528481019084860184860187018b1015611f94578788fd5b8795505b83861015611fb6578035835260019590950194918601918601611f98565b508096505050505050509250929050565b60008060408385031215611fd9578182fd5b611fe283611d18565b915060208301358015158114611ff6578182fd5b809150509250929050565b60008060408385031215612013578182fd5b61201c83611d18565b946020939093013593505050565b60008060006060848603121561203e578081fd5b61204784611d18565b95602085013595506040909401359392505050565b60006020828403121561206d578081fd5b81356115ff81612cba565b600060208284031215612089578081fd5b81516115ff81612cba565b6000602082840312156120a5578081fd5b813567ffffffffffffffff8111156120bb578182fd5b610f6084828501611d2f565b6000602082840312156120d8578081fd5b5035919050565b600080604083850312156120f1578182fd5b82359150602083013567ffffffffffffffff81111561210e578182fd5b61211a85828601611d2f565b9150509250929050565b6000815180845261213c816020860160208601612be2565b601f01601f19169290920160200192915050565b60007fffffffffffffffffffffffffffffffffffffffff0000000000000000000000008660601b1682527f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8411156121a6578081fd5b60208402808660148501376014920191820192909252603401949350505050565b600083516121d9818460208801612be2565b8351908301906121ed818360208801612be2565b01949350505050565b6001600160a01b0391909116815260200190565b60006001600160a01b0380871683528086166020840152508360408301526080606083015261223c6080830184612124565b9695505050505050565b60006001600160a01b0386168252846020830152606060408301528260608301527f07ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831115612293578081fd5b602083028085608085013791909101608001908152949350505050565b6020808252825182820181905260009190848201906040850190845b818110156122e8578351835292840192918401916001016122cc565b50909695505050505050565b901515815260200190565b93845260ff9290921660208401526040830152606082015260800190565b6000602082526115ff6020830184612124565b6020808252600b908201527f4572723a204c4f434b4544000000000000000000000000000000000000000000604082015260600190565b6020808252602b908201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560408201527f74206f6620626f756e6473000000000000000000000000000000000000000000606082015260800190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527f63656976657220696d706c656d656e7465720000000000000000000000000000606082015260800190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201527f6464726573730000000000000000000000000000000000000000000000000000606082015260800190565b6020808252601c908201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604082015260600190565b60208082526024908201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460408201527f7265737300000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526019908201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604082015260600190565b6020808252602c908201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860408201527f697374656e7420746f6b656e0000000000000000000000000000000000000000606082015260800190565b60208082526038908201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760408201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606082015260800190565b6020808252602a908201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560408201527f726f206164647265737300000000000000000000000000000000000000000000606082015260800190565b60208082526029908201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460408201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606082015260800190565b6020808252602e908201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60408201527f6578697374656e7420746f6b656e000000000000000000000000000000000000606082015260800190565b6020808252600f908201527f4572723a205369676e204572726f720000000000000000000000000000000000604082015260600190565b6020808252818101527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604082015260600190565b60208082526031908201527f45524337323155524953746f726167653a2055524920717565727920666f722060408201527f6e6f6e6578697374656e7420746f6b656e000000000000000000000000000000606082015260800190565b6020808252602c908201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860408201527f697374656e7420746f6b656e0000000000000000000000000000000000000000606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526029908201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960408201527f73206e6f74206f776e0000000000000000000000000000000000000000000000606082015260800190565b6020808252602f908201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60408201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000606082015260800190565b6020808252818101527f63616c6c6572206973206e6f74206f776e6572206e6f7220617070726f766564604082015260600190565b60208082526021908201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560408201527f7200000000000000000000000000000000000000000000000000000000000000606082015260800190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60408201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606082015260800190565b60208082526010908201527f4572723a206e6f6e6365206572726f7200000000000000000000000000000000604082015260600190565b6020808252602c908201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60408201527f7574206f6620626f756e64730000000000000000000000000000000000000000606082015260800190565b6020808252602d908201527f4f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657260408201527f61746f72206f72206f776e657200000000000000000000000000000000000000606082015260800190565b60208082526024908201527f4f70657261746f723a2063616c6c6572206973206e6f7420746865206f70657260408201527f61746f7200000000000000000000000000000000000000000000000000000000606082015260800190565b90815260200190565b60405181810167ffffffffffffffff81118282101715612b9757612b97612ca4565b604052919050565b60008219821115612bb257612bb2612c78565b500190565b600082612bc657612bc6612c8e565b500490565b600082821015612bdd57612bdd612c78565b500390565b60005b83811015612bfd578181015183820152602001612be5565b83811115610e415750506000910152565b600281046001821680612c2257607f821691505b60208210811415612c4357634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612c5d57612c5d612c78565b5060010190565b600082612c7357612c73612c8e565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461097457600080fdfea2646970667358221220fc0e265bb06bf7c23af6c89c617e00df92cc2bff09e391ca48aa5a51209b720964736f6c63430008000033000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000009dfb975579e4d004efe2df96f6552bb570f662f800000000000000000000000000000000000000000000000000000000000000084d6567614865726f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024d48000000000000000000000000000000000000000000000000000000000000

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

000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000009dfb975579e4d004efe2df96f6552bb570f662f800000000000000000000000000000000000000000000000000000000000000084d6567614865726f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000024d48000000000000000000000000000000000000000000000000000000000000

-----Decoded View---------------
Arg [0] : _name (string): MegaHero
Arg [1] : _symbol (string): MH
Arg [2] : _withdrawSigner (address): 0x9dfb975579e4d004efe2df96f6552bb570f662f8

-----Encoded View---------------
7 Constructor Arguments found :
Arg [0] : 0000000000000000000000000000000000000000000000000000000000000060
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [2] : 0000000000000000000000009dfb975579e4d004efe2df96f6552bb570f662f8
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000008
Arg [4] : 4d6567614865726f000000000000000000000000000000000000000000000000
Arg [5] : 0000000000000000000000000000000000000000000000000000000000000002
Arg [6] : 4d48000000000000000000000000000000000000000000000000000000000000


Block Transaction Gas Used Reward
Age Block Fee Address Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading