Contract 0x3bA26d4d5250E82936F281805423A1ABEaEfC3B5

 
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xd710d88be941dc512943bfd115ec4a6946c135d9134cc160b2a8dab0a1d9d52aWithdraw357104252022-11-17 7:12:4311 days 14 hrs ago0x83b0637ba4701af501079a19b2073977d26ca77e IN  0x3ba26d4d5250e82936f281805423a1abeaefc3b50 MATIC0.001071638305 35.00370099
0x91d58183d4202c10fc16c0d49d0b933fcbadb60f1aa334585f0c7981b3ade022Claim350172332022-10-31 6:51:0328 days 15 hrs ago0xb2c177b9f249639adfcc66b6dfd80317a7bd38fa IN  0x3ba26d4d5250e82936f281805423a1abeaefc3b51 MATIC0.016070589052 30.070015572
0x688c82099cdbe3ae9e6a7c8fbd768c49e217facf7a1d05739f9de258d75a6ba4Set Token URI346158772022-10-21 11:16:5338 days 10 hrs ago0x8d714b10b719c65b878f2ed1436a964e11fa3271 IN  0x3ba26d4d5250e82936f281805423a1abeaefc3b50.1 MATIC0.011269383209 199.299375879
0xe2fa6609e6bd2adce8c495bb4e0f5715b3bee1d0872ea0a6f7d2285e8557052fSet Token URI342424242022-10-12 7:34:4047 days 14 hrs ago0xc3bc7e78dd1ab7c64aaacc98abcd052db91a37f4 IN  0x3ba26d4d5250e82936f281805423a1abeaefc3b50.1 MATIC0.001444350001 30.000000028
0x832f12ea911ee0a3e0593ea2c8ce34b7a3f813266deec5d026fc7b072fa7ce58Set Token URI337865522022-10-01 7:20:5958 days 14 hrs ago0xc3bc7e78dd1ab7c64aaacc98abcd052db91a37f4 IN  0x3ba26d4d5250e82936f281805423a1abeaefc3b50.1 MATIC0.00169635 30.000000012
0x4ea254a282956cb6b37a60d6081f45aad2f8441857f7a65d1b3c6f0686a34207Transfer From335413912022-09-25 8:19:5364 days 13 hrs ago0x83b0637ba4701af501079a19b2073977d26ca77e IN  0x3ba26d4d5250e82936f281805423a1abeaefc3b50 MATIC0.002579820001 30.000000016
0x26b04253b0c7420db6fb70a414a52d44491e57872028b2d261a6fe575bb27a16Transfer From335413432022-09-25 8:18:1364 days 13 hrs ago0x83b0637ba4701af501079a19b2073977d26ca77e IN  0x3ba26d4d5250e82936f281805423a1abeaefc3b50 MATIC0.002579820001 30.000000013
0x8a7baccbc59f60a9d356639452389c68debd2e6f00fd1764c2d1751562773918Transfer From334623302022-09-23 10:17:2866 days 11 hrs ago0xc3bc7e78dd1ab7c64aaacc98abcd052db91a37f4 IN  0x3ba26d4d5250e82936f281805423a1abeaefc3b50 MATIC0.002864460001 30.000000018
0x09f9e7d28d944c9c3ea0e6f9798db32ab36674af087100d0d770866fe3cac2efClaim334589472022-09-23 8:19:0366 days 13 hrs ago0x83b0637ba4701af501079a19b2073977d26ca77e IN  0x3ba26d4d5250e82936f281805423a1abeaefc3b5100 MATIC0.014225425389 30.069999998
0x7f5750e138fdb29655a97f6d982b796aad2ce97ca75e785be5ad3de99ed5425cClaim334588012022-09-23 8:13:5966 days 13 hrs ago0x83b0637ba4701af501079a19b2073977d26ca77e IN  0x3ba26d4d5250e82936f281805423a1abeaefc3b5100 MATIC0.014306460009 30.000000019
0x74abecfbefec1060a3b984910a4d638425a9f7f2572184dd0724cdf42805289bClaim334396642022-09-22 21:11:2767 days 51 mins ago0x685edd3a9ffc83360b6de0883beede5b1ca77e18 IN  0x3ba26d4d5250e82936f281805423a1abeaefc3b55 MATIC0.016135200005 30.00000001
0xe9fff029d755ff2519c04bd67bd0ee7a306874c8f23d922da09d1b38dca863f3Transfer From334280692022-09-22 14:26:0067 days 7 hrs ago0x685edd3a9ffc83360b6de0883beede5b1ca77e18 IN  0x3ba26d4d5250e82936f281805423a1abeaefc3b50 MATIC0.002654634981 30.870002347
0x6e288cc107d9c701b2df457e17d960e6949555f05a2ede30a2b31ffaaa773ff6Transfer From334280422022-09-22 14:25:0667 days 7 hrs ago0x685edd3a9ffc83360b6de0883beede5b1ca77e18 IN  0x3ba26d4d5250e82936f281805423a1abeaefc3b50 MATIC0.002579820289 30.000003365
0xadd497d7146f2bf96ecceb9f861e5dab3800bad626a34f20e5294a95fca1e3e3Transfer From334280202022-09-22 14:24:1867 days 7 hrs ago0x685edd3a9ffc83360b6de0883beede5b1ca77e18 IN  0x3ba26d4d5250e82936f281805423a1abeaefc3b50 MATIC0.002672332229 31.075798653
0x387d3976d063ba4ab79758979b4406478d479b5fcf331d89fc1128ae966124a8Transfer From334279912022-09-22 14:23:2067 days 7 hrs ago0x685edd3a9ffc83360b6de0883beede5b1ca77e18 IN  0x3ba26d4d5250e82936f281805423a1abeaefc3b50 MATIC0.00226617038 30.00000504
0x650b78fa72f3bb344a6af6fca5880a030f547c300cfa7d5885f0d548daf3ca41Claim334278372022-09-22 14:18:0067 days 7 hrs ago0x685edd3a9ffc83360b6de0883beede5b1ca77e18 IN  0x3ba26d4d5250e82936f281805423a1abeaefc3b51 MATIC0.002946363833 30.000039031
0x83fec2a1bb888aca92840b0f30ca7cfcc468d4c6b13731de0be95a160a379bcfClaim334278372022-09-22 14:18:0067 days 7 hrs ago0x685edd3a9ffc83360b6de0883beede5b1ca77e18 IN  0x3ba26d4d5250e82936f281805423a1abeaefc3b51 MATIC0.003849901218 39.199906512
0xe3338541a020bea81cc95e2a55a4d2d9312d2aa35d72854babbd4fdafbbebf70Claim334278372022-09-22 14:18:0067 days 7 hrs ago0x685edd3a9ffc83360b6de0883beede5b1ca77e18 IN  0x3ba26d4d5250e82936f281805423a1abeaefc3b51 MATIC0.002956182196 30.100010145
0x6b7753e58101ea9144aa952cffc82e5c475c6a8f846d6501f1d2b21db14d27e8Claim334278372022-09-22 14:18:0067 days 7 hrs ago0x685edd3a9ffc83360b6de0883beede5b1ca77e18 IN  0x3ba26d4d5250e82936f281805423a1abeaefc3b51 MATIC0.003339233221 34.000256806
0x457a058d11a5aab79f3a84da8c45174a3aaec5a911007f5abc43d4091df29003Claim334278372022-09-22 14:18:0067 days 7 hrs ago0x685edd3a9ffc83360b6de0883beede5b1ca77e18 IN  0x3ba26d4d5250e82936f281805423a1abeaefc3b51 MATIC0.016245021163 30.000039084
0x99bfb46af0cb3f79a0f3a67ea43ffd3cc6c00b34830d5fa6e2b14b8ab26f4616Safe Transfer Fr...334274732022-09-22 14:05:3267 days 7 hrs ago0x396739ee44a7cee1f5bf645a94bf7d489bdc0fca IN  0x3ba26d4d5250e82936f281805423a1abeaefc3b50 MATIC0.0046084407245.515463906
0x552966b7f444c0577e34eb0fb43281709c673062423574a5d610e0749c02f40bSafe Transfer Fr...334274662022-09-22 14:05:1867 days 7 hrs ago0x396739ee44a7cee1f5bf645a94bf7d489bdc0fca IN  0x3ba26d4d5250e82936f281805423a1abeaefc3b50 MATIC0.00414153684846.560279354
0xf180ca51b44854b457f11dd4b4535208e2bf628c1edc542b53559ea82b4f3d04Safe Transfer Fr...334274592022-09-22 14:05:0467 days 7 hrs ago0x396739ee44a7cee1f5bf645a94bf7d489bdc0fca IN  0x3ba26d4d5250e82936f281805423a1abeaefc3b50 MATIC0.00414153684846.560279354
0xfbbf9c2e881fec542a17fc555dd062356dffba2d6a1028e7f8fee0bcf2885a5dClaim334274332022-09-22 14:04:0867 days 7 hrs ago0x396739ee44a7cee1f5bf645a94bf7d489bdc0fca IN  0x3ba26d4d5250e82936f281805423a1abeaefc3b51 MATIC0.02486648620846.2474845
0x096bbab56d3a72f944a6a2b39b40c07949b93c5007fd6a767ea526d29eb502abClaim334274102022-09-22 14:03:2267 days 7 hrs ago0x396739ee44a7cee1f5bf645a94bf7d489bdc0fca IN  0x3ba26d4d5250e82936f281805423a1abeaefc3b51 MATIC0.02910296332952.635510574
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xd710d88be941dc512943bfd115ec4a6946c135d9134cc160b2a8dab0a1d9d52a357104252022-11-17 7:12:4311 days 14 hrs ago 0x3ba26d4d5250e82936f281805423a1abeaefc3b50x83b0637ba4701af501079a19b2073977d26ca77e21 MATIC
0x91d58183d4202c10fc16c0d49d0b933fcbadb60f1aa334585f0c7981b3ade022350172332022-10-31 6:51:0328 days 15 hrs ago 0x3ba26d4d5250e82936f281805423a1abeaefc3b50x83b0637ba4701af501079a19b2073977d26ca77e0.5 MATIC
0x91d58183d4202c10fc16c0d49d0b933fcbadb60f1aa334585f0c7981b3ade022350172332022-10-31 6:51:0328 days 15 hrs ago 0x3ba26d4d5250e82936f281805423a1abeaefc3b50x83b0637ba4701af501079a19b2073977d26ca77e0.5 MATIC
0x688c82099cdbe3ae9e6a7c8fbd768c49e217facf7a1d05739f9de258d75a6ba4346158772022-10-21 11:16:5338 days 10 hrs ago 0x3ba26d4d5250e82936f281805423a1abeaefc3b50x83b0637ba4701af501079a19b2073977d26ca77e0.1 MATIC
0xe2fa6609e6bd2adce8c495bb4e0f5715b3bee1d0872ea0a6f7d2285e8557052f342424242022-10-12 7:34:4047 days 14 hrs ago 0x3ba26d4d5250e82936f281805423a1abeaefc3b50x83b0637ba4701af501079a19b2073977d26ca77e0.1 MATIC
0x832f12ea911ee0a3e0593ea2c8ce34b7a3f813266deec5d026fc7b072fa7ce58337865522022-10-01 7:20:5958 days 14 hrs ago 0x3ba26d4d5250e82936f281805423a1abeaefc3b50x83b0637ba4701af501079a19b2073977d26ca77e0.1 MATIC
0x09f9e7d28d944c9c3ea0e6f9798db32ab36674af087100d0d770866fe3cac2ef334589472022-09-23 8:19:0366 days 13 hrs ago 0x3ba26d4d5250e82936f281805423a1abeaefc3b50x83b0637ba4701af501079a19b2073977d26ca77e100 MATIC
0x7f5750e138fdb29655a97f6d982b796aad2ce97ca75e785be5ad3de99ed5425c334588012022-09-23 8:13:5966 days 13 hrs ago 0x3ba26d4d5250e82936f281805423a1abeaefc3b50x83b0637ba4701af501079a19b2073977d26ca77e100 MATIC
0x74abecfbefec1060a3b984910a4d638425a9f7f2572184dd0724cdf42805289b334396642022-09-22 21:11:2767 days 51 mins ago 0x3ba26d4d5250e82936f281805423a1abeaefc3b50x83b0637ba4701af501079a19b2073977d26ca77e2.5 MATIC
0x74abecfbefec1060a3b984910a4d638425a9f7f2572184dd0724cdf42805289b334396642022-09-22 21:11:2767 days 51 mins ago 0x3ba26d4d5250e82936f281805423a1abeaefc3b50x83b0637ba4701af501079a19b2073977d26ca77e2.5 MATIC
0x650b78fa72f3bb344a6af6fca5880a030f547c300cfa7d5885f0d548daf3ca41334278372022-09-22 14:18:0067 days 7 hrs ago 0x3ba26d4d5250e82936f281805423a1abeaefc3b50x83b0637ba4701af501079a19b2073977d26ca77e0.5 MATIC
0x650b78fa72f3bb344a6af6fca5880a030f547c300cfa7d5885f0d548daf3ca41334278372022-09-22 14:18:0067 days 7 hrs ago 0x3ba26d4d5250e82936f281805423a1abeaefc3b50x83b0637ba4701af501079a19b2073977d26ca77e0.5 MATIC
0x83fec2a1bb888aca92840b0f30ca7cfcc468d4c6b13731de0be95a160a379bcf334278372022-09-22 14:18:0067 days 7 hrs ago 0x3ba26d4d5250e82936f281805423a1abeaefc3b50x83b0637ba4701af501079a19b2073977d26ca77e0.5 MATIC
0x83fec2a1bb888aca92840b0f30ca7cfcc468d4c6b13731de0be95a160a379bcf334278372022-09-22 14:18:0067 days 7 hrs ago 0x3ba26d4d5250e82936f281805423a1abeaefc3b50x83b0637ba4701af501079a19b2073977d26ca77e0.5 MATIC
0xe3338541a020bea81cc95e2a55a4d2d9312d2aa35d72854babbd4fdafbbebf70334278372022-09-22 14:18:0067 days 7 hrs ago 0x3ba26d4d5250e82936f281805423a1abeaefc3b50x83b0637ba4701af501079a19b2073977d26ca77e0.5 MATIC
0xe3338541a020bea81cc95e2a55a4d2d9312d2aa35d72854babbd4fdafbbebf70334278372022-09-22 14:18:0067 days 7 hrs ago 0x3ba26d4d5250e82936f281805423a1abeaefc3b50x83b0637ba4701af501079a19b2073977d26ca77e0.5 MATIC
0x6b7753e58101ea9144aa952cffc82e5c475c6a8f846d6501f1d2b21db14d27e8334278372022-09-22 14:18:0067 days 7 hrs ago 0x3ba26d4d5250e82936f281805423a1abeaefc3b50x83b0637ba4701af501079a19b2073977d26ca77e0.5 MATIC
0x6b7753e58101ea9144aa952cffc82e5c475c6a8f846d6501f1d2b21db14d27e8334278372022-09-22 14:18:0067 days 7 hrs ago 0x3ba26d4d5250e82936f281805423a1abeaefc3b50x83b0637ba4701af501079a19b2073977d26ca77e0.5 MATIC
0x457a058d11a5aab79f3a84da8c45174a3aaec5a911007f5abc43d4091df29003334278372022-09-22 14:18:0067 days 7 hrs ago 0x3ba26d4d5250e82936f281805423a1abeaefc3b50x83b0637ba4701af501079a19b2073977d26ca77e0.5 MATIC
0x457a058d11a5aab79f3a84da8c45174a3aaec5a911007f5abc43d4091df29003334278372022-09-22 14:18:0067 days 7 hrs ago 0x3ba26d4d5250e82936f281805423a1abeaefc3b50x83b0637ba4701af501079a19b2073977d26ca77e0.5 MATIC
0xfbbf9c2e881fec542a17fc555dd062356dffba2d6a1028e7f8fee0bcf2885a5d334274332022-09-22 14:04:0867 days 7 hrs ago 0x3ba26d4d5250e82936f281805423a1abeaefc3b50x83b0637ba4701af501079a19b2073977d26ca77e0.5 MATIC
0xfbbf9c2e881fec542a17fc555dd062356dffba2d6a1028e7f8fee0bcf2885a5d334274332022-09-22 14:04:0867 days 7 hrs ago 0x3ba26d4d5250e82936f281805423a1abeaefc3b50x83b0637ba4701af501079a19b2073977d26ca77e0.5 MATIC
0x096bbab56d3a72f944a6a2b39b40c07949b93c5007fd6a767ea526d29eb502ab334274102022-09-22 14:03:2267 days 7 hrs ago 0x3ba26d4d5250e82936f281805423a1abeaefc3b50x83b0637ba4701af501079a19b2073977d26ca77e0.5 MATIC
0x096bbab56d3a72f944a6a2b39b40c07949b93c5007fd6a767ea526d29eb502ab334274102022-09-22 14:03:2267 days 7 hrs ago 0x3ba26d4d5250e82936f281805423a1abeaefc3b50x83b0637ba4701af501079a19b2073977d26ca77e0.5 MATIC
0xa3b7729aa4f92b1edb6a612738da3a280e0da5d39e52759462c980c47398142a334273982022-09-22 14:02:5867 days 7 hrs ago 0x3ba26d4d5250e82936f281805423a1abeaefc3b50x83b0637ba4701af501079a19b2073977d26ca77e0.5 MATIC
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
web3domain

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 15 : web3domain.sol
//Contract based on [https://docs.openzeppelin.com/contracts/3.x/erc721](https://docs.openzeppelin.com/contracts/3.x/erc721)
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "./string.sol";

