Contract 0x5ace5590a02dd073fcd4a7e1a369d3d5f85f1136 1

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x50396d2b1b0248cde1021bf7c1c934e07f7a536d26146ccd808b6e85bb0a7626Set Approval For...264239282022-09-24 16:14:522 days 8 hrs ago0x4a4f365cb9422556d995ed3ad2c446d008350355 IN  0x5ace5590a02dd073fcd4a7e1a369d3d5f85f11360 ETH0.00001092
0x3f353a5c854dd43c0c257f774024db8bc53a26f8115e3c24327fb3d4fc38e274Transfer Ownersh...258661912022-09-22 4:07:334 days 20 hrs ago0x6a58acf22dfcf85170e8004fb67b48d71bfaf99c IN  0x5ace5590a02dd073fcd4a7e1a369d3d5f85f11360 ETH0.00000315
0xe204bcf276d66b1924b8753845fee6b378340da12cd82269abbf84c5e979a6e2Set Approval For...217653922022-08-28 23:35:5129 days 1 hr ago0xdec6d1c36e6a2c20642db914b3462ea65629668e IN  0x5ace5590a02dd073fcd4a7e1a369d3d5f85f11360 ETH0.000045871811 ETH
0xd82ea795efa34fb1e009ee7629781cfbc2bae95ce86425fb0bbc704a21650763Redeem217610692022-08-28 22:45:4029 days 2 hrs ago0x4d60a749d98f2cf05cfdf52283f3bff7535ad754 IN  0x5ace5590a02dd073fcd4a7e1a369d3d5f85f11360 ETH0.000036668518 ETH
0x59ad5ef0b51306bf19a06fff26852d4cbc3dd94671ae4d6084502ab411e48c5cRedeem215825612022-08-27 19:18:5330 days 5 hrs ago0x2351bbfad2a6cfd217b8c9ae6c390f495d298097 IN  0x5ace5590a02dd073fcd4a7e1a369d3d5f85f11360 ETH0.000171464537 ETH
0xec9b0c190aa6bfe49df1814ba66240726788b8dc5a7d5d25bb356e2f5b80ef5aSet Approval For...209865352022-08-22 18:15:4535 days 6 hrs ago0x985bd026c6b78bf75a270e442a40e871e2dc1f4d IN  0x5ace5590a02dd073fcd4a7e1a369d3d5f85f11360 ETH0.00006262449 ETH
0xe9a6aa01d27b08e811c0df419c6dcacab7d377d6f75da15e448132808f258a0cRedeem208995702022-08-21 20:22:2836 days 4 hrs ago0x4a9929cb9661e83a3e3f7f34fb0c75de6f62663b IN  0x5ace5590a02dd073fcd4a7e1a369d3d5f85f11360 ETH0.000085181755 ETH
0xf938c02ac80d872fe7356363de8b9870da5408cfc943f4cb0b8362f35b070433Redeem206971862022-08-19 14:40:0938 days 10 hrs ago0x5c16afe06cbb06afcc34431820f31f50a93c115e IN  0x5ace5590a02dd073fcd4a7e1a369d3d5f85f11360 ETH0.000137943464 ETH
0xdd66423a349278a80e8c050fe591f42fd3665ecfc01a0420ea592e12b476743fRedeem206141242022-08-18 17:02:4239 days 7 hrs ago0x41ed5cb8d0bdc9523d77e6acdc961c31fda90988 IN  0x5ace5590a02dd073fcd4a7e1a369d3d5f85f11360 ETH0.000107166196 ETH
0xf437ca257f313996fe44fe9d239f9bf7b0a5c65452246e6e7ae22a1e57a9b9e5Set Approval For...204787652022-08-17 7:17:0540 days 17 hrs ago0x8fd2a590ef899573d2141ee1d5f3c76462d69e5c IN  0x5ace5590a02dd073fcd4a7e1a369d3d5f85f11360 ETH0.000065051735 ETH
0xe76241be781e159c679fd8163475e2328d8c4496f0260dc64c6e6c08734fa179Redeem199598112022-08-11 1:56:2646 days 22 hrs ago0x04f3c550216a29fdea8c7cf56823b7ed2fff8eff IN  0x5ace5590a02dd073fcd4a7e1a369d3d5f85f11360 ETH0.000126936546 ETH
0x5a4f551be654c6542015cf29a26d7f9702445005a6b69aec5b31b10e7340ce28Redeem199402212022-08-10 20:10:2747 days 4 hrs ago0xdad83334eb0baaa929969fe5b66e5fa8a1010936 IN  0x5ace5590a02dd073fcd4a7e1a369d3d5f85f11360 ETH0.000466119042 ETH
0x85c59d86aa6ba7c73e607de241adf5eb0c45000774aa83c678001bd66584c1fdRedeem199400442022-08-10 20:06:2947 days 4 hrs ago0xc7e27f39829b36f3fc749d78ecead2525e328717 IN  0x5ace5590a02dd073fcd4a7e1a369d3d5f85f11360 ETH0.00068058249 ETH
0x41ae0549437d796ffe00c91973344769d03efc449a85f69e9695350739ffb249Redeem199280802022-08-10 16:38:2847 days 8 hrs ago0x3a4d68994f741be298f802d0ed77948f04190bbc IN  0x5ace5590a02dd073fcd4a7e1a369d3d5f85f11360 ETH0.000691089128 ETH
0xb4897bcaed49b372769bbc760e94d250eb8d0dc9fa686b65d86f9d8c336982ecRedeem199279152022-08-10 16:36:0247 days 8 hrs ago0x22720ccde7db8141576f844beafcc9c7b7d602aa IN  0x5ace5590a02dd073fcd4a7e1a369d3d5f85f11360 ETH0.000361152178 ETH
0x8406b06c21f9205d7f8c7361a632fc953c65373aef5f4bc664cff8cb143f23d6Redeem199261882022-08-10 16:08:5047 days 8 hrs ago0xe9976c99962cdbb8e599ea878bfe4b67ce229884 IN  0x5ace5590a02dd073fcd4a7e1a369d3d5f85f11360 ETH0.001417609407 ETH
0x6ea899a2d875ddf4f19650bb2897ebb980abfc4e90dfd5fe86e5bf2b3f257d0bSafe Transfer Fr...198374522022-08-09 17:29:2948 days 7 hrs ago0x8fc11454322ccc99884ab071d5f1ba6532dc491a IN  0x5ace5590a02dd073fcd4a7e1a369d3d5f85f11360 ETH0.00012108017 ETH
0x0f61a1acdff9e7413b8400b2ec61dfb7dccbac8acabd5ad2e508e47b0dfd49a4Set Approval For...198020372022-08-09 12:28:2948 days 12 hrs ago0x80acf6c7cd6075510e0fcd4f9986c77cd60d6253 IN  0x5ace5590a02dd073fcd4a7e1a369d3d5f85f11360 ETH0.000084845525 ETH
0x2957bb3a84174397894497a988999a3df285782d278f83f2e59cf518c9c67b5eRedeem198014652022-08-09 12:23:4148 days 12 hrs ago0x80acf6c7cd6075510e0fcd4f9986c77cd60d6253 IN  0x5ace5590a02dd073fcd4a7e1a369d3d5f85f11360 ETH0.000164637601 ETH
0x9508ce3032d4d612e2650a96c74d150ce8e3d3dd42cd2af783f76f003a7aafb0Redeem197655442022-08-09 2:32:0448 days 22 hrs ago0xe28285b23a3d038e4fe97ff06a0e494c083292b3 IN  0x5ace5590a02dd073fcd4a7e1a369d3d5f85f11360 ETH0.000726396512 ETH
0x12cb1eeca8adaa7187d46d40f691d74c8be9048e23dc36733e56d022ea62fa51Redeem197533392022-08-08 21:57:0749 days 2 hrs ago0x5e8384a200c8beeb4fa12ca00a19338cdf81e72e IN  0x5ace5590a02dd073fcd4a7e1a369d3d5f85f11360 ETH0.000174974476 ETH
0x5dc0aa944c3d7a3da058eb8e0d38af6a82d3f8fceb9be45892d566ecd582063eRedeem196829842022-08-08 5:54:4749 days 18 hrs ago0x8fd2a590ef899573d2141ee1d5f3c76462d69e5c IN  0x5ace5590a02dd073fcd4a7e1a369d3d5f85f11360 ETH0.000238861273 ETH
0x29c2ecf5a6bdd29b7928a72b9ce3b2b3b8eef66dac9936325a402e50dcfb06ddRedeem196776422022-08-08 4:19:4249 days 20 hrs ago0xfa244489a96dc76ef755d52175e099150be83b56 IN  0x5ace5590a02dd073fcd4a7e1a369d3d5f85f11360 ETH0.000108503398 ETH
0xfc0dcf42126f44e6e8b9c4c13e5e7e0ac450f899653971aa1d2677a835e6625eRedeem196119362022-08-07 9:48:3750 days 15 hrs ago0xa181a4361d94bfedb29de43dda450362a8b5a40d IN  0x5ace5590a02dd073fcd4a7e1a369d3d5f85f11360 ETH0.000050433543 ETH
0x27f61c0f11b30fd21cd8f7d5c15f8cdd06a5826096220c69d0181cb402318f13Redeem196117672022-08-07 9:46:0150 days 15 hrs ago0x209217189e39dcecf92309d8560aae57bff596c3 IN  0x5ace5590a02dd073fcd4a7e1a369d3d5f85f11360 ETH0.000177311215 ETH
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xd82ea795efa34fb1e009ee7629781cfbc2bae95ce86425fb0bbc704a21650763217610692022-08-28 22:45:4029 days 2 hrs ago 0x5ace5590a02dd073fcd4a7e1a369d3d5f85f1136 0xc1fcf330b4b4c773fa7e6835f681e8f798e9ebff0 ETH
0xd82ea795efa34fb1e009ee7629781cfbc2bae95ce86425fb0bbc704a21650763217610692022-08-28 22:45:4029 days 2 hrs ago 0x5ace5590a02dd073fcd4a7e1a369d3d5f85f1136 0xc1fcf330b4b4c773fa7e6835f681e8f798e9ebff0 ETH
0x59ad5ef0b51306bf19a06fff26852d4cbc3dd94671ae4d6084502ab411e48c5c215825612022-08-27 19:18:5330 days 5 hrs ago 0x5ace5590a02dd073fcd4a7e1a369d3d5f85f1136 0xc1fcf330b4b4c773fa7e6835f681e8f798e9ebff0 ETH
0x59ad5ef0b51306bf19a06fff26852d4cbc3dd94671ae4d6084502ab411e48c5c215825612022-08-27 19:18:5330 days 5 hrs ago 0x5ace5590a02dd073fcd4a7e1a369d3d5f85f1136 0xc1fcf330b4b4c773fa7e6835f681e8f798e9ebff0 ETH
0x59ad5ef0b51306bf19a06fff26852d4cbc3dd94671ae4d6084502ab411e48c5c215825612022-08-27 19:18:5330 days 5 hrs ago 0x5ace5590a02dd073fcd4a7e1a369d3d5f85f1136 0xc1fcf330b4b4c773fa7e6835f681e8f798e9ebff0 ETH
0x59ad5ef0b51306bf19a06fff26852d4cbc3dd94671ae4d6084502ab411e48c5c215825612022-08-27 19:18:5330 days 5 hrs ago 0x5ace5590a02dd073fcd4a7e1a369d3d5f85f1136 0xc1fcf330b4b4c773fa7e6835f681e8f798e9ebff0 ETH
0x59ad5ef0b51306bf19a06fff26852d4cbc3dd94671ae4d6084502ab411e48c5c215825612022-08-27 19:18:5330 days 5 hrs ago 0x5ace5590a02dd073fcd4a7e1a369d3d5f85f1136 0xc1fcf330b4b4c773fa7e6835f681e8f798e9ebff0 ETH
0x59ad5ef0b51306bf19a06fff26852d4cbc3dd94671ae4d6084502ab411e48c5c215825612022-08-27 19:18:5330 days 5 hrs ago 0x5ace5590a02dd073fcd4a7e1a369d3d5f85f1136 0xc1fcf330b4b4c773fa7e6835f681e8f798e9ebff0 ETH
0x59ad5ef0b51306bf19a06fff26852d4cbc3dd94671ae4d6084502ab411e48c5c215825612022-08-27 19:18:5330 days 5 hrs ago 0x5ace5590a02dd073fcd4a7e1a369d3d5f85f1136 0xc1fcf330b4b4c773fa7e6835f681e8f798e9ebff0 ETH
0x59ad5ef0b51306bf19a06fff26852d4cbc3dd94671ae4d6084502ab411e48c5c215825612022-08-27 19:18:5330 days 5 hrs ago 0x5ace5590a02dd073fcd4a7e1a369d3d5f85f1136 0xc1fcf330b4b4c773fa7e6835f681e8f798e9ebff0 ETH
0x59ad5ef0b51306bf19a06fff26852d4cbc3dd94671ae4d6084502ab411e48c5c215825612022-08-27 19:18:5330 days 5 hrs ago 0x5ace5590a02dd073fcd4a7e1a369d3d5f85f1136 0xc1fcf330b4b4c773fa7e6835f681e8f798e9ebff0 ETH
0xe9a6aa01d27b08e811c0df419c6dcacab7d377d6f75da15e448132808f258a0c208995702022-08-21 20:22:2836 days 4 hrs ago 0x5ace5590a02dd073fcd4a7e1a369d3d5f85f1136 0xc1fcf330b4b4c773fa7e6835f681e8f798e9ebff0 ETH
0xe9a6aa01d27b08e811c0df419c6dcacab7d377d6f75da15e448132808f258a0c208995702022-08-21 20:22:2836 days 4 hrs ago 0x5ace5590a02dd073fcd4a7e1a369d3d5f85f1136 0xc1fcf330b4b4c773fa7e6835f681e8f798e9ebff0 ETH
0xe9a6aa01d27b08e811c0df419c6dcacab7d377d6f75da15e448132808f258a0c208995702022-08-21 20:22:2836 days 4 hrs ago 0x5ace5590a02dd073fcd4a7e1a369d3d5f85f1136 0xc1fcf330b4b4c773fa7e6835f681e8f798e9ebff0 ETH
0xeffdb91664753706c16e340507600e544722b7ceb80df18b892cf5892b0022a4207832172022-08-20 14:01:3437 days 10 hrs ago tofuNFT: Market 0x5ace5590a02dd073fcd4a7e1a369d3d5f85f11360 ETH
0xf938c02ac80d872fe7356363de8b9870da5408cfc943f4cb0b8362f35b070433206971862022-08-19 14:40:0938 days 10 hrs ago 0x5ace5590a02dd073fcd4a7e1a369d3d5f85f1136 0xc1fcf330b4b4c773fa7e6835f681e8f798e9ebff0 ETH
0xf938c02ac80d872fe7356363de8b9870da5408cfc943f4cb0b8362f35b070433206971862022-08-19 14:40:0938 days 10 hrs ago 0x5ace5590a02dd073fcd4a7e1a369d3d5f85f1136 0xc1fcf330b4b4c773fa7e6835f681e8f798e9ebff0 ETH
0xf938c02ac80d872fe7356363de8b9870da5408cfc943f4cb0b8362f35b070433206971862022-08-19 14:40:0938 days 10 hrs ago 0x5ace5590a02dd073fcd4a7e1a369d3d5f85f1136 0xc1fcf330b4b4c773fa7e6835f681e8f798e9ebff0 ETH
0xf938c02ac80d872fe7356363de8b9870da5408cfc943f4cb0b8362f35b070433206971862022-08-19 14:40:0938 days 10 hrs ago 0x5ace5590a02dd073fcd4a7e1a369d3d5f85f1136 0xc1fcf330b4b4c773fa7e6835f681e8f798e9ebff0 ETH
0xf938c02ac80d872fe7356363de8b9870da5408cfc943f4cb0b8362f35b070433206971862022-08-19 14:40:0938 days 10 hrs ago 0x5ace5590a02dd073fcd4a7e1a369d3d5f85f1136 0xc1fcf330b4b4c773fa7e6835f681e8f798e9ebff0 ETH
0xb57df38dfef78a31099926c7015ed97f6fadfe110e33591cdba813331d6eb965206313132022-08-18 23:21:1139 days 1 hr ago tofuNFT: Market 0x5ace5590a02dd073fcd4a7e1a369d3d5f85f11360 ETH
0xdd66423a349278a80e8c050fe591f42fd3665ecfc01a0420ea592e12b476743f206141242022-08-18 17:02:4239 days 7 hrs ago 0x5ace5590a02dd073fcd4a7e1a369d3d5f85f1136 0xc1fcf330b4b4c773fa7e6835f681e8f798e9ebff0 ETH
0xdd66423a349278a80e8c050fe591f42fd3665ecfc01a0420ea592e12b476743f206141242022-08-18 17:02:4239 days 7 hrs ago 0x5ace5590a02dd073fcd4a7e1a369d3d5f85f1136 0xc1fcf330b4b4c773fa7e6835f681e8f798e9ebff0 ETH
0xdd66423a349278a80e8c050fe591f42fd3665ecfc01a0420ea592e12b476743f206141242022-08-18 17:02:4239 days 7 hrs ago 0x5ace5590a02dd073fcd4a7e1a369d3d5f85f1136 0xc1fcf330b4b4c773fa7e6835f681e8f798e9ebff0 ETH
0xe76241be781e159c679fd8163475e2328d8c4496f0260dc64c6e6c08734fa179199598112022-08-11 1:56:2646 days 22 hrs ago 0x5ace5590a02dd073fcd4a7e1a369d3d5f85f1136 0xc1fcf330b4b4c773fa7e6835f681e8f798e9ebff0 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Antibots

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion

