Contract 0x66B1dd8B17849E270075229b901ba9Ef5dC3A8DC

 
 
Txn Hash
Method
Block
From
To
Value
0x2391f55fb05c0f6a5e69485165ce263e2a3a3a966b354aec9600263d7fdc477eMint For Genesis...(pending)2022-08-07 1:57:2110 days 5 hrs ago0xce92587f31ff7ea37bceb58ce6357a7a6106b7e4 IN 0x66b1dd8b17849e270075229b901ba9ef5dc3a8dc0 Ether(Pending)(Pending)
0x0c0d64d58a80971dd5041703ea82a86471d989ea33c401690028f0943d203a23Set Approval For...153509022022-08-16 6:59:441 day 38 mins ago0x7907d34a4697b7a1155b289dbd9aed25793caf01 IN  0x66b1dd8b17849e270075229b901ba9ef5dc3a8dc0 Ether0.‍00059798 12.‍90631051
0xf5d16cfdbbaa9eff424dc8016055f23b4cf81920eb84178f72f74ef32b35ac92Set Approval For...153496772022-08-16 2:11:411 day 5 hrs ago0x053975c22772ab3ecd783d92dbab0bd16e964070 IN  0x66b1dd8b17849e270075229b901ba9ef5dc3a8dc0 Ether0.‍00051058 11.‍04000658
0x08cdaafd4102dc47ab196ae24664b20a6ba0917fd7fd0398b0bbcdd5ab2eb1ccMint For Genesis...153474232022-08-15 17:50:311 day 13 hrs ago0xdbad003ac60f974ed5143dc6e187e16b27a5e6de IN  0x66b1dd8b17849e270075229b901ba9ef5dc3a8dc0 Ether0.‍00213409 19.‍90987229
0xf361b036b431bfb51bb70cb302e99e68772e643248010d7dabd51aacf53b3ee5Mint For Genesis...153255282022-08-12 6:51:305 days 47 mins agoENS Name steadyfreddy.eth IN  0x66b1dd8b17849e270075229b901ba9ef5dc3a8dc0 Ether0.‍001724 10.‍84338621
0x78b11d3400069bb36292531ce1bbe0654a2898c6ee43e55c221e3d893bb1f9feMint For Genesis...153207392022-08-11 12:33:105 days 19 hrs ago0x521ee764d34e5f8d75de6b2133dc57bfd94e6753 IN  0x66b1dd8b17849e270075229b901ba9ef5dc3a8dc0 Ether0.‍003434 32.‍03723112
0xf003f8f9430d058fe944ca07a2cd782be22da3ab63b2ba783b402b30ebd2bfb3Set Approval For...153107382022-08-09 22:45:377 days 8 hrs agoENS Name grazed.eth IN  0x66b1dd8b17849e270075229b901ba9ef5dc3a8dc0 Ether0.‍00140538 30.‍38740607
0xf1d9764a74f47607a9c9076d48961137d6f678312ec9c5e204420b3fa5b281faMint For Genesis...153106492022-08-09 22:24:137 days 9 hrs agoENS Name drgarret.eth IN  0x66b1dd8b17849e270075229b901ba9ef5dc3a8dc0 Ether0.‍00187775 20.‍8435696
0x7b85e5747b4b951f8849085753061aeb6b14b057f177bbd3d4ee49ca8f9a4548Mint For Genesis...153066542022-08-09 7:21:498 days 16 mins ago0x0dca1338de3822205e2514093c140dafd09fe63c IN  0x66b1dd8b17849e270075229b901ba9ef5dc3a8dc0 Ether0.‍0010074 9.‍39847607
0x27d143a6ea7c53f60829b173221c42dc234fbab60cb5127b7bf4f64193d7fbc4Mint For Genesis...153064562022-08-09 6:38:408 days 59 mins agoENS Name rycopath.eth IN  0x66b1dd8b17849e270075229b901ba9ef5dc3a8dc0 Ether0.‍00131709 12.‍28770581
0x65aa960cf9ef14b1a396a448f890c189f1b1873d6fd2ab60c4a7ca7272563332Mint For Genesis...153062692022-08-09 5:58:148 days 1 hr agoENS Name drgarret.eth IN  0x66b1dd8b17849e270075229b901ba9ef5dc3a8dc0 Ether0.‍00124145 11.‍58203935
0xe014d867bededf6c248fb9718d3c593f35f986f6fbc7288a2dd4a1e9f18cd567Set Approval For...152885872022-08-06 11:58:0610 days 19 hrs ago0xcfbc65246c316a69f19c22f3e89433db77df506a IN  0x66b1dd8b17849e270075229b901ba9ef5dc3a8dc0 Ether0.‍0001664 4.‍7207145
0x3bdb71713632ebb1700ce5272c4d6162b9be6125c3f88aace8c09e8d69ff86f6Set Approval For...152767002022-08-04 15:28:0812 days 16 hrs ago0xcfbc65246c316a69f19c22f3e89433db77df506a IN  0x66b1dd8b17849e270075229b901ba9ef5dc3a8dc0 Ether0.‍00039084 16.‍11791357
0xe05c53a7ae99800397adf518dc64185d4f0d561f46c1e017d31c6c9e977cecb0Mint For Genesis...152615052022-08-02 6:36:0815 days 1 hr ago0x6ee09673cf08c45fa67d5b10723a6ae4a6cac273 IN  0x66b1dd8b17849e270075229b901ba9ef5dc3a8dc0 Ether0.‍00078618 7.‍33465714
0x78d44fbbb9682efb55a11edddd2c84303fbec71a39343bc4f9df857225f308f4Mint For Genesis...152589702022-08-01 21:01:4115 days 10 hrs ago0x3de02f90d2e6c6a9b8ddea0ba8822f9829938bae IN  0x66b1dd8b17849e270075229b901ba9ef5dc3a8dc0 Ether0.‍0004211 15.‍62822163
0x3be28fe604d79393e5ad2be28c7ea1119eb8611889226f686d3040da42545ba9Mint For Genesis...152589702022-08-01 21:01:4115 days 10 hrs ago0x3de02f90d2e6c6a9b8ddea0ba8822f9829938bae IN  0x66b1dd8b17849e270075229b901ba9ef5dc3a8dc0 Ether0.‍00167515 15.‍62822163
0x20f1171d3ca4f3b9335b25c0997e0d25cc6073db4d2ad6a1db138285ad23bfb1Set Approval For...152500642022-07-31 11:49:5316 days 19 hrs ago0x5d2846a7f10b56a3582a6f7b9e5f06a939be3c89 IN  0x66b1dd8b17849e270075229b901ba9ef5dc3a8dc0 Ether0.‍00013856 5.‍25876625
0x2c00cc3edb99ba338c40add924779b8d57bd0e9cd179b8c1bfba1314c9bfc86bSet Approval For...152500642022-07-31 11:49:5316 days 19 hrs ago0x5d2846a7f10b56a3582a6f7b9e5f06a939be3c89 IN  0x66b1dd8b17849e270075229b901ba9ef5dc3a8dc0 Ether0.‍00024321 5.‍25876625
0x3e3e9a9282bebdfdf7e4e17c1f0411cef743fd3314eaaf29ee61c0fb46dfc0cbMint For Genesis...151854812022-07-21 10:54:1226 days 20 hrs ago0x5cb5ac3da7ec2d183c954325ae45f1cab83b398e IN  0x66b1dd8b17849e270075229b901ba9ef5dc3a8dc0 Ether0.‍0012612314
0xf53f633f0d403eaeaadb15d622254fea25da319f92acc56388cf5a75ca4b6f5eMint For Genesis...151854762022-07-21 10:53:1826 days 20 hrs ago0x5cb5ac3da7ec2d183c954325ae45f1cab83b398e IN  0x66b1dd8b17849e270075229b901ba9ef5dc3a8dc0 Ether0.‍0016078215
0x745acab9ee2d44e588cb41fbaca7ea025a7bcd539819470fac817c351cd67cfaTransfer From151650042022-07-18 6:26:0930 days 1 hr ago0x5bf151f24e18c81e5b45075f940a75d054694ee8 IN  0x66b1dd8b17849e270075229b901ba9ef5dc3a8dc0 Ether0.‍00072386 15.‍94203513
0xd8a119887efb4d1d749da56d1d079ae81169a36f11a8b14b6432d4af333479c7Transfer From151649952022-07-18 6:24:1330 days 1 hr ago0x5bf151f24e18c81e5b45075f940a75d054694ee8 IN  0x66b1dd8b17849e270075229b901ba9ef5dc3a8dc0 Ether0.‍00098469 15.‍75362417
0xfc05b7fec672f05a9da898c6c463c958d88029e64e542fa11f67a78f8cf84566Mint For Genesis...151642622022-07-18 3:42:3130 days 3 hrs agoENS Name xmysteryxman.eth IN  0x66b1dd8b17849e270075229b901ba9ef5dc3a8dc0 Ether0.‍00191653 21.‍2739923
0xba1dcb4b88ac6101efa6747510cff0b3deffd3ca3217919a71d1c50d93e62bd2Mint For Genesis...150659352022-07-02 23:06:1545 days 8 hrs ago0x3ece9df271746f1fc70189a075d7440da8810eea IN  0x66b1dd8b17849e270075229b901ba9ef5dc3a8dc0 Ether0.‍00166878 7.‍91713128
0x405889f79a2193f6340670d1f3d427cfb7ca1005f66390a1cc27709e2ba23ecbSet Approval For...150648472022-07-02 18:55:1445 days 12 hrs ago0xcfbc65246c316a69f19c22f3e89433db77df506a IN  0x66b1dd8b17849e270075229b901ba9ef5dc3a8dc0 Ether0.‍0003805 13.‍00920591
[ Download CSV Export 
View more zero value Internal Transactions in Advanced View mode
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Pork1984ChapterII

Compiler Version
v0.8.7+commit.e28d00a7

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 21 : Pork1984-C2.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Burnable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";

import "./common/meta-transactions/ContentMixin.sol";
import "./common/meta-transactions/NativeMetaTransaction.sol";

contract OwnableDelegateProxy {}

contract ProxyRegistry {
    mapping(address => OwnableDelegateProxy) public proxies;
}

contract Pork1984ChapterII is ERC721, Pausable, Ownable, ERC721Burnable, ContextMixin, NativeMetaTransaction {
    using Counters for Counters.Counter;

    Counters.Counter private _tokenIdCounter;
    string baseURI_;
    address proxyRegistryAddress;
    address genesisPork1984Address;
    mapping(uint256 => uint256) genesisTokensToChapter2MintedTokens;
    IERC721 genesisPork1984Contract;

    constructor(address _proxyRegistryAddress, address _genesisPork1984Address) ERC721("Pork1984 Chapter II", "PORK1984-C2") {
        proxyRegistryAddress = _proxyRegistryAddress;
        genesisPork1984Address = _genesisPork1984Address;
        genesisPork1984Contract = IERC721(_genesisPork1984Address);
        setBaseURI("https://api.pork1984.io/api/chapter2/");
        _pause();
    }

    function totalSupply() public view returns (uint256) {
        return _tokenIdCounter.current();
    }

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

    function setBaseURI(string memory baseURI) public onlyOwner {
        baseURI_ = baseURI;
    }

    function pause() public onlyOwner {
        _pause();
    }

    function unpause() public onlyOwner {
        _unpause();
    }

    function getChapter2TokenIdForGenesisTokenId(uint256 genesisTokenId) public view returns(uint256) {
        return genesisTokensToChapter2MintedTokens[genesisTokenId];
    }

    function canMintForGenesisToken(uint256 tokenId) public view returns(bool) {
        return genesisTokensToChapter2MintedTokens[tokenId] == 0;
    }

    function canMintForGenesisTokens(uint256[] memory genesisTokenIds) public view returns(bool) {
        for (uint256 i = 0; i < genesisTokenIds.length; i++) {
            if (!canMintForGenesisToken(genesisTokenIds[i])) {
                return false;
            }
        }
        return true;
    }

    function _mintForGenesisTokenUnconditionally(uint256 genesisTokenId, address to) internal {
        _tokenIdCounter.increment();
        genesisTokensToChapter2MintedTokens[genesisTokenId] = _tokenIdCounter.current();
        _safeMint(to, _tokenIdCounter.current());
    }

    function _mintForGenesisToken(uint256 genesisTokenId, address to) internal {
        require(genesisPork1984Contract.ownerOf(genesisTokenId) == to, "Cannot mint a Chapter 2 token for given genesis token because it is not yours");

        _mintForGenesisTokenUnconditionally(genesisTokenId, to);
    }

    function giveForGenesisTokens(uint256[] memory genesisTokenIds, address to) public onlyOwner {
        for (uint256 i = 0; i < genesisTokenIds.length; i++) {
            _mintForGenesisToken(genesisTokenIds[i], to);
        }
    }

    function mintForGenesisToken(uint256 genesisTokenId) public whenNotPaused {
        require(canMintForGenesisToken(genesisTokenId), "Cannot mint a Chapter 2 token for given genesis token because it is already used");
        _mintForGenesisToken(genesisTokenId, msg.sender);
    }

    function mintForGenesisTokens(uint256[] memory genesisTokenIds) public whenNotPaused {
        for (uint256 i = 0; i < genesisTokenIds.length; i++) {
            mintForGenesisToken(genesisTokenIds[i]);
        }
    }

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

    // The following functions are overrides required by Solidity.

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

    /**
     * Override isApprovedForAll to whitelist user's OpenSea proxy accounts to enable gas-less listings.
     */
    function isApprovedForAll(address owner, address operator)
        override
        public
        view
        returns (bool)
    {
        // Whitelist OpenSea proxy contract for easy trading.
        ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress);
        if (address(proxyRegistry.proxies(owner)) == operator) {
            return true;
        }

        return super.isApprovedForAll(owner, operator);
    }

    /**
     * This is used instead of msg.sender as transactions won't be sent by the original token owner, but by OpenSea.
     */
    function _msgSender()
        internal
        override
        view
        returns (address sender)
    {
        return ContextMixin.msgSender();
    }

    /**
     * First version of Chapter2 smart contract consumed a lot of gas
     * In the second version we want to give tokens for free to those who minted in the first version
     */
    function giveTokensForOwnersInPreviousVersion() public onlyOwner {
        require(totalSupply() == 0, "Tokens are given");
        _mintForGenesisTokenUnconditionally(6115, 0xdca119aB841e632f8bC9AA003Dccdeba9C6d2907);
        _mintForGenesisTokenUnconditionally(3261, 0xe4F28b2D2e4D380C09FEf46d9FEFE5834bF49271);
        _mintForGenesisTokenUnconditionally(4640, 0xEC58E527a9973FAe553e89CD7A6385015649cA26);
        _mintForGenesisTokenUnconditionally(6526, 0xE4DA5Af777455fc91C3C5C7732eeb08f89988bd0);
        _mintForGenesisTokenUnconditionally(6877, 0xF6559137c62dC4A686499144FC828E69e3B0f636);
        _mintForGenesisTokenUnconditionally(7239, 0x1a072A0ae89e8C4565c31083c6B2E8A2Ee58c3FC);
        _mintForGenesisTokenUnconditionally(7377, 0xD269d1af98D27B76a55D2bE4e829e7cCF5f9223D);
        _mintForGenesisTokenUnconditionally(7381, 0xDDebA68B2e3e0f2C56A63F4a9ADD6978C167024E);
        _mintForGenesisTokenUnconditionally(6751, 0xC536bF5B44A60C2094e8D6590990FF5680983f6d);
        _mintForGenesisTokenUnconditionally(675, 0x2A82a5989E24FC36Dade60e80A94A5D428926321);
        _mintForGenesisTokenUnconditionally(676, 0x2A82a5989E24FC36Dade60e80A94A5D428926321);
        _mintForGenesisTokenUnconditionally(677, 0x2A82a5989E24FC36Dade60e80A94A5D428926321);
        _mintForGenesisTokenUnconditionally(990, 0x2A82a5989E24FC36Dade60e80A94A5D428926321);
        _mintForGenesisTokenUnconditionally(3115, 0x2A82a5989E24FC36Dade60e80A94A5D428926321);
        _mintForGenesisTokenUnconditionally(1422, 0xdca119aB841e632f8bC9AA003Dccdeba9C6d2907);
        _mintForGenesisTokenUnconditionally(5517, 0xdca119aB841e632f8bC9AA003Dccdeba9C6d2907);
        _mintForGenesisTokenUnconditionally(7024, 0x93b526C2f4fC4C8B286DAf64FA90E65eB3A6BCC2);
        _mintForGenesisTokenUnconditionally(7326, 0x0c183b19cf8a07bB4319729150b0b3B4841C0866);
        _mintForGenesisTokenUnconditionally(6635, 0x0c183b19cf8a07bB4319729150b0b3B4841C0866);
        _mintForGenesisTokenUnconditionally(6470, 0x7C7080e827556F7b97fA45176BDFa55dB3B86522);
        _mintForGenesisTokenUnconditionally(4352, 0x2791457F44027AE14fe8C61187aB04904b855335);
        _mintForGenesisTokenUnconditionally(4353, 0x2791457F44027AE14fe8C61187aB04904b855335);
        _mintForGenesisTokenUnconditionally(5706, 0x3c2774a512eF03a2D88417565E8dd5D30b64A05f);
        _mintForGenesisTokenUnconditionally(7372, 0xf86216e4e265A21dD5fD15371E821eA1dED5FC62);
        _mintForGenesisTokenUnconditionally(6696, 0xbD2995C0755139D2FF5D766aE93EbB7616276869);
        _mintForGenesisTokenUnconditionally(4097, 0xb89E9C6A4eDE53d6988747d1a1706342070cd568);
        _mintForGenesisTokenUnconditionally(4098, 0xb89E9C6A4eDE53d6988747d1a1706342070cd568);
        _mintForGenesisTokenUnconditionally(4099, 0xb89E9C6A4eDE53d6988747d1a1706342070cd568);
        _mintForGenesisTokenUnconditionally(6370, 0x560b6bB54fC0375c8a1C2CBD93B3a924e191E11B);
        _mintForGenesisTokenUnconditionally(1860, 0x560b6bB54fC0375c8a1C2CBD93B3a924e191E11B);
        _mintForGenesisTokenUnconditionally(7384, 0x560b6bB54fC0375c8a1C2CBD93B3a924e191E11B);
        _mintForGenesisTokenUnconditionally(7383, 0x560b6bB54fC0375c8a1C2CBD93B3a924e191E11B);
        _mintForGenesisTokenUnconditionally(5498, 0xC71B9c97a27fb2Cd0d98D449e75a63cBA312466D);
        _mintForGenesisTokenUnconditionally(5499, 0xC71B9c97a27fb2Cd0d98D449e75a63cBA312466D);
        _mintForGenesisTokenUnconditionally(4864, 0x0466C648A159d535686FcAaDCd5cD9987B5e08f0);
        _mintForGenesisTokenUnconditionally(2679, 0x0466C648A159d535686FcAaDCd5cD9987B5e08f0);
        _mintForGenesisTokenUnconditionally(2674, 0x0466C648A159d535686FcAaDCd5cD9987B5e08f0);
        _mintForGenesisTokenUnconditionally(714, 0x2bcBA14f244928B2f9d78a5727DCc109B541e39f);
        _mintForGenesisTokenUnconditionally(7142, 0xcF4A4071aE4C4a6d7920c758b3a524064787E2Db);
        _mintForGenesisTokenUnconditionally(7153, 0x1C78B6FD84467eF269aD7C4F5EAbe4ca5085Bf25);
        _mintForGenesisTokenUnconditionally(7117, 0x1C78B6FD84467eF269aD7C4F5EAbe4ca5085Bf25);
        _mintForGenesisTokenUnconditionally(7084, 0x1C78B6FD84467eF269aD7C4F5EAbe4ca5085Bf25);
        _mintForGenesisTokenUnconditionally(5059, 0x1C78B6FD84467eF269aD7C4F5EAbe4ca5085Bf25);
        _mintForGenesisTokenUnconditionally(7380, 0x8CDA054c36562f4a0a3A77a7fb20B9d333D245b0);
        _mintForGenesisTokenUnconditionally(6736, 0x8CDA054c36562f4a0a3A77a7fb20B9d333D245b0);
        _mintForGenesisTokenUnconditionally(6458, 0x8CDA054c36562f4a0a3A77a7fb20B9d333D245b0);
        _mintForGenesisTokenUnconditionally(7348, 0xb0d7a8Ac2FE42eDF4934dDDcDB33934457DAE397);
        _mintForGenesisTokenUnconditionally(7258, 0x8CDF560Cb6eaBBD54E46688d5fa4404364bE8f34);
        _mintForGenesisTokenUnconditionally(5937, 0x8a0B00f402E38F9BDf3e4226FAd9F4EdE0Dd3Cb4);
        _mintForGenesisTokenUnconditionally(133, 0x3a2Ea5595098565e7362e04dA30C5ec29435731F);
        _mintForGenesisTokenUnconditionally(140, 0x3a2Ea5595098565e7362e04dA30C5ec29435731F);
        _mintForGenesisTokenUnconditionally(4856, 0x3a2Ea5595098565e7362e04dA30C5ec29435731F);
        _mintForGenesisTokenUnconditionally(5712, 0x3a2Ea5595098565e7362e04dA30C5ec29435731F);
        _mintForGenesisTokenUnconditionally(5666, 0x3a2Ea5595098565e7362e04dA30C5ec29435731F);
        _mintForGenesisTokenUnconditionally(5657, 0x3a2Ea5595098565e7362e04dA30C5ec29435731F);
        _mintForGenesisTokenUnconditionally(2196, 0x044505d09d0f77499e4262A51EfE508188E0Ba94);
        _mintForGenesisTokenUnconditionally(724, 0x044505d09d0f77499e4262A51EfE508188E0Ba94);
        _mintForGenesisTokenUnconditionally(6452, 0x8CDF560Cb6eaBBD54E46688d5fa4404364bE8f34);
        _mintForGenesisTokenUnconditionally(7368, 0x35d04cbB7a465fc3B7A80887A19447B8A82D727D);
        _mintForGenesisTokenUnconditionally(7371, 0x35d04cbB7a465fc3B7A80887A19447B8A82D727D);
        _mintForGenesisTokenUnconditionally(5667, 0x3a2Ea5595098565e7362e04dA30C5ec29435731F);
        _mintForGenesisTokenUnconditionally(5668, 0x3a2Ea5595098565e7362e04dA30C5ec29435731F);
        _mintForGenesisTokenUnconditionally(5654, 0x3a2Ea5595098565e7362e04dA30C5ec29435731F);
        _mintForGenesisTokenUnconditionally(5658, 0x3a2Ea5595098565e7362e04dA30C5ec29435731F);
        _mintForGenesisTokenUnconditionally(5663, 0x3a2Ea5595098565e7362e04dA30C5ec29435731F);
        _mintForGenesisTokenUnconditionally(5669, 0x3a2Ea5595098565e7362e04dA30C5ec29435731F);
        _mintForGenesisTokenUnconditionally(7370, 0x35d04cbB7a465fc3B7A80887A19447B8A82D727D);
        _mintForGenesisTokenUnconditionally(7154, 0x35d04cbB7a465fc3B7A80887A19447B8A82D727D);
        _mintForGenesisTokenUnconditionally(7150, 0x35d04cbB7a465fc3B7A80887A19447B8A82D727D);
        _mintForGenesisTokenUnconditionally(7149, 0x35d04cbB7a465fc3B7A80887A19447B8A82D727D);
        _mintForGenesisTokenUnconditionally(7095, 0x35d04cbB7a465fc3B7A80887A19447B8A82D727D);
        _mintForGenesisTokenUnconditionally(2976, 0x3F049E5850229d18f01460DFda38c3ea6422b5a4);
        _mintForGenesisTokenUnconditionally(2975, 0x3F049E5850229d18f01460DFda38c3ea6422b5a4);
        _mintForGenesisTokenUnconditionally(2974, 0x3F049E5850229d18f01460DFda38c3ea6422b5a4);
        _mintForGenesisTokenUnconditionally(2973, 0x3F049E5850229d18f01460DFda38c3ea6422b5a4);
        _mintForGenesisTokenUnconditionally(2972, 0x3F049E5850229d18f01460DFda38c3ea6422b5a4);
        _mintForGenesisTokenUnconditionally(6856, 0x7c1939d092CD82D9E99B2E041fD84c9E5AF133C5);
        _mintForGenesisTokenUnconditionally(6858, 0x7c1939d092CD82D9E99B2E041fD84c9E5AF133C5);
        _mintForGenesisTokenUnconditionally(4578, 0xFf40ad3c852e4F18E65968388AAE5E94fb1cba25);
        _mintForGenesisTokenUnconditionally(4584, 0xFf40ad3c852e4F18E65968388AAE5E94fb1cba25);
        _mintForGenesisTokenUnconditionally(4585, 0xFf40ad3c852e4F18E65968388AAE5E94fb1cba25);
        _mintForGenesisTokenUnconditionally(75, 0xFf40ad3c852e4F18E65968388AAE5E94fb1cba25);
        _mintForGenesisTokenUnconditionally(2971, 0x3F049E5850229d18f01460DFda38c3ea6422b5a4);
        _mintForGenesisTokenUnconditionally(2970, 0x3F049E5850229d18f01460DFda38c3ea6422b5a4);
        _mintForGenesisTokenUnconditionally(2969, 0x3F049E5850229d18f01460DFda38c3ea6422b5a4);
        _mintForGenesisTokenUnconditionally(2968, 0x3F049E5850229d18f01460DFda38c3ea6422b5a4);
        _mintForGenesisTokenUnconditionally(2967, 0x3F049E5850229d18f01460DFda38c3ea6422b5a4);
        _mintForGenesisTokenUnconditionally(7280, 0x6c10c4A8E7D71a27ccA1Ec3843E0e9AFc88C523c);
        _mintForGenesisTokenUnconditionally(838, 0xf9570Eb74727A6e08562C3ef799876706d86A5E2);
        _mintForGenesisTokenUnconditionally(6744, 0x20C1c718640d9aDe58f1DD26a64EC366C34EDCd7);
        _mintForGenesisTokenUnconditionally(76, 0x053975c22772aB3ECd783D92DBaB0bD16E964070);
        _mintForGenesisTokenUnconditionally(4088, 0xb10DAA8b5291423745c5480d6cC412E0C1a56178);
        _mintForGenesisTokenUnconditionally(6562, 0xdE98445B4148dbe540308eB9FC40c0CDD3318Ef8);
        _mintForGenesisTokenUnconditionally(4222, 0xC637548f402887fBD999774dB8740c18efD43722);
        _mintForGenesisTokenUnconditionally(5337, 0xC637548f402887fBD999774dB8740c18efD43722);
        _mintForGenesisTokenUnconditionally(5767, 0xC637548f402887fBD999774dB8740c18efD43722);
        _mintForGenesisTokenUnconditionally(1198, 0x9A4740B0A5AdBE601188568B8f4Acf52333E4dC0);
        _mintForGenesisTokenUnconditionally(4470, 0xCB8b2c541E18AdBC8B4B8A42a3CA769f4EB72e6C);
        _mintForGenesisTokenUnconditionally(7374, 0xB26F5A229e3331528836E544a0F7b5ADb17CB114);
        _mintForGenesisTokenUnconditionally(4997, 0xD9251159B7F461C1306A1bAD855aE0c504acd3CA);
        _mintForGenesisTokenUnconditionally(804, 0x07794A44767928C3E4e862434589D5A89A1c6275);
        _mintForGenesisTokenUnconditionally(5199, 0x052F2567Da498C06dC591Ac48e0B56a07b28Bba2);
        _mintForGenesisTokenUnconditionally(5356, 0x052F2567Da498C06dC591Ac48e0B56a07b28Bba2);
        _mintForGenesisTokenUnconditionally(3968, 0x052F2567Da498C06dC591Ac48e0B56a07b28Bba2);
        _mintForGenesisTokenUnconditionally(4545, 0x67eDdB0c3217BC86A3eB26331E2eb545460DB0D8);
        _mintForGenesisTokenUnconditionally(5612, 0x67eDdB0c3217BC86A3eB26331E2eb545460DB0D8);
        _mintForGenesisTokenUnconditionally(6388, 0xC64EFe60570D60a7c2EE646a5Fcd0aD7bFE434DA);
        _mintForGenesisTokenUnconditionally(6389, 0xC64EFe60570D60a7c2EE646a5Fcd0aD7bFE434DA);
        _mintForGenesisTokenUnconditionally(6390, 0xC64EFe60570D60a7c2EE646a5Fcd0aD7bFE434DA);
        _mintForGenesisTokenUnconditionally(4709, 0x8c8A840Dd85c1fD98Bb57fd7DfF8647724f64672);
        _mintForGenesisTokenUnconditionally(6485, 0xf7D7b609791666dbD591AB5C3dc4644Ff77071dF);
        _mintForGenesisTokenUnconditionally(6660, 0x5C3EC66c2a7C77828E0f41300235304a6F934e4e);
        _mintForGenesisTokenUnconditionally(6662, 0x5C3EC66c2a7C77828E0f41300235304a6F934e4e);
        _mintForGenesisTokenUnconditionally(6659, 0x5C3EC66c2a7C77828E0f41300235304a6F934e4e);
        _mintForGenesisTokenUnconditionally(6661, 0x5C3EC66c2a7C77828E0f41300235304a6F934e4e);
        _mintForGenesisTokenUnconditionally(3573, 0xC3EFB1B3bEDe144f805aA3caCf5299dabC683Db5);
        _mintForGenesisTokenUnconditionally(3118, 0xC3EFB1B3bEDe144f805aA3caCf5299dabC683Db5);
        _mintForGenesisTokenUnconditionally(3448, 0xC3EFB1B3bEDe144f805aA3caCf5299dabC683Db5);
        _mintForGenesisTokenUnconditionally(3116, 0xC3EFB1B3bEDe144f805aA3caCf5299dabC683Db5);
        _mintForGenesisTokenUnconditionally(6699, 0xD1932153081496e444626C1334d14759b1218dD8);
        _mintForGenesisTokenUnconditionally(694, 0x34E46bD7a1b00D42b5A409B6EC310982C09d0D9D);
        _mintForGenesisTokenUnconditionally(2512, 0x34E46bD7a1b00D42b5A409B6EC310982C09d0D9D);
        _mintForGenesisTokenUnconditionally(6740, 0x7C7080e827556F7b97fA45176BDFa55dB3B86522);
        _mintForGenesisTokenUnconditionally(4620, 0xe4E873664f214a07708EbEF8A839cdA2e5f59334);
        _mintForGenesisTokenUnconditionally(6741, 0x7C7080e827556F7b97fA45176BDFa55dB3B86522);
        _mintForGenesisTokenUnconditionally(6870, 0x7C7080e827556F7b97fA45176BDFa55dB3B86522);
        _mintForGenesisTokenUnconditionally(6871, 0x7C7080e827556F7b97fA45176BDFa55dB3B86522);
        _mintForGenesisTokenUnconditionally(6872, 0x7C7080e827556F7b97fA45176BDFa55dB3B86522);
        _mintForGenesisTokenUnconditionally(6873, 0x7C7080e827556F7b97fA45176BDFa55dB3B86522);
        _mintForGenesisTokenUnconditionally(88, 0xd8BeF02A418Bbc5D550963E825Bf4d8B7D479dd8);
        _mintForGenesisTokenUnconditionally(5054, 0xd8BeF02A418Bbc5D550963E825Bf4d8B7D479dd8);
    }


}