contract web3domain is Ownable, ERC721, ERC721URIStorage, ERC721Enumerable {
    using strings for *;
    uint256 private nft_price = 100;
     uint256 private nft_comm_web3 = 40;
       uint256 private nft_comm_dealer = 60;
    struct Metadata {
        uint256 id;
        string title;
        uint256 allow;
    }

    mapping(uint256 => Metadata) id_to_date;
    mapping(string => Metadata) id_to_title;
    mapping(uint256 => Metadata) id_to_allow;


     function setNftPrice(uint256 _nft_price) public onlyOwner {
        nft_price = _nft_price;
    }

    function getNftPrice() public view returns (uint256) {
        return nft_price;
    }

     function set_Comm_Web3(uint256 _nft_comm_web3) public onlyOwner {
        nft_comm_web3 = _nft_comm_web3;
    }

    function getComm_Web3() public view returns (uint256) {
        return nft_comm_web3;
    }

         function set_Comm_Dealer(uint256 _nft_comm_dealer) public onlyOwner {
        nft_comm_dealer = _nft_comm_dealer;
    }

    function getComm_Dealer() public view returns (uint256) {
        return nft_comm_dealer;
    }

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

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

    function setTokenURI(uint256 tokenId, string memory tokenURIlink)
        external
        payable
    {
        require(
            _isApprovedOrOwner(_msgSender(), tokenId),
            "ERC721: transfer caller is not owner nor approved"
        );
        _setTokenURI(tokenId, tokenURIlink);
        payable(owner()).transfer(msg.value);
    }

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

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

    function mint(
        uint256 _id,
        string memory title,
        string memory _tokenUri
    ) internal {
        require(!_exists(_id), "Domain restricted to register");

        require(
            !_exists_title(_toLowerCase(title)),
            "Domain already registered"
        );

        uint256 tokenId = _id;
        uint256 allow = 5;
        id_to_date[tokenId] = Metadata(_id, _toLowerCase(title), allow);
        id_to_title[_toLowerCase(title)] = Metadata(
            _id,
            _toLowerCase(title),
            allow
        );
        id_to_allow[tokenId] = Metadata(_id, _toLowerCase(title), allow);
        _safeMint(msg.sender, tokenId);
        _setTokenURI(tokenId, _tokenUri);
    }

    function _exists_title(string memory title) internal view returns (bool) {
        Metadata memory tt = id_to_title[title];
        uint256 _title_id = tt.id;
        if (_title_id != 0) {
            return true;
        } else {
            return false;
        }
    }

    function titleOf(uint256 tokenId) external view returns (string memory) {
        require(_exists(tokenId), "Domain not minted");
        Metadata memory date = id_to_date[tokenId];
        return date.title;
    }

    function getID(string memory title) public view returns (string memory) {
        Metadata memory tt = id_to_title[_toLowerCase(title)];
        require(_exists(tt.id), "Domain not minted");
        return Strings.toString(tt.id);
    }

    function getint(string memory title) internal view returns (uint256) {
        Metadata memory tt = id_to_title[_toLowerCase(title)];
        require(_exists(tt.id), "Domain not minted");
        return tt.id;
    }

    function getOwner(uint256 tokenId) public view returns (address) {
        return ownerOf(tokenId);
    }

    function claim(
        uint256 tokenId,
        string calldata title,
        string memory _tokenUri
    ) external payable {
        string memory primary = subdomain(_toLowerCase(title), 2);
        uint256 level = getNftPrice();

        if (keccak256(bytes(primary)) != keccak256(bytes(""))) {
            uint256 iid = getint(primary);
            level = getAllow(iid);
            if (getAllow(iid) == 0) {
                require(
                    msg.sender == getOwner(iid),
                    "Primary domain owner can only mint sub-domain"
                );
                payable(owner()).transfer(msg.value);
            } else {
                
                payable(getOwner(iid)).transfer((msg.value * getComm_Dealer()) / 100);
                payable(owner()).transfer((msg.value * getComm_Web3()) / 100);
            }
        } else {
            payable(owner()).transfer(msg.value);
        }

        uint256 listingPrice = level * 1 ether;

        require(
            msg.value >= listingPrice,
            "Price must be equal to listing price"
        );

        require(tokenId > 0, "Token ID cannot be 0");

        require(bytes(title).length > 0, "Domain name cannot be blank");

        mint(tokenId, _toLowerCase(title), _tokenUri);
    }

    function getBalance() public view returns (uint256) {
        return address(this).balance;
    }

    /**
     * @dev Lowercase a string.
     * @param _str - to be converted to string.
     * @return string
     */
    function _toLowerCase(string memory _str)
        internal
        pure
        returns (string memory)
    {
        bytes memory bStr = bytes(_str);
        bytes memory bLower = new bytes(bStr.length);

        for (uint256 i = 0; i < bStr.length; i++) {
            // Uppercase character...
            if ((bStr[i] >= 0x41) && (bStr[i] <= 0x5A)) {
                // So we add 0x20 to make it lowercase
                bLower[i] = bytes1(uint8(bStr[i]) + 0x20);
            } else {
                bLower[i] = bStr[i];
            }
        }
        return string(bLower);
    }

    constructor() ERC721("web3domain", "Web3Domain.org") {
        // mint(0, "");
    }

    function subdomain(string memory title, uint256 pos)
        internal
        pure
        returns (string memory)
    {
        strings.slice memory s = title.toSlice();

        strings.slice memory part;

        string memory a = s.split(".".toSlice(), part).toString(); // part and return value is "www"
        string memory b = s.split(".".toSlice(), part).toString(); // part and return value is "yyy"
        if (pos == 1) {
            return a;
        } else {
            return b;
        }
    }

    function setAllow(uint256 tokenId, uint256 _allow) external payable {
        require(_exists(tokenId), "Domain not minted");
        require(
            _isApprovedOrOwner(_msgSender(), tokenId),
            "ERC721: transfer caller is not owner nor approved"
        );

        Metadata memory date = id_to_date[tokenId];
        id_to_allow[tokenId] = Metadata(tokenId, date.title, _allow);
    }

    function getAllow(uint256 tokenId) public view returns (uint256) {
        require(_exists(tokenId), "Domain not minted");
        Metadata memory date = id_to_allow[tokenId];
        return date.allow;
    }

    function withdraw() public onlyOwner {
        payable(owner()).transfer(address(this).balance);
    }
}

