Contract 0xce458fc7cfc322cdd65ec77cf7b6410002e2d793

 

Contract Overview

Boba Network: TUMO Token
Balance:
0.00001 Ether

EtherValue:
$0.02 (@ $1,846.21/ETH)

Token:
Txn Hash Method
Block
From
To
Value
0x22ec7632f0951487861ce572cc31df9c23adf6a969a8483baf2c5091b78c84a3Set Approval For...10000932023-04-09 16:57:3457 days 23 hrs ago0x6f50f38329be75a51ed270a024c5b9be313d2d41 IN  Boba Network: TUMO Token0 Ether0.0001119411
0x774e3dfffd4db658f4b6f01709ebf6e076bc17cb69bb1f74b858578d7fcea9b2Set Approval For...10000792023-04-09 16:51:4457 days 23 hrs ago0x6f50f38329be75a51ed270a024c5b9be313d2d41 IN  Boba Network: TUMO Token0 Ether0.0001158561
0x55354764222327fda817d13ab93a9e82e88342a81115f7e5ea99a26a843140deSet Approval For...9521762023-01-28 0:40:06129 days 15 hrs ago0xc6e37fc18b317cfe646718ef5b5f8590be54bd39 IN  Boba Network: TUMO Token0 Ether0.0001192631
0xdde9371b56d99822c8ecebc892130747bcd0e10ec10420b664fc08fa911dd083Set Approval For...9122052022-12-14 17:22:52173 days 22 hrs ago0xbe487c9efa7c314b03b1114ee00cea676545d2ef IN  Boba Network: TUMO Token0 Ether0.0001411861
0xe6047255f63d369578035656c97c1933376b0b7786c94bd0f96e4d3a29739ae8Set Approval For...9057882022-12-07 8:15:12181 days 7 hrs ago0x32cf17a2c433fc548f2cfb8d9c277ba8578ee070 IN  Boba Network: TUMO Token0 Ether0.0001041771
0xb5d2c638d50d04e9779f8fe8667a86550331c59e1c2b1bb796a036dfbfc770f7Set Approval For...8614682022-10-31 22:30:22217 days 17 hrs ago0x5dad5b8c4b640305585bf4586713bad0fe992dd6 IN  Boba Network: TUMO Token0 Ether0.00010760161.2
0x2a7a24d5b6f49871dc8b426cdab949ca879a9f35b7b363ddc4ba6b40973b9da1Set Approval For...8595882022-10-30 7:31:22219 days 8 hrs ago0x31579690285b3c47feb80cbdc5d2db0e59ec9435 IN  Boba Network: TUMO Token0 Ether0.0001948861
0x3d5dcd1d0f575b5ec429933f8229e9d614a8dd7abf8e35898c35ec9c912c3f7eSet Approval For...8498772022-10-24 22:41:23224 days 17 hrs ago0x691177bb24dd04b6e47adb5fbb2c586566d52f35 IN  Boba Network: TUMO Token0 Ether0.0000973021
0x029a5a3b4521b3cc61c0eaf0708cc0e3050ed0814b4a6a1a0fbee206bc7a4ac7Transfer From7792482022-08-19 6:41:38291 days 9 hrs ago0xeb019188391733cdda7d1eff0cd4b60560ef55f0 IN  Boba Network: TUMO Token0 Ether0.0001297441
0x6f12bc0297115b97365a33835c8d502e453131f59e5f07f879f98239e8c17d2eSet Approval For...7626102022-08-07 5:38:00303 days 10 hrs ago0x0e29304fee49a7f3bfb4bd0c0c3d574597dc2bdf IN  Boba Network: TUMO Token0 Ether0.000095051
0x384a999ec214978b9799bc0e982ecd6a5d69548d56205dbebcf3966e66b02ee2Transfer From7576252022-08-03 15:42:06307 days 25 mins ago0xb7973c6d5209b1bf5c198789830b67d5fe340dad IN  Boba Network: TUMO Token0 Ether0.3258238341
0xecfd3379172f52e00cbe60dcfb3965b01935cad5764920d5fe9fb1ffe3815fb8Transfer From7575302022-08-03 14:25:07307 days 1 hr ago0xb7973c6d5209b1bf5c198789830b67d5fe340dad IN  Boba Network: TUMO Token0 Ether0.290868811
0x00535905ee2b1ee7a8b9ca9b6bc83852eee0bb83c55200984c9d3839c5558cc3Transfer From7575282022-08-03 14:24:42307 days 1 hr ago0xb7973c6d5209b1bf5c198789830b67d5fe340dad IN  Boba Network: TUMO Token0 Ether0.290868811
0x679f8cd10c3bfba15b9a6670ed3d5e2f9970c146a7f77038d80fef2be381e645Set Approval For...7053352022-06-30 14:23:55341 days 1 hr ago0x5ee0b497c02f0f07ffe38f28b5ce118f5c159b83 IN  Boba Network: TUMO Token0 Ether0.0002012211
0x3a4ca0577626cb51ba505f5aedcc3c967a7e32074a7d117b0737c48b9adb952bSet Approval For...7033052022-06-29 15:25:31342 days 42 mins ago0xe76e6c15746602f2a221cda1b9c4ea1bb5d3f530 IN  Boba Network: TUMO Token0 Ether0.0002520731
0x2f6f179cec34d735bc2f0e3c808d9c7b3a40b11613f919ac46276994818c577cTransfer From6988402022-06-26 16:30:57344 days 23 hrs ago0x9b57430a4947e31a5494e6a9faef12e6decfe347 IN  Boba Network: TUMO Token0 Ether0.0003514421
0x48de260943ab8561cdeb42ad1d42942e92c06905026c9c6b1d92568a3b1f6981Set Approval For...6695072022-06-13 13:19:44358 days 2 hrs ago0x4d90cd83c0aac70628607a3b808ac452a06c155c IN  Boba Network: TUMO Token0 Ether0.000338881
0x375f4481684dbc3af372faa4464aef430ae5c7ebe71f1edf044edc09ab1b16c1Set Approval For...6536712022-06-07 8:22:17364 days 7 hrs ago0xbadcf6b22c342270f5958fac55b6d3ef7a973537 IN  Boba Network: TUMO Token0 Ether0.0001987291
0xf28ca0785728f7e9048a0c569edbb26ac4ced8018e000f4235df6d2ed913e0f7Set Approval For...6536612022-06-07 8:09:32364 days 7 hrs ago0x025f6714c48a77e06b9d9c9f869be9845f8ca3f9 IN  Boba Network: TUMO Token0 Ether0.0002349361
0xb6590c2a92353385a4990d565ee13dd47e96fa234e8d579ef3abfdaf48760e88Transfer From6507982022-06-06 2:46:27365 days 13 hrs ago0x08e7d8451a0040f24eeff9cf7bdb8c0618353b51 IN  Boba Network: TUMO Token0 Ether0.8911251841
0xe655acdbda9e17d7a307dea10821283b3eb72bffaf320f61a287f816051fc96cTransfer From6478792022-06-04 1:30:26367 days 14 hrs ago0x08e7d8451a0040f24eeff9cf7bdb8c0618353b51 IN  Boba Network: TUMO Token0 Ether0.8544874481
0x7fc033404e532bbcfa81fb0c07b272e14d0b9f7897527319e3cb3b2dd68c72a4Set Approval For...6167612022-05-22 1:56:27380 days 14 hrs ago0xb82f14529671008f4801c30a32a734e380fb98c1 IN  Boba Network: TUMO Token0 Ether0.000099181
0x7a772b6f912fa12613ec2747300a5969b8f3e39baf06bbf01433e5074924e01eSet Approval For...6098472022-05-18 17:55:13383 days 22 hrs ago0xb6544c2d92ef75156e9f0626d52f1f003a3f5ede IN  Boba Network: TUMO Token0 Ether0.0001608911
0xf1077c5ea3903b5db2c0dfec45d32ef8ee3b90f5201ebd9ec5f03eac7f699902Transfer From5544192022-05-06 4:46:34396 days 11 hrs ago0xcddb1dae284951a262c20253866e9a0521cf57d5 IN  Boba Network: TUMO Token0 Ether0.0002213431
0xc5b32d34da8ee1d9497e6058ee630fecee8b70d0c9b234555eb73dd465d31e9bSet Approval For...5542822022-05-06 2:34:56396 days 13 hrs ago0x73f9639f79555f64dcc2de5a57ec98d1a2ab3180 IN  Boba Network: TUMO Token0 Ether0.0002114191
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x83fb03e2090d48815b0981ebcb0c724c0c229e1549c47a119aeac1ddc3dd2f019678202023-02-21 7:29:31105 days 8 hrs ago 0xe821914e6da4d02ddb3af2f14bd0c956acbe0928 Boba Network: TUMO Token0 Ether
0x5aeaf67e0a46345a4d65af77ec2c1c686ca1d73289c9589737d40aae5c7af5549658682023-02-17 22:09:08108 days 17 hrs ago 0x7bc8b1b5aba4df3be9f9a32dae501214dc0e4f3f Boba Network: TUMO Token0 Ether
0xee1d0f36f47dceca03625c45f12a843732d9def9e860b33e0ef3b748245a031f9584132023-02-06 7:21:45120 days 8 hrs ago 0x7bc8b1b5aba4df3be9f9a32dae501214dc0e4f3f Boba Network: TUMO Token0 Ether
0x2eb32a48f9d23d876407c481f8d5ca783f97e136e37c7dd063f5ccd5525899be9547402023-02-01 2:44:55125 days 13 hrs ago 0x7bc8b1b5aba4df3be9f9a32dae501214dc0e4f3f Boba Network: TUMO Token0 Ether
0xbca6d563553a8583527457b432b27525a82c73c24f27e39e22fc209f05f928fe9547352023-02-01 2:42:43125 days 13 hrs ago 0x7bc8b1b5aba4df3be9f9a32dae501214dc0e4f3f Boba Network: TUMO Token0 Ether
0x3f11c0f4f1f54c21798ffd3ead581ef4df69a338fca2bcf28d9ac3cdef532f269521672023-01-28 0:25:18129 days 15 hrs ago 0x7bc8b1b5aba4df3be9f9a32dae501214dc0e4f3f Boba Network: TUMO Token0 Ether
0x1404cfbcba80f94b5ca51d9355a9f9957956bd607b363644c8bbd4dbdac290b89521662023-01-28 0:23:28129 days 15 hrs ago 0x7bc8b1b5aba4df3be9f9a32dae501214dc0e4f3f Boba Network: TUMO Token0 Ether
0x657c8e82b3f5f3d201119b23007f85e77f71867473ed4610539d4ea2d372a9be9521452023-01-27 23:50:15129 days 16 hrs ago 0x7bc8b1b5aba4df3be9f9a32dae501214dc0e4f3f Boba Network: TUMO Token0 Ether
0x28c8de7db757c0a969b55129af77637a6523a0b3640af79d37941d84a155b8c79317782023-01-06 23:44:53150 days 16 hrs ago 0x7bc8b1b5aba4df3be9f9a32dae501214dc0e4f3f Boba Network: TUMO Token0 Ether
0x01eabcb0c80c2766af4f7b96f9a533ce0719b131a5c683663a588217bc682b039266652023-01-01 11:03:10156 days 5 hrs ago 0xe821914e6da4d02ddb3af2f14bd0c956acbe0928 Boba Network: TUMO Token0 Ether
0x9a3aad1e5b494b8e60a95a53ebb1f374a994a9069cd4d4d21769ba679399a0439252122022-12-30 9:06:20158 days 7 hrs ago 0x7bc8b1b5aba4df3be9f9a32dae501214dc0e4f3f Boba Network: TUMO Token0 Ether
0x5d7d618b744cbc296070687c423fc220834d0de2cff73df512cae176b29d3c0b9243992022-12-29 8:38:26159 days 7 hrs ago 0x7bc8b1b5aba4df3be9f9a32dae501214dc0e4f3f Boba Network: TUMO Token0 Ether
0x84af71af725a190b22d5c5f46051b0b1ca811ae5807964207b8fb98036b06e209212182022-12-25 1:05:14163 days 15 hrs ago 0x7bc8b1b5aba4df3be9f9a32dae501214dc0e4f3f Boba Network: TUMO Token0 Ether
0x9d6f10b1d2484e3e3bb7624b2ccf373164d97066a9ab000b0b08f396adaf11209208922022-12-24 14:20:39164 days 1 hr ago 0x7bc8b1b5aba4df3be9f9a32dae501214dc0e4f3f Boba Network: TUMO Token0 Ether
0x0f14f64461387f209a20ded7aeebde879dcd10c611795c380f6275e1084b1d579202872022-12-23 17:13:27164 days 22 hrs ago 0x7bc8b1b5aba4df3be9f9a32dae501214dc0e4f3f Boba Network: TUMO Token0 Ether
0xda8188c4ab4e138680be637e265debf74abb4d1f1b81c8f3a4d4103a52eb7b059189502022-12-22 8:43:44166 days 7 hrs ago 0x7bc8b1b5aba4df3be9f9a32dae501214dc0e4f3f Boba Network: TUMO Token0 Ether
0xdda9ee26a55923b1e79bfb8ebf2c5d6941470eb5e13a91ae8456a59ab5410dd39122082022-12-14 17:25:51173 days 22 hrs ago 0x7bc8b1b5aba4df3be9f9a32dae501214dc0e4f3f Boba Network: TUMO Token0 Ether
0xf72e8107a0c6e0a3f04681d02fca463c0b75a0ec8c76a6f1967caa567de32cdb9122072022-12-14 17:25:08173 days 22 hrs ago 0x7bc8b1b5aba4df3be9f9a32dae501214dc0e4f3f Boba Network: TUMO Token0 Ether
0x8cf00afa48aac23512f6a948fb645076e36fcf095725297aef65a7af6a30d8649122062022-12-14 17:23:07173 days 22 hrs ago 0x7bc8b1b5aba4df3be9f9a32dae501214dc0e4f3f Boba Network: TUMO Token0 Ether
0x1fed182455cf684b9654cf8f0e3720e69761c2272177e2fdb59ca0826f3aaee98675442022-11-06 7:46:43212 days 8 hrs ago 0x7bc8b1b5aba4df3be9f9a32dae501214dc0e4f3f Boba Network: TUMO Token0 Ether
0x1f1781bd7a126d6ff488096b30ba42dfd0fc4d99731a4bcc48d4d981acbc26a58675402022-11-06 7:43:00212 days 8 hrs ago 0x7bc8b1b5aba4df3be9f9a32dae501214dc0e4f3f Boba Network: TUMO Token0 Ether
0x0ee100ac0fe32dc7f670d96abfb5e96054b21b7c899e6a9e3301650d5b7c30788595922022-10-30 7:33:24219 days 8 hrs ago 0x7bc8b1b5aba4df3be9f9a32dae501214dc0e4f3f Boba Network: TUMO Token0 Ether
0xf9507440c63eb2b116728d63f11b8c17bad0cf491d4a25639691993673636eaf8465472022-10-22 15:13:15227 days 54 mins ago 0x7bc8b1b5aba4df3be9f9a32dae501214dc0e4f3f Boba Network: TUMO Token0 Ether
0x2184b1cd4c824c227058542d84a35fabcfcbd4bbb372891ac99b872457920abd8361202022-10-11 6:31:07238 days 9 hrs ago 0x7bc8b1b5aba4df3be9f9a32dae501214dc0e4f3f Boba Network: TUMO Token0 Ether
0xd6461b80c76b5dab1bf441e4c2f8dc7dd15ce81a23fe192abc29868a282ff40e7986172022-09-03 10:52:37276 days 5 hrs ago 0x7bc8b1b5aba4df3be9f9a32dae501214dc0e4f3f Boba Network: TUMO Token0 Ether
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
NFTMonsterV2

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 10000 runs