File 2 of 21 : NativeMetaTransaction.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import {SafeMath} from  "openzeppelin-solidity/contracts/utils/math/SafeMath.sol";
import {EIP712Base} from "./EIP712Base.sol";

contract NativeMetaTransaction is EIP712Base {
    using SafeMath for uint256;
    bytes32 private constant META_TRANSACTION_TYPEHASH = keccak256(
        bytes(
            "MetaTransaction(uint256 nonce,address from,bytes functionSignature)"
        )
    );
    event MetaTransactionExecuted(
        address userAddress,
        address payable relayerAddress,
        bytes functionSignature
    );
    mapping(address => uint256) nonces;

    /*
     * Meta transaction structure.
     * No point of including value field here as if user is doing value transfer then he has the funds to pay for gas
     * He should call the desired function directly in that case.
     */
    struct MetaTransaction {
        uint256 nonce;
        address from;
        bytes functionSignature;
    }

    function executeMetaTransaction(
        address userAddress,
        bytes memory functionSignature,
        bytes32 sigR,
        bytes32 sigS,
        uint8 sigV
    ) public payable returns (bytes memory) {
        MetaTransaction memory metaTx = MetaTransaction({
            nonce: nonces[userAddress],
            from: userAddress,
            functionSignature: functionSignature
        });

        require(
            verify(userAddress, metaTx, sigR, sigS, sigV),
            "Signer and signature do not match"
        );

        // increase nonce for user (to avoid re-use)
        nonces[userAddress] = nonces[userAddress].add(1);

        emit MetaTransactionExecuted(
            userAddress,
            payable(msg.sender),
            functionSignature
        );

        // Append userAddress and relayer address at the end to extract it from calling context
        (bool success, bytes memory returnData) = address(this).call(
            abi.encodePacked(functionSignature, userAddress)
        );
        require(success, "Function call not successful");

        return returnData;
    }

    function hashMetaTransaction(MetaTransaction memory metaTx)
        internal
        pure
        returns (bytes32)
    {
        return
            keccak256(
                abi.encode(
                    META_TRANSACTION_TYPEHASH,
                    metaTx.nonce,
                    metaTx.from,
                    keccak256(metaTx.functionSignature)
                )
            );
    }

    function getNonce(address user) public view returns (uint256 nonce) {
        nonce = nonces[user];
    }

    function verify(
        address signer,
        MetaTransaction memory metaTx,
        bytes32 sigR,
        bytes32 sigS,
        uint8 sigV
    ) internal view returns (bool) {
        require(signer != address(0), "NativeMetaTransaction: INVALID_SIGNER");
        return
            signer ==
            ecrecover(
                toTypedMessageHash(hashMetaTransaction(metaTx)),
                sigV,
                sigR,
                sigS
            );
    }
}