Contract Source Code (Solidity Standard Json-Input format)

File 1 of 16 : Antibots.sol
// SPDX-License-Identifier: MIT
//
// [ @ _ @ ]
//
// Antibots by @eddietree

pragma solidity ^0.8.4;

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

import "./AntibotRenderer.sol";

contract Antibots is BotRenderer, ERC721, ERC721Enumerable, ERC721Burnable, Ownable {
    constructor() ERC721("Antibots", "ANTIBOTS") {}

    bool public redeemEnabled = true;

    // original arbibots contract
    IERC721Enumerable public contractArbibots;
    bytes4 constant sigFunc_ownerOf = bytes4(keccak256("ownerOf(uint256)"));
    bytes4 constant sigFunc_balanceOf = bytes4(keccak256("balanceOf(address)"));
    bytes4 constant sigFunc_tokenOfOwnerByIndex = bytes4(keccak256("tokenOfOwnerByIndex(address,uint256)"));
    bytes4 constant sigVariable_seeds = bytes4(keccak256("seeds(uint256)")); // mapping(uint256 => uint256) public seeds;

    event AntibotRedeemed(uint256 indexed tokenId); // emitted when Antibot is redeemed
    event AntibotNinjaFlipped(uint256 indexed tokenId); // emitted when Antibot is flipped!

    function _ninjaFlip(uint256 tokenId) internal {
        require(_exists(tokenId), "Nonexistent token");

        flipped[tokenId] = !flipped[tokenId];
        emit AntibotNinjaFlipped(tokenId);
    }

    function ninjaFlip(uint256 tokenId) external {
        require(msg.sender == ownerOf(tokenId), "Not yours homie.");
        _ninjaFlip(tokenId);
    }

    function ninjaFlipMany(uint256[] calldata tokenIds) external {
        uint256 num = tokenIds.length;
        for (uint256 i = 0; i < num; ++i) {
            uint256 tokenId = tokenIds[i];
            require(msg.sender == ownerOf(tokenId), "Not yours homie.");
            _ninjaFlip(tokenId);
        }
    }

    function ninjaFlipAll() external {
        uint256 num = balanceOf(msg.sender);
        for (uint256 i = 0; i < num; ++i) {
            uint256 tokenId = tokenOfOwnerByIndex(msg.sender, i);
            _ninjaFlip(tokenId);
        }
    }

    function ninjaFlipAdmin(uint256 tokenId) external onlyOwner {
        _ninjaFlip(tokenId);
    }

    function _redeem(uint256 tokenId, address to) internal {
        require(!_exists(tokenId), "Already redeemed!");

        _mint(to, tokenId);
        seeds[tokenId] = fetchSeedForToken(tokenId);

        emit AntibotRedeemed(tokenId);
    }

    function redeemIndividual(uint256 tokenId) external {
        require(msg.sender == fetchOwnerOfArbibot(tokenId), "Not yours homie.");
        require(redeemEnabled, "Not enabled!");
        _redeem(tokenId, msg.sender);
    }

    // redeem all 
    function redeem() external {
        require(redeemEnabled, "Not enabled!");

        uint256 num = fetchNumArbibotsOwnedBy(msg.sender);
        for (uint256 i = 0; i < num; ++i) {
            uint256 tokenId = fetchArbibotTokenOfOwnerByIndex(msg.sender, i);

            // only redeem if it hasnt been redeemed yet
            if (!_exists(tokenId))
                _redeem(tokenId, msg.sender);
        }
    }

    function redeemMany(uint256[] calldata tokenIds) external {
        require(redeemEnabled, "Not enabled!");

        uint256 num = tokenIds.length;
        for (uint256 i = 0; i < num; ++i) {
            uint256 tokenId = tokenIds[i];
            require(msg.sender == fetchOwnerOfArbibot(tokenId), "Not yours homie.");
            _redeem(tokenId, msg.sender);
        }
    }

    // returns array of redeemable tokenIds and count of redeemable tokens
    // note: count can be less than memory.length
    function getAllRedeemableTokens() external view returns (uint256[] memory, uint count) {

        uint256 num = fetchNumArbibotsOwnedBy(msg.sender);
        uint256[] memory redeemableTokens = new uint256[](num);

        count = 0;

        for (uint256 i = 0; i < num; ++i) {
            uint256 tokenId = fetchArbibotTokenOfOwnerByIndex(msg.sender, i);

            // only redeem if it hasnt been redeemed yet
            if (!_exists(tokenId)) {
                redeemableTokens[count] = tokenId;
                count++;
            }
        }

        return (redeemableTokens, count);
    }

    /*function adminRedeem(uint256 tokenId) external onlyOwner { // for testing
        _redeem(tokenId, msg.sender);
    }

    function adminRedeemMany(uint256[] calldata tokenIds) external { // for testing
        uint256 num = tokenIds.length;
        for (uint256 i = 0; i < num; ++i) {
            uint256 tokenId = tokenIds[i];
            _redeem(tokenId, msg.sender);
        }
    }*/

    function tokenURI(uint256 tokenId) public view override returns (string memory) {
        require(_exists(tokenId), "URI query for nonexistent token");
        return _render(tokenId);
    }

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

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

    function setRedeemEnabled(bool newEnabled) external onlyOwner {
        redeemEnabled = newEnabled;
    }

    function setContractArbibots(address newAddress) external onlyOwner {
        contractArbibots = IERC721Enumerable(newAddress);
    }

    function fetchSeedForToken(uint256 tokenId) internal returns (uint256) { 
        if (address(contractArbibots) == address(0)) {
            return tokenId;
        }

        bytes memory data = abi.encodeWithSelector(sigVariable_seeds, tokenId);
        (bool success, bytes memory returnedData) = address(contractArbibots).call(data);
        require(success);

        uint256 seed = abi.decode(returnedData, (uint256));
        return seed;
    }

    function fetchOwnerOfArbibot(uint256 arbibotTokenId) public view returns (address) {
        if (address(contractArbibots) == address(0)) {
            return address(0);
        }

        return contractArbibots.ownerOf(arbibotTokenId);
    }

    function fetchNumArbibotsOwnedBy(address from) public view returns (uint256) {
        if (address(contractArbibots) == address(0)) {
            return 0;
        }

        return contractArbibots.balanceOf(from);
    }

    function fetchArbibotTokenOfOwnerByIndex(address from, uint256 index) public view returns (uint256) {
        if (address(contractArbibots) == address(0)) {
            return 0;
        }

        return contractArbibots.tokenOfOwnerByIndex(from, index);
    }

    function withdraw() public onlyOwner {
        uint balance = address(this).balance;
        payable(msg.sender).transfer(balance);
    }
}

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