File 2 of 15 : string.sol
//Contract based on [https://docs.openzeppelin.com/contracts/3.x/erc721](https://docs.openzeppelin.com/contracts/3.x/erc721)
// SPDX-License-Identifier: MIT
//I am Navneet Gupta :)
/*
 * @title String & slice utility library for Solidity contracts.
 * @author Nick Johnson <[email protected]>
 *
 * @dev Functionality in this library is largely implemented using an
 *      abstraction called a 'slice'. A slice represents a part of a string -
 *      anything from the entire string to a single character, or even no
 *      characters at all (a 0-length slice). Since a slice only has to specify
 *      an offset and a length, copying and manipulating slices is a lot less
 *      expensive than copying and manipulating the strings they reference.
 *
 *      To further reduce gas costs, most functions on slice that need to return
 *      a slice modify the original one instead of allocating a new one; for
 *      instance, `s.split(".")` will return the text up to the first '.',
 *      modifying s to only contain the remainder of the string after the '.'.
 *      In situations where you do not want to modify the original slice, you
 *      can make a copy first with `.copy()`, for example:
 *      `s.copy().split(".")`. Try and avoid using this idiom in loops; since
 *      Solidity has no memory management, it will result in allocating many
 *      short-lived slices that are later discarded.
 *
 *      Functions that return two slices come in two versions: a non-allocating
 *      version that takes the second slice as an argument, modifying it in
 *      place, and an allocating version that allocates and returns the second
 *      slice; see `nextRune` for example.
 *
 *      Functions that have to copy string data will return strings rather than
 *      slices; these can be cast back to slices for further processing if
 *      required.
 *
 *      For convenience, some functions are provided with non-modifying
 *      variants that create a new slice and return both; for instance,
 *      `s.splitNew('.')` leaves s unmodified, and returns two values
 *      corresponding to the left and right parts of the string.
 */

pragma solidity ^0.8.0;