File 3 of 21 : ContentMixin.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

abstract contract ContextMixin {
    function msgSender()
        internal
        view
        returns (address payable sender)
    {
        if (msg.sender == address(this)) {
            bytes memory array = msg.data;
            uint256 index = msg.data.length;
            assembly {
                // Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those.
                sender := and(
                    mload(add(array, index)),
                    0xffffffffffffffffffffffffffffffffffffffff
                )
            }
        } else {
            sender = payable(msg.sender);
        }
        return sender;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, 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 5 of 21 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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 7 of 21 : Ownable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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

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

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

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

    /**
     * @dev 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 {
        _transferOwnership(address(0));
    }

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

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

File 8 of 21 : Pausable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

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 9 of 21 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: 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 {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: 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 Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev 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 11 of 21 : EIP712Base.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import {Initializable} from "./Initializable.sol";

contract EIP712Base is Initializable {
    struct EIP712Domain {
        string name;
        string version;
        address verifyingContract;
        bytes32 salt;
    }

    string constant public ERC712_VERSION = "1";

    bytes32 internal constant EIP712_DOMAIN_TYPEHASH = keccak256(
        bytes(
            "EIP712Domain(string name,string version,address verifyingContract,bytes32 salt)"
        )
    );
    bytes32 internal domainSeperator;

    // supposed to be called once while initializing.
    // one of the contracts that inherits this contract follows proxy pattern
    // so it is not possible to do this in a constructor
    function _initializeEIP712(
        string memory name
    )
        internal
        initializer
    {
        _setDomainSeperator(name);
    }

    function _setDomainSeperator(string memory name) internal {
        domainSeperator = keccak256(
            abi.encode(
                EIP712_DOMAIN_TYPEHASH,
                keccak256(bytes(name)),
                keccak256(bytes(ERC712_VERSION)),
                address(this),
                bytes32(getChainId())
            )
        );
    }

    function getDomainSeperator() public view returns (bytes32) {
        return domainSeperator;
    }

    function getChainId() public view returns (uint256) {
        uint256 id;
        assembly {
            id := chainid()
        }
        return id;
    }

    /**
     * Accept message hash and returns hash message in EIP712 compatible form
     * So that it can be used to recover signer from signature signed using EIP712 formatted data
     * https://eips.ethereum.org/EIPS/eip-712
     * "\\x19" makes the encoding deterministic
     * "\\x01" is the version byte to make it compatible to EIP-191
     */
    function toTypedMessageHash(bytes32 messageHash)
        internal
        view
        returns (bytes32)
    {
        return
            keccak256(
                abi.encodePacked("\x19\x01", getDomainSeperator(), messageHash)
            );
    }
}

File 12 of 21 : SafeMath.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}

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

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

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 18 of 21 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

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 19 of 21 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