Other Settings:
default evmVersion
File 1 of 25 : NFTMonsterV2.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "@openzeppelin/contracts/interfaces/IERC2981.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Pausable.sol";
import "./RandomlyAssigned.sol";
import "./AddRecover.sol";
import "./AddOnChainMetaData.sol";


contract NFTMonsterV2 is IERC2981, ERC721Burnable, ERC721Pausable, RandomlyAssigned, AddRecover, AddOnChainMetaData {

    uint256 public constant PRICE = 0; // 0.0000000001 ether;
    uint256 public constant ROYALTY_PERCENTAGE = 5; // 5 %
    uint256 public constant MAX_MINT_IN_PUBLIC = 3;
    address[] public projectOwners;

    mapping(address => uint256) public amountMintedInPublicSale;

    event MintedNFT(uint256 indexed id);

    constructor(string memory name_, string memory symbol_, uint256 maxNFTs_,
        address[] memory creatorAddresses_, address turingHelperAddress_)
    ERC721(name_, symbol_)
    RandomlyAssigned(maxNFTs_, 0, turingHelperAddress_) // Max. x NFTs available; Start counting from 0
    AddOnChainMetaData(turingHelperAddress_)
    {
        _pause();
        projectOwners = creatorAddresses_;
    }

    modifier saleIsOpen {
        require(tokenCount() <= totalSupply(), "Sale end");
        if (_msgSender() != owner()) {
            require(!paused(), "Pausable: paused");
        }
        _;
    }

    /// @notice Called with the sale price to determine how much royalty
    //          is owed and to whom.
    /// @param _tokenId - the NFT asset queried for royalty information
    /// @param _salePrice - the sale price of the NFT asset specified by _tokenId
    /// @return receiver - address of who should be sent the royalty payment
    /// @return royaltyAmount - the royalty payment amount for _salePrice
    function royaltyInfo(
        uint256 _tokenId,
        uint256 _salePrice
    ) external override view returns (
        address receiver,
        uint256 royaltyAmount
    ) {
        return (address(this), (_salePrice * ROYALTY_PERCENTAGE)/100);
    }

    function mint(uint256 _count) external payable saleIsOpen {
        require(_count > 0 && _count <= MAX_MINT_IN_PUBLIC, "Mint not within boundaries");

        uint256 total = tokenCount();
        require(total + _count <= totalSupply(), "Max limit");
        require(msg.value >= price(_count), "Value below price");

        amountMintedInPublicSale[_msgSender()] = amountMintedInPublicSale[_msgSender()] + _count;
        require(amountMintedInPublicSale[_msgSender()] <= MAX_MINT_IN_PUBLIC, "Wallet limit reached");

        for (uint256 i = 0; i < _count; i++) {
            _mintSingle(_msgSender());
        }
    }

    function _mintSingle(address _to) private {
        uint256 id = nextToken();
        _safeMint(_to, id);

        _setTokenURI(id); // calculate random properties
        emit MintedNFT(id);
    }

    function price(uint256 _count) public pure returns (uint256) {
        return PRICE * _count;
    }

    function startTrading() external onlyOwner {
        _unpause();
    }

    function withdraw() external onlyOwner {
        uint256 balance = address(this).balance;
        require(balance > 0);

        uint creatorCount = projectOwners.length;
        for (uint i = 0; i < projectOwners.length; i++) {
            _withdraw(projectOwners[i], balance / creatorCount);
        }
    }

    function _withdraw(address _address, uint256 _amount) private {
        (bool success,) = _address.call{value : _amount}("");
        require(success, "Transfer failed.");
    }

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

    function supportsInterface(bytes4 _interfaceId) public view override(IERC165, ERC721, AddOnChainMetaData) returns (bool) {
        return AddOnChainMetaData.supportsInterface(_interfaceId);
    }

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

File 2 of 25 : IERC2981.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Interface for the NFT Royalty Standard
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Called with the sale price to determine how much royalty is owed and to whom.
     * @param tokenId - the NFT asset queried for royalty information
     * @param salePrice - the sale price of the NFT asset specified by `tokenId`
     * @return receiver - address of who should be sent the royalty payment
     * @return royaltyAmount - the royalty payment amount for `salePrice`
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}