library strings {
    struct slice {
        uint _len;
        uint _ptr;
    }

    function memcpy(uint dest, uint src, uint len1) private pure {
        // Copy word-length chunks while possible
        for(; len1 >= 32; len1 -= 32) {
            assembly {
                mstore(dest, mload(src))
            }
            dest += 32;
            src += 32;
        }

        // Copy remaining bytes
        uint mask = type(uint).max;
        if (len1 > 0) {
            mask = 256 ** (32 - len1) - 1;
        }
        assembly {
            let srcpart := and(mload(src), not(mask))
            let destpart := and(mload(dest), mask)
            mstore(dest, or(destpart, srcpart))
        }
    }

    /*
     * @dev Returns a slice containing the entire string.
     * @param self The string to make a slice from.
     * @return A newly allocated slice containing the entire string.
     */
    function toSlice(string memory self) internal pure returns (slice memory) {
        uint ptr;
        assembly {
            ptr := add(self, 0x20)
        }
        return slice(bytes(self).length, ptr);
    }

    /*
     * @dev Returns the length of a null-terminated bytes32 string.
     * @param self The value to find the length of.
     * @return The length of the string, from 0 to 32.
     */
    function len(bytes32 self) internal pure returns (uint) {
        uint ret;
        if (self == 0)
            return 0;
        if (uint(self) & type(uint128).max == 0) {
            ret += 16;
            self = bytes32(uint(self) / 0x100000000000000000000000000000000);
        }
        if (uint(self) & type(uint64).max == 0) {
            ret += 8;
            self = bytes32(uint(self) / 0x10000000000000000);
        }
        if (uint(self) & type(uint32).max == 0) {
            ret += 4;
            self = bytes32(uint(self) / 0x100000000);
        }
        if (uint(self) & type(uint16).max == 0) {
            ret += 2;
            self = bytes32(uint(self) / 0x10000);
        }
        if (uint(self) & type(uint8).max == 0) {
            ret += 1;
        }
        return 32 - ret;
    }

    /*
     * @dev Returns a slice containing the entire bytes32, interpreted as a
     *      null-terminated utf-8 string.
     * @param self The bytes32 value to convert to a slice.
     * @return A new slice containing the value of the input argument up to the
     *         first null.
     */
    function toSliceB32(bytes32 self) internal pure returns (slice memory ret) {
        // Allocate space for `self` in memory, copy it there, and point ret at it
        assembly {
            let ptr := mload(0x40)
            mstore(0x40, add(ptr, 0x20))
            mstore(ptr, self)
            mstore(add(ret, 0x20), ptr)
        }
        ret._len = len(self);
    }

    /*
     * @dev Returns a new slice containing the same data as the current slice.
     * @param self The slice to copy.
     * @return A new slice containing the same data as `self`.
     */
    function copy(slice memory self) internal pure returns (slice memory) {
        return slice(self._len, self._ptr);
    }

    /*
     * @dev Copies a slice to a new string.
     * @param self The slice to copy.
     * @return A newly allocated string containing the slice's text.
     */
    function toString(slice memory self) internal pure returns (string memory) {
        string memory ret = new string(self._len);
        uint retptr;
        assembly { retptr := add(ret, 32) }

        memcpy(retptr, self._ptr, self._len);
        return ret;
    }

    /*
     * @dev Returns the length in runes of the slice. Note that this operation
     *      takes time proportional to the length of the slice; avoid using it
     *      in loops, and call `slice.empty()` if you only need to know whether
     *      the slice is empty or not.
     * @param self The slice to operate on.
     * @return The length of the slice in runes.
     */
    function len(slice memory self) internal pure returns (uint l) {
        // Starting at ptr-31 means the LSB will be the byte we care about
        uint ptr = self._ptr - 31;
        uint end = ptr + self._len;
        for (l = 0; ptr < end; l++) {
            uint8 b;
            assembly { b := and(mload(ptr), 0xFF) }
            if (b < 0x80) {
                ptr += 1;
            } else if(b < 0xE0) {
                ptr += 2;
            } else if(b < 0xF0) {
                ptr += 3;
            } else if(b < 0xF8) {
                ptr += 4;
            } else if(b < 0xFC) {
                ptr += 5;
            } else {
                ptr += 6;
            }
        }
    }

    /*
     * @dev Returns true if the slice is empty (has a length of 0).
     * @param self The slice to operate on.
     * @return True if the slice is empty, False otherwise.
     */
    function empty(slice memory self) internal pure returns (bool) {
        return self._len == 0;
    }

    /*
     * @dev Returns a positive number if `other` comes lexicographically after
     *      `self`, a negative number if it comes before, or zero if the
     *      contents of the two slices are equal. Comparison is done per-rune,
     *      on unicode codepoints.
     * @param self The first slice to compare.
     * @param other The second slice to compare.
     * @return The result of the comparison.
     */
    function compare(slice memory self, slice memory other) internal pure returns (int) {
        uint shortest = self._len;
        if (other._len < self._len)
            shortest = other._len;

        uint selfptr = self._ptr;
        uint otherptr = other._ptr;
        for (uint idx = 0; idx < shortest; idx += 32) {
            uint a;
            uint b;
            assembly {
                a := mload(selfptr)
                b := mload(otherptr)
            }
            if (a != b) {
                // Mask out irrelevant bytes and check again
                uint mask = type(uint).max; // 0xffff...
                if(shortest < 32) {
                  mask = ~(2 ** (8 * (32 - shortest + idx)) - 1);
                }
                unchecked {
                    uint diff = (a & mask) - (b & mask);
                    if (diff != 0)
                        return int(diff);
                }
            }
            selfptr += 32;
            otherptr += 32;
        }
        return int(self._len) - int(other._len);
    }

    /*
     * @dev Returns true if the two slices contain the same text.
     * @param self The first slice to compare.
     * @param self The second slice to compare.
     * @return True if the slices are equal, false otherwise.
     */
    function equals(slice memory self, slice memory other) internal pure returns (bool) {
        return compare(self, other) == 0;
    }


    /*
     * @dev Extracts the first rune in the slice into `rune`, advancing the
     *      slice to point to the next rune and returning `self`.
     * @param self The slice to operate on.
     * @param rune The slice that will contain the first rune.
     * @return `rune`.
     */
    function nextRune(slice memory self, slice memory rune) internal pure returns (slice memory) {
        rune._ptr = self._ptr;

        if (self._len == 0) {
            rune._len = 0;
            return rune;
        }

        uint l;
        uint b;
        // Load the first byte of the rune into the LSBs of b
        assembly { b := and(mload(sub(mload(add(self, 32)), 31)), 0xFF) }
        if (b < 0x80) {
            l = 1;
        } else if(b < 0xE0) {
            l = 2;
        } else if(b < 0xF0) {
            l = 3;
        } else {
            l = 4;
        }

        // Check for truncated codepoints
        if (l > self._len) {
            rune._len = self._len;
            self._ptr += self._len;
            self._len = 0;
            return rune;
        }

        self._ptr += l;
        self._len -= l;
        rune._len = l;
        return rune;
    }

    /*
     * @dev Returns the first rune in the slice, advancing the slice to point
     *      to the next rune.
     * @param self The slice to operate on.
     * @return A slice containing only the first rune from `self`.
     */
    function nextRune(slice memory self) internal pure returns (slice memory ret) {
        nextRune(self, ret);
    }

    /*
     * @dev Returns the number of the first codepoint in the slice.
     * @param self The slice to operate on.
     * @return The number of the first codepoint in the slice.
     */
    function ord(slice memory self) internal pure returns (uint ret) {
        if (self._len == 0) {
            return 0;
        }

        uint word;
        uint length;
        uint divisor = 2 ** 248;

        // Load the rune into the MSBs of b
        assembly { word:= mload(mload(add(self, 32))) }
        uint b = word / divisor;
        if (b < 0x80) {
            ret = b;
            length = 1;
        } else if(b < 0xE0) {
            ret = b & 0x1F;
            length = 2;
        } else if(b < 0xF0) {
            ret = b & 0x0F;
            length = 3;
        } else {
            ret = b & 0x07;
            length = 4;
        }

        // Check for truncated codepoints
        if (length > self._len) {
            return 0;
        }

        for (uint i = 1; i < length; i++) {
            divisor = divisor / 256;
            b = (word / divisor) & 0xFF;
            if (b & 0xC0 != 0x80) {
                // Invalid UTF-8 sequence
                return 0;
            }
            ret = (ret * 64) | (b & 0x3F);
        }

        return ret;
    }

    /*
     * @dev Returns the keccak-256 hash of the slice.
     * @param self The slice to hash.
     * @return The hash of the slice.
     */
    function keccak(slice memory self) internal pure returns (bytes32 ret) {
        assembly {
            ret := keccak256(mload(add(self, 32)), mload(self))
        }
    }

    /*
     * @dev Returns true if `self` starts with `needle`.
     * @param self The slice to operate on.
     * @param needle The slice to search for.
     * @return True if the slice starts with the provided text, false otherwise.
     */
    function startsWith(slice memory self, slice memory needle) internal pure returns (bool) {
        if (self._len < needle._len) {
            return false;
        }

        if (self._ptr == needle._ptr) {
            return true;
        }

        bool equal;
        assembly {
            let length := mload(needle)
            let selfptr := mload(add(self, 0x20))
            let needleptr := mload(add(needle, 0x20))
            equal := eq(keccak256(selfptr, length), keccak256(needleptr, length))
        }
        return equal;
    }

    /*
     * @dev If `self` starts with `needle`, `needle` is removed from the
     *      beginning of `self`. Otherwise, `self` is unmodified.
     * @param self The slice to operate on.
     * @param needle The slice to search for.
     * @return `self`
     */
    function beyond(slice memory self, slice memory needle) internal pure returns (slice memory) {
        if (self._len < needle._len) {
            return self;
        }

        bool equal = true;
        if (self._ptr != needle._ptr) {
            assembly {
                let length := mload(needle)
                let selfptr := mload(add(self, 0x20))
                let needleptr := mload(add(needle, 0x20))
                equal := eq(keccak256(selfptr, length), keccak256(needleptr, length))
            }
        }

        if (equal) {
            self._len -= needle._len;
            self._ptr += needle._len;
        }

        return self;
    }

    /*
     * @dev Returns true if the slice ends with `needle`.
     * @param self The slice to operate on.
     * @param needle The slice to search for.
     * @return True if the slice starts with the provided text, false otherwise.
     */
    function endsWith(slice memory self, slice memory needle) internal pure returns (bool) {
        if (self._len < needle._len) {
            return false;
        }

        uint selfptr = self._ptr + self._len - needle._len;

        if (selfptr == needle._ptr) {
            return true;
        }

        bool equal;
        assembly {
            let length := mload(needle)
            let needleptr := mload(add(needle, 0x20))
            equal := eq(keccak256(selfptr, length), keccak256(needleptr, length))
        }

        return equal;
    }

    /*
     * @dev If `self` ends with `needle`, `needle` is removed from the
     *      end of `self`. Otherwise, `self` is unmodified.
     * @param self The slice to operate on.
     * @param needle The slice to search for.
     * @return `self`
     */
    function until(slice memory self, slice memory needle) internal pure returns (slice memory) {
        if (self._len < needle._len) {
            return self;
        }

        uint selfptr = self._ptr + self._len - needle._len;
        bool equal = true;
        if (selfptr != needle._ptr) {
            assembly {
                let length := mload(needle)
                let needleptr := mload(add(needle, 0x20))
                equal := eq(keccak256(selfptr, length), keccak256(needleptr, length))
            }
        }

        if (equal) {
            self._len -= needle._len;
        }

        return self;
    }

    // Returns the memory address of the first byte of the first occurrence of
    // `needle` in `self`, or the first byte after `self` if not found.
    function findPtr(uint selflen, uint selfptr, uint needlelen, uint needleptr) private pure returns (uint) {
        uint ptr = selfptr;
        uint idx;

        if (needlelen <= selflen) {
            if (needlelen <= 32) {
                bytes32 mask;
                if (needlelen > 0) {
                    mask = bytes32(~(2 ** (8 * (32 - needlelen)) - 1));
                }

                bytes32 needledata;
                assembly { needledata := and(mload(needleptr), mask) }

                uint end = selfptr + selflen - needlelen;
                bytes32 ptrdata;
                assembly { ptrdata := and(mload(ptr), mask) }

                while (ptrdata != needledata) {
                    if (ptr >= end)
                        return selfptr + selflen;
                    ptr++;
                    assembly { ptrdata := and(mload(ptr), mask) }
                }
                return ptr;
            } else {
                // For long needles, use hashing
                bytes32 hash;
                assembly { hash := keccak256(needleptr, needlelen) }

                for (idx = 0; idx <= selflen - needlelen; idx++) {
                    bytes32 testHash;
                    assembly { testHash := keccak256(ptr, needlelen) }
                    if (hash == testHash)
                        return ptr;
                    ptr += 1;
                }
            }
        }
        return selfptr + selflen;
    }

    // Returns the memory address of the first byte after the last occurrence of
    // `needle` in `self`, or the address of `self` if not found.
    function rfindPtr(uint selflen, uint selfptr, uint needlelen, uint needleptr) private pure returns (uint) {
        uint ptr;

        if (needlelen <= selflen) {
            if (needlelen <= 32) {
                bytes32 mask;
                if (needlelen > 0) {
                    mask = bytes32(~(2 ** (8 * (32 - needlelen)) - 1));
                }

                bytes32 needledata;
                assembly { needledata := and(mload(needleptr), mask) }

                ptr = selfptr + selflen - needlelen;
                bytes32 ptrdata;
                assembly { ptrdata := and(mload(ptr), mask) }

                while (ptrdata != needledata) {
                    if (ptr <= selfptr)
                        return selfptr;
                    ptr--;
                    assembly { ptrdata := and(mload(ptr), mask) }
                }
                return ptr + needlelen;
            } else {
                // For long needles, use hashing
                bytes32 hash;
                assembly { hash := keccak256(needleptr, needlelen) }
                ptr = selfptr + (selflen - needlelen);
                while (ptr >= selfptr) {
                    bytes32 testHash;
                    assembly { testHash := keccak256(ptr, needlelen) }
                    if (hash == testHash)
                        return ptr + needlelen;
                    ptr -= 1;
                }
            }
        }
        return selfptr;
    }

    /*
     * @dev Modifies `self` to contain everything from the first occurrence of
     *      `needle` to the end of the slice. `self` is set to the empty slice
     *      if `needle` is not found.
     * @param self The slice to search and modify.
     * @param needle The text to search for.
     * @return `self`.
     */
    function find(slice memory self, slice memory needle) internal pure returns (slice memory) {
        uint ptr = findPtr(self._len, self._ptr, needle._len, needle._ptr);
        self._len -= ptr - self._ptr;
        self._ptr = ptr;
        return self;
    }

    /*
     * @dev Modifies `self` to contain the part of the string from the start of
     *      `self` to the end of the first occurrence of `needle`. If `needle`
     *      is not found, `self` is set to the empty slice.
     * @param self The slice to search and modify.
     * @param needle The text to search for.
     * @return `self`.
     */
    function rfind(slice memory self, slice memory needle) internal pure returns (slice memory) {
        uint ptr = rfindPtr(self._len, self._ptr, needle._len, needle._ptr);
        self._len = ptr - self._ptr;
        return self;
    }

    /*
     * @dev Splits the slice, setting `self` to everything after the first
     *      occurrence of `needle`, and `token` to everything before it. If
     *      `needle` does not occur in `self`, `self` is set to the empty slice,
     *      and `token` is set to the entirety of `self`.
     * @param self The slice to split.
     * @param needle The text to search for in `self`.
     * @param token An output parameter to which the first token is written.
     * @return `token`.
     */
    function split(slice memory self, slice memory needle, slice memory token) internal pure returns (slice memory) {
        uint ptr = findPtr(self._len, self._ptr, needle._len, needle._ptr);
        token._ptr = self._ptr;
        token._len = ptr - self._ptr;
        if (ptr == self._ptr + self._len) {
            // Not found
            self._len = 0;
        } else {
            self._len -= token._len + needle._len;
            self._ptr = ptr + needle._len;
        }
        return token;
    }

    /*
     * @dev Splits the slice, setting `self` to everything after the first
     *      occurrence of `needle`, and returning everything before it. If
     *      `needle` does not occur in `self`, `self` is set to the empty slice,
     *      and the entirety of `self` is returned.
     * @param self The slice to split.
     * @param needle The text to search for in `self`.
     * @return The part of `self` up to the first occurrence of `delim`.
     */
    function split(slice memory self, slice memory needle) internal pure returns (slice memory token) {
        split(self, needle, token);
    }

    /*
     * @dev Splits the slice, setting `self` to everything before the last
     *      occurrence of `needle`, and `token` to everything after it. If
     *      `needle` does not occur in `self`, `self` is set to the empty slice,
     *      and `token` is set to the entirety of `self`.
     * @param self The slice to split.
     * @param needle The text to search for in `self`.
     * @param token An output parameter to which the first token is written.
     * @return `token`.
     */
    function rsplit(slice memory self, slice memory needle, slice memory token) internal pure returns (slice memory) {
        uint ptr = rfindPtr(self._len, self._ptr, needle._len, needle._ptr);
        token._ptr = ptr;
        token._len = self._len - (ptr - self._ptr);
        if (ptr == self._ptr) {
            // Not found
            self._len = 0;
        } else {
            self._len -= token._len + needle._len;
        }
        return token;
    }

    /*
     * @dev Splits the slice, setting `self` to everything before the last
     *      occurrence of `needle`, and returning everything after it. If
     *      `needle` does not occur in `self`, `self` is set to the empty slice,
     *      and the entirety of `self` is returned.
     * @param self The slice to split.
     * @param needle The text to search for in `self`.
     * @return The part of `self` after the last occurrence of `delim`.
     */
    function rsplit(slice memory self, slice memory needle) internal pure returns (slice memory token) {
        rsplit(self, needle, token);
    }

    /*
     * @dev Counts the number of nonoverlapping occurrences of `needle` in `self`.
     * @param self The slice to search.
     * @param needle The text to search for in `self`.
     * @return The number of occurrences of `needle` found in `self`.
     */
    function count(slice memory self, slice memory needle) internal pure returns (uint cnt) {
        uint ptr = findPtr(self._len, self._ptr, needle._len, needle._ptr) + needle._len;
        while (ptr <= self._ptr + self._len) {
            cnt++;
            ptr = findPtr(self._len - (ptr - self._ptr), ptr, needle._len, needle._ptr) + needle._len;
        }
    }

    /*
     * @dev Returns True if `self` contains `needle`.
     * @param self The slice to search.
     * @param needle The text to search for in `self`.
     * @return True if `needle` is found in `self`, false otherwise.
     */
    function contains(slice memory self, slice memory needle) internal pure returns (bool) {
        return rfindPtr(self._len, self._ptr, needle._len, needle._ptr) != self._ptr;
    }

    /*
     * @dev Returns a newly allocated string containing the concatenation of
     *      `self` and `other`.
     * @param self The first slice to concatenate.
     * @param other The second slice to concatenate.
     * @return The concatenation of the two strings.
     */
    function concat(slice memory self, slice memory other) internal pure returns (string memory) {
        string memory ret = new string(self._len + other._len);
        uint retptr;
        assembly { retptr := add(ret, 32) }
        memcpy(retptr, self._ptr, self._len);
        memcpy(retptr + self._len, other._ptr, other._len);
        return ret;
    }

    /*
     * @dev Joins an array of slices, using `self` as a delimiter, returning a
     *      newly allocated string.
     * @param self The delimiter to use.
     * @param parts A list of slices to join.
     * @return A newly allocated string containing all the slices in `parts`,
     *         joined with `self`.
     */
    function join(slice memory self, slice[] memory parts) internal pure returns (string memory) {
        if (parts.length == 0)
            return "";

        uint length = self._len * (parts.length - 1);
        for(uint i = 0; i < parts.length; i++)
            length += parts[i]._len;

        string memory ret = new string(length);
        uint retptr;
        assembly { retptr := add(ret, 32) }

        for(uint i = 0; i < parts.length; i++) {
            memcpy(retptr, parts[i]._ptr, parts[i]._len);
            retptr += parts[i]._len;
            if (i < parts.length - 1) {
                memcpy(retptr, self._ptr, self._len);
                retptr += self._len;
            }
        }

        return ret;
    }
}