pragma solidity ^0.8.0;

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);

        _afterTokenTransfer(from, to, tokenId);
    }

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

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

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

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

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

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

File 3 of 16 : 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 4 of 16 : ERC721Burnable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (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 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), "ERC721: caller is not token owner nor approved");
        _burn(tokenId);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

File 6 of 16 : AntibotRenderer.sol
// SPDX-License-Identifier: MIT
// referenced from original Aribibots render code.

pragma solidity ^0.8.0;

import 'base64-sol/base64.sol';

contract BotRenderer {

  mapping(uint256 => uint256) public seeds; // will be copied from OG Arbibots contract
  mapping(uint256 => bool) public flipped;

  string[][] public palettes = [
    ['#b5eaea', '#edf6e5', '#f38ba0'],
    ['#b5c7ea', '#e5f6e8', '#f3bb8b'],
    ['#eab6b5', '#eee5f6', '#8bf3df'],
    ['#c3eab5', '#f6e9e5', '#c18bf3'],
    ['#eab5d9', '#e5e8f6', '#8bf396']
  ];

  bytes[] public bodies = [
    bytes(hex'ff00ba0001010404010111000101060301010f000101080301010d000101090301010d000101090301010d00010109030101'),
    bytes(hex'ff00ba0001010404010111000101060301010f000101080301010d000101090301010d000101090301010d00010109030101'),
    bytes(hex'ff00b90001010504010111000101050301011100010105030101110001010503010111000101050301011100010105030101'),
    bytes(hex'ff00ba000101030401011200010105030101100001010104010103030101010401010e00010103040301030401010c0001010b0401010a0001010d040101'),
    bytes(hex'ff00b9000101050301010f0002010104010103030101010402010c00010104040301040401010a0001010d040101090001010d040101090001010d040101'),
    bytes(hex'ff00ba00010103030101120001010104010101030101010401011000010103040101030401010f000101070401010f000101070401010f00010107040101'),
    bytes(hex'ff00ba0001010104010101030101010401011000010103040101020401010f00010104040101030401010e00010104040101040401010d00010104040101040401010d0001010404010104040101')
  ];

  bytes[] public heads = [
    bytes(hex'96000c010b0001010c030101090001010e030101080001010e030101080001010e030101080001010e030101080001010e030101080001010e030101080001010e030101080001010e030101080001010e03010109000e01'),
    bytes(hex'97000a010d0001010a0301010b0001010c030101090001010e030101080001010e030101080001010e030101080001010e030101080001010e030101080001010e030101090001010c0301010b0001010a0301010d000a01'),
    bytes(hex'9400100107000101100401010600010101040e03010401010600010101040e03010401010600010101040e03010401010600010101040e03010401010600010101040e03010401010600010101040e03010401010600010101040e03010401010600010101040e0301040101060001011004010107001001'),
    bytes(hex'96000c010b0001010c030101090001010e030101070001011003010105000101120301010400010112030101040001011203010104000101120301010500010110030101070001010d030201090001010b0301010c000b01'),
    bytes(hex'9400100107000101100301010600010110030101060001011003010106000101100301010600010110030101070001010e030101080001010e030101090001010c0301010a0001010c0301010b0001010a0301010d000a01')
  ];

  bytes[] public eyes = [
    bytes(hex'ff0010000201070002010d0001010104070001010104ff00'),
    bytes(hex'ff001000030105000301ff00'),
    bytes(hex'f8000101070001010e000101010001010500010101000101ff00'),
    bytes(hex'df000301050003010d000301050003010e00010107000101ff00'),
    bytes(hex'ff0011000101070001010f00010107000101ff00'),
    bytes(hex'ff00100001010100010105000101010001010e00010107000101ff00')
  ];

  bytes[] public mouths = [
    bytes(hex'ff004300010101000101010001011400010101000101'),
    bytes(hex'ff00450001011600010101000101'),
    bytes(hex'ff005c000401'),
    bytes(hex'ff00440001010200010115000201'),
    bytes(hex'ff0044000401140001010204010115000201')
  ];

  bytes[] public headgears = [
    bytes(hex'37000101080001010d0001010100010106000101010001010e000101060001011000010106000101ff00'),
    bytes(hex'240001011600010101000101150001011700010117000101ff00'),
    bytes(hex'0c000201150001010200010114000101010001010104010113000101020001011400010117000101ff00'),
    bytes(hex'68000101060001010f000101010301010400010101030101ff00'),
    bytes(hex'50000101060001010f0001010103010104000101010301010e000101020301010200010102030101ff00')
  ];

  struct BotData {
    uint palette;
    uint body;
    uint head;
    uint eyes;
    uint mouth;
    uint headgear;
  }

  function _getSVG(uint256 tokenId) internal view returns (string memory) {
    BotData memory data = _generateBotData(tokenId);
    string[] memory palette = palettes[data.palette];

    bool flip = flipped[tokenId];

    string memory image = string(abi.encodePacked(
      '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" shape-rendering="crispEdges" width="256" height="256">'
      '<rect width="100%" height="100%" fill="', palette[0], '" />',
      _renderRectsSingleColor(bodies[data.body], '#000000', flip),
      _renderRectsSingleColor(heads[data.head], '#000000', flip),
      _renderRects(eyes[data.eyes], palette, '#ffffff', flip),
      _renderRects(mouths[data.mouth], palette, '#ffffff', flip),
      _renderRects(headgears[data.headgear], palette, '#000000', flip),
      '</svg>'
    ));

    return image;
  }

  function _render(uint256 tokenId) internal view returns (string memory) {
   
    string memory image = _getSVG(tokenId);

    return string(abi.encodePacked(
      'data:application/json;base64,',
      Base64.encode(
        bytes(
          abi.encodePacked('{"image": "data:image/svg+xml;base64,', Base64.encode(bytes(image)), '"}')
        )
      )
    ));
  }

  function _renderRectsSingleColor(bytes memory data, string memory color, bool flip) private pure returns (string memory) {
    string[24] memory lookup = [
      '0', '1', '2', '3', '4', '5', '6', '7',
      '8', '9', '10', '11', '12', '13', '14', '15',
      '16', '17', '18', '19', '20', '21', '22', '23'
    ];

    string memory rects;
    uint256 drawIndex = 0;
    for (uint256 i = 0; i < data.length; i = i+2) {
      uint8 runLength = uint8(data[i]); // we assume runLength of any non-transparent segment cannot exceed image width (24px)
      uint8 colorIndex = uint8(data[i+1]);
      if (colorIndex != 0) { // transparent
        uint8 x = uint8(drawIndex % 24);
        x = 24-x-runLength; // mirror horizontally
        uint8 y = uint8(drawIndex / 24);

        if (flip) // mirror vertically
            y = 23-y;

        rects = string(abi.encodePacked(rects, '<rect width="', lookup[runLength], '" height="1" x="', lookup[x], '" y="', lookup[y], '" fill="', color, '" />'));
      }
      drawIndex += runLength;
    }

    return rects;
  }

  function _renderRects(bytes memory data, string[] memory palette, string memory defaultColor, bool flip) private pure returns (string memory) {
    string[24] memory lookup = [
      '0', '1', '2', '3', '4', '5', '6', '7',
      '8', '9', '10', '11', '12', '13', '14', '15',
      '16', '17', '18', '19', '20', '21', '22', '23'
    ];

    string memory rects;
    uint256 drawIndex = 0;
    for (uint256 i = 0; i < data.length; i = i+2) {
      uint8 runLength = uint8(data[i]); // we assume runLength of any non-transparent segment cannot exceed image width (24px)
      uint8 colorIndex = uint8(data[i+1]);
      if (colorIndex != 0) { // transparent
        uint8 x = uint8(drawIndex % 24);
        x = 24-x-runLength; // mirror horizontally
        uint8 y = uint8(drawIndex / 24);
        
        if (flip) // mirror vertically
            y = 23-y;

        string memory color = defaultColor;
        if (colorIndex > 1) {
          color = palette[colorIndex-2];
        }
        rects = string(abi.encodePacked(rects, '<rect width="', lookup[runLength], '" height="1" x="', lookup[x], '" y="', lookup[y], '" fill="', color, '" />'));
      }
      drawIndex += runLength;
    }

    return rects;
  }

  function _generateBotData(uint256 tokenId) private view returns (BotData memory) {
    uint256 seed = seeds[tokenId];

    return BotData({
      palette: seed % palettes.length,
      body: (seed/2) % bodies.length,
      head: (seed/3) % heads.length,
      eyes: (seed/4) % eyes.length,
      mouth: (seed/5) % mouths.length,
      headgear: (seed/6) % headgears.length
    });
  }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

File 9 of 16 : 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 10 of 16 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 11 of 16 : 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 12 of 16 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

File 13 of 16 : 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 14 of 16 : 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 15 of 16 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

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

pragma solidity >=0.6.0;

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

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

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

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

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

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

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

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

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

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

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

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

        return result;
    }

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

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

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

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

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

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

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

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

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

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

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

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

        return result;
    }
}

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

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"AntibotNinjaFlipped","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"AntibotRedeemed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"bodies","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"contractArbibots","outputs":[{"internalType":"contract IERC721Enumerable","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"eyes","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"fetchArbibotTokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"}],"name":"fetchNumArbibotsOwnedBy","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"arbibotTokenId","type":"uint256"}],"name":"fetchOwnerOfArbibot","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"flipped","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAllRedeemableTokens","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"},{"internalType":"uint256","name":"count","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"headgears","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"heads","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"mouths","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ninjaFlip","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ninjaFlipAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"ninjaFlipAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"ninjaFlipMany","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"palettes","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"redeem","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"redeemEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"redeemIndividual","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"tokenIds","type":"uint256[]"}],"name":"redeemMany","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"seeds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddress","type":"address"}],"name":"setContractArbibots","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"newEnabled","type":"bool"}],"name":"setRedeemEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6007610180818152662362356561656160c81b6101a0526101209081526101c0828152662365646636653560c81b6101e05261014052610200828152660236633386261360cc1b610220526101605260809081526102a0828152662362356337656160c81b6102c0526102409081526102e083815266046ca6acc6cca760cb1b61030052610260526103208381526611b319b1311c3160c91b610340526102805260a0526103c0828152662365616236623560c81b6103e0526103609081526104008381526611b2b2b29ab31b60c91b610420526103805261044083815266119c313319b23360c91b610460526103a05260c0526104e0828152662363336561623560c81b61050052610480908152610520838152662366366539653560c81b610540526104a052610560838152662363313862663360c81b610580526104c05260e052610600828152662365616235643960c81b610620526105a09081526106408381526611b29ab29c331b60c91b610660526105c0526106c060405261068092835266119c3133199c9b60c91b6106a0526105e09290925261010091909152620001b0906002906005620007da565b50604080516101408101909152603260e08201818152829162004a94610100840139815260200160405180606001604052806032815260200162004a94603291398152602001604051806060016040528060328152602001620049546032913981526020016040518060600160405280603e8152602001620049de603e913981526020016040518060600160405280603e815260200162004b1e603e913981526020016040518060600160405280603e8152602001620047ee603e913981526020016040518060800160405280604e8152602001620048ae604e913990526200029e90600390600762000838565b50604080516101208101909152605860a0820181815282916200498660c084013981526020016040518060800160405280605881526020016200482c6058913981526020016040518060a001604052806078815260200162004a1c60789139815260200160405180608001604052806058815260200162004ac6605891398152602001604051806080016040528060588152602001620048fc6058913990526200034d90600490600562000898565b506040805161010081018252601860c082019081527fff0010000201070002010d0001010104070001010104ff00000000000000000060e0830152815281518083018352600c81527fff001000030105000301ff0000000000000000000000000000000000000000006020828101919091528083019190915282518084018452601a8082527ff8000101070001010e000101010001010500010101000101ff000000000000008284015283850191909152835180850185529081527fdf000301050003010d000301050003010e00010107000101ff0000000000000081830152606083015282518084018452601481527fff0011000101070001010f00010107000101ff000000000000000000000000008183015260808301528251808401909352601c83527fff00100001010100010105000101010001010e00010107000101ff00000000009083015260a0810191909152620004b0906005906006620008ea565b506040518060a001604052806040518060400160405280601681526020017fff0043000101010001010100010114000101010001010000000000000000000081525081526020016040518060400160405280600e81526020017fff0045000101160001010100010100000000000000000000000000000000000081525081526020016040518060400160405280600681526020017fff005c000401000000000000000000000000000000000000000000000000000081525081526020016040518060400160405280600e81526020017fff0044000101020001011500020100000000000000000000000000000000000081525081526020016040518060400160405280601281526020017fff004400040114000101020401011500020100000000000000000000000000008152508152506006906005620005f392919062000898565b50604080516101008101909152602a60a0820181815282916200488460c084013981526020016040518060400160405280601a81526020017f240001011600010101000101150001011700010117000101ff0000000000000081525081526020016040518060600160405280602a8152602001620047c4602a913981526020016040518060400160405280601a81526020017f68000101060001010f000101010301010400010101030101ff0000000000000081525081526020016040518060600160405280602a81526020016200479a602a91399052620006da90600790600562000898565b506012805460ff60a01b1916600160a01b179055348015620006fb57600080fd5b50604080518082018252600880825267416e7469626f747360c01b6020808401918252845180860190955282855267414e5449424f545360c01b9085015282519293926200074b9291906200093c565b508051620007619060099060208401906200093c565b5050506200077e620007786200078460201b60201c565b62000788565b62000b4a565b3390565b601280546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805482825590600052602060002090810192821562000826579160200282015b8281111562000826578251620008159083906003620009c7565b5091602001919060010190620007fb565b506200083492915062000a27565b5090565b8280548282559060005260206000209081019282156200088a579160200282015b828111156200088a5782518051620008799184916020909101906200093c565b509160200191906001019062000859565b506200083492915062000a48565b8280548282559060005260206000209081019282156200088a579160200282015b828111156200088a5782518051620008d99184916020909101906200093c565b5091602001919060010190620008b9565b8280548282559060005260206000209081019282156200088a579160200282015b828111156200088a57825180516200092b9184916020909101906200093c565b50916020019190600101906200090b565b8280546200094a9062000b19565b90600052602060002090601f0160209004810192826200096e5760008555620009b9565b82601f106200098957805160ff1916838001178555620009b9565b82800160010185558215620009b9579182015b82811115620009b95782518255916020019190600101906200099c565b506200083492915062000a69565b82805482825590600052602060002090810192821562000a19579160200282015b8281111562000a19578251805162000a089184916020909101906200093c565b5091602001919060010190620009e8565b506200083492915062000a80565b808211156200083457600062000a3e828262000aa1565b5060010162000a27565b808211156200083457600062000a5f828262000ac4565b5060010162000a48565b5b8082111562000834576000815560010162000a6a565b808211156200083457600062000a97828262000ac4565b5060010162000a80565b508054600082559060005260206000209081019062000ac1919062000a80565b50565b50805462000ad29062000b19565b6000825580601f1062000ae3575050565b601f01602090049060005260206000209081019062000ac1919062000a69565b634e487b7160e01b600052602260045260246000fd5b60028104600182168062000b2e57607f821691505b6020821081141562000b445762000b4462000b03565b50919050565b613c408062000b5a6000396000f3fe608060405234801561001057600080fd5b50600436106102745760003560e01c8063868b4d3311610151578063b88d4fde116100c3578063d2f8253611610087578063d2f825361461055b578063e985e9c51461056f578063f0503e80146105ab578063f0a6d82e146105cb578063f1dc193a146105de578063f2fde38b146105f157600080fd5b8063b88d4fde14610507578063bbdd51ae1461051a578063be040fb01461052d578063c87b56dd14610535578063cde995d31461054857600080fd5b806395d89b411161011557806395d89b4114610483578063973e1f6a1461048b578063a22cb465146104ae578063a3053dd5146104c1578063b044afd2146104d4578063b560c5de146104e757600080fd5b8063868b4d331461042657806389651fce146104395780638cfd56331461044c5780638da5cb5b1461045f57806390f1d5dc1461047057600080fd5b80633ccfd60b116101ea5780634f6ccce7116101ae5780634f6ccce7146103bf5780635a503f13146103d257806362dc2797146103e55780636352211e146103f857806370a082311461040b578063715018a61461041e57600080fd5b80633ccfd60b1461036b5780633f035a851461037357806342842e0e1461038657806342966c681461039957806344cee73c146103ac57600080fd5b8063095ea7b31161023c578063095ea7b31461030c57806318160ddd1461031f57806323b872dd14610327578063287ad4871461033a5780632f745c59146103505780633104b6d71461036357600080fd5b806301ffc9a714610279578063021d2893146102a25780630484c3db146102b757806306fdde03146102d7578063081812fc146102ec575b600080fd5b61028c610287366004612bf8565b610604565b6040516102999190612c23565b60405180910390f35b6102b56102b0366004612c44565b610615565b005b6102ca6102c5366004612c9b565b61063b565b6040516102999190612cde565b6102df6106df565b6040516102999190612d4a565b6102ff6102fa366004612d5b565b610771565b6040516102999190612d85565b6102b561031a366004612c9b565b610798565b6010546102ca565b6102b5610335366004612d93565b610827565b610342610859565b604051610299929190612e40565b6102ca61035e366004612c9b565b61091f565b6102b5610971565b6102b56109b5565b6102b5610381366004612d5b565b6109ec565b6102b5610394366004612d93565b610a5b565b6102b56103a7366004612d5b565b610a76565b6102df6103ba366004612d5b565b610aa4565b6102ca6103cd366004612d5b565b610b50565b6102df6103e0366004612d5b565b610b9e565b6102ff6103f3366004612d5b565b610bae565b6102ff610406366004612d5b565b610c49565b6102ca610419366004612e60565b610c7e565b6102b5610cc2565b6102df610434366004612d5b565b610cd6565b6102b5610447366004612e60565b610ce6565b6102ca61045a366004612e60565b610d10565b6012546001600160a01b03166102ff565b6102df61047e366004612d5b565b610dab565b6102df610dbb565b61028c610499366004612d5b565b60016020526000908152604090205460ff1681565b6102b56104bc366004612e81565b610dca565b6102df6104cf366004612d5b565b610dd5565b6102b56104e2366004612d5b565b610de5565b6013546104fa906001600160a01b031681565b6040516102999190612ed3565b6102b5610515366004612fdc565b610e27565b6102b56105283660046130ad565b610e5f565b6102b5610f05565b6102df610543366004612d5b565b610f7c565b6102b56105563660046130ad565b610fac565b60125461028c90600160a01b900460ff1681565b61028c61057d3660046130f5565b6001600160a01b039182166000908152600d6020908152604080832093909416825291909152205460ff1690565b6102ca6105b9366004612d5b565b60006020819052908152604090205481565b6102b56105d9366004612d5b565b611028565b6102df6105ec366004613128565b611030565b6102b56105ff366004612e60565b611074565b600061060f826110ab565b92915050565b61061d6110d0565b60128054911515600160a01b0260ff60a01b19909216919091179055565b6013546000906001600160a01b03166106565750600061060f565b601354604051632f745c5960e01b81526001600160a01b0390911690632f745c5990610688908690869060040161314a565b60206040518083038186803b1580156106a057600080fd5b505afa1580156106b4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106d89190613170565b9392505050565b6060600880546106ee906131a7565b80601f016020809104026020016040519081016040528092919081815260200182805461071a906131a7565b80156107675780601f1061073c57610100808354040283529160200191610767565b820191906000526020600020905b81548152906001019060200180831161074a57829003601f168201915b5050505050905090565b600061077c826110fa565b506000908152600c60205260409020546001600160a01b031690565b60006107a382610c49565b9050806001600160a01b0316836001600160a01b031614156107e05760405162461bcd60e51b81526004016107d790613215565b60405180910390fd5b336001600160a01b03821614806107fc57506107fc813361057d565b6108185760405162461bcd60e51b81526004016107d79061327f565b610822838361111f565b505050565b610832335b8261118d565b61084e5760405162461bcd60e51b81526004016107d7906132da565b61082283838361120c565b606060008061086733610d10565b905060008167ffffffffffffffff81111561088457610884612ee1565b6040519080825280602002602001820160405280156108ad578160200160208202803683370190505b5090506000925060005b828110156109175760006108cb338361063b565b90506108d681611339565b61090657808386815181106108ed576108ed6132ea565b60209081029190910101528461090281613316565b9550505b5061091081613316565b90506108b7565b509391925050565b600061092a83610c7e565b82106109485760405162461bcd60e51b81526004016107d790613379565b506001600160a01b03919091166000908152600e60209081526040808320938352929052205490565b600061097c33610c7e565b905060005b818110156109b1576000610995338361091f565b90506109a081611356565b506109aa81613316565b9050610981565b5050565b6109bd6110d0565b6040514790339082156108fc029083906000818181858888f193505050501580156109b1573d6000803e3d6000fd5b6109f581610bae565b6001600160a01b0316336001600160a01b031614610a255760405162461bcd60e51b81526004016107d7906133b3565b601254600160a01b900460ff16610a4e5760405162461bcd60e51b81526004016107d7906133e6565b610a5881336113c3565b50565b61082283838360405180602001604052806000815250610e27565b610a7f3361082c565b610a9b5760405162461bcd60e51b81526004016107d7906132da565b610a588161143a565b60038181548110610ab457600080fd5b906000526020600020016000915090508054610acf906131a7565b80601f0160208091040260200160405190810160405280929190818152602001828054610afb906131a7565b8015610b485780601f10610b1d57610100808354040283529160200191610b48565b820191906000526020600020905b815481529060010190602001808311610b2b57829003601f168201915b505050505081565b6000610b5b60105490565b8210610b795760405162461bcd60e51b81526004016107d79061343f565b60108281548110610b8c57610b8c6132ea565b90600052602060002001549050919050565b60048181548110610ab457600080fd5b6013546000906001600160a01b0316610bc957506000919050565b6013546040516331a9108f60e11b81526001600160a01b0390911690636352211e90610bf9908590600401612cde565b60206040518083038186803b158015610c1157600080fd5b505afa158015610c25573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061060f919061345a565b6000818152600a60205260408120546001600160a01b03168061060f5760405162461bcd60e51b81526004016107d7906134af565b60006001600160a01b038216610ca65760405162461bcd60e51b81526004016107d790613505565b506001600160a01b03166000908152600b602052604090205490565b610cca6110d0565b610cd460006114e1565b565b60078181548110610ab457600080fd5b610cee6110d0565b601380546001600160a01b0319166001600160a01b0392909216919091179055565b6013546000906001600160a01b0316610d2b57506000919050565b6013546040516370a0823160e01b81526001600160a01b03909116906370a0823190610d5b908590600401612d85565b60206040518083038186803b158015610d7357600080fd5b505afa158015610d87573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061060f9190613170565b60068181548110610ab457600080fd5b6060600980546106ee906131a7565b6109b1338383611533565b60058181548110610ab457600080fd5b610dee81610c49565b6001600160a01b0316336001600160a01b031614610e1e5760405162461bcd60e51b81526004016107d7906133b3565b610a5881611356565b610e31338361118d565b610e4d5760405162461bcd60e51b81526004016107d7906132da565b610e59848484846115d6565b50505050565b601254600160a01b900460ff16610e885760405162461bcd60e51b81526004016107d7906133e6565b8060005b81811015610e59576000848483818110610ea857610ea86132ea565b905060200201359050610eba81610bae565b6001600160a01b0316336001600160a01b031614610eea5760405162461bcd60e51b81526004016107d7906133b3565b610ef481336113c3565b50610efe81613316565b9050610e8c565b601254600160a01b900460ff16610f2e5760405162461bcd60e51b81526004016107d7906133e6565b6000610f3933610d10565b905060005b818110156109b1576000610f52338361063b565b9050610f5d81611339565b610f6b57610f6b81336113c3565b50610f7581613316565b9050610f3e565b6060610f8782611339565b610fa35760405162461bcd60e51b81526004016107d790613549565b61060f82611609565b8060005b81811015610e59576000848483818110610fcc57610fcc6132ea565b905060200201359050610fde81610c49565b6001600160a01b0316336001600160a01b03161461100e5760405162461bcd60e51b81526004016107d7906133b3565b61101781611356565b5061102181613316565b9050610fb0565b610e1e6110d0565b6002828154811061104057600080fd5b90600052602060002001818154811061105857600080fd5b90600052602060002001600091509150508054610acf906131a7565b61107c6110d0565b6001600160a01b0381166110a25760405162461bcd60e51b81526004016107d79061359c565b610a58816114e1565b60006001600160e01b0319821663780e9d6360e01b148061060f575061060f8261166f565b6012546001600160a01b03163314610cd45760405162461bcd60e51b81526004016107d7906135de565b61110381611339565b610a585760405162461bcd60e51b81526004016107d7906134af565b6000818152600c6020526040902080546001600160a01b0319166001600160a01b038416908117909155819061115482610c49565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60008061119983610c49565b9050806001600160a01b0316846001600160a01b031614806111e057506001600160a01b038082166000908152600d602090815260408083209388168352929052205460ff165b806112045750836001600160a01b03166111f984610771565b6001600160a01b0316145b949350505050565b826001600160a01b031661121f82610c49565b6001600160a01b0316146112455760405162461bcd60e51b81526004016107d790613630565b6001600160a01b03821661126b5760405162461bcd60e51b81526004016107d790613681565b6112768383836116bf565b61128160008261111f565b6001600160a01b0383166000908152600b602052604081208054600192906112aa908490613691565b90915550506001600160a01b0382166000908152600b602052604081208054600192906112d89084906136ac565b90915550506000818152600a602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000908152600a60205260409020546001600160a01b0316151590565b61135f81611339565b61137b5760405162461bcd60e51b81526004016107d7906136ec565b600081815260016020526040808220805460ff19811660ff909116151790555182917fe7fb1c05dabfaf5924ca811419b1588a161908eadcdecf6a1665e7855a3a455291a250565b6113cc82611339565b156113e95760405162461bcd60e51b81526004016107d790613724565b6113f381836116ca565b6113fc826117a9565b60008381526020819052604080822092909255905183917faec66bbec55d11995984f2261358d7d5dc38aebfbebfd337343661d77d28f27391a25050565b600061144582610c49565b9050611453816000846116bf565b61145e60008361111f565b6001600160a01b0381166000908152600b60205260408120805460019290611487908490613691565b90915550506000828152600a602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b601280546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156115655760405162461bcd60e51b81526004016107d790613768565b6001600160a01b038381166000818152600d602090815260408083209487168084529490915290819020805460ff1916851515179055517f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31906115c9908590612c23565b60405180910390a3505050565b6115e184848461120c565b6115ed848484846118bb565b610e595760405162461bcd60e51b81526004016107d7906137c7565b60606000611616836119c8565b905061164861162482611f4d565b60405160200161163491906137f9565b604051602081830303815290604052611f4d565b604051602001611658919061384c565b604051602081830303815290604052915050919050565b60006001600160e01b031982166380ac58cd60e01b14806116a057506001600160e01b03198216635b5e139f60e01b145b8061060f57506301ffc9a760e01b6001600160e01b031983161461060f565b6108228383836120b3565b6001600160a01b0382166116f05760405162461bcd60e51b81526004016107d7906138b0565b6116f981611339565b156117165760405162461bcd60e51b81526004016107d7906138f4565b611722600083836116bf565b6001600160a01b0382166000908152600b6020526040812080546001929061174b9084906136ac565b90915550506000818152600a602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6013546000906001600160a01b03166117c0575090565b60007ff0503e809abf6f8f379ae6e423d66d69e47c55eeb21ebc7f35577d48f65a7a2a836040516024016117f49190612cde565b60408051601f198184030181529181526020820180516001600160e01b03166001600160e01b031990941693909317909252601354915190925060009182916001600160a01b039091169061184a908590613904565b6000604051808303816000865af19150503d8060008114611887576040519150601f19603f3d011682016040523d82523d6000602084013e61188c565b606091505b50915091508161189b57600080fd5b6000818060200190518101906118b19190613170565b9695505050505050565b60006001600160a01b0384163b156119bd57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906118ff903390899088908890600401613910565b602060405180830381600087803b15801561191957600080fd5b505af1925050508015611949575060408051601f3d908101601f1916820190925261194691810190613955565b60015b6119a3573d808015611977576040519150601f19603f3d011682016040523d82523d6000602084013e61197c565b606091505b50805161199b5760405162461bcd60e51b81526004016107d7906137c7565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050611204565b506001949350505050565b606060006119d58361216b565b9050600060028260000151815481106119f0576119f06132ea565b90600052602060002001805480602002602001604051908101604052809291908181526020016000905b82821015611ac6578382906000526020600020018054611a39906131a7565b80601f0160208091040260200160405190810160405280929190818152602001828054611a65906131a7565b8015611ab25780601f10611a8757610100808354040283529160200191611ab2565b820191906000526020600020905b815481529060010190602001808311611a9557829003601f168201915b505050505081526020019060010190611a1a565b505050600086815260016020526040812054835193945060ff169290915083908290611af457611af46132ea565b6020026020010151611bcf6003866020015181548110611b1657611b166132ea565b906000526020600020018054611b2b906131a7565b80601f0160208091040260200160405190810160405280929190818152602001828054611b57906131a7565b8015611ba45780601f10611b7957610100808354040283529160200191611ba4565b820191906000526020600020905b815481529060010190602001808311611b8757829003601f168201915b5050505050604051806040016040528060078152602001660233030303030360cc1b81525085612279565b611ca26004876040015181548110611be957611be96132ea565b906000526020600020018054611bfe906131a7565b80601f0160208091040260200160405190810160405280929190818152602001828054611c2a906131a7565b8015611c775780601f10611c4c57610100808354040283529160200191611c77565b820191906000526020600020905b815481529060010190602001808311611c5a57829003601f168201915b5050505050604051806040016040528060078152602001660233030303030360cc1b81525086612279565b611d766005886060015181548110611cbc57611cbc6132ea565b906000526020600020018054611cd1906131a7565b80601f0160208091040260200160405190810160405280929190818152602001828054611cfd906131a7565b8015611d4a5780601f10611d1f57610100808354040283529160200191611d4a565b820191906000526020600020905b815481529060010190602001808311611d2d57829003601f168201915b5050505050876040518060400160405280600781526020016611b3333333333360c91b81525088612643565b611e4a6006896080015181548110611d9057611d906132ea565b906000526020600020018054611da5906131a7565b80601f0160208091040260200160405190810160405280929190818152602001828054611dd1906131a7565b8015611e1e5780601f10611df357610100808354040283529160200191611e1e565b820191906000526020600020905b815481529060010190602001808311611e0157829003601f168201915b5050505050886040518060400160405280600781526020016611b3333333333360c91b81525089612643565b611f1e60078a60a0015181548110611e6457611e646132ea565b906000526020600020018054611e79906131a7565b80601f0160208091040260200160405190810160405280929190818152602001828054611ea5906131a7565b8015611ef25780601f10611ec757610100808354040283529160200191611ef2565b820191906000526020600020905b815481529060010190602001808311611ed557829003601f168201915b505050505089604051806040016040528060078152602001660233030303030360cc1b8152508a612643565b604051602001611f3396959493929190613976565b60408051601f198184030181529190529695505050505050565b6060815160001415611f6d57505060408051602081019091526000815290565b6000604051806060016040528060408152602001613bcb6040913990506000600384516002611f9c91906136ac565b611fa69190613aba565b611fb1906004613ace565b90506000611fc08260206136ac565b67ffffffffffffffff811115611fd857611fd8612ee1565b6040519080825280601f01601f191660200182016040528015612002576020820181803683370190505b509050818152600183018586518101602084015b8183101561206e576003830192508251603f8160121c168501518253600182019150603f81600c1c168501518253600182019150603f8160061c168501518253600182019150603f8116850151825350600101612016565b6003895106600181146120885760028114612099576120a5565b613d3d60f01b6001198301526120a5565b603d60f81b6000198301525b509398975050505050505050565b6001600160a01b03831661210e5761210981601080546000838152601160205260408120829055600182018355919091527f1b6847dc741a1b0cd08d278845f9d819d87b734759afb55fe2de5cb82a9ae6720155565b612131565b816001600160a01b0316836001600160a01b031614612131576121318382612a46565b6001600160a01b0382166121485761082281612ae3565b826001600160a01b0316826001600160a01b031614610822576108228282612b92565b6121a46040518060c001604052806000815260200160008152602001600081526020016000815260200160008152602001600081525090565b6000828152602081905260409081902054815160c0810190925260025490919081906121d09084613aed565b81526003546020909101906121e6600285613aba565b6121f09190613aed565b8152600454602090910190612206600385613aba565b6122109190613aed565b8152600554602090910190612226600485613aba565b6122309190613aed565b8152600654602090910190612246600585613aba565b6122509190613aed565b8152600754602090910190612266600685613aba565b6122709190613aed565b90529392505050565b604080516103408101825260016103008201818152600360fc1b610320840152825282518084018452818152603160f81b6020828101919091528084019190915283518085018552828152601960f91b818301528385015283518085018552828152603360f81b8183015260608481019190915284518086018652838152600d60fa1b81840152608085015284518086018652838152603560f81b8184015260a085015284518086018652838152601b60f91b8184015260c085015284518086018652838152603760f81b8184015260e085015284518086018652838152600760fb1b8184015261010085015284518086018652928352603960f81b8383015261012084019290925283518085018552600280825261031360f41b828401526101408501919091528451808601865281815261313160f01b818401526101608501528451808601865281815261189960f11b818401526101808501528451808601865281815261313360f01b818401526101a085015284518086018652818152610c4d60f21b818401526101c08501528451808601865281815261313560f01b818401526101e08501528451808601865281815261189b60f11b818401526102008501528451808601865281815261313760f01b818401526102208501528451808601865281815261062760f31b818401526102408501528451808601865281815261313960f01b818401526102608501528451808601865281815261032360f41b818401526102808501528451808601865281815261323160f01b818401526102a08501528451808601865281815261191960f11b818401526102c08501528451808601909552845261323360f01b908401526102e0820192909252816000805b8751811015612637576000888281518110612518576125186132ea565b016020015160f81c90506000896125308460016136ac565b81518110612540576125406132ea565b016020015160f81c9050801561261257600061255d601886613aed565b90508261256b826018613b01565b6125759190613b01565b90506000612584601887613aba565b9050891561259a57612597816017613b01565b90505b86888560ff16601881106125b0576125b06132ea565b6020020151898460ff16601881106125ca576125ca6132ea565b60200201518a8460ff16601881106125e4576125e46132ea565b60200201518e6040516020016125fe959493929190613b12565b604051602081830303815290604052965050505b61261f60ff8316856136ac565b9350505080600261263091906136ac565b90506124fb565b50909695505050505050565b604080516103408101825260016103008201818152600360fc1b610320840152825282518084018452818152603160f81b6020828101919091528084019190915283518085018552828152601960f91b818301528385015283518085018552828152603360f81b8183015260608481019190915284518086018652838152600d60fa1b81840152608085015284518086018652838152603560f81b8184015260a085015284518086018652838152601b60f91b8184015260c085015284518086018652838152603760f81b8184015260e085015284518086018652838152600760fb1b8184015261010085015284518086018652928352603960f81b8383015261012084019290925283518085018552600280825261031360f41b828401526101408501919091528451808601865281815261313160f01b818401526101608501528451808601865281815261189960f11b818401526101808501528451808601865281815261313360f01b818401526101a085015284518086018652818152610c4d60f21b818401526101c08501528451808601865281815261313560f01b818401526101e08501528451808601865281815261189b60f11b818401526102008501528451808601865281815261313760f01b818401526102208501528451808601865281815261062760f31b818401526102408501528451808601865281815261313960f01b818401526102608501528451808601865281815261032360f41b818401526102808501528451808601865281815261323160f01b818401526102a08501528451808601865281815261191960f11b818401526102c08501528451808601909552845261323360f01b908401526102e0820192909252816000805b8851811015612a395760008982815181106128e2576128e26132ea565b016020015160f81c905060008a6128fa8460016136ac565b8151811061290a5761290a6132ea565b016020015160f81c90508015612a14576000612927601886613aed565b905082612935826018613b01565b61293f9190613b01565b9050600061294e601887613aba565b9050891561296457612961816017613b01565b90505b8a600160ff8516111561299b578c61297d600286613b01565b60ff1681518110612990576129906132ea565b602002602001015190505b87898660ff16601881106129b1576129b16132ea565b60200201518a8560ff16601881106129cb576129cb6132ea565b60200201518b8560ff16601881106129e5576129e56132ea565b6020020151846040516020016129ff959493929190613b12565b60405160208183030381529060405297505050505b612a2160ff8316856136ac565b93505050806002612a3291906136ac565b90506128c5565b5090979650505050505050565b60006001612a5384610c7e565b612a5d9190613691565b6000838152600f6020526040902054909150808214612ab0576001600160a01b0384166000908152600e602090815260408083208584528252808320548484528184208190558352600f90915290208190555b506000918252600f602090815260408084208490556001600160a01b039094168352600e81528383209183525290812055565b601054600090612af590600190613691565b60008381526011602052604081205460108054939450909284908110612b1d57612b1d6132ea565b906000526020600020015490508060108381548110612b3e57612b3e6132ea565b6000918252602080832090910192909255828152601190915260408082208490558582528120556010805480612b7657612b76613bb4565b6001900381819060005260206000200160009055905550505050565b6000612b9d83610c7e565b6001600160a01b039093166000908152600e602090815260408083208684528252808320859055938252600f9052919091209190915550565b6001600160e01b031981165b8114610a5857600080fd5b803561060f81612bd6565b600060208284031215612c0d57612c0d600080fd5b60006112048484612bed565b8015155b82525050565b6020810161060f8284612c19565b801515612be2565b803561060f81612c31565b600060208284031215612c5957612c59600080fd5b60006112048484612c39565b60006001600160a01b03821661060f565b612be281612c65565b803561060f81612c76565b80612be2565b803561060f81612c8a565b60008060408385031215612cb157612cb1600080fd5b6000612cbd8585612c7f565b9250506020612cce85828601612c90565b9150509250929050565b80612c1d565b6020810161060f8284612cd8565b60005b83811015612d07578181015183820152602001612cef565b83811115610e595750506000910152565b6000612d22825190565b808452602084019350612d39818560208601612cec565b601f01601f19169290920192915050565b602080825281016106d88184612d18565b600060208284031215612d7057612d70600080fd5b60006112048484612c90565b612c1d81612c65565b6020810161060f8284612d7c565b600080600060608486031215612dab57612dab600080fd5b6000612db78686612c7f565b9350506020612dc886828701612c7f565b9250506040612dd986828701612c90565b9150509250925092565b6000612def8383612cd8565b505060200190565b6000612e01825190565b80845260209384019383018060005b83811015612e35578151612e248882612de3565b975060208301925050600101612e10565b509495945050505050565b60408082528101612e518185612df7565b90506106d86020830184612cd8565b600060208284031215612e7557612e75600080fd5b60006112048484612c7f565b60008060408385031215612e9757612e97600080fd5b6000612ea38585612c7f565b9250506020612cce85828601612c39565b600061060f82612c65565b600061060f82612eb4565b612c1d81612ebf565b6020810161060f8284612eca565b634e487b7160e01b600052604160045260246000fd5b601f19601f830116810181811067ffffffffffffffff82111715612f1d57612f1d612ee1565b6040525050565b6000612f2f60405190565b9050612f3b8282612ef7565b919050565b600067ffffffffffffffff821115612f5a57612f5a612ee1565b601f19601f83011660200192915050565b82818337506000910152565b6000612f8a612f8584612f40565b612f24565b905082815260208101848484011115612fa557612fa5600080fd5b612fb0848285612f6b565b509392505050565b600082601f830112612fcc57612fcc600080fd5b8135611204848260208601612f77565b60008060008060808587031215612ff557612ff5600080fd5b60006130018787612c7f565b945050602061301287828801612c7f565b935050604061302387828801612c90565b925050606085013567ffffffffffffffff81111561304357613043600080fd5b61304f87828801612fb8565b91505092959194509250565b60008083601f84011261307057613070600080fd5b50813567ffffffffffffffff81111561308b5761308b600080fd5b6020830191508360208202830111156130a6576130a6600080fd5b9250929050565b600080602083850312156130c3576130c3600080fd5b823567ffffffffffffffff8111156130dd576130dd600080fd5b6130e98582860161305b565b92509250509250929050565b6000806040838503121561310b5761310b600080fd5b60006131178585612c7f565b9250506020612cce85828601612c7f565b6000806040838503121561313e5761313e600080fd5b6000612cbd8585612c90565b604081016131588285612d7c565b6106d86020830184612cd8565b805161060f81612c8a565b60006020828403121561318557613185600080fd5b60006112048484613165565b634e487b7160e01b600052602260045260246000fd5b6002810460018216806131bb57607f821691505b602082108114156131ce576131ce613191565b50919050565b602181526000602082017f4552433732313a20617070726f76616c20746f2063757272656e74206f776e658152603960f91b602082015291505b5060400190565b6020808252810161060f816131d4565b603e81526000602082017f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f81527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006020820152915061320e565b6020808252810161060f81613225565b602e81526000602082017f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6581526d1c881b9bdc88185c1c1c9bdd995960921b6020820152915061320e565b6020808252810161060f8161328f565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600060001982141561332a5761332a613300565b5060010190565b602b81526000602082017f455243373231456e756d657261626c653a206f776e657220696e646578206f7581526a74206f6620626f756e647360a81b6020820152915061320e565b6020808252810161060f81613331565b601081526000602082016f2737ba103cb7bab939903437b6b4b29760811b815291505b5060200190565b6020808252810161060f81613389565b600c81526000602082016b4e6f7420656e61626c65642160a01b815291506133ac565b6020808252810161060f816133c3565b602c81526000602082017f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f81526b7574206f6620626f756e647360a01b6020820152915061320e565b6020808252810161060f816133f6565b805161060f81612c76565b60006020828403121561346f5761346f600080fd5b6000611204848461344f565b601881526000602082017f4552433732313a20696e76616c696420746f6b656e2049440000000000000000815291506133ac565b6020808252810161060f8161347b565b602981526000602082017f4552433732313a2061646472657373207a65726f206973206e6f7420612076618152683634b21037bbb732b960b91b6020820152915061320e565b6020808252810161060f816134bf565b601f81526000602082017f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e00815291506133ac565b6020808252810161060f81613515565b602681526000602082017f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206181526564647265737360d01b6020820152915061320e565b6020808252810161060f81613559565b60208082527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572910190815260006133ac565b6020808252810161060f816135ac565b602581526000602082017f4552433732313a207472616e736665722066726f6d20696e636f72726563742081526437bbb732b960d91b6020820152915061320e565b6020808252810161060f816135ee565b602481526000602082017f4552433732313a207472616e7366657220746f20746865207a65726f206164648152637265737360e01b6020820152915061320e565b6020808252810161060f81613640565b6000825b9250828210156136a7576136a7613300565b500390565b600082198211156136bf576136bf613300565b500190565b60118152600060208201702737b732bc34b9ba32b73a103a37b5b2b760791b815291506133ac565b6020808252810161060f816136c4565b6011815260006020820170416c72656164792072656465656d65642160781b815291506133ac565b6020808252810161060f816136fc565b601981526000602082017f4552433732313a20617070726f766520746f2063616c6c657200000000000000815291506133ac565b6020808252810161060f81613734565b603281526000602082017f4552433732313a207472616e7366657220746f206e6f6e20455243373231526581527131b2b4bb32b91034b6b83632b6b2b73a32b960711b6020820152915061320e565b6020808252810161060f81613778565b60006137e1825190565b6137ef818560208601612cec565b9290920192915050565b7f7b22696d616765223a2022646174613a696d6167652f7376672b786d6c3b62618152641cd94d8d0b60da1b6020820152602501600061383982846137d7565b61227d60f01b81529150600282016106d8565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152601d0160006106d882846137d7565b60208082527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373910190815260006133ac565b6020808252810161060f8161387e565b601c81526000602082017f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000815291506133ac565b6020808252810161060f816138c0565b60006106d882846137d7565b6080810161391e8287612d7c565b61392b6020830186612d7c565b6139386040830185612cd8565b81810360608301526118b18184612d18565b805161060f81612bd6565b60006020828403121561396a5761396a600080fd5b6000611204848461394a565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f737667222076696577426f783d2230203020323420323422207368617060208201527f652d72656e646572696e673d2263726973704564676573222077696474683d2260408201527f32353622206865696768743d22323536223e3c726563742077696474683d223160608201527f30302522206865696768743d2231303025222066696c6c3d220000000000000060808201526099016000613a4082896137d7565b631110179f60e11b81526004019150613a5982886137d7565b9150613a6582876137d7565b9150613a7182866137d7565b9150613a7d82856137d7565b9150613a8982846137d7565b651e17b9bb339f60d11b815260060198975050505050505050565b634e487b7160e01b600052601260045260246000fd5b600082613ac957613ac9613aa4565b500490565b6000816000190483118215151615613ae857613ae8613300565b500290565b600082613afc57613afc613aa4565b500690565b600060ff8216915060ff8316613695565b6000613b1e82886137d7565b6c1e3932b1ba103bb4b23a341e9160991b8152600d019150613b4082876137d7565b6f11103432b4b3b43a1e911891103c1e9160811b81526010019150613b6582866137d7565b6411103c9e9160d91b81526005019150613b7f82856137d7565b6711103334b6361e9160c11b81526008019150613b9c82846137d7565b631110179f60e11b8152600401979650505050505050565b634e487b7160e01b600052603160045260246000fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa264697066735822122045b81321cf28fc2decbed39139851d10309b65dd637b390f1bfd0fabe103684764736f6c6343000809003350000101060001010f0001010103010104000101010301010e000101020301010200010102030101ff000c000201150001010200010114000101010001010104010113000101020001011400010117000101ff00ff00ba00010103030101120001010104010101030101010401011000010103040101030401010f000101070401010f000101070401010f0001010704010197000a010d0001010a0301010b0001010c030101090001010e030101080001010e030101080001010e030101080001010e030101080001010e030101080001010e030101090001010c0301010b0001010a0301010d000a0137000101080001010d0001010100010106000101010001010e000101060001011000010106000101ff00ff00ba0001010104010101030101010401011000010103040101020401010f00010104040101030401010e00010104040101040401010d00010104040101040401010d00010104040101040401019400100107000101100301010600010110030101060001011003010106000101100301010600010110030101070001010e030101080001010e030101090001010c0301010a0001010c0301010b0001010a0301010d000a01ff00b9000101050401011100010105030101110001010503010111000101050301011100010105030101110001010503010196000c010b0001010c030101090001010e030101080001010e030101080001010e030101080001010e030101080001010e030101080001010e030101080001010e030101080001010e030101080001010e03010109000e01ff00ba000101030401011200010105030101100001010104010103030101010401010e00010103040301030401010c0001010b0401010a0001010d0401019400100107000101100401010600010101040e03010401010600010101040e03010401010600010101040e03010401010600010101040e03010401010600010101040e03010401010600010101040e03010401010600010101040e03010401010600010101040e0301040101060001011004010107001001ff00ba0001010404010111000101060301010f000101080301010d000101090301010d000101090301010d0001010903010196000c010b0001010c030101090001010e030101070001011003010105000101120301010400010112030101040001011203010104000101120301010500010110030101070001010d030201090001010b0301010c000b01ff00b9000101050301010f0002010104010103030101010402010c00010104040301040401010a0001010d040101090001010d040101090001010d040101

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