File 3 of 25 : 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 4 of 25 : ERC721Burnable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 5 of 25 : ERC721Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../ERC721.sol";
import "../../../security/Pausable.sol";

/**
 * @dev ERC721 token with pausable token transfers, minting and burning.
 *
 * Useful for scenarios such as preventing trades until the end of an evaluation
 * period, or having an emergency switch for freezing all token transfers in the
 * event of a large bug.
 */
abstract contract ERC721Pausable is ERC721, Pausable {
    /**
     * @dev See {ERC721-_beforeTokenTransfer}.
     *
     * Requirements:
     *
     * - the contract must not be paused.
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual override {
        super._beforeTokenTransfer(from, to, tokenId);

        require(!paused(), "ERC721Pausable: token transfer while paused");
    }
}

File 6 of 25 : RandomlyAssigned.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "./AddLimitedSupply.sol";
import "./TuringHelper.sol";

/// @title Randomly assign tokenIDs from a given set of tokens.
abstract contract RandomlyAssigned is AddLimitedSupply {
    // Used for random index assignment
    mapping(uint256 => uint256) private tokenMatrix;

    // The initial token ID
    uint256 private startFrom;
    TuringHelper private turingHelper;

    /// Instanciate the contract
    /// @param _totalSupply how many tokens this collection should hold
    /// @param _startFrom the tokenID with which to start counting
    constructor (uint256 _totalSupply, uint256 _startFrom, address turingHelperAddress)
    AddLimitedSupply(_totalSupply)
    {
        startFrom = _startFrom;
        turingHelper = TuringHelper(turingHelperAddress);
    }

    /// Get the next token ID
    /// @dev Randomly gets a new token ID and keeps track of the ones that are still available.
    /// @return the next token ID
    function nextToken() internal override ensureAvailability returns (uint256) {
        uint256 maxIndex = totalSupply() - tokenCount();
        uint256 initialRandom = turingHelper.TuringRandom() + block.number + tokenCount();
        uint256 random = initialRandom % maxIndex;

        uint256 value = 0;
        if (tokenMatrix[random] == 0) {
            // If this matrix position is empty, set the value to the generated random number.
            value = random;
        } else {
            // Otherwise, use the previously stored number from the matrix.
            value = tokenMatrix[random];
        }

        // If the last available tokenID is still unused...
        if (tokenMatrix[maxIndex - 1] == 0) {
            // ...store that ID in the current matrix position.
            tokenMatrix[random] = maxIndex - 1;
        } else {
            // ...otherwise copy over the stored number to the current matrix position.
            tokenMatrix[random] = tokenMatrix[maxIndex - 1];
        }

        // Increment counts
        super.nextToken();

        return value + startFrom;
    }
}

File 7 of 25 : AddRecover.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

contract AddRecover is Ownable {

    /// @dev Recovers ERC20 tokens accidentally sent to the contract.
    function recoverERC20(address tokenAddress, uint256 tokenAmount) external onlyOwner {
        IERC20(tokenAddress).transfer(owner(), tokenAmount);
    }

    /// @dev Recovers ERC721 tokens accidentally sent to the contract.
    function recoverERC721(address tokenAddress, uint256 tokenId_) external onlyOwner {
        IERC721(tokenAddress).transferFrom(address(this), owner(), tokenId_);
    }
}

File 8 of 25 : AddOnChainMetaData.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "base64-sol/base64.sol";
import "./TuringHelper.sol";

abstract contract AddOnChainMetaData is ERC721 {

    TuringHelper private turingHelper;

    mapping(uint256 => uint256) private _tokenURIs;

    constructor(address turingHelperAddress_) {
        turingHelper = TuringHelper(turingHelperAddress_);
    }

    /// @dev Calculate randomized onchain metadata for specific tokenID.
    function getMetadata(uint tokenId) private view returns (string memory) {
        require(_exists(tokenId), "ERC721getSVG: URI get of nonexistent token");

        uint256 genome = _tokenURIs[tokenId];
        bytes memory i_bytes = abi.encodePacked(genome);
        // ... all the way to uint8(i_bytes[31])

        string[6] memory part;

        string memory colorEye = string(abi.encodePacked(Strings.toString(uint8(i_bytes[0])), ",", Strings.toString(uint8(i_bytes[3])), ",", Strings.toString(uint8(i_bytes[6]))));
        string memory colorBody = string(abi.encodePacked(Strings.toString(uint8(i_bytes[1])), ",", Strings.toString(uint8(i_bytes[4])), ",", Strings.toString(uint8(i_bytes[7]))));
        string memory colorExtra = string(abi.encodePacked(Strings.toString(uint8(i_bytes[2])), ",", Strings.toString(uint8(i_bytes[5])), ",", Strings.toString(uint8(i_bytes[8]))));

        part[0] = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.2' x='0px' y='0px' viewBox='0 0 300 300' style='enable-background:new 0 0 300 300;' xml:space='preserve'>"
        "<style type='text/css'>.st0{fill:rgb(";
        part[1] = ");stroke:black;stroke-width:6;stroke-miterlimit:10;} .st1{fill:rgb(";
        part[2] = ");stroke:black;stroke-width:6;stroke-miterlimit:10;} .st2{fill:rgb(";

        string memory top = "plain";
        if(uint8(i_bytes[9]) > 250) {
            // wow
            top = "crown";
            part[3] = ");stroke:black;stroke-width:6;stroke-miterlimit:10;} .st3{fill:none;stroke:black;stroke-width:10;stroke-miterlimit:10;}</style>"
            "<path class='st0' d='M57.6,152.6c-1.5,13.8-22.2,27.3-25.5,30.4c-3.3,3.1-3.7,9.7-0.5,16.4c4.3,5.5,8.1,15.7,21.1,10c4-1.6,12.9-10,15.9-11.4'/>"
            "<path class='st0' d='M236.8,172.2c2.1,1.8,8.7,7.2,11.4,8.3s5.9,1.3,8.4-0.1c1.7-1,14.6-18.2,15.4-21.6c1-4.3-0.4-9.2-3.6-12.3c-3.3-3.2-22.3-11.8-30.8-10.9'/>"
            "<path class='st0' d='M199.3,78.3c1.3-13,7.8-25,14.9-36.7c-3.8,1.9-21.9,19.8-26.2,17.7c-2.7-5.1-2.2-12-2.9-19.7c-0.5-5.9-0.7-9.9-1.3-15.8C177.2,34.5,162.4,54,162,54.1c-3.9,0.3-9.7-30.2-13.3-44.2c-3.9,13.6-9,45.1-13.5,44.2c-3.2-2.6-17.7-24.2-21.5-30.5c-2.6,11.1-1.8,35.6-5.2,36c-8.2-2.6-18.3-13.8-25.8-19.2c0.5,0.3,8.3,16.9,9.7,20c0.8,1.9,3.8,9.1,5.6,17.9'/>";
        } else {
            // sorry :-(
            part[3] = ");stroke:black;stroke-width:6;stroke-miterlimit:10;} .st3{fill:none;stroke:black;stroke-width:10;stroke-miterlimit:10;}</style>"
            "<path class='st0' d='M57.6,152.6c-1.5,13.8-22.2,27.3-25.5,30.4c-3.3,3.1-3.7,9.7-0.5,16.4c4.3,5.5,8.1,15.7,21.1,10c4-1.6,12.9-10,15.9-11.4'/>"
            "<path class='st0' d='M236.8,172.2c2.1,1.8,8.7,7.2,11.4,8.3s5.9,1.3,8.4-0.1c1.7-1,14.6-18.2,15.4-21.6c1-4.3-0.4-9.2-3.6-12.3c-3.3-3.2-22.3-11.8-30.8-10.9'/>"
            "<path class='st0' d='M123.1,67.1c-2.8-6-14.4-20.7-4-24c7.7-2.8,13,14,21.5,13.1c9.4-0.4-14.6-35.3,6.9-36.8c3.3-0.2,10.3,0,12.8,9.5c1.3,9-6.3,12-0.7,15.1c9,3.7,17.4-11.2,23.9-3.1c5.9,10-4.7,17.6-10.1,24.1'/>";
        }

        part[4] = "<circle class='st1' cx='148.5' cy='154.4' r='90.9'/>"
        "<path class='st0' d='M204.5,243.7c0.4,4.7,1.8,9.7,5.6,12.6c2.9,2.2,6.7,2.8,10.3,3.2c6.4,0.8,12.8,1.5,19.1,0.7s12.7-3.4,16.9-8.2c0.7-0.8,1.4-1.7,1.7-2.7c0.8-2.2,0-4.7-1.3-6.7c-3.9-6.4-11.4-9.5-18.4-12.2c-4.1-1.6-8.3-3.2-12.4-4.8c-5.2-2-13.5-6.8-18-1.5C204.2,228.6,204,238.2,204.5,243.7z'/>"
        "<path class='st0' d='M76,240.7c-4.6,2.4-8.4,6.2-11.8,10.2c-3.9,4.6-7.5,9.8-8.5,15.8s1.2,12.8,6.4,15.8c3.2,1.8,7.1,2,10.8,2c5,0,10-0.2,15-0.5c5.3-0.4,10.9-1.1,15.3-4c3.2-2.1,5.7-5.3,7.9-8.4c4.1-5.7,7.9-11.8,8.9-18.7c0.2-1.7,0.3-3.6-0.4-5.2c-0.6-1.4-1.6-2.5-2.6-3.5C107,234.6,87.9,234.5,76,240.7z'/>"
        "<path class='st0' d='M178.8,200.7c2.2,6,5.6,16.9,7.7,22.9c3.8-6.8,5-15,3.5-22.6c-0.4-1.9-3.6-7.7-5.3-8.6'/>"
        "<path class='st0' d='M105.5,197.2c3.6,5.8,6.7,19.6,8.1,26.3c6.8-2.1,11.4-9.7,10.1-16.6'/>"
        "<path class='st2' d='M78.9,120.4c-3.2,4.1-3.4,24.3-1.1,28.4c3.8,6.8,28.5,11.8,32.6,10.6c5.4-1.7,9.2-6.6,11.2-11.9c2.8-7.4,2.7-15.5,2.5-23.4c-0.2-8.7,1.8-15.9,10-20.8c4.6-2.7,10-3.9,15.4-4.2c7.6-0.5,21.7,12.5,22.1,14.9c2.2,15-2.7,30.9-12.9,42c-1,1.1-26.9,2-32-5.1c-3.6-5,0-39.3-10.8-46.3C108.4,99.6,80.3,118.6,78.9,120.4z'/>"
        "<path class='st2' d='M178.9,149.6c0.7,1.2,21.3,4.9,28.4,3.3c5.7-1.3,11.8-3.8,14.4-9.1c1.5-3,1.6-6.4,1.6-9.8c0.2-8.4,0-17.8-5.6-24.1c-5-5.6-13-7.2-20.4-7.7c-5.6-0.4-11.7-0.3-16.3,2.9C167.4,114.5,172.1,137.6,178.9,149.6z'/>"
        "<path class='st3' d='M100.8,193c7.9,5.6,16.8,9.9,26.1,12.9c10.9,3.5,22.3,5.1,33.7,4.3c4.8-0.4,9.8-1.2,13.8-4c3.1-2.1,13.4-16.6,16.3-20.7'/>";

        string memory magic = "scarless";
        if(uint8(i_bytes[10]) > 235) {
            // nice!
            magic = "wizzard";
            part[5] = "<path class='st3' d='M246.1,202.5c10.8-44.5,12.3-59.3,24.7-118.6'/><circle class='st1' cx='272.3' cy='73.7' r='10.2'/></svg>";
        } else {
            // sorry :-(
            part[5] = "</svg>";
        }

        string memory svgData = string(abi.encodePacked(part[0], colorEye, part[1], colorBody, part[2], colorExtra, part[3], part[4], part[5]));
        string memory attributes = string(abi.encodePacked(
                '[{"trait_type": "Eye", "value": "', colorEye, '"},',
                '{"trait_type": "Body", "value": "', colorBody, '"},',
                '{"trait_type": "Extra", "value": "', colorExtra, '"},',
                '{"trait_type": "Top", "value": "', top, '"},',
                '{"trait_type": "Magic", "value": "', magic, '"}]'));
        string memory json = Base64.encode(bytes(string(
                abi.encodePacked('{"name": "TuringMonster", "description": "Little Monsters everywhere.", "attributes":',
                    attributes, ', "image_data": "', bytes(svgData), '"}')
            )));

        return json;
    }

    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        string memory json = getMetadata(tokenId);
        // non-existent token check integrated
        return string(abi.encodePacked('data:application/json;base64,', json));
    }

    function exists(uint256 tokenId) public view returns (bool) {
        return _exists(tokenId);
    }

    function bridgeExtraData(uint256 tokenId) public view virtual returns(bytes memory) {
        return abi.encode(_tokenURIs[tokenId]);
    }

    function supportsInterface(bytes4 _interfaceId) public view virtual override returns (bool) {
        return _interfaceId == this.bridgeExtraData.selector || super.supportsInterface(_interfaceId);
    }

    function _setTokenURI(uint256 tokenId_) internal virtual {
        require(_exists(tokenId_), "ERC721URIStorage: URI set of nonexistent token");

        uint256 rand = turingHelper.TuringRandom();
        _tokenURIs[tokenId_] = uint256(keccak256(abi.encode(rand, tokenId_)));
    }
}

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

pragma solidity ^0.8.0;

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

File 10 of 25 : 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 11 of 25 : 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 12 of 25 : 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 25 : 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 14 of 25 : 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 15 of 25 : 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 16 of 25 : 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 17 of 25 : 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 18 of 25 : Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 19 of 25 : AddLimitedSupply.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

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

/// @title A token tracker that limits the token supply and increments token IDs on each new mint.
abstract contract AddLimitedSupply {
    using Counters for Counters.Counter;

    // Keeps track of how many we have minted
    Counters.Counter private _tokenCount;

    /// @dev The maximum count of tokens this token tracker will hold.
    uint256 private _totalSupply;

    /// Instanciate the contract
    /// @param totalSupply_ how many tokens this collection should hold
    constructor (uint256 totalSupply_) {
        _totalSupply = totalSupply_;
    }

    /// @dev Get the max Supply
    /// @return the maximum token count
    function totalSupply() public virtual view returns (uint256) {
        return _totalSupply;
    }

    /// @dev Get the current token count
    /// @return the created token count
    function tokenCount() public view returns (uint256) {
        return _tokenCount.current();
    }

    /// @dev Check whether tokens are still available
    /// @return the available token count
    function availableTokenCount() public view returns (uint256) {
        return totalSupply() - tokenCount();
    }

    /// @dev Increment the token count and fetch the latest count
    /// @return the next token id
    function nextToken() internal virtual ensureAvailability returns (uint256) {
        uint256 token = _tokenCount.current();

        _tokenCount.increment();

        return token;
    }

    /// @dev Check whether another token is still available
    modifier ensureAvailability() {
        require(availableTokenCount() > 0, "No more tokens available");
        _;
    }

    /// @param amount Check whether number of tokens are still available
    /// @dev Check whether tokens are still available
    modifier ensureAvailabilityFor(uint256 amount) {
        require(availableTokenCount() >= amount, "Requested number of tokens not available");
        _;
    }
}

File 20 of 25 : TuringHelper.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

import '@openzeppelin/contracts/access/Ownable.sol';
import "./ITuringHelper.sol";

contract TuringHelper is ITuringHelper, Ownable {

  TuringHelper Self;

  // This protects your own credits for this helper contract
  mapping(address => bool) public permittedCaller;

  event AddPermittedCaller(address _callerAddress);
  event RemovePermittedCaller(address _callerAddress);
  event CheckPermittedCaller(address _callerAddress, bool permitted);
  event OffchainResponse(uint version, bytes responseData);
  event OffchainRandom(uint version, uint256 random);

  modifier onlyPermittedCaller() {
    require(
      permittedCaller[msg.sender],
      'Invalid Caller Address'
    );
    _;
  }

  constructor () public {
    Self = TuringHelper(address(this));
  }

  function addPermittedCaller(address _callerAddress)
    public onlyOwner {
      permittedCaller[_callerAddress] = true;
      emit AddPermittedCaller(_callerAddress);
  }

  function removePermittedCaller(address _callerAddress)
    public onlyOwner {
      permittedCaller[_callerAddress] = false;
      emit RemovePermittedCaller(_callerAddress);
  }

  function checkPermittedCaller(address _callerAddress)
    public returns (bool) {
      bool permitted = permittedCaller[_callerAddress];
      emit CheckPermittedCaller(_callerAddress, permitted);
      return permitted;
  }

  function GetErrorCode(uint32 rType)
    internal view returns (string memory) {
      if(rType ==  1) return "TURING: Geth intercept failure";
      if(rType == 10) return "TURING: Incorrect input state";
      if(rType == 11) return "TURING: Calldata too short";
      if(rType == 12) return "TURING: URL >64 bytes";
      if(rType == 13) return "TURING: Server error";
      if(rType == 14) return "TURING: Could not decode server response";
      if(rType == 15) return "TURING: Could not create rpc client";
      if(rType == 16) return "TURING: RNG failure";
      if(rType == 17) return "TURING: API Response >322 chars";
      if(rType == 18) return "TURING: API Response >160 bytes";
      if(rType == 19) return "TURING: Insufficient credit";
      if(rType == 20) return "TURING: Missing cache entry";
  }

  /* This is the interface to the off-chain mechanism. Although
     marked as "public", it is only to be called by TuringCall()
     or TuringTX().
     The _payload parameter is overloaded to represent either the
     request parameters or the off-chain response, with the rType
     parameter indicating which is which.
     When called as a request (rType == 1), it starts the offchain call,
     which, if all all goes well, results in the rType changing to 2.
     This response is then passed back to the caller.
  */
  function GetResponse(uint32 rType, string memory _url, bytes memory _payload)
    public returns (bytes memory) {

    require (msg.sender == address(this), "Turing:GetResponse:msg.sender != address(this)");
    require (_payload.length > 0, "Turing:GetResponse:no payload");
    require (rType == 2, string(GetErrorCode(rType))); // l2geth can pass values here to provide debug information
    return _payload;
  }

  function GetRandom(uint32 rType, uint256 _random)
    public returns (uint256) {

    require (msg.sender == address(this), "Turing:GetResponse:msg.sender != address(this)");
    require (rType == 2, string(GetErrorCode(rType)));
    return _random;
  }

  /* Called from the external contract. It takes an api endponit URL
     and an abi-encoded request payload. The URL and the list of allowed
     methods are supplied when the contract is created. In the future
     some of this registration might be moved into l2geth, allowing for
     security measures such as TLS client certificates. A configurable timeout
     could also be added.

     Logs the offchain response so that a future verifier or fraud prover
     can replay the transaction and ensure that it results in the same state
     root as during the initial execution. Note - a future version might
     need to include a timestamp and/or more details about the
     offchain interaction.
  */
  function TuringTx(string memory _url, bytes memory _payload)
    public onlyPermittedCaller override returns (bytes memory) {
      require (_payload.length > 0, "Turing:TuringTx:no payload");

      /* Initiate the request. This can't be a local function call
         because that would stay inside the EVM and not give l2geth
         a place to intercept and re-write the call.
      */
      bytes memory response = Self.GetResponse(1, _url, _payload);
      emit OffchainResponse(0x01, response);
      return response;
  }

  function TuringRandom()
    public onlyPermittedCaller returns (uint256) {

      uint256 response = Self.GetRandom(1, 0);
      emit OffchainRandom(0x01, response);
      return response;
  }

    // ERC165 check interface
    function supportsInterface(bytes4 _interfaceId) public pure returns (bool) {
        bytes4 firstSupportedInterface = bytes4(keccak256("supportsInterface(bytes4)")); // ERC165
        bytes4 secondSupportedInterface = ITuringHelper.TuringTx.selector;
        return _interfaceId == firstSupportedInterface || _interfaceId == secondSupportedInterface;
    }
}