File 3 of 15 : 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);
}

File 4 of 15 : 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 5 of 15 : 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 6 of 15 : 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 7 of 15 : 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 8 of 15 : 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 15 : 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 10 of 15 : ERC721URIStorage.sol
// SPDX-License-Identifier: MIT

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) {
        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];
        }
    }
}

File 11 of 15 : 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 12 of 15 : 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 13 of 15 : 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 14 of 15 : 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 15 of 15 : 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);
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"title","type":"string"},{"internalType":"string","name":"_tokenUri","type":"string"}],"name":"claim","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getAllow","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getComm_Dealer","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getComm_Web3","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"title","type":"string"}],"name":"getID","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getNftPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"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":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"_allow","type":"uint256"}],"name":"setAllow","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_nft_price","type":"uint256"}],"name":"setNftPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"string","name":"tokenURIlink","type":"string"}],"name":"setTokenURI","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_nft_comm_dealer","type":"uint256"}],"name":"set_Comm_Dealer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_nft_comm_web3","type":"uint256"}],"name":"set_Comm_Web3","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"titleOf","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":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526064600c556028600d55603c600e553480156200002057600080fd5b506040518060400160405280600a81526020017f77656233646f6d61696e000000000000000000000000000000000000000000008152506040518060400160405280600e81526020017f57656233446f6d61696e2e6f7267000000000000000000000000000000000000815250620000ad620000a1620000e760201b60201c565b620000ef60201b60201c565b8160019080519060200190620000c5929190620001b3565b508060029080519060200190620000de929190620001b3565b505050620002c8565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620001c19062000263565b90600052602060002090601f016020900481019282620001e5576000855562000231565b82601f106200020057805160ff191683800117855562000231565b8280016001018555821562000231579182015b828111156200023057825182559160200191906001019062000213565b5b50905062000240919062000244565b5090565b5b808211156200025f57600081600090555060010162000245565b5090565b600060028204905060018216806200027c57607f821691505b6020821081141562000293576200029262000299565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b61596880620002d86000396000f3fe6080604052600436106101f95760003560e01c806370a082311161010d578063c41a360a116100a0578063d1776bc11161006f578063d1776bc11461073d578063daf7c16614610759578063e985e9c514610796578063efba4329146107d3578063f2fde38b146107fc576101f9565b8063c41a360a1461066f578063c4912774146106ac578063c87b56dd146106d7578063cfa8e89914610714576101f9565b80638da5cb5b116100dc5780638da5cb5b146105c757806395d89b41146105f2578063a22cb4651461061d578063b88d4fde14610646576101f9565b806370a082311461050d57806370aca6c81461054a578063715018a6146105875780637d9a7a4c1461059e576101f9565b806323b872dd116101905780634f6ccce71161015f5780634f6ccce71461040f5780635b0559fb1461044c5780635f2a9e87146104775780636352211e1461049357806366299365146104d0576101f9565b806323b872dd146103695780632f745c59146103925780633ccfd60b146103cf57806342842e0e146103e6576101f9565b80630e91cf5c116101cc5780630e91cf5c146102cc57806312065fe0146102f7578063162094c41461032257806318160ddd1461033e576101f9565b806301ffc9a7146101fe57806306fdde031461023b578063081812fc14610266578063095ea7b3146102a3575b600080fd5b34801561020a57600080fd5b5061022560048036038101906102209190614296565b610825565b6040516102329190614f44565b60405180910390f35b34801561024757600080fd5b50610250610837565b60405161025d9190614f5f565b60405180910390f35b34801561027257600080fd5b5061028d60048036038101906102889190614329565b6108c9565b60405161029a9190614edd565b60405180910390f35b3480156102af57600080fd5b506102ca60048036038101906102c5919061425a565b61094e565b005b3480156102d857600080fd5b506102e1610a66565b6040516102ee91906152e1565b60405180910390f35b34801561030357600080fd5b5061030c610a70565b60405161031991906152e1565b60405180910390f35b61033c600480360381019061033791906143d6565b610a78565b005b34801561034a57600080fd5b50610353610b24565b60405161036091906152e1565b60405180910390f35b34801561037557600080fd5b50610390600480360381019061038b9190614154565b610b31565b005b34801561039e57600080fd5b506103b960048036038101906103b4919061425a565b610b91565b6040516103c691906152e1565b60405180910390f35b3480156103db57600080fd5b506103e4610c36565b005b3480156103f257600080fd5b5061040d60048036038101906104089190614154565b610d02565b005b34801561041b57600080fd5b5061043660048036038101906104319190614329565b610d22565b60405161044391906152e1565b60405180910390f35b34801561045857600080fd5b50610461610db9565b60405161046e91906152e1565b60405180910390f35b610491600480360381019061048c9190614352565b610dc3565b005b34801561049f57600080fd5b506104ba60048036038101906104b59190614329565b6111b3565b6040516104c79190614edd565b60405180910390f35b3480156104dc57600080fd5b506104f760048036038101906104f29190614329565b611265565b60405161050491906152e1565b60405180910390f35b34801561051957600080fd5b50610534600480360381019061052f91906140ef565b611384565b60405161054191906152e1565b60405180910390f35b34801561055657600080fd5b50610571600480360381019061056c91906142e8565b61143c565b60405161057e9190614f5f565b60405180910390f35b34801561059357600080fd5b5061059c61157a565b005b3480156105aa57600080fd5b506105c560048036038101906105c09190614329565b611602565b005b3480156105d357600080fd5b506105dc611688565b6040516105e99190614edd565b60405180910390f35b3480156105fe57600080fd5b506106076116b1565b6040516106149190614f5f565b60405180910390f35b34801561062957600080fd5b50610644600480360381019061063f919061421e565b611743565b005b34801561065257600080fd5b5061066d600480360381019061066891906141a3565b6118c4565b005b34801561067b57600080fd5b5061069660048036038101906106919190614329565b611926565b6040516106a39190614edd565b60405180910390f35b3480156106b857600080fd5b506106c1611938565b6040516106ce91906152e1565b60405180910390f35b3480156106e357600080fd5b506106fe60048036038101906106f99190614329565b611942565b60405161070b9190614f5f565b60405180910390f35b34801561072057600080fd5b5061073b60048036038101906107369190614329565b611954565b005b6107576004803603810190610752919061442a565b6119da565b005b34801561076557600080fd5b50610780600480360381019061077b9190614329565b611ba5565b60405161078d9190614f5f565b60405180910390f35b3480156107a257600080fd5b506107bd60048036038101906107b89190614118565b611cc4565b6040516107ca9190614f44565b60405180910390f35b3480156107df57600080fd5b506107fa60048036038101906107f59190614329565b611d58565b005b34801561080857600080fd5b50610823600480360381019061081e91906140ef565b611dde565b005b600061083082611ed6565b9050919050565b60606001805461084690615750565b80601f016020809104026020016040519081016040528092919081815260200182805461087290615750565b80156108bf5780601f10610894576101008083540402835291602001916108bf565b820191906000526020600020905b8154815290600101906020018083116108a257829003601f168201915b5050505050905090565b60006108d482611f50565b610913576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161090a906151a1565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610959826111b3565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156109ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109c190615241565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166109e9611fbc565b73ffffffffffffffffffffffffffffffffffffffff161480610a185750610a1781610a12611fbc565b611cc4565b5b610a57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a4e906150c1565b60405180910390fd5b610a618383611fc4565b505050565b6000600d54905090565b600047905090565b610a89610a83611fbc565b8361207d565b610ac8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610abf90615281565b60405180910390fd5b610ad2828261215b565b610ada611688565b73ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f19350505050158015610b1f573d6000803e3d6000fd5b505050565b6000600a80549050905090565b610b42610b3c611fbc565b8261207d565b610b81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b7890615281565b60405180910390fd5b610b8c8383836121cf565b505050565b6000610b9c83611384565b8210610bdd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bd490614fa1565b60405180910390fd5b600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b610c3e611fbc565b73ffffffffffffffffffffffffffffffffffffffff16610c5c611688565b73ffffffffffffffffffffffffffffffffffffffff1614610cb2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ca9906151c1565b60405180910390fd5b610cba611688565b73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015610cff573d6000803e3d6000fd5b50565b610d1d838383604051806020016040528060008152506118c4565b505050565b6000610d2c610b24565b8210610d6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d64906152a1565b60405180910390fd5b600a8281548110610da7577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b6000600e54905090565b6000610e1c610e1585858080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061242b565b600261272b565b90506000610e28611938565b90506040518060200160405280600081525080519060200120828051906020012014611020576000610e5983612821565b9050610e6481611265565b91506000610e7182611265565b1415610f4057610e8081611926565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614610eed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ee490614f81565b60405180910390fd5b610ef5611688565b73ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f19350505050158015610f3a573d6000803e3d6000fd5b5061101a565b610f4981611926565b73ffffffffffffffffffffffffffffffffffffffff166108fc6064610f6c610db9565b34610f7791906155ff565b610f81919061545d565b9081150290604051600060405180830381858888f19350505050158015610fac573d6000803e3d6000fd5b50610fb5611688565b73ffffffffffffffffffffffffffffffffffffffff166108fc6064610fd8610a66565b34610fe391906155ff565b610fed919061545d565b9081150290604051600060405180830381858888f19350505050158015611018573d6000803e3d6000fd5b505b5061106f565b611028611688565b73ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f1935050505015801561106d573d6000803e3d6000fd5b505b6000670de0b6b3a76400008261108591906155ff565b9050803410156110ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110c190615261565b60405180910390fd5b6000871161110d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611104906150a1565b60405180910390fd5b60008686905011611153576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114a90615141565b60405180910390fd5b6111aa876111a488888080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505061242b565b86612956565b50505050505050565b6000806003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561125c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161125390615101565b60405180910390fd5b80915050919050565b600061127082611f50565b6112af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112a690615021565b60405180910390fd5b600060116000848152602001908152602001600020604051806060016040529081600082015481526020016001820180546112e990615750565b80601f016020809104026020016040519081016040528092919081815260200182805461131590615750565b80156113625780601f1061133757610100808354040283529160200191611362565b820191906000526020600020905b81548152906001019060200180831161134557829003601f168201915b5050505050815260200160028201548152505090508060400151915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156113f5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113ec906150e1565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b60606000601061144b8461242b565b6040516114589190614ea2565b90815260200160405180910390206040518060600160405290816000820154815260200160018201805461148b90615750565b80601f01602080910402602001604051908101604052809291908181526020018280546114b790615750565b80156115045780601f106114d957610100808354040283529160200191611504565b820191906000526020600020905b8154815290600101906020018083116114e757829003601f168201915b5050505050815260200160028201548152505090506115268160000151611f50565b611565576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161155c90615021565b60405180910390fd5b6115728160000151612b67565b915050919050565b611582611fbc565b73ffffffffffffffffffffffffffffffffffffffff166115a0611688565b73ffffffffffffffffffffffffffffffffffffffff16146115f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ed906151c1565b60405180910390fd5b6116006000612d14565b565b61160a611fbc565b73ffffffffffffffffffffffffffffffffffffffff16611628611688565b73ffffffffffffffffffffffffffffffffffffffff161461167e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611675906151c1565b60405180910390fd5b80600c8190555050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600280546116c090615750565b80601f01602080910402602001604051908101604052809291908181526020018280546116ec90615750565b80156117395780601f1061170e57610100808354040283529160200191611739565b820191906000526020600020905b81548152906001019060200180831161171c57829003601f168201915b5050505050905090565b61174b611fbc565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156117b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117b090615061565b60405180910390fd5b80600660006117c6611fbc565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611873611fbc565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516118b89190614f44565b60405180910390a35050565b6118d56118cf611fbc565b8361207d565b611914576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161190b90615281565b60405180910390fd5b61192084848484612dd8565b50505050565b6000611931826111b3565b9050919050565b6000600c54905090565b606061194d82612e34565b9050919050565b61195c611fbc565b73ffffffffffffffffffffffffffffffffffffffff1661197a611688565b73ffffffffffffffffffffffffffffffffffffffff16146119d0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119c7906151c1565b60405180910390fd5b80600d8190555050565b6119e382611f50565b611a22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a1990615021565b60405180910390fd5b611a33611a2d611fbc565b8361207d565b611a72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6990615281565b60405180910390fd5b6000600f600084815260200190815260200160002060405180606001604052908160008201548152602001600182018054611aac90615750565b80601f0160208091040260200160405190810160405280929190818152602001828054611ad890615750565b8015611b255780601f10611afa57610100808354040283529160200191611b25565b820191906000526020600020905b815481529060010190602001808311611b0857829003601f168201915b5050505050815260200160028201548152505090506040518060600160405280848152602001826020015181526020018381525060116000858152602001908152602001600020600082015181600001556020820151816001019080519060200190611b92929190613eaf565b5060408201518160020155905050505050565b6060611bb082611f50565b611bef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611be690615021565b60405180910390fd5b6000600f600084815260200190815260200160002060405180606001604052908160008201548152602001600182018054611c2990615750565b80601f0160208091040260200160405190810160405280929190818152602001828054611c5590615750565b8015611ca25780601f10611c7757610100808354040283529160200191611ca2565b820191906000526020600020905b815481529060010190602001808311611c8557829003601f168201915b5050505050815260200160028201548152505090508060200151915050919050565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611d60611fbc565b73ffffffffffffffffffffffffffffffffffffffff16611d7e611688565b73ffffffffffffffffffffffffffffffffffffffff1614611dd4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dcb906151c1565b60405180910390fd5b80600e8190555050565b611de6611fbc565b73ffffffffffffffffffffffffffffffffffffffff16611e04611688565b73ffffffffffffffffffffffffffffffffffffffff1614611e5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e51906151c1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611eca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ec190614fe1565b60405180910390fd5b611ed381612d14565b50565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480611f495750611f4882612f86565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612037836111b3565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061208882611f50565b6120c7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120be90615081565b60405180910390fd5b60006120d2836111b3565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061214157508373ffffffffffffffffffffffffffffffffffffffff16612129846108c9565b73ffffffffffffffffffffffffffffffffffffffff16145b8061215257506121518185611cc4565b5b91505092915050565b61216482611f50565b6121a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161219a90615121565b60405180910390fd5b806007600084815260200190815260200160002090805190602001906121ca929190613eaf565b505050565b8273ffffffffffffffffffffffffffffffffffffffff166121ef826111b3565b73ffffffffffffffffffffffffffffffffffffffff1614612245576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161223c906151e1565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156122b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122ac90615041565b60405180910390fd5b6122c0838383613068565b6122cb600082611fc4565b6001600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461231b9190615659565b925050819055506001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461237291906153d0565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b606060008290506000815167ffffffffffffffff811115612475577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156124a75781602001600182028036833780820191505090505b50905060005b825181101561272057604160f81b8382815181106124f4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916101580156125985750605a60f81b838281518110612568577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191611155b156126605760208382815181106125d8577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b60f81c6125f09190615426565b60f81b82828151811061262c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535061270d565b828181518110612699577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b8282815181106126dd577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053505b808061271890615782565b9150506124ad565b508092505050919050565b6060600061273884613078565b9050612742613f35565b600061279e6127996127886040518060400160405280600181526020017f2e00000000000000000000000000000000000000000000000000000000000000815250613078565b84866130a69092919063ffffffff16565b613171565b905060006127fc6127f76127e66040518060400160405280600181526020017f2e00000000000000000000000000000000000000000000000000000000000000815250613078565b85876130a69092919063ffffffff16565b613171565b90506001861415612813578194505050505061281b565b809450505050505b92915050565b600080601061282f8461242b565b60405161283c9190614ea2565b90815260200160405180910390206040518060600160405290816000820154815260200160018201805461286f90615750565b80601f016020809104026020016040519081016040528092919081815260200182805461289b90615750565b80156128e85780601f106128bd576101008083540402835291602001916128e8565b820191906000526020600020905b8154815290600101906020018083116128cb57829003601f168201915b50505050508152602001600282015481525050905061290a8160000151611f50565b612949576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161294090615021565b60405180910390fd5b8060000151915050919050565b61295f83611f50565b1561299f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612996906152c1565b60405180910390fd5b6129b06129ab8361242b565b613213565b156129f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129e790615201565b60405180910390fd5b60008390506000600590506040518060600160405280868152602001612a158661242b565b815260200182815250600f6000848152602001908152602001600020600082015181600001556020820151816001019080519060200190612a57929190613eaf565b50604082015181600201559050506040518060600160405280868152602001612a7f8661242b565b8152602001828152506010612a938661242b565b604051612aa09190614ea2565b9081526020016040518091039020600082015181600001556020820151816001019080519060200190612ad4929190613eaf565b50604082015181600201559050506040518060600160405280868152602001612afc8661242b565b81526020018281525060116000848152602001908152602001600020600082015181600001556020820151816001019080519060200190612b3e929190613eaf565b5060408201518160020155905050612b56338361330f565b612b60828461215b565b5050505050565b60606000821415612baf576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612d0f565b600082905060005b60008214612be1578080612bca90615782565b915050600a82612bda919061545d565b9150612bb7565b60008167ffffffffffffffff811115612c23577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612c555781602001600182028036833780820191505090505b5090505b60008514612d0857600182612c6e9190615659565b9150600a85612c7d91906157cb565b6030612c8991906153d0565b60f81b818381518110612cc5577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612d01919061545d565b9450612c59565b8093505050505b919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612de38484846121cf565b612def8484848461332d565b612e2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e2590614fc1565b60405180910390fd5b50505050565b6060612e3f82611f50565b612e7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e7590615181565b60405180910390fd5b6000600760008481526020019081526020016000208054612e9e90615750565b80601f0160208091040260200160405190810160405280929190818152602001828054612eca90615750565b8015612f175780601f10612eec57610100808354040283529160200191612f17565b820191906000526020600020905b815481529060010190602001808311612efa57829003601f168201915b505050505090506000612f286134c4565b9050600081511415612f3e578192505050612f81565b600082511115612f73578082604051602001612f5b929190614eb9565b60405160208183030381529060405292505050612f81565b612f7c846134db565b925050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061305157507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80613061575061306082613582565b5b9050919050565b6130738383836135ec565b505050565b613080613f35565b600060208301905060405180604001604052808451815260200182815250915050919050565b6130ae613f35565b60006130cc8560000151866020015186600001518760200151613700565b905084602001518360200181815250508460200151816130ec9190615659565b8360000181815250508460000151856020015161310991906153d0565b811415613120576000856000018181525050613166565b8360000151836000015161313491906153d0565b856000018181516131459190615659565b9150818152505083600001518161315c91906153d0565b8560200181815250505b829150509392505050565b60606000826000015167ffffffffffffffff8111156131b9577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156131eb5781602001600182028036833780820191505090505b5090506000602082019050613209818560200151866000015161384a565b8192505050919050565b6000806010836040516132269190614ea2565b90815260200160405180910390206040518060600160405290816000820154815260200160018201805461325990615750565b80601f016020809104026020016040519081016040528092919081815260200182805461328590615750565b80156132d25780601f106132a7576101008083540402835291602001916132d2565b820191906000526020600020905b8154815290600101906020018083116132b557829003601f168201915b505050505081526020016002820154815250509050600081600001519050600081146133035760019250505061330a565b6000925050505b919050565b6133298282604051806020016040528060008152506138f6565b5050565b600061334e8473ffffffffffffffffffffffffffffffffffffffff16613951565b156134b7578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613377611fbc565b8786866040518563ffffffff1660e01b81526004016133999493929190614ef8565b602060405180830381600087803b1580156133b357600080fd5b505af19250505080156133e457506040513d601f19601f820116820180604052508101906133e191906142bf565b60015b613467573d8060008114613414576040519150601f19603f3d011682016040523d82523d6000602084013e613419565b606091505b5060008151141561345f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161345690614fc1565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506134bc565b600190505b949350505050565b606060405180602001604052806000815250905090565b60606134e682611f50565b613525576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161351c90615221565b60405180910390fd5b600061352f6134c4565b9050600081511161354f576040518060200160405280600081525061357a565b8061355984612b67565b60405160200161356a929190614eb9565b6040516020818303038152906040525b915050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6135f7838383613964565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561363a5761363581613969565b613679565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146136785761367783826139b2565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156136bc576136b781613b1f565b6136fb565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146136fa576136f98282613c62565b5b5b505050565b600080849050600086851161383157602085116137d3576000808611156137595760018660206137309190615659565b600861373c91906155ff565b600261374891906154e1565b6137529190615659565b1960001b90505b60008186511690506000878a8a61377091906153d0565b61377a9190615659565b905060008386511690505b8281146137c5578186106137ac578a8a61379f91906153d0565b9650505050505050613842565b85806137b790615782565b965050838651169050613785565b859650505050505050613842565b60008585209050600091505b85886137eb9190615659565b821161382f57600086842090508082141561380c5783945050505050613842565b60018461381991906153d0565b935050818061382790615782565b9250506137df565b505b868661383d91906153d0565b925050505b949350505050565b5b60208110613889578151835260208361386491906153d0565b925060208261387391906153d0565b91506020816138829190615659565b905061384b565b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff905060008211156138e05760018260206138c69190615659565b6101006138d391906154e1565b6138dd9190615659565b90505b8019835116818551168181178652505050505050565b6139008383613ce1565b61390d600084848461332d565b61394c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161394390614fc1565b60405180910390fd5b505050565b600080823b905060008111915050919050565b505050565b600a80549050600b600083815260200190815260200160002081905550600a81908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016139bf84611384565b6139c99190615659565b9050600060096000848152602001908152602001600020549050818114613aae576000600860008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600860008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816009600083815260200190815260200160002081905550505b6009600084815260200190815260200160002060009055600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600a80549050613b339190615659565b90506000600b60008481526020019081526020016000205490506000600a8381548110613b89577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200154905080600a8381548110613bd1577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020018190555081600b600083815260200190815260200160002081905550600b600085815260200190815260200160002060009055600a805480613c46577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000613c6d83611384565b905081600860008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806009600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613d51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613d4890615161565b60405180910390fd5b613d5a81611f50565b15613d9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613d9190615001565b60405180910390fd5b613da660008383613068565b6001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613df691906153d0565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b828054613ebb90615750565b90600052602060002090601f016020900481019282613edd5760008555613f24565b82601f10613ef657805160ff1916838001178555613f24565b82800160010185558215613f24579182015b82811115613f23578251825591602001919060010190613f08565b5b509050613f319190613f4f565b5090565b604051806040016040528060008152602001600081525090565b5b80821115613f68576000816000905550600101613f50565b5090565b6000613f7f613f7a8461532d565b6152fc565b905082815260208101848484011115613f9757600080fd5b613fa284828561570e565b509392505050565b6000613fbd613fb88461535d565b6152fc565b905082815260208101848484011115613fd557600080fd5b613fe084828561570e565b509392505050565b600081359050613ff7816158d6565b92915050565b60008135905061400c816158ed565b92915050565b60008135905061402181615904565b92915050565b60008151905061403681615904565b92915050565b600082601f83011261404d57600080fd5b813561405d848260208601613f6c565b91505092915050565b60008083601f84011261407857600080fd5b8235905067ffffffffffffffff81111561409157600080fd5b6020830191508360018202830111156140a957600080fd5b9250929050565b600082601f8301126140c157600080fd5b81356140d1848260208601613faa565b91505092915050565b6000813590506140e98161591b565b92915050565b60006020828403121561410157600080fd5b600061410f84828501613fe8565b91505092915050565b6000806040838503121561412b57600080fd5b600061413985828601613fe8565b925050602061414a85828601613fe8565b9150509250929050565b60008060006060848603121561416957600080fd5b600061417786828701613fe8565b935050602061418886828701613fe8565b9250506040614199868287016140da565b9150509250925092565b600080600080608085870312156141b957600080fd5b60006141c787828801613fe8565b94505060206141d887828801613fe8565b93505060406141e9878288016140da565b925050606085013567ffffffffffffffff81111561420657600080fd5b6142128782880161403c565b91505092959194509250565b6000806040838503121561423157600080fd5b600061423f85828601613fe8565b925050602061425085828601613ffd565b9150509250929050565b6000806040838503121561426d57600080fd5b600061427b85828601613fe8565b925050602061428c858286016140da565b9150509250929050565b6000602082840312156142a857600080fd5b60006142b684828501614012565b91505092915050565b6000602082840312156142d157600080fd5b60006142df84828501614027565b91505092915050565b6000602082840312156142fa57600080fd5b600082013567ffffffffffffffff81111561431457600080fd5b614320848285016140b0565b91505092915050565b60006020828403121561433b57600080fd5b6000614349848285016140da565b91505092915050565b6000806000806060858703121561436857600080fd5b6000614376878288016140da565b945050602085013567ffffffffffffffff81111561439357600080fd5b61439f87828801614066565b9350935050604085013567ffffffffffffffff8111156143be57600080fd5b6143ca878288016140b0565b91505092959194509250565b600080604083850312156143e957600080fd5b60006143f7858286016140da565b925050602083013567ffffffffffffffff81111561441457600080fd5b614420858286016140b0565b9150509250929050565b6000806040838503121561443d57600080fd5b600061444b858286016140da565b925050602061445c858286016140da565b9150509250929050565b61446f8161568d565b82525050565b61447e8161569f565b82525050565b600061448f8261538d565b61449981856153a3565b93506144a981856020860161571d565b6144b2816158b8565b840191505092915050565b60006144c882615398565b6144d281856153b4565b93506144e281856020860161571d565b6144eb816158b8565b840191505092915050565b600061450182615398565b61450b81856153c5565b935061451b81856020860161571d565b80840191505092915050565b6000614534602d836153b4565b91507f5072696d61727920646f6d61696e206f776e65722063616e206f6e6c79206d6960008301527f6e74207375622d646f6d61696e000000000000000000000000000000000000006020830152604082019050919050565b600061459a602b836153b4565b91507f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008301527f74206f6620626f756e64730000000000000000000000000000000000000000006020830152604082019050919050565b60006146006032836153b4565b91507f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008301527f63656976657220696d706c656d656e74657200000000000000000000000000006020830152604082019050919050565b60006146666026836153b4565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006146cc601c836153b4565b91507f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006000830152602082019050919050565b600061470c6011836153b4565b91507f446f6d61696e206e6f74206d696e7465640000000000000000000000000000006000830152602082019050919050565b600061474c6024836153b4565b91507f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006147b26019836153b4565b91507f4552433732313a20617070726f766520746f2063616c6c6572000000000000006000830152602082019050919050565b60006147f2602c836153b4565b91507f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b60006148586014836153b4565b91507f546f6b656e2049442063616e6e6f7420626520300000000000000000000000006000830152602082019050919050565b60006148986038836153b4565b91507f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008301527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006020830152604082019050919050565b60006148fe602a836153b4565b91507f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008301527f726f2061646472657373000000000000000000000000000000000000000000006020830152604082019050919050565b60006149646029836153b4565b91507f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008301527f656e7420746f6b656e00000000000000000000000000000000000000000000006020830152604082019050919050565b60006149ca602e836153b4565b91507f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60008301527f6578697374656e7420746f6b656e0000000000000000000000000000000000006020830152604082019050919050565b6000614a30601b836153b4565b91507f446f6d61696e206e616d652063616e6e6f7420626520626c616e6b00000000006000830152602082019050919050565b6000614a706020836153b4565b91507f4552433732313a206d696e7420746f20746865207a65726f20616464726573736000830152602082019050919050565b6000614ab06031836153b4565b91507f45524337323155524953746f726167653a2055524920717565727920666f722060008301527f6e6f6e6578697374656e7420746f6b656e0000000000000000000000000000006020830152604082019050919050565b6000614b16602c836153b4565b91507f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000614b7c6020836153b4565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000614bbc6029836153b4565b91507f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008301527f73206e6f74206f776e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000614c226019836153b4565b91507f446f6d61696e20616c72656164792072656769737465726564000000000000006000830152602082019050919050565b6000614c62602f836153b4565b91507f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008301527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006020830152604082019050919050565b6000614cc86021836153b4565b91507f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008301527f72000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614d2e6024836153b4565b91507f5072696365206d75737420626520657175616c20746f206c697374696e67207060008301527f72696365000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614d946031836153b4565b91507f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008301527f776e6572206e6f7220617070726f7665640000000000000000000000000000006020830152604082019050919050565b6000614dfa602c836153b4565b91507f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008301527f7574206f6620626f756e647300000000000000000000000000000000000000006020830152604082019050919050565b6000614e60601d836153b4565b91507f446f6d61696e207265737472696374656420746f2072656769737465720000006000830152602082019050919050565b614e9c816156f7565b82525050565b6000614eae82846144f6565b915081905092915050565b6000614ec582856144f6565b9150614ed182846144f6565b91508190509392505050565b6000602082019050614ef26000830184614466565b92915050565b6000608082019050614f0d6000830187614466565b614f1a6020830186614466565b614f276040830185614e93565b8181036060830152614f398184614484565b905095945050505050565b6000602082019050614f596000830184614475565b92915050565b60006020820190508181036000830152614f7981846144bd565b905092915050565b60006020820190508181036000830152614f9a81614527565b9050919050565b60006020820190508181036000830152614fba8161458d565b9050919050565b60006020820190508181036000830152614fda816145f3565b9050919050565b60006020820190508181036000830152614ffa81614659565b9050919050565b6000602082019050818103600083015261501a816146bf565b9050919050565b6000602082019050818103600083015261503a816146ff565b9050919050565b6000602082019050818103600083015261505a8161473f565b9050919050565b6000602082019050818103600083015261507a816147a5565b9050919050565b6000602082019050818103600083015261509a816147e5565b9050919050565b600060208201905081810360008301526150ba8161484b565b9050919050565b600060208201905081810360008301526150da8161488b565b9050919050565b600060208201905081810360008301526150fa816148f1565b9050919050565b6000602082019050818103600083015261511a81614957565b9050919050565b6000602082019050818103600083015261513a816149bd565b9050919050565b6000602082019050818103600083015261515a81614a23565b9050919050565b6000602082019050818103600083015261517a81614a63565b9050919050565b6000602082019050818103600083015261519a81614aa3565b9050919050565b600060208201905081810360008301526151ba81614b09565b9050919050565b600060208201905081810360008301526151da81614b6f565b9050919050565b600060208201905081810360008301526151fa81614baf565b9050919050565b6000602082019050818103600083015261521a81614c15565b9050919050565b6000602082019050818103600083015261523a81614c55565b9050919050565b6000602082019050818103600083015261525a81614cbb565b9050919050565b6000602082019050818103600083015261527a81614d21565b9050919050565b6000602082019050818103600083015261529a81614d87565b9050919050565b600060208201905081810360008301526152ba81614ded565b9050919050565b600060208201905081810360008301526152da81614e53565b9050919050565b60006020820190506152f66000830184614e93565b92915050565b6000604051905081810181811067ffffffffffffffff8211171561532357615322615889565b5b8060405250919050565b600067ffffffffffffffff82111561534857615347615889565b5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff82111561537857615377615889565b5b601f19601f8301169050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006153db826156f7565b91506153e6836156f7565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561541b5761541a6157fc565b5b828201905092915050565b600061543182615701565b915061543c83615701565b92508260ff03821115615452576154516157fc565b5b828201905092915050565b6000615468826156f7565b9150615473836156f7565b9250826154835761548261582b565b5b828204905092915050565b6000808291508390505b60018511156154d8578086048111156154b4576154b36157fc565b5b60018516156154c35780820291505b80810290506154d1856158c9565b9450615498565b94509492505050565b60006154ec826156f7565b91506154f7836156f7565b92506155247fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff848461552c565b905092915050565b60008261553c57600190506155f8565b8161554a57600090506155f8565b8160018114615560576002811461556a57615599565b60019150506155f8565b60ff84111561557c5761557b6157fc565b5b8360020a915084821115615593576155926157fc565b5b506155f8565b5060208310610133831016604e8410600b84101617156155ce5782820a9050838111156155c9576155c86157fc565b5b6155f8565b6155db848484600161548e565b925090508184048111156155f2576155f16157fc565b5b81810290505b9392505050565b600061560a826156f7565b9150615615836156f7565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561564e5761564d6157fc565b5b828202905092915050565b6000615664826156f7565b915061566f836156f7565b925082821015615682576156816157fc565b5b828203905092915050565b6000615698826156d7565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b8381101561573b578082015181840152602081019050615720565b8381111561574a576000848401525b50505050565b6000600282049050600182168061576857607f821691505b6020821081141561577c5761577b61585a565b5b50919050565b600061578d826156f7565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156157c0576157bf6157fc565b5b600182019050919050565b60006157d6826156f7565b91506157e1836156f7565b9250826157f1576157f061582b565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160011c9050919050565b6158df8161568d565b81146158ea57600080fd5b50565b6158f68161569f565b811461590157600080fd5b50565b61590d816156ab565b811461591857600080fd5b50565b615924816156f7565b811461592f57600080fd5b5056fea26469706673582212203d73868bc0fa1e75a7dfd60d9b5a313344763138f8334c611aa8da4cb2876f3d64736f6c63430008000033

Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.