contract Initializable {
    bool inited = false;

    modifier initializer() {
        require(!inited, "already inited");
        _;
        inited = true;
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"_proxyRegistryAddress","type":"address"},{"internalType":"address","name":"_genesisPork1984Address","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":false,"internalType":"address","name":"userAddress","type":"address"},{"indexed":false,"internalType":"address payable","name":"relayerAddress","type":"address"},{"indexed":false,"internalType":"bytes","name":"functionSignature","type":"bytes"}],"name":"MetaTransactionExecuted","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":"ERC712_VERSION","outputs":[{"internalType":"string","name":"","type":"string"}],"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":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"canMintForGenesisToken","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"genesisTokenIds","type":"uint256[]"}],"name":"canMintForGenesisTokens","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"userAddress","type":"address"},{"internalType":"bytes","name":"functionSignature","type":"bytes"},{"internalType":"bytes32","name":"sigR","type":"bytes32"},{"internalType":"bytes32","name":"sigS","type":"bytes32"},{"internalType":"uint8","name":"sigV","type":"uint8"}],"name":"executeMetaTransaction","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"genesisTokenId","type":"uint256"}],"name":"getChapter2TokenIdForGenesisTokenId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDomainSeperator","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getNonce","outputs":[{"internalType":"uint256","name":"nonce","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"genesisTokenIds","type":"uint256[]"},{"internalType":"address","name":"to","type":"address"}],"name":"giveForGenesisTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"giveTokensForOwnersInPreviousVersion","outputs":[],"stateMutability":"nonpayable","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":"genesisTokenId","type":"uint256"}],"name":"mintForGenesisToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"genesisTokenIds","type":"uint256[]"}],"name":"mintForGenesisTokens","outputs":[],"stateMutability":"nonpayable","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":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"baseURI","type":"string"}],"name":"setBaseURI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"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":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526006805460ff60a81b191690553480156200001e57600080fd5b5060405162003e9c38038062003e9c833981016040819052620000419162000425565b604080518082018252601381527f506f726b3139383420436861707465722049490000000000000000000000000060208083019182528351808501909452600b84526a2827a925989c9c1a16a19960a91b908401528151919291620000a99160009162000362565b508051620000bf90600190602084019062000362565b50506006805460ff1916905550620000e0620000da62000150565b6200016c565b600b80546001600160a01b038085166001600160a01b031992831617909255600c805492841692821683179055600e80549091169091179055604080516060810190915260258082526200013e919062003e776020830139620001c6565b6200014862000266565b50506200049a565b6000620001676200030360201b620023c41760201c565b905090565b600680546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b620001d062000150565b6001600160a01b0316620001f160065461010090046001600160a01b031690565b6001600160a01b0316146200024d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b80516200026290600a90602084019062000362565b5050565b60065460ff1615620002ae5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640162000244565b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258620002e662000150565b6040516001600160a01b03909116815260200160405180910390a1565b6000333014156200035c57600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b031691506200035f9050565b50335b90565b82805462000370906200045d565b90600052602060002090601f016020900481019282620003945760008555620003df565b82601f10620003af57805160ff1916838001178555620003df565b82800160010185558215620003df579182015b82811115620003df578251825591602001919060010190620003c2565b50620003ed929150620003f1565b5090565b5b80821115620003ed5760008155600101620003f2565b80516001600160a01b03811681146200042057600080fd5b919050565b600080604083850312156200043957600080fd5b620004448362000408565b9150620004546020840162000408565b90509250929050565b600181811c908216806200047257607f821691505b602082108114156200049457634e487b7160e01b600052602260045260246000fd5b50919050565b6139cd80620004aa6000396000f3fe6080604052600436106101f95760003560e01c80635c975abb1161010d5780638da5cb5b116100a0578063b88d4fde1161006f578063b88d4fde146105af578063bfb060f5146105cf578063c87b56dd146105ef578063e985e9c51461060f578063f2fde38b1461062f57600080fd5b80638da5cb5b1461054257806395d89b4114610565578063a22cb4651461057a578063a7a521a81461059a57600080fd5b806370a08231116100dc57806370a08231146104d8578063715018a6146104f857806374d7d8811461050d5780638456cb591461052d57600080fd5b80635c975abb146104535780636352211e1461046b57806364aee3d51461048b578063684aa03e146104ab57600080fd5b806323b872dd1161019057806342842e0e1161015f57806342842e0e146103a557806342966c68146103c5578063542848d9146103e557806355f804b314610405578063588077781461042557600080fd5b806323b872dd146103275780632d0335ab146103475780633408e4701461037d5780633f4ba83a1461039057600080fd5b80630c53c51c116101cc5780630c53c51c146102af5780630f7e5970146102c257806318160ddd146102ef57806320379ee51461031257600080fd5b806301ffc9a7146101fe57806306fdde0314610233578063081812fc14610255578063095ea7b31461028d575b600080fd5b34801561020a57600080fd5b5061021e6102193660046134f6565b61064f565b60405190151581526020015b60405180910390f35b34801561023f57600080fd5b50610248610660565b60405161022a91906136b2565b34801561026157600080fd5b50610275610270366004613579565b6106f2565b6040516001600160a01b03909116815260200161022a565b34801561029957600080fd5b506102ad6102a836600461344e565b61078c565b005b6102486102bd3660046133d0565b6108b4565b3480156102ce57600080fd5b50610248604051806040016040528060018152602001603160f81b81525081565b3480156102fb57600080fd5b50610304610a9e565b60405190815260200161022a565b34801561031e57600080fd5b50600754610304565b34801561033357600080fd5b506102ad6103423660046132f0565b610aae565b34801561035357600080fd5b5061030461036236600461327d565b6001600160a01b031660009081526008602052604090205490565b34801561038957600080fd5b5046610304565b34801561039c57600080fd5b506102ad610ae6565b3480156103b157600080fd5b506102ad6103c03660046132f0565b610b3f565b3480156103d157600080fd5b506102ad6103e0366004613579565b610b5a565b3480156103f157600080fd5b506102ad6104003660046134af565b610bd6565b34801561041157600080fd5b506102ad610420366004613530565b610c66565b34801561043157600080fd5b5061021e610440366004613579565b6000908152600d60205260409020541590565b34801561045f57600080fd5b5060065460ff1661021e565b34801561047757600080fd5b50610275610486366004613579565b610ccc565b34801561049757600080fd5b5061021e6104a636600461347a565b610d43565b3480156104b757600080fd5b506103046104c6366004613579565b6000908152600d602052604090205490565b3480156104e457600080fd5b506103046104f336600461327d565b610da8565b34801561050457600080fd5b506102ad610e2f565b34801561051957600080fd5b506102ad610528366004613579565b610e88565b34801561053957600080fd5b506102ad610f50565b34801561054e57600080fd5b5060065461010090046001600160a01b0316610275565b34801561057157600080fd5b50610248610fa7565b34801561058657600080fd5b506102ad61059536600461339d565b610fb6565b3480156105a657600080fd5b506102ad610fc8565b3480156105bb57600080fd5b506102ad6105ca366004613331565b6120ba565b3480156105db57600080fd5b506102ad6105ea36600461347a565b6120f9565b3480156105fb57600080fd5b5061024861060a366004613579565b61215c565b34801561061b57600080fd5b5061021e61062a3660046132b7565b612237565b34801561063b57600080fd5b506102ad61064a36600461327d565b612307565b600061065a82612421565b92915050565b60606000805461066f90613867565b80601f016020809104026020016040519081016040528092919081815260200182805461069b90613867565b80156106e85780601f106106bd576101008083540402835291602001916106e8565b820191906000526020600020905b8154815290600101906020018083116106cb57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166107705760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061079782610ccc565b9050806001600160a01b0316836001600160a01b031614156108055760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610767565b806001600160a01b0316610817612471565b6001600160a01b0316148061083357506108338161062a612471565b6108a55760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610767565b6108af838361247b565b505050565b60408051606081810183526001600160a01b038816600081815260086020908152908590205484528301529181018690526108f287828787876124e9565b6109485760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d6174636044820152600d60fb1b6064820152608401610767565b6001600160a01b03871660009081526008602052604090205461096c9060016125d9565b6001600160a01b0388166000908152600860205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b906109bc90899033908a90613640565b60405180910390a1600080306001600160a01b0316888a6040516020016109e49291906135da565b60408051601f19818403018152908290526109fe916135be565b6000604051808303816000865af19150503d8060008114610a3b576040519150601f19603f3d011682016040523d82523d6000602084013e610a40565b606091505b509150915081610a925760405162461bcd60e51b815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c000000006044820152606401610767565b98975050505050505050565b6000610aa960095490565b905090565b610abf610ab9612471565b826125e5565b610adb5760405162461bcd60e51b815260040161076790613776565b6108af8383836126b4565b610aee612471565b6001600160a01b0316610b0f6006546001600160a01b036101009091041690565b6001600160a01b031614610b355760405162461bcd60e51b815260040161076790613741565b610b3d612854565b565b6108af838383604051806020016040528060008152506120ba565b610b65610ab9612471565b610bca5760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b6064820152608401610767565b610bd3816128ed565b50565b610bde612471565b6001600160a01b0316610bff6006546001600160a01b036101009091041690565b6001600160a01b031614610c255760405162461bcd60e51b815260040161076790613741565b60005b82518110156108af57610c54838281518110610c4657610c466138fd565b602002602001015183612988565b80610c5e816138a2565b915050610c28565b610c6e612471565b6001600160a01b0316610c8f6006546001600160a01b036101009091041690565b6001600160a01b031614610cb55760405162461bcd60e51b815260040161076790613741565b8051610cc890600a9060208401906130e6565b5050565b6000818152600260205260408120546001600160a01b03168061065a5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610767565b6000805b8251811015610d9f57610d80838281518110610d6557610d656138fd565b60200260200101516000908152600d60205260409020541590565b610d8d5750600092915050565b80610d97816138a2565b915050610d47565b50600192915050565b60006001600160a01b038216610e135760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610767565b506001600160a01b031660009081526003602052604090205490565b610e37612471565b6001600160a01b0316610e586006546001600160a01b036101009091041690565b6001600160a01b031614610e7e5760405162461bcd60e51b815260040161076790613741565b610b3d6000612aa2565b60065460ff1615610eab5760405162461bcd60e51b815260040161076790613717565b6000818152600d602052604090205415610f465760405162461bcd60e51b815260206004820152605060248201527f43616e6e6f74206d696e7420612043686170746572203220746f6b656e20666f60448201527f7220676976656e2067656e6573697320746f6b656e206265636175736520697460648201526f081a5cc8185b1c9958591e481d5cd95960821b608482015260a401610767565b610bd38133612988565b610f58612471565b6001600160a01b0316610f796006546001600160a01b036101009091041690565b6001600160a01b031614610f9f5760405162461bcd60e51b815260040161076790613741565b610b3d612afc565b60606001805461066f90613867565b610cc8610fc1612471565b8383612b55565b610fd0612471565b6001600160a01b0316610ff16006546001600160a01b036101009091041690565b6001600160a01b0316146110175760405162461bcd60e51b815260040161076790613741565b61101f610a9e565b1561105f5760405162461bcd60e51b815260206004820152601060248201526f2a37b5b2b7399030b9329033b4bb32b760811b6044820152606401610767565b61107f6117e373dca119ab841e632f8bc9aa003dccdeba9c6d2907612c24565b61109f610cbd73e4f28b2d2e4d380c09fef46d9fefe5834bf49271612c24565b6110bf61122073ec58e527a9973fae553e89cd7a6385015649ca26612c24565b6110df61197e73e4da5af777455fc91c3c5c7732eeb08f89988bd0612c24565b6110ff611add73f6559137c62dc4a686499144fc828e69e3b0f636612c24565b61111f611c47731a072a0ae89e8c4565c31083c6b2e8a2ee58c3fc612c24565b61113f611cd173d269d1af98d27b76a55d2be4e829e7ccf5f9223d612c24565b61115f611cd573ddeba68b2e3e0f2c56a63f4a9add6978c167024e612c24565b61117f611a5f73c536bf5b44a60c2094e8d6590990ff5680983f6d612c24565b61119f6102a3732a82a5989e24fc36dade60e80a94a5d428926321612c24565b6111bf6102a4732a82a5989e24fc36dade60e80a94a5d428926321612c24565b6111df6102a5732a82a5989e24fc36dade60e80a94a5d428926321612c24565b6111ff6103de732a82a5989e24fc36dade60e80a94a5d428926321612c24565b61121f610c2b732a82a5989e24fc36dade60e80a94a5d428926321612c24565b61123f61058e73dca119ab841e632f8bc9aa003dccdeba9c6d2907612c24565b61125f61158d73dca119ab841e632f8bc9aa003dccdeba9c6d2907612c24565b61127f611b707393b526c2f4fc4c8b286daf64fa90e65eb3a6bcc2612c24565b61129f611c9e730c183b19cf8a07bb4319729150b0b3b4841c0866612c24565b6112bf6119eb730c183b19cf8a07bb4319729150b0b3b4841c0866612c24565b6112df611946737c7080e827556f7b97fa45176bdfa55db3b86522612c24565b6112ff611100732791457f44027ae14fe8c61187ab04904b855335612c24565b61131f611101732791457f44027ae14fe8c61187ab04904b855335612c24565b61133f61164a733c2774a512ef03a2d88417565e8dd5d30b64a05f612c24565b61135f611ccc73f86216e4e265a21dd5fd15371e821ea1ded5fc62612c24565b61137f611a2873bd2995c0755139d2ff5d766ae93ebb7616276869612c24565b61139f61100173b89e9c6a4ede53d6988747d1a1706342070cd568612c24565b6113bf61100273b89e9c6a4ede53d6988747d1a1706342070cd568612c24565b6113df61100373b89e9c6a4ede53d6988747d1a1706342070cd568612c24565b6113ff6118e273560b6bb54fc0375c8a1c2cbd93b3a924e191e11b612c24565b61141f61074473560b6bb54fc0375c8a1c2cbd93b3a924e191e11b612c24565b61143f611cd873560b6bb54fc0375c8a1c2cbd93b3a924e191e11b612c24565b61145f611cd773560b6bb54fc0375c8a1c2cbd93b3a924e191e11b612c24565b61147f61157a73c71b9c97a27fb2cd0d98d449e75a63cba312466d612c24565b61149f61157b73c71b9c97a27fb2cd0d98d449e75a63cba312466d612c24565b6114bf611300730466c648a159d535686fcaadcd5cd9987b5e08f0612c24565b6114df610a77730466c648a159d535686fcaadcd5cd9987b5e08f0612c24565b6114ff610a72730466c648a159d535686fcaadcd5cd9987b5e08f0612c24565b61151f6102ca732bcba14f244928b2f9d78a5727dcc109b541e39f612c24565b61153f611be673cf4a4071ae4c4a6d7920c758b3a524064787e2db612c24565b61155f611bf1731c78b6fd84467ef269ad7c4f5eabe4ca5085bf25612c24565b61157f611bcd731c78b6fd84467ef269ad7c4f5eabe4ca5085bf25612c24565b61159f611bac731c78b6fd84467ef269ad7c4f5eabe4ca5085bf25612c24565b6115bf6113c3731c78b6fd84467ef269ad7c4f5eabe4ca5085bf25612c24565b6115df611cd4738cda054c36562f4a0a3a77a7fb20b9d333d245b0612c24565b6115ff611a50738cda054c36562f4a0a3a77a7fb20b9d333d245b0612c24565b61161f61193a738cda054c36562f4a0a3a77a7fb20b9d333d245b0612c24565b61163f611cb473b0d7a8ac2fe42edf4934dddcdb33934457dae397612c24565b61165f611c5a738cdf560cb6eabbd54e46688d5fa4404364be8f34612c24565b61167f611731738a0b00f402e38f9bdf3e4226fad9f4ede0dd3cb4612c24565b61169e6085733a2ea5595098565e7362e04da30c5ec29435731f612c24565b6116bd608c733a2ea5595098565e7362e04da30c5ec29435731f612c24565b6116dd6112f8733a2ea5595098565e7362e04da30c5ec29435731f612c24565b6116fd611650733a2ea5595098565e7362e04da30c5ec29435731f612c24565b61171d611622733a2ea5595098565e7362e04da30c5ec29435731f612c24565b61173d611619733a2ea5595098565e7362e04da30c5ec29435731f612c24565b61175d61089473044505d09d0f77499e4262a51efe508188e0ba94612c24565b61177d6102d473044505d09d0f77499e4262a51efe508188e0ba94612c24565b61179d611934738cdf560cb6eabbd54e46688d5fa4404364be8f34612c24565b6117bd611cc87335d04cbb7a465fc3b7a80887a19447b8a82d727d612c24565b6117dd611ccb7335d04cbb7a465fc3b7a80887a19447b8a82d727d612c24565b6117fd611623733a2ea5595098565e7362e04da30c5ec29435731f612c24565b61181d611624733a2ea5595098565e7362e04da30c5ec29435731f612c24565b61183d611616733a2ea5595098565e7362e04da30c5ec29435731f612c24565b61185d61161a733a2ea5595098565e7362e04da30c5ec29435731f612c24565b61187d61161f733a2ea5595098565e7362e04da30c5ec29435731f612c24565b61189d611625733a2ea5595098565e7362e04da30c5ec29435731f612c24565b6118bd611cca7335d04cbb7a465fc3b7a80887a19447b8a82d727d612c24565b6118dd611bf27335d04cbb7a465fc3b7a80887a19447b8a82d727d612c24565b6118fd611bee7335d04cbb7a465fc3b7a80887a19447b8a82d727d612c24565b61191d611bed7335d04cbb7a465fc3b7a80887a19447b8a82d727d612c24565b61193d611bb77335d04cbb7a465fc3b7a80887a19447b8a82d727d612c24565b61195d610ba0733f049e5850229d18f01460dfda38c3ea6422b5a4612c24565b61197d610b9f733f049e5850229d18f01460dfda38c3ea6422b5a4612c24565b61199d610b9e733f049e5850229d18f01460dfda38c3ea6422b5a4612c24565b6119bd610b9d733f049e5850229d18f01460dfda38c3ea6422b5a4612c24565b6119dd610b9c733f049e5850229d18f01460dfda38c3ea6422b5a4612c24565b6119fd611ac8737c1939d092cd82d9e99b2e041fd84c9e5af133c5612c24565b611a1d611aca737c1939d092cd82d9e99b2e041fd84c9e5af133c5612c24565b611a3d6111e273ff40ad3c852e4f18e65968388aae5e94fb1cba25612c24565b611a5d6111e873ff40ad3c852e4f18e65968388aae5e94fb1cba25612c24565b611a7d6111e973ff40ad3c852e4f18e65968388aae5e94fb1cba25612c24565b611a9c604b73ff40ad3c852e4f18e65968388aae5e94fb1cba25612c24565b611abc610b9b733f049e5850229d18f01460dfda38c3ea6422b5a4612c24565b611adc610b9a733f049e5850229d18f01460dfda38c3ea6422b5a4612c24565b611afc610b99733f049e5850229d18f01460dfda38c3ea6422b5a4612c24565b611b1c610b98733f049e5850229d18f01460dfda38c3ea6422b5a4612c24565b611b3c610b97733f049e5850229d18f01460dfda38c3ea6422b5a4612c24565b611b5c611c70736c10c4a8e7d71a27cca1ec3843e0e9afc88c523c612c24565b611b7c61034673f9570eb74727a6e08562c3ef799876706d86a5e2612c24565b611b9c611a587320c1c718640d9ade58f1dd26a64ec366c34edcd7612c24565b611bbb604c73053975c22772ab3ecd783d92dbab0bd16e964070612c24565b611bdb610ff873b10daa8b5291423745c5480d6cc412e0c1a56178612c24565b611bfb6119a273de98445b4148dbe540308eb9fc40c0cdd3318ef8612c24565b611c1b61107e73c637548f402887fbd999774db8740c18efd43722612c24565b611c3b6114d973c637548f402887fbd999774db8740c18efd43722612c24565b611c5b61168773c637548f402887fbd999774db8740c18efd43722612c24565b611c7b6104ae739a4740b0a5adbe601188568b8f4acf52333e4dc0612c24565b611c9b61117673cb8b2c541e18adbc8b4b8a42a3ca769f4eb72e6c612c24565b611cbb611cce73b26f5a229e3331528836e544a0f7b5adb17cb114612c24565b611cdb61138573d9251159b7f461c1306a1bad855ae0c504acd3ca612c24565b611cfb6103247307794a44767928c3e4e862434589d5a89a1c6275612c24565b611d1b61144f73052f2567da498c06dc591ac48e0b56a07b28bba2612c24565b611d3b6114ec73052f2567da498c06dc591ac48e0b56a07b28bba2612c24565b611d5b610f8073052f2567da498c06dc591ac48e0b56a07b28bba2612c24565b611d7b6111c17367eddb0c3217bc86a3eb26331e2eb545460db0d8612c24565b611d9b6115ec7367eddb0c3217bc86a3eb26331e2eb545460db0d8612c24565b611dbb6118f473c64efe60570d60a7c2ee646a5fcd0ad7bfe434da612c24565b611ddb6118f573c64efe60570d60a7c2ee646a5fcd0ad7bfe434da612c24565b611dfb6118f673c64efe60570d60a7c2ee646a5fcd0ad7bfe434da612c24565b611e1b611265738c8a840dd85c1fd98bb57fd7dff8647724f64672612c24565b611e3b61195573f7d7b609791666dbd591ab5c3dc4644ff77071df612c24565b611e5b611a04735c3ec66c2a7c77828e0f41300235304a6f934e4e612c24565b611e7b611a06735c3ec66c2a7c77828e0f41300235304a6f934e4e612c24565b611e9b611a03735c3ec66c2a7c77828e0f41300235304a6f934e4e612c24565b611ebb611a05735c3ec66c2a7c77828e0f41300235304a6f934e4e612c24565b611edb610df573c3efb1b3bede144f805aa3cacf5299dabc683db5612c24565b611efb610c2e73c3efb1b3bede144f805aa3cacf5299dabc683db5612c24565b611f1b610d7873c3efb1b3bede144f805aa3cacf5299dabc683db5612c24565b611f3b610c2c73c3efb1b3bede144f805aa3cacf5299dabc683db5612c24565b611f5b611a2b73d1932153081496e444626c1334d14759b1218dd8612c24565b611f7b6102b67334e46bd7a1b00d42b5a409b6ec310982c09d0d9d612c24565b611f9b6109d07334e46bd7a1b00d42b5a409b6ec310982c09d0d9d612c24565b611fbb611a54737c7080e827556f7b97fa45176bdfa55db3b86522612c24565b611fdb61120c73e4e873664f214a07708ebef8a839cda2e5f59334612c24565b611ffb611a55737c7080e827556f7b97fa45176bdfa55db3b86522612c24565b61201b611ad6737c7080e827556f7b97fa45176bdfa55db3b86522612c24565b61203b611ad7737c7080e827556f7b97fa45176bdfa55db3b86522612c24565b61205b611ad8737c7080e827556f7b97fa45176bdfa55db3b86522612c24565b61207b611ad9737c7080e827556f7b97fa45176bdfa55db3b86522612c24565b61209a605873d8bef02a418bbc5d550963e825bf4d8b7d479dd8612c24565b610b3d6113be73d8bef02a418bbc5d550963e825bf4d8b7d479dd8612c24565b6120cb6120c5612471565b836125e5565b6120e75760405162461bcd60e51b815260040161076790613776565b6120f384848484612c56565b50505050565b60065460ff161561211c5760405162461bcd60e51b815260040161076790613717565b60005b8151811015610cc85761214a82828151811061213d5761213d6138fd565b6020026020010151610e88565b80612154816138a2565b91505061211f565b6000818152600260205260409020546060906001600160a01b03166121db5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610767565b60006121e5612c89565b905060008151116122055760405180602001604052806000815250612230565b8061220f84612c98565b604051602001612220929190613611565b6040516020818303038152906040525b9392505050565b600b5460405163c455279160e01b81526001600160a01b03848116600483015260009281169190841690829063c45527919060240160206040518083038186803b15801561228457600080fd5b505afa158015612298573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122bc919061329a565b6001600160a01b031614156122d557600191505061065a565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff165b949350505050565b61230f612471565b6001600160a01b03166123306006546001600160a01b036101009091041690565b6001600160a01b0316146123565760405162461bcd60e51b815260040161076790613741565b6001600160a01b0381166123bb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610767565b610bd381612aa2565b60003330141561241b57600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b0316915061241e9050565b50335b90565b60006001600160e01b031982166380ac58cd60e01b148061245257506001600160e01b03198216635b5e139f60e01b145b8061065a57506301ffc9a760e01b6001600160e01b031983161461065a565b6000610aa96123c4565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906124b082610ccc565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006001600160a01b03861661254f5760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201526424a3a722a960d91b6064820152608401610767565b600161256261255d87612d96565b612e13565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa1580156125b0573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b600061223082846137f8565b6000818152600260205260408120546001600160a01b031661265e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610767565b600061266983610ccc565b9050806001600160a01b0316846001600160a01b031614806126a45750836001600160a01b0316612699846106f2565b6001600160a01b0316145b806122ff57506122ff8185612237565b826001600160a01b03166126c782610ccc565b6001600160a01b03161461272f5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610767565b6001600160a01b0382166127915760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610767565b61279c60008261247b565b6001600160a01b03831660009081526003602052604081208054600192906127c5908490613824565b90915550506001600160a01b03821660009081526003602052604081208054600192906127f39084906137f8565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60065460ff1661289d5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610767565b6006805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6128d0612471565b6040516001600160a01b03909116815260200160405180910390a1565b60006128f882610ccc565b905061290560008361247b565b6001600160a01b038116600090815260036020526040812080546001929061292e908490613824565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b600e546040516331a9108f60e11b8152600481018490526001600160a01b03838116921690636352211e9060240160206040518083038186803b1580156129ce57600080fd5b505afa1580156129e2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a06919061329a565b6001600160a01b031614612a985760405162461bcd60e51b815260206004820152604d60248201527f43616e6e6f74206d696e7420612043686170746572203220746f6b656e20666f60448201527f7220676976656e2067656e6573697320746f6b656e206265636175736520697460648201526c206973206e6f7420796f75727360981b608482015260a401610767565b610cc88282612c24565b600680546001600160a01b03838116610100818102610100600160a81b031985161790945560405193909204169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60065460ff1615612b1f5760405162461bcd60e51b815260040161076790613717565b6006805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586128d0612471565b816001600160a01b0316836001600160a01b03161415612bb75760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610767565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b612c32600980546001019055565b6009546000838152600d6020526040902055610cc881612c5160095490565b612e43565b612c618484846126b4565b612c6d84848484612e5d565b6120f35760405162461bcd60e51b8152600401610767906136c5565b6060600a805461066f90613867565b606081612cbc5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612ce65780612cd0816138a2565b9150612cdf9050600a83613810565b9150612cc0565b60008167ffffffffffffffff811115612d0157612d01613913565b6040519080825280601f01601f191660200182016040528015612d2b576020820181803683370190505b5090505b84156122ff57612d40600183613824565b9150612d4d600a866138bd565b612d589060306137f8565b60f81b818381518110612d6d57612d6d6138fd565b60200101906001600160f81b031916908160001a905350612d8f600a86613810565b9450612d2f565b60006040518060800160405280604381526020016139556043913980516020918201208351848301516040808701518051908601209051612df6950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b6000612e1e60075490565b60405161190160f01b6020820152602281019190915260428101839052606201612df6565b610cc8828260405180602001604052806000815250612f71565b60006001600160a01b0384163b15612f6657836001600160a01b031663150b7a02612e86612471565b8786866040518563ffffffff1660e01b8152600401612ea89493929190613675565b602060405180830381600087803b158015612ec257600080fd5b505af1925050508015612ef2575060408051601f3d908101601f19168201909252612eef91810190613513565b60015b612f4c573d808015612f20576040519150601f19603f3d011682016040523d82523d6000602084013e612f25565b606091505b508051612f445760405162461bcd60e51b8152600401610767906136c5565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506122ff565b506001949350505050565b612f7b8383612fa4565b612f886000848484612e5d565b6108af5760405162461bcd60e51b8152600401610767906136c5565b6001600160a01b038216612ffa5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610767565b6000818152600260205260409020546001600160a01b03161561305f5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610767565b6001600160a01b03821660009081526003602052604081208054600192906130889084906137f8565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b8280546130f290613867565b90600052602060002090601f016020900481019282613114576000855561315a565b82601f1061312d57805160ff191683800117855561315a565b8280016001018555821561315a579182015b8281111561315a57825182559160200191906001019061313f565b5061316692915061316a565b5090565b5b80821115613166576000815560010161316b565b600067ffffffffffffffff83111561319957613199613913565b6131ac601f8401601f19166020016137c7565b90508281528383830111156131c057600080fd5b828260208301376000602084830101529392505050565b600082601f8301126131e857600080fd5b8135602067ffffffffffffffff82111561320457613204613913565b8160051b6132138282016137c7565b83815282810190868401838801850189101561322e57600080fd5b600093505b85841015613251578035835260019390930192918401918401613233565b50979650505050505050565b600082601f83011261326e57600080fd5b6122308383356020850161317f565b60006020828403121561328f57600080fd5b813561223081613929565b6000602082840312156132ac57600080fd5b815161223081613929565b600080604083850312156132ca57600080fd5b82356132d581613929565b915060208301356132e581613929565b809150509250929050565b60008060006060848603121561330557600080fd5b833561331081613929565b9250602084013561332081613929565b929592945050506040919091013590565b6000806000806080858703121561334757600080fd5b843561335281613929565b9350602085013561336281613929565b925060408501359150606085013567ffffffffffffffff81111561338557600080fd5b6133918782880161325d565b91505092959194509250565b600080604083850312156133b057600080fd5b82356133bb81613929565b9150602083013580151581146132e557600080fd5b600080600080600060a086880312156133e857600080fd5b85356133f381613929565b9450602086013567ffffffffffffffff81111561340f57600080fd5b61341b8882890161325d565b9450506040860135925060608601359150608086013560ff8116811461344057600080fd5b809150509295509295909350565b6000806040838503121561346157600080fd5b823561346c81613929565b946020939093013593505050565b60006020828403121561348c57600080fd5b813567ffffffffffffffff8111156134a357600080fd5b6122ff848285016131d7565b600080604083850312156134c257600080fd5b823567ffffffffffffffff8111156134d957600080fd5b6134e5858286016131d7565b92505060208301356132e581613929565b60006020828403121561350857600080fd5b81356122308161393e565b60006020828403121561352557600080fd5b81516122308161393e565b60006020828403121561354257600080fd5b813567ffffffffffffffff81111561355957600080fd5b8201601f8101841361356a57600080fd5b6122ff8482356020840161317f565b60006020828403121561358b57600080fd5b5035919050565b600081518084526135aa81602086016020860161383b565b601f01601f19169290920160200192915050565b600082516135d081846020870161383b565b9190910192915050565b600083516135ec81846020880161383b565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b6000835161362381846020880161383b565b83519083019061363781836020880161383b565b01949350505050565b6001600160a01b0384811682528316602082015260606040820181905260009061366c90830184613592565b95945050505050565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906136a890830184613592565b9695505050505050565b6020815260006122306020830184613592565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b60208082526010908201526f14185d5cd8589b194e881c185d5cd95960821b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff811182821017156137f0576137f0613913565b604052919050565b6000821982111561380b5761380b6138d1565b500190565b60008261381f5761381f6138e7565b500490565b600082821015613836576138366138d1565b500390565b60005b8381101561385657818101518382015260200161383e565b838111156120f35750506000910152565b600181811c9082168061387b57607f821691505b6020821081141561389c57634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156138b6576138b66138d1565b5060010190565b6000826138cc576138cc6138e7565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b0381168114610bd357600080fd5b6001600160e01b031981168114610bd357600080fdfe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e617475726529a264697066735822122099681f4bdadaa4d904f52e7bfc84816b2d9b1a75f6b6917297a16a2cd1fa0a0d64736f6c6343000807003368747470733a2f2f6170692e706f726b313938342e696f2f6170692f63686170746572322f000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c100000000000000000000000014a2dff3b2fb4dffa35b2006e84bf1cbb0ac4bba

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

000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c100000000000000000000000014a2dff3b2fb4dffa35b2006e84bf1cbb0ac4bba

-----Decoded View---------------
Arg [0] : _proxyRegistryAddress (address): 0xa5409ec958c83c3f309868babaca7c86dcb077c1
Arg [1] : _genesisPork1984Address (address): 0x14a2dff3b2fb4dffa35b2006e84bf1cbb0ac4bba

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000a5409ec958c83c3f309868babaca7c86dcb077c1
Arg [1] : 00000000000000000000000014a2dff3b2fb4dffa35b2006e84bf1cbb0ac4bba


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

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.