File 21 of 25 : Counters.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 22 of 25 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 23 of 25 : ITuringHelper.sol
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.9;

interface ITuringHelper {

    /* Called from the external contract. It takes an api endponit URL
       and an abi-encoded request payload. The URL and the list of allowed
       methods are supplied when the contract is created. In the future
       some of this registration might be moved into l2geth, allowing for
       security measures such as TLS client certificates. A configurable timeout
       could also be added.

       Logs the offchain response so that a future verifier or fraud prover
       can replay the transaction and ensure that it results in the same state
       root as during the initial execution. Note - a future version might
       need to include a timestamp and/or more details about the
       offchain interaction.
    */
    function TuringTx(string memory _url, bytes memory _payload) external returns (bytes memory);

    function TuringRandom() external returns (uint256);
}

File 24 of 25 : IERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

File 25 of 25 : base64.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0;

/// @title Base64
/// @author Brecht Devos - <[email protected]>
/// @notice Provides functions for encoding/decoding base64
library Base64 {
    string internal constant TABLE_ENCODE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
    bytes  internal constant TABLE_DECODE = hex"0000000000000000000000000000000000000000000000000000000000000000"
                                            hex"00000000000000000000003e0000003f3435363738393a3b3c3d000000000000"
                                            hex"00000102030405060708090a0b0c0d0e0f101112131415161718190000000000"
                                            hex"001a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132330000000000";

    function encode(bytes memory data) internal pure returns (string memory) {
        if (data.length == 0) return '';

        // load the table into memory
        string memory table = TABLE_ENCODE;

        // multiply by 4/3 rounded up
        uint256 encodedLen = 4 * ((data.length + 2) / 3);

        // add some extra buffer at the end required for the writing
        string memory result = new string(encodedLen + 32);

        assembly {
            // set the actual output length
            mstore(result, encodedLen)

            // prepare the lookup table
            let tablePtr := add(table, 1)

            // input ptr
            let dataPtr := data
            let endPtr := add(dataPtr, mload(data))

            // result ptr, jump over length
            let resultPtr := add(result, 32)

            // run over the input, 3 bytes at a time
            for {} lt(dataPtr, endPtr) {}
            {
                // read 3 bytes
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)

                // write 4 characters
                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, mload(add(tablePtr, and(shr( 6, input), 0x3F))))
                resultPtr := add(resultPtr, 1)
                mstore8(resultPtr, mload(add(tablePtr, and(        input,  0x3F))))
                resultPtr := add(resultPtr, 1)
            }

            // padding with '='
            switch mod(mload(data), 3)
            case 1 { mstore(sub(resultPtr, 2), shl(240, 0x3d3d)) }
            case 2 { mstore(sub(resultPtr, 1), shl(248, 0x3d)) }
        }

        return result;
    }

    function decode(string memory _data) internal pure returns (bytes memory) {
        bytes memory data = bytes(_data);

        if (data.length == 0) return new bytes(0);
        require(data.length % 4 == 0, "invalid base64 decoder input");

        // load the table into memory
        bytes memory table = TABLE_DECODE;

        // every 4 characters represent 3 bytes
        uint256 decodedLen = (data.length / 4) * 3;

        // add some extra buffer at the end required for the writing
        bytes memory result = new bytes(decodedLen + 32);

        assembly {
            // padding with '='
            let lastBytes := mload(add(data, mload(data)))
            if eq(and(lastBytes, 0xFF), 0x3d) {
                decodedLen := sub(decodedLen, 1)
                if eq(and(lastBytes, 0xFFFF), 0x3d3d) {
                    decodedLen := sub(decodedLen, 1)
                }
            }

            // set the actual output length
            mstore(result, decodedLen)

            // prepare the lookup table
            let tablePtr := add(table, 1)

            // input ptr
            let dataPtr := data
            let endPtr := add(dataPtr, mload(data))

            // result ptr, jump over length
            let resultPtr := add(result, 32)

            // run over the input, 4 characters at a time
            for {} lt(dataPtr, endPtr) {}
            {
               // read 4 characters
               dataPtr := add(dataPtr, 4)
               let input := mload(dataPtr)

               // write 3 bytes
               let output := add(
                   add(
                       shl(18, and(mload(add(tablePtr, and(shr(24, input), 0xFF))), 0xFF)),
                       shl(12, and(mload(add(tablePtr, and(shr(16, input), 0xFF))), 0xFF))),
                   add(
                       shl( 6, and(mload(add(tablePtr, and(shr( 8, input), 0xFF))), 0xFF)),
                               and(mload(add(tablePtr, and(        input , 0xFF))), 0xFF)
                    )
                )
                mstore(resultPtr, shl(232, output))
                resultPtr := add(resultPtr, 3)
            }
        }

        return result;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"string","name":"name_","type":"string"},{"internalType":"string","name":"symbol_","type":"string"},{"internalType":"uint256","name":"maxNFTs_","type":"uint256"},{"internalType":"address[]","name":"creatorAddresses_","type":"address[]"},{"internalType":"address","name":"turingHelperAddress_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"}],"name":"MintedNFT","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"MAX_MINT_IN_PUBLIC","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ROYALTY_PERCENTAGE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"amountMintedInPublicSale","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"availableTokenCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"bridgeExtraData","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"exists","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","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":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"price","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"projectOwners","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenAmount","type":"uint256"}],"name":"recoverERC20","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenAddress","type":"address"},{"internalType":"uint256","name":"tokenId_","type":"uint256"}],"name":"recoverERC721","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"uint256","name":"_salePrice","type":"uint256"}],"name":"royaltyInfo","outputs":[{"internalType":"address","name":"receiver","type":"address"},{"internalType":"uint256","name":"royaltyAmount","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":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"startTrading","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":[],"name":"tokenCount","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"}]

60806040523480156200001157600080fd5b5060405162004aa538038062004aa58339810160408190526200003491620003e6565b8083600083828989816000908051906020019062000054929190620001ed565b5080516200006a906001906020840190620001ed565b50506006805460ff1916905550600855600a91909155600b80546001600160a01b0319166001600160a01b0390921691909117905550620000b2620000ac3390565b620000fd565b600d80546001600160a01b0319166001600160a01b0392909216919091179055620000dc6200014f565b8151620000f190600f9060208501906200027c565b50505050505062000546565b600c80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60065460ff16156200019a5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640160405180910390fd5b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620001d03390565b6040516001600160a01b03909116815260200160405180910390a1565b828054620001fb9062000509565b90600052602060002090601f0160209004810192826200021f57600085556200026a565b82601f106200023a57805160ff19168380011785556200026a565b828001600101855582156200026a579182015b828111156200026a5782518255916020019190600101906200024d565b5062000278929150620002d4565b5090565b8280548282559060005260206000209081019282156200026a579160200282015b828111156200026a57825182546001600160a01b0319166001600160a01b039091161782556020909201916001909101906200029d565b5b80821115620002785760008155600101620002d5565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b03811182821017156200032c576200032c620002eb565b604052919050565b600082601f8301126200034657600080fd5b81516001600160401b03811115620003625762000362620002eb565b602062000378601f8301601f1916820162000301565b82815285828487010111156200038d57600080fd5b60005b83811015620003ad57858101830151828201840152820162000390565b83811115620003bf5760008385840101525b5095945050505050565b80516001600160a01b0381168114620003e157600080fd5b919050565b600080600080600060a08688031215620003ff57600080fd5b85516001600160401b03808211156200041757600080fd5b6200042589838a0162000334565b96506020915081880151818111156200043d57600080fd5b6200044b8a828b0162000334565b965050604088015194506060880151818111156200046857600080fd5b8801601f81018a136200047a57600080fd5b8051828111156200048f576200048f620002eb565b8060051b9250620004a284840162000301565b818152928201840192848101908c851115620004bd57600080fd5b928501925b84841015620004e657620004d684620003c9565b82529285019290850190620004c2565b809750505050505050620004fd60808701620003c9565b90509295509295909350565b600181811c908216806200051e57607f821691505b602082108114156200054057634e487b7160e01b600052602260045260246000fd5b50919050565b61454f80620005566000396000f3fe6080604052600436106102345760003560e01c806370a0823111610138578063a0712d68116100b0578063dadc77921161007f578063e14ca35311610064578063e14ca3531461064f578063e985e9c514610664578063f2fde38b146106ad57600080fd5b8063dadc77921461060d578063de45f0371461062257600080fd5b8063a0712d681461059a578063a22cb465146105ad578063b88d4fde146105cd578063c87b56dd146105ed57600080fd5b80638d859f3e1161010757806395d89b41116100ec57806395d89b41146105275780639b9284f91461053c5780639f181b5e1461058557600080fd5b80638d859f3e146104f45780638da5cb5b1461050957600080fd5b806370a082311461047f578063715018a61461049f578063819d4cc6146104b45780638980f11f146104d457600080fd5b80632a55205a116101cb578063463b08db1161019a57806353339ba01161017f57806353339ba0146104275780635c975abb146104475780636352211e1461045f57600080fd5b8063463b08db146103f25780634f558e791461040757600080fd5b80632a55205a1461035e5780633ccfd60b1461039d57806342842e0e146103b257806342966c68146103d257600080fd5b806318160ddd1161020757806318160ddd146102ea57806323b872dd1461030957806326a49e3714610329578063293230b81461034957600080fd5b806301ffc9a71461023957806306fdde031461026e578063081812fc14610290578063095ea7b3146102c8575b600080fd5b34801561024557600080fd5b50610259610254366004612da3565b6106cd565b60405190151581526020015b60405180910390f35b34801561027a57600080fd5b506102836106de565b6040516102659190612e3d565b34801561029c57600080fd5b506102b06102ab366004612e50565b610770565b6040516001600160a01b039091168152602001610265565b3480156102d457600080fd5b506102e86102e3366004612e85565b61081b565b005b3480156102f657600080fd5b506008545b604051908152602001610265565b34801561031557600080fd5b506102e8610324366004612eaf565b61094d565b34801561033557600080fd5b506102fb610344366004612e50565b6109d5565b34801561035557600080fd5b506102e86109e1565b34801561036a57600080fd5b5061037e610379366004612eeb565b610a45565b604080516001600160a01b039093168352602083019190915201610265565b3480156103a957600080fd5b506102e8610a6b565b3480156103be57600080fd5b506102e86103cd366004612eaf565b610b2c565b3480156103de57600080fd5b506102e86103ed366004612e50565b610b47565b3480156103fe57600080fd5b506102fb600581565b34801561041357600080fd5b50610259610422366004612e50565b610bce565b34801561043357600080fd5b506102b0610442366004612e50565b610bed565b34801561045357600080fd5b5060065460ff16610259565b34801561046b57600080fd5b506102b061047a366004612e50565b610c17565b34801561048b57600080fd5b506102fb61049a366004612f0d565b610ca2565b3480156104ab57600080fd5b506102e8610d3c565b3480156104c057600080fd5b506102e86104cf366004612e85565b610da0565b3480156104e057600080fd5b506102e86104ef366004612e85565b610e9f565b34801561050057600080fd5b506102fb600081565b34801561051557600080fd5b50600c546001600160a01b03166102b0565b34801561053357600080fd5b50610283610fb2565b34801561054857600080fd5b50610283610557366004612e50565b6000908152600e60209081526040918290205482518083019190915282518082039092018252820190915290565b34801561059157600080fd5b506102fb610fc1565b6102e86105a8366004612e50565b610fd1565b3480156105b957600080fd5b506102e86105c8366004612f36565b611254565b3480156105d957600080fd5b506102e86105e8366004612f9c565b611337565b3480156105f957600080fd5b50610283610608366004612e50565b6113c5565b34801561061957600080fd5b506102fb600381565b34801561062e57600080fd5b506102fb61063d366004612f0d565b60106020526000908152604090205481565b34801561065b57600080fd5b506102fb6113d0565b34801561067057600080fd5b5061025961067f366004613096565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156106b957600080fd5b506102e86106c8366004612f0d565b6113e7565b60006106d8826114c6565b92915050565b6060600080546106ed906130c9565b80601f0160208091040260200160405190810160405280929190818152602001828054610719906130c9565b80156107665780601f1061073b57610100808354040283529160200191610766565b820191906000526020600020905b81548152906001019060200180831161074957829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166107ff5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061082682610c17565b9050806001600160a01b0316836001600160a01b031614156108b05760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f720000000000000000000000000000000000000000000000000000000000000060648201526084016107f6565b336001600160a01b03821614806108cc57506108cc813361067f565b61093e5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016107f6565b610948838361151c565b505050565b610958335b826115a2565b6109ca5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016107f6565b6109488383836116aa565b60006106d8828261314c565b600c546001600160a01b03163314610a3b5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107f6565b610a4361189a565b565b600080306064610a5660058661314c565b610a6091906131b8565b915091509250929050565b600c546001600160a01b03163314610ac55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107f6565b4780610ad057600080fd5b600f5460005b600f5481101561094857610b1a600f8281548110610af657610af66131cc565b6000918252602090912001546001600160a01b0316610b1584866131b8565b611949565b80610b24816131fb565b915050610ad6565b61094883838360405180602001604052806000815250611337565b610b5033610952565b610bc25760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f7665640000000000000000000000000000000060648201526084016107f6565b610bcb816119ec565b50565b6000818152600260205260408120546001600160a01b031615156106d8565b600f8181548110610bfd57600080fd5b6000918252602090912001546001600160a01b0316905081565b6000818152600260205260408120546001600160a01b0316806106d85760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e000000000000000000000000000000000000000000000060648201526084016107f6565b60006001600160a01b038216610d205760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f20616464726573730000000000000000000000000000000000000000000060648201526084016107f6565b506001600160a01b031660009081526003602052604090205490565b600c546001600160a01b03163314610d965760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107f6565b610a436000611aab565b600c546001600160a01b03163314610dfa5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107f6565b816001600160a01b03166323b872dd30610e1c600c546001600160a01b031690565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e085901b1681526001600160a01b0392831660048201529116602482015260448101849052606401600060405180830381600087803b158015610e8357600080fd5b505af1158015610e97573d6000803e3d6000fd5b505050505050565b600c546001600160a01b03163314610ef95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107f6565b816001600160a01b031663a9059cbb610f1a600c546001600160a01b031690565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e084901b1681526001600160a01b03909116600482015260248101849052604401602060405180830381600087803b158015610f7a57600080fd5b505af1158015610f8e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906109489190613234565b6060600180546106ed906130c9565b6000610fcc60075490565b905090565b600854610fdc610fc1565b111561102a5760405162461bcd60e51b815260206004820152600860248201527f53616c6520656e6400000000000000000000000000000000000000000000000060448201526064016107f6565b600c546001600160a01b0316331461108f5760065460ff161561108f5760405162461bcd60e51b815260206004820152601060248201527f5061757361626c653a207061757365640000000000000000000000000000000060448201526064016107f6565b6000811180156110a0575060038111155b6110ec5760405162461bcd60e51b815260206004820152601a60248201527f4d696e74206e6f742077697468696e20626f756e64617269657300000000000060448201526064016107f6565b60006110f6610fc1565b905061110160085490565b61110b8383613251565b11156111595760405162461bcd60e51b815260206004820152600960248201527f4d6178206c696d6974000000000000000000000000000000000000000000000060448201526064016107f6565b611162826109d5565b3410156111b15760405162461bcd60e51b815260206004820152601160248201527f56616c75652062656c6f7720707269636500000000000000000000000000000060448201526064016107f6565b336000908152601060205260409020546111cc908390613251565b3360009081526010602052604090208190556003101561122e5760405162461bcd60e51b815260206004820152601460248201527f57616c6c6574206c696d6974207265616368656400000000000000000000000060448201526064016107f6565b60005b828110156109485761124233611b15565b8061124c816131fb565b915050611231565b6001600160a01b0382163314156112ad5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107f6565b3360008181526005602090815260408083206001600160a01b0387168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61134133836115a2565b6113b35760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f76656400000000000000000000000000000060648201526084016107f6565b6113bf84848484611b63565b50505050565b60606106d882611bec565b60006113da610fc1565b600854610fcc9190613269565b600c546001600160a01b031633146114415760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016107f6565b6001600160a01b0381166114bd5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016107f6565b610bcb81611aab565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f9b9284f90000000000000000000000000000000000000000000000000000000014806106d857506106d882611c23565b600081815260046020526040902080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b038416908117909155819061156982610c17565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b031661162c5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084016107f6565b600061163783610c17565b9050806001600160a01b0316846001600160a01b031614806116725750836001600160a01b031661166784610770565b6001600160a01b0316145b806116a257506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166116bd82610c17565b6001600160a01b0316146117395760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e000000000000000000000000000000000000000000000060648201526084016107f6565b6001600160a01b0382166117b45760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016107f6565b6117bf838383611d06565b6117ca60008261151c565b6001600160a01b03831660009081526003602052604081208054600192906117f3908490613269565b90915550506001600160a01b0382166000908152600360205260408120805460019290611821908490613251565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60065460ff166118ec5760405162461bcd60e51b815260206004820152601460248201527f5061757361626c653a206e6f742070617573656400000000000000000000000060448201526064016107f6565b600680547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690556040805133815290517f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa9181900360200190a1565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114611996576040519150601f19603f3d011682016040523d82523d6000602084013e61199b565b606091505b50509050806109485760405162461bcd60e51b815260206004820152601060248201527f5472616e73666572206661696c65642e0000000000000000000000000000000060448201526064016107f6565b60006119f782610c17565b9050611a0581600084611d06565b611a1060008361151c565b6001600160a01b0381166000908152600360205260408120805460019290611a39908490613269565b909155505060008281526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600c80546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6000611b1f611d11565b9050611b2b8282611f08565b611b3481611f26565b60405181907f26ae4e620eb483fe1586942ebe7c6d3c1b59848ebc62a32cc42e116857f0d18c90600090a25050565b611b6e8484846116aa565b611b7a84848484612084565b6113bf5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016107f6565b60606000611bf98361224f565b905080604051602001611c0c919061329c565b604051602081830303815290604052915050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480611cb657507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b806106d857507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316146106d8565b610948838383612768565b600080611d1c6113d0565b11611d695760405162461bcd60e51b815260206004820152601860248201527f4e6f206d6f726520746f6b656e7320617661696c61626c65000000000000000060448201526064016107f6565b6000611d73610fc1565b600854611d809190613269565b90506000611d8c610fc1565b600b54604080517f45ff812a000000000000000000000000000000000000000000000000000000008152905143926001600160a01b0316916345ff812a9160048083019260209291908290030181600087803b158015611deb57600080fd5b505af1158015611dff573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e2391906132e1565b611e2d9190613251565b611e379190613251565b90506000611e4583836132fa565b60008181526009602052604081205491925090611e63575080611e74565b506000818152600960205260409020545b60096000611e83600187613269565b81526020019081526020016000205460001415611eb957611ea5600185613269565b600083815260096020526040902055611ee9565b60096000611ec8600187613269565b81526020808201929092526040908101600090812054858252600990935220555b611ef16127e1565b50600a54611eff9082613251565b94505050505090565b611f22828260405180602001604052806000815250612854565b5050565b6000818152600260205260409020546001600160a01b0316611fb05760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201527f6578697374656e7420746f6b656e00000000000000000000000000000000000060648201526084016107f6565b600d54604080517f45ff812a00000000000000000000000000000000000000000000000000000000815290516000926001600160a01b0316916345ff812a91600480830192602092919082900301818787803b15801561200f57600080fd5b505af1158015612023573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061204791906132e1565b60408051602080820193909352808201859052815180820383018152606090910182528051908301206000948552600e9092529092209190915550565b60006001600160a01b0384163b15612244576040517f150b7a020000000000000000000000000000000000000000000000000000000081526001600160a01b0385169063150b7a02906120e190339089908890889060040161330e565b602060405180830381600087803b1580156120fb57600080fd5b505af1925050508015612149575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe01682019092526121469181019061334a565b60015b6121f9573d808015612177576040519150601f19603f3d011682016040523d82523d6000602084013e61217c565b606091505b5080516121f15760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016107f6565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490506116a2565b506001949350505050565b6000818152600260205260409020546060906001600160a01b03166122dc5760405162461bcd60e51b815260206004820152602a60248201527f4552433732316765745356473a2055524920676574206f66206e6f6e6578697360448201527f74656e7420746f6b656e0000000000000000000000000000000000000000000060648201526084016107f6565b6000828152600e602090815260409182902054825180830182905283518082039093018352830190925261230e612d4e565b600061233383600081518110612326576123266131cc565b016020015160f81c6128dd565b61234984600381518110612326576123266131cc565b61235f85600681518110612326576123266131cc565b60405160200161237193929190613367565b6040516020818303038152906040529050600061239a84600181518110612326576123266131cc565b6123b085600481518110612326576123266131cc565b6123c686600781518110612326576123266131cc565b6040516020016123d893929190613367565b6040516020818303038152906040529050600061240185600281518110612326576123266131cc565b61241786600581518110612326576123266131cc565b61242d87600881518110612326576123266131cc565b60405160200161243f93929190613367565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152610100830190915260d9808352909250613b886020830139845260408051608081019091526043808252614500602083013984600160200201819052506040518060800160405280604381526020016137bf604391396040808601919091528051808201909152600581527f706c61696e0000000000000000000000000000000000000000000000000000006020820152855160fa9087906009908110612513576125136131cc565b016020015160f81c111561257f576040518060400160405280600581526020017f63726f776e000000000000000000000000000000000000000000000000000000815250905060405180610340016040528061030a815260200161380261030a913960608601526125a1565b604051806102a00160405280610273815260200161428d610273913960608601525b6040518061062001604052806105ec8152602001613ca16105ec9139608086015260408051808201909152600881527f736361726c6573730000000000000000000000000000000000000000000000006020820152865160eb908890600a90811061260e5761260e6131cc565b016020015160f81c1115612677576040518060400160405280600781526020017f77697a7a6172640000000000000000000000000000000000000000000000000081525090506040518060a00160405280607c8152602001613b0c607c913960a08701526126b1565b60408051808201909152600681527f3c2f7376673e0000000000000000000000000000000000000000000000000000602082015260a08701525b85516020808801516040808a015160608b015160808c015160a08d015193516000976126ee9790968e9690958e9590948e949193909291016133dd565b60405160208183030381529060405290506000868686868660405160200161271a95949392919061349e565b6040516020818303038152906040529050600061275782846040516020016127439291906136c7565b604051602081830303815290604052612a0f565b9d9c50505050505050505050505050565b60065460ff16156109485760405162461bcd60e51b815260206004820152602b60248201527f4552433732315061757361626c653a20746f6b656e207472616e73666572207760448201527f68696c652070617573656400000000000000000000000000000000000000000060648201526084016107f6565b6000806127ec6113d0565b116128395760405162461bcd60e51b815260206004820152601860248201527f4e6f206d6f726520746f6b656e7320617661696c61626c65000000000000000060448201526064016107f6565b600061284460075490565b9050610fcc600780546001019055565b61285e8383612be8565b61286b6000848484612084565b6109485760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e746572000000000000000000000000000060648201526084016107f6565b60608161291d57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156129475780612931816131fb565b91506129409050600a836131b8565b9150612921565b60008167ffffffffffffffff81111561296257612962612f6d565b6040519080825280601f01601f19166020018201604052801561298c576020820181803683370190505b5090505b84156116a2576129a1600183613269565b91506129ae600a866132fa565b6129b9906030613251565b60f81b8183815181106129ce576129ce6131cc565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612a08600a866131b8565b9450612990565b6060815160001415612a2f57505060408051602081019091526000815290565b6000604051806060016040528060408152602001613c616040913990506000600384516002612a5e9190613251565b612a6891906131b8565b612a7390600461314c565b90506000612a82826020613251565b67ffffffffffffffff811115612a9a57612a9a612f6d565b6040519080825280601f01601f191660200182016040528015612ac4576020820181803683370190505b509050818152600183018586518101602084015b81831015612b30576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f8116850151825350600101612ad8565b600389510660018114612b4a5760028114612b9457612bda565b7f3d3d0000000000000000000000000000000000000000000000000000000000007ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe830152612bda565b7f3d000000000000000000000000000000000000000000000000000000000000007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8301525b509398975050505050505050565b6001600160a01b038216612c3e5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107f6565b6000818152600260205260409020546001600160a01b031615612ca35760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107f6565b612caf60008383611d06565b6001600160a01b0382166000908152600360205260408120805460019290612cd8908490613251565b909155505060008181526002602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6040518060c001604052806006905b6060815260200190600190039081612d5d5790505090565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114610bcb57600080fd5b600060208284031215612db557600080fd5b8135612dc081612d75565b9392505050565b60005b83811015612de2578181015183820152602001612dca565b838111156113bf5750506000910152565b60008151808452612e0b816020860160208601612dc7565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000612dc06020830184612df3565b600060208284031215612e6257600080fd5b5035919050565b80356001600160a01b0381168114612e8057600080fd5b919050565b60008060408385031215612e9857600080fd5b612ea183612e69565b946020939093013593505050565b600080600060608486031215612ec457600080fd5b612ecd84612e69565b9250612edb60208501612e69565b9150604084013590509250925092565b60008060408385031215612efe57600080fd5b50508035926020909101359150565b600060208284031215612f1f57600080fd5b612dc082612e69565b8015158114610bcb57600080fd5b60008060408385031215612f4957600080fd5b612f5283612e69565b91506020830135612f6281612f28565b809150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b60008060008060808587031215612fb257600080fd5b612fbb85612e69565b9350612fc960208601612e69565b925060408501359150606085013567ffffffffffffffff80821115612fed57600080fd5b818701915087601f83011261300157600080fd5b81358181111561301357613013612f6d565b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810190838211818310171561305957613059612f6d565b816040528281528a602084870101111561307257600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600080604083850312156130a957600080fd5b6130b283612e69565b91506130c060208401612e69565b90509250929050565b600181811c908216806130dd57607f821691505b60208210811415613117577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156131845761318461311d565b500290565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000826131c7576131c7613189565b500490565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561322d5761322d61311d565b5060010190565b60006020828403121561324657600080fd5b8151612dc081612f28565b600082198211156132645761326461311d565b500190565b60008282101561327b5761327b61311d565b500390565b60008151613292818560208601612dc7565b9290920192915050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152600082516132d481601d850160208701612dc7565b91909101601d0192915050565b6000602082840312156132f357600080fd5b5051919050565b60008261330957613309613189565b500690565b60006001600160a01b038087168352808616602084015250836040830152608060608301526133406080830184612df3565b9695505050505050565b60006020828403121561335c57600080fd5b8151612dc081612d75565b60008451613379818460208901612dc7565b80830190507f2c0000000000000000000000000000000000000000000000000000000000000080825285516133b5816001850160208a01612dc7565b600192019182015283516133d0816002840160208801612dc7565b0160020195945050505050565b60008a516133ef818460208f01612dc7565b8a516134018183860160208f01612dc7565b8a519184010190613416818360208e01612dc7565b89516134288183850160208e01612dc7565b895192909101019061343e818360208c01612dc7565b87516134508183850160208c01612dc7565b8751929091010190613466818360208a01612dc7565b85516134788183850160208a01612dc7565b855192909101019061348e818360208801612dc7565b019b9a5050505050505050505050565b7f5b7b2274726169745f74797065223a2022457965222c202276616c7565223a20815260007f220000000000000000000000000000000000000000000000000000000000000080602084015287516134fd816021860160208c01612dc7565b80840190507f227d2c00000000000000000000000000000000000000000000000000000000008060218301527f7b2274726169745f74797065223a2022426f6479222c202276616c7565223a2060248301528260448301528851925061356a836045840160208c01612dc7565b828201925080604584015250507f7b2274726169745f74797065223a20224578747261222c202276616c7565223a60488201527f202200000000000000000000000000000000000000000000000000000000000060688201526136bb61369261368c61363d6135e561363761360e6135e5606a89018e613280565b7f227d2c0000000000000000000000000000000000000000000000000000000000815260030190565b7f7b2274726169745f74797065223a2022546f70222c202276616c7565223a2022815260200190565b8a613280565b7f7b2274726169745f74797065223a20224d61676963222c202276616c7565223a81527f2022000000000000000000000000000000000000000000000000000000000000602082015260220190565b86613280565b7f227d5d0000000000000000000000000000000000000000000000000000000000815260030190565b98975050505050505050565b7f7b226e616d65223a2022547572696e674d6f6e73746572222c2022646573637281527f697074696f6e223a20224c6974746c65204d6f6e73746572732065766572797760208201527f686572652e222c202261747472696275746573223a000000000000000000000060408201526000835161374b816055850160208801612dc7565b7f2c2022696d6167655f64617461223a20220000000000000000000000000000006055918401918201528351613788816066840160208801612dc7565b7f227d0000000000000000000000000000000000000000000000000000000000006066929091019182015260680194935050505056fe293b7374726f6b653a626c61636b3b7374726f6b652d77696474683a363b7374726f6b652d6d697465726c696d69743a31303b7d202e7374327b66696c6c3a72676228293b7374726f6b653a626c61636b3b7374726f6b652d77696474683a363b7374726f6b652d6d697465726c696d69743a31303b7d202e7374337b66696c6c3a6e6f6e653b7374726f6b653a626c61636b3b7374726f6b652d77696474683a31303b7374726f6b652d6d697465726c696d69743a31303b7d3c2f7374796c653e3c7061746820636c6173733d277374302720643d274d35372e362c3135322e36632d312e352c31332e382d32322e322c32372e332d32352e352c33302e34632d332e332c332e312d332e372c392e372d302e352c31362e3463342e332c352e352c382e312c31352e372c32312e312c313063342d312e362c31322e392d31302c31352e392d31312e34272f3e3c7061746820636c6173733d277374302720643d274d3233362e382c3137322e3263322e312c312e382c382e372c372e322c31312e342c382e3373352e392c312e332c382e342d302e3163312e372d312c31342e362d31382e322c31352e342d32312e3663312d342e332d302e342d392e322d332e362d31322e33632d332e332d332e322d32322e332d31312e382d33302e382d31302e39272f3e3c7061746820636c6173733d277374302720643d274d3139392e332c37382e3363312e332d31332c372e382d32352c31342e392d33362e37632d332e382c312e392d32312e392c31392e382d32362e322c31372e37632d322e372d352e312d322e322d31322d322e392d31392e37632d302e352d352e392d302e372d392e392d312e332d31352e38433137372e322c33342e352c3136322e342c35342c3136322c35342e31632d332e392c302e332d392e372d33302e322d31332e332d34342e32632d332e392c31332e362d392c34352e312d31332e352c34342e32632d332e322d322e362d31372e372d32342e322d32312e352d33302e35632d322e362c31312e312d312e382c33352e362d352e322c3336632d382e322d322e362d31382e332d31332e382d32352e382d31392e3263302e352c302e332c382e332c31362e392c392e372c323063302e382c312e392c332e382c392e312c352e362c31372e39272f3e3c7061746820636c6173733d277374332720643d274d3234362e312c3230322e356331302e382d34342e352c31322e332d35392e332c32342e372d3131382e36272f3e3c636972636c6520636c6173733d27737431272063783d273237322e33272063793d2737332e372720723d2731302e32272f3e3c2f7376673e646174613a696d6167652f7376672b786d6c3b757466382c3c73766720786d6c6e733d27687474703a2f2f7777772e77332e6f72672f323030302f737667272076657273696f6e3d27312e322720783d273070782720793d27307078272076696577426f783d27302030203330302033303027207374796c653d27656e61626c652d6261636b67726f756e643a6e65772030203020333030203330303b2720786d6c3a73706163653d277072657365727665273e3c7374796c6520747970653d27746578742f637373273e2e7374307b66696c6c3a726762284142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2f3c636972636c6520636c6173733d27737431272063783d273134382e35272063793d273135342e342720723d2739302e39272f3e3c7061746820636c6173733d277374302720643d274d3230342e352c3234332e3763302e342c342e372c312e382c392e372c352e362c31322e3663322e392c322e322c362e372c322e382c31302e332c332e3263362e342c302e382c31322e382c312e352c31392e312c302e377331322e372d332e342c31362e392d382e3263302e372d302e382c312e342d312e372c312e372d322e3763302e382d322e322c302d342e372d312e332d362e37632d332e392d362e342d31312e342d392e352d31382e342d31322e32632d342e312d312e362d382e332d332e322d31322e342d342e38632d352e322d322d31332e352d362e382d31382d312e35433230342e322c3232382e362c3230342c3233382e322c3230342e352c3234332e377a272f3e3c7061746820636c6173733d277374302720643d274d37362c3234302e37632d342e362c322e342d382e342c362e322d31312e382c31302e32632d332e392c342e362d372e352c392e382d382e352c31352e3873312e322c31322e382c362e342c31352e3863332e322c312e382c372e312c322c31302e382c3263352c302c31302d302e322c31352d302e3563352e332d302e342c31302e392d312e312c31352e332d3463332e322d322e312c352e372d352e332c372e392d382e3463342e312d352e372c372e392d31312e382c382e392d31382e3763302e322d312e372c302e332d332e362d302e342d352e32632d302e362d312e342d312e362d322e352d322e362d332e35433130372c3233342e362c38372e392c3233342e352c37362c3234302e377a272f3e3c7061746820636c6173733d277374302720643d274d3137382e382c3230302e3763322e322c362c352e362c31362e392c372e372c32322e3963332e382d362e382c352d31352c332e352d32322e36632d302e342d312e392d332e362d372e372d352e332d382e36272f3e3c7061746820636c6173733d277374302720643d274d3130352e352c3139372e3263332e362c352e382c362e372c31392e362c382e312c32362e3363362e382d322e312c31312e342d392e372c31302e312d31362e36272f3e3c7061746820636c6173733d277374322720643d274d37382e392c3132302e34632d332e322c342e312d332e342c32342e332d312e312c32382e3463332e382c362e382c32382e352c31312e382c33322e362c31302e3663352e342d312e372c392e322d362e362c31312e322d31312e3963322e382d372e342c322e372d31352e352c322e352d32332e34632d302e322d382e372c312e382d31352e392c31302d32302e3863342e362d322e372c31302d332e392c31352e342d342e3263372e362d302e352c32312e372c31322e352c32322e312c31342e3963322e322c31352d322e372c33302e392d31322e392c3432632d312c312e312d32362e392c322d33322d352e31632d332e362d352c302d33392e332d31302e382d34362e33433130382e342c39392e362c38302e332c3131382e362c37382e392c3132302e347a272f3e3c7061746820636c6173733d277374322720643d274d3137382e392c3134392e3663302e372c312e322c32312e332c342e392c32382e342c332e3363352e372d312e332c31312e382d332e382c31342e342d392e3163312e352d332c312e362d362e342c312e362d392e3863302e322d382e342c302d31372e382d352e362d32342e31632d352d352e362d31332d372e322d32302e342d372e37632d352e362d302e342d31312e372d302e332d31362e332c322e39433136372e342c3131342e352c3137322e312c3133372e362c3137382e392c3134392e367a272f3e3c7061746820636c6173733d277374332720643d274d3130302e382c31393363372e392c352e362c31362e382c392e392c32362e312c31322e396331302e392c332e352c32322e332c352e312c33332e372c342e3363342e382d302e342c392e382d312e322c31332e382d3463332e312d322e312c31332e342d31362e362c31362e332d32302e37272f3e293b7374726f6b653a626c61636b3b7374726f6b652d77696474683a363b7374726f6b652d6d697465726c696d69743a31303b7d202e7374337b66696c6c3a6e6f6e653b7374726f6b653a626c61636b3b7374726f6b652d77696474683a31303b7374726f6b652d6d697465726c696d69743a31303b7d3c2f7374796c653e3c7061746820636c6173733d277374302720643d274d35372e362c3135322e36632d312e352c31332e382d32322e322c32372e332d32352e352c33302e34632d332e332c332e312d332e372c392e372d302e352c31362e3463342e332c352e352c382e312c31352e372c32312e312c313063342d312e362c31322e392d31302c31352e392d31312e34272f3e3c7061746820636c6173733d277374302720643d274d3233362e382c3137322e3263322e312c312e382c382e372c372e322c31312e342c382e3373352e392c312e332c382e342d302e3163312e372d312c31342e362d31382e322c31352e342d32312e3663312d342e332d302e342d392e322d332e362d31322e33632d332e332d332e322d32322e332d31312e382d33302e382d31302e39272f3e3c7061746820636c6173733d277374302720643d274d3132332e312c36372e31632d322e382d362d31342e342d32302e372d342d323463372e372d322e382c31332c31342c32312e352c31332e3163392e342d302e342d31342e362d33352e332c362e392d33362e3863332e332d302e322c31302e332c302c31322e382c392e3563312e332c392d362e332c31322d302e372c31352e3163392c332e372c31372e342d31312e322c32332e392d332e3163352e392c31302d342e372c31372e362d31302e312c32342e31272f3e293b7374726f6b653a626c61636b3b7374726f6b652d77696474683a363b7374726f6b652d6d697465726c696d69743a31303b7d202e7374317b66696c6c3a72676228a164736f6c6343000809000a00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000000000012000000000000000000000000067fe1c6598c6213083d631c5246ce4b8ce54198b000000000000000000000000000000000000000000000000000000000000000d547572696e674d6f6e7374657200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000454554d4f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000c98469fd959d96722723dbc7dba58b36e7854386

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

00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e000000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000000000012000000000000000000000000067fe1c6598c6213083d631c5246ce4b8ce54198b000000000000000000000000000000000000000000000000000000000000000d547572696e674d6f6e7374657200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000454554d4f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000c98469fd959d96722723dbc7dba58b36e7854386

-----Decoded View---------------
Arg [0] : name_ (string): TuringMonster
Arg [1] : symbol_ (string): TUMO
Arg [2] : maxNFTs_ (uint256): 1000
Arg [3] : creatorAddresses_ (address[]): 0xc98469fd959d96722723dbc7dba58b36e7854386
Arg [4] : turingHelperAddress_ (address): 0x67fe1c6598c6213083d631c5246ce4b8ce54198b

-----Encoded View---------------
11 Constructor Arguments found :
Arg [0] : 00000000000000000000000000000000000000000000000000000000000000a0
Arg [1] : 00000000000000000000000000000000000000000000000000000000000000e0
Arg [2] : 00000000000000000000000000000000000000000000000000000000000003e8
Arg [3] : 0000000000000000000000000000000000000000000000000000000000000120
Arg [4] : 00000000000000000000000067fe1c6598c6213083d631c5246ce4b8ce54198b
Arg [5] : 000000000000000000000000000000000000000000000000000000000000000d
Arg [6] : 547572696e674d6f6e7374657200000000000000000000000000000000000000
Arg [7] : 0000000000000000000000000000000000000000000000000000000000000004
Arg [8] : 54554d4f00000000000000000000000000000000000000000000000000000000
Arg [9] : 0000000000000000000000000000000000000000000000000000000000000001
Arg [10] : 000000000000000000000000c98469fd959d96722723dbc7dba58b36e7854386


Block Transaction Difficulty Gas Used Reward
Block Uncle Number Difficulty Gas Used Reward
Loading
Make sure to use the "Vote Down" button for any spammy posts, and the "Vote Up" for interesting conversations.