Contract 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b930

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x9c70558c0817394d8155dd7ab2c68baadc9d483fb5dfca17fc1c5ce56faff15dSet Approval For...1759930302024-01-31 8:18:5830 days 18 hrs ago0x631fd3595e3af85f9b57bb98db6f0bd3c24fe4d2 IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.000043540.1
0xc08b1400a15c863f6fd1174279589bdd0d6e05d857e5c69a2e3adc668b917660Set Approval For...1706650332024-01-15 10:17:1346 days 16 hrs ago0x38f0c7d7e92422b68f2d5b4a388c05df6d531f52 IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.000050720.1
0x44bf757822ebe743d6f58fc05e1985282fd108f4a7b87a6dd9473cf21eb8b9f2Safe Transfer Fr...1692866632024-01-11 6:59:2350 days 20 hrs ago0x5e907d999e040e3805f67016daee98695930f393 IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.00005298 0.1
0x2c906651ec66f06f25e977b4fe6c4be2460abbfd2c9c682a42c8cda0efc788edSet Approval For...1691818582024-01-10 23:39:1251 days 3 hrs ago0xe293a27c51fd8798fe503779a7eb9200e3368a27 IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.00017569 0.1
0xcb3d795b34b925b195b3659ce1917dd26108590c981d4b5dd6fd69d28cbf7955Set Approval For...1691546242024-01-10 21:45:3351 days 5 hrs ago0x808faacb4a502060a73de1f0f4b094eedbc60c08 IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.00017578 0.12634
0xb7091f8bd59a0de3845d0c336b931f1635dde798357d4290f1cf3b365b975d96Safe Transfer Fr...1688829302024-01-10 2:42:5752 days 32 mins ago0xafd9ce9e4fbbe0c9868602c5e9744d694b9592ba IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.0000539 0.1
0x75de97c52516c45e03e562e3bda72a93e175c321c40c5499a0bd1b34de08ba6fSafe Transfer Fr...1681747022024-01-08 0:51:0154 days 2 hrs ago0xfe1f30af119d8ebd98c76f2ce78f16a1a0b14bb8 IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.00008426 0.1
0x95d01a742312dbfecce4c1336ea7425b0cd69610008b244e4351ebd545e8b918Safe Transfer Fr...1678717632024-01-07 2:42:0555 days 33 mins ago0xc5c30e594d6c79fed019ba181b53d667bd535eb4 IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.00004412 0.1
0xf0e8bd3135cdb2541c2a767986346ef5cb515cd45b0ec8e8a49a47e51b771f83Set Approval For...1677118722024-01-06 14:53:1755 days 12 hrs ago0x673288671d8c6a64c4263befdfd5de869ed6d6bd IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.0000774 0.1
0x37fb81d808f454a2545cf1c0116f78f0f7fe4c463cd21c433a2d52081a829501Set Approval For...1677059012024-01-06 14:28:1055 days 12 hrs ago0x28efd153182c0fb4f8809aac9fd42db286e81bb0 IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.00005139 0.1
0xfba95f8c5ba25cd2000608637a75df916224d96bed98d7f1770d6c42ae2684d8Safe Transfer Fr...1676025612024-01-06 7:10:2755 days 20 hrs ago0x58d2c12c63d5284ce01c8540165990051f76ca88 IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.00004559 0.1
0xd2702e3f17b5a4310296c786a7370cefd9179cce533debeff22fc6884dac3491Safe Transfer Fr...1672437992024-01-05 5:31:3856 days 21 hrs ago0xe2f516e9cff2c84b0f1211c666741e40566b510f IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.00004632 0.1
0x3aec71db79a69eb763313db9b565300439dea5594418a661692f6b9b9693c39cSet Approval For...1668261792024-01-04 0:12:1158 days 3 hrs ago0x0c88f0f125c59cad35c704b8044107f2e51d28fe IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.00007527 0.1
0x8b60cd45b296603f201172a282c0b3af73034ae09a1796e65bb4b0a80da70ba8Set Approval For...1656426672023-12-31 13:27:5461 days 13 hrs ago0x9978635f33e4c6654ac001eb8ce265f30e985e65 IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.00004287 0.1
0xff69d112087f859e029489046544e8b19f504341a374f3fdedf8fd192bf549b8Approve1593538132023-12-12 10:29:5380 days 16 hrs ago0xeb9c986da141eb93250ff6f94bfa73d16f71789a IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.000036370.1
0x12fda307addcee3f8542742a8a27706ea102e4029ab05a59871336e19bd7e4f0Set Approval For...1576343002023-12-07 4:11:5285 days 23 hrs ago0x31d2621184901ea3fb3b11299a40f495f8e08ed1 IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.00007346 0.1
0x9bd0e29df6312de117b88f442656673d803b07b811ed24d2900b6bbdb970ccdcApprove1576303492023-12-07 3:55:0185 days 23 hrs ago0x27420c05515bd752d9c83b319673aec9e26b1a60 IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.000040810.1
0xcac9229748884abc7216c7e405e22840850dae5aa900f765c0162d9c14ff0587Set Approval For...1575789812023-12-06 23:45:5086 days 3 hrs ago0xff634f9ed1005198f3ae614328d2274c97e97b56 IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.000127460.1
0x1cd718a07a2e858a9f898292c095cb6ea1d0781416c344e52429338e75e02091Approve1574661222023-12-06 14:57:2586 days 12 hrs ago0x773dd25c96851baed213bb5e398372fb1bbe376f IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.000043270.1
0x01c5e04c58eb25be7ca8bd9eae3c1473e91018b71903c385b147864a1c00fd2aSet Approval For...1572353482023-12-05 21:43:0787 days 5 hrs ago0x20d7bfab33f4639b0f69086be85b3041cf5235ad IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.00010093 0.1
0x2b7922b3338121fca9162f8e22af9df6e1277ef2511d9da6cabd9a4431801a3dSet Approval For...1566996812023-12-04 5:36:2788 days 21 hrs ago0x3c7d5bb537abae440e0abe552342f422a4b1e6c1 IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.00007849 0.1
0x478ce3985d6fd3465492e55f6381eac8c9e70efcbd7fadc4900fcf793b958109Set Approval For...1558679622023-12-01 13:39:4391 days 13 hrs ago0x9fcc472387c0504ce7e040d1a48e052fdecea7a6 IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.00008789 0.1
0x28f570a36b3d13540ba68934f0ef9b4a59dfce69589385cb71ae638387a771baSet Approval For...1557828662023-12-01 7:27:0891 days 19 hrs ago0xa2fbcefa58d2fa7a96838eef4e8b76c4a6afe73c IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.00009832 0.1
0xba3725461fba19ef09d572e5b90fc73238c86dd76a1075eaedd7a343deaf7ea0Approve1529095952023-11-22 10:20:15100 days 16 hrs ago0xeb9c986da141eb93250ff6f94bfa73d16f71789a IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.000032880.1
0x9885e8752a8bf3d1948e3bb5320c40e6282d6f04ed64a0cce0ab6f6712303aa4Set Approval For...1503800462023-11-14 16:25:37108 days 10 hrs ago0xc41a6568889fd2017650efcb959653a55a46018b IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.00010512 0.1
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xc29fb3237c2ef57843dc818cb6df8c6993bba281f79de3942ded33b8b4b77586718313822023-03-20 16:31:59347 days 10 hrs ago Treasure DAO: Trove Marketplace 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH
0xc29fb3237c2ef57843dc818cb6df8c6993bba281f79de3942ded33b8b4b77586718313822023-03-20 16:31:59347 days 10 hrs ago Treasure DAO: Trove Marketplace 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH
0xd53b03184120eb89bea808799e3c601732e93f5f40087bd326836bf4143a08a1690727522023-03-12 7:33:01355 days 19 hrs ago Treasure DAO: Trove Marketplace 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH
0x13e4a9b1a7b3795278400cd8c5495bd6173f60d80eca5df2724ca961d55cf120677959892023-03-08 4:31:55359 days 22 hrs ago Treasure DAO: Trove Marketplace 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH
0x13e4a9b1a7b3795278400cd8c5495bd6173f60d80eca5df2724ca961d55cf120677959892023-03-08 4:31:55359 days 22 hrs ago Treasure DAO: Trove Marketplace 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH
0x250bcb741687c4cd8c722e1432d10fd8b8f1d08a45a4e788b654d354a5e01b9c674909912023-03-07 4:45:49360 days 22 hrs ago Treasure DAO: Trove Marketplace 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH
0xef2d75cb2a6082978915c859a83bb8b5c7cbbb39bf9b8420b1e7c352e2406cb8673983212023-03-06 20:54:19361 days 6 hrs ago Treasure DAO: Trove Marketplace 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH
0xef2d75cb2a6082978915c859a83bb8b5c7cbbb39bf9b8420b1e7c352e2406cb8673983212023-03-06 20:54:19361 days 6 hrs ago Treasure DAO: Trove Marketplace 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH
0xb2b85396d4e0b59d6ff6e429f302bee6891ba4d24eeab7ecc00c711e9606f6a3673709622023-03-06 18:44:17361 days 8 hrs ago Treasure DAO: Trove Marketplace 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH
0xdbf3a0e89d40102abbd29cfeb06e18009763ecf1cf7d53ea85074d9bbe598210673502122023-03-06 17:07:50361 days 10 hrs ago Treasure DAO: Trove Marketplace 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH
0xdbf3a0e89d40102abbd29cfeb06e18009763ecf1cf7d53ea85074d9bbe598210673502122023-03-06 17:07:50361 days 10 hrs ago Treasure DAO: Trove Marketplace 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH
0x22084cbb4d567f57446b23c3699715f16d0fb391b8e2eb505f98a6905cc98a8e673486282023-03-06 17:00:52361 days 10 hrs ago Treasure DAO: Trove Marketplace 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH
0xf9a9bf653e5b5b5105483c8e5d742971223eedf48c8af2c2ac52254f736b3d68673462812023-03-06 16:50:26361 days 10 hrs ago 0x1e0049783f008a0085193e00003d00cd54003c71 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH
0xf9a9bf653e5b5b5105483c8e5d742971223eedf48c8af2c2ac52254f736b3d68673462812023-03-06 16:50:26361 days 10 hrs ago 0x1e0049783f008a0085193e00003d00cd54003c71 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH
0xf9a9bf653e5b5b5105483c8e5d742971223eedf48c8af2c2ac52254f736b3d68673462812023-03-06 16:50:26361 days 10 hrs ago 0x1e0049783f008a0085193e00003d00cd54003c71 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH
0x28d6257686246dd0d2fafbdbd4d9dfae70a355d02850dc8696bd4e4337c8c9ef673445932023-03-06 16:42:56361 days 10 hrs ago Treasure DAO: Trove Marketplace 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH
0x4b55cac180c564d196bd42cb3b3e140d43195cc8526a3ac050d129f7a9880919673247742023-03-06 15:17:46361 days 11 hrs ago Treasure DAO: Trove Marketplace 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH
0x63c950481bb56a556b488e49ce5c4740a3f8210d5379bd2c425de1bb681e2801671249822023-03-05 23:59:05362 days 3 hrs ago 0x1e0049783f008a0085193e00003d00cd54003c71 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH
0x1b3808b9d9326897c569097638d4455080c2e88d998edb3490f45d3c418c1d88671239772023-03-05 23:53:18362 days 3 hrs ago 0x1e0049783f008a0085193e00003d00cd54003c71 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH
0x693e2758d8f25ee7ffc0818993af133fc8c913c8af4ef6e37d1ebaa7976961be641190912023-02-24 13:21:54371 days 13 hrs ago 0x1e0049783f008a0085193e00003d00cd54003c71 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH
0x74ac25da2b162ad2bbc7e6b34d84acfc36a212beb3c1172cee414b86067edf86641122262023-02-24 12:53:11371 days 14 hrs ago 0x1e0049783f008a0085193e00003d00cd54003c71 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH
0x9e6ac1abe9c54ad4aca9bbb502ac2dc5d7f39c10a0771d4d232e58264045f9a6634594262023-02-22 14:19:26373 days 12 hrs ago 0x1e0049783f008a0085193e00003d00cd54003c71 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH
0x2114eb21603d63b9e0039bd2e36d8cbddba222860929b640e4f4fc337ddf0a55634131312023-02-22 11:06:36373 days 16 hrs ago 0x1e0049783f008a0085193e00003d00cd54003c71 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH
0xd7899c29c83ed5deba20077f1866e071409dd1c15e3eb6f011100d8002dfc6f6634130972023-02-22 11:06:27373 days 16 hrs ago 0x1e0049783f008a0085193e00003d00cd54003c71 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH
0x5ec671c41601ac565ae95f0e3c83c8cf226d09d24b516c8f689ced0a97a6ffce624857552023-02-19 16:41:01376 days 10 hrs ago 0x1e0049783f008a0085193e00003d00cd54003c71 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CastleDAOBallot

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 16 : CastleDAOBallot.sol
// SPDX-License-Identifier: GPL-3.0

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import {Strings} from "@openzeppelin/contracts/utils/Strings.sol";

import "./Base64.sol";

pragma solidity ^0.8.0;

contract CastleDAOBallot is ERC721Enumerable, Ownable, ReentrancyGuard {
    using Strings for uint256;
    event Mint(address indexed owner, uint256 indexed tokenId, uint256 price);
    using Counters for Counters.Counter;
    Counters.Counter _tokenIds;

    // Colors and items
    string[] public palette = [
        "#000000",
        "#291A72",
        "#240553",
        "#2F4091",
        "#1F0C2C",
        "#142029",
        "#F48925",
        "#F7AC38",
        "#FFEF57",
        "#F0F4F7",
        "#A8ABAD",
        "#7D7F80",
        "#58788D",
        "#FFFFFF",
        "#A20000",
        "#006045",
        "#004538",
        "#C4398B",
        "#DC5D86",
        "#F48D8A",
        "#822F22",
        "#7495A8",
        "#651415",
        "#810000",
        "#7A0475",
        "#28465A",
        "#3D5C74",
        "#50B04A",
        "#007B46",
        "#CDDDE5",
        "#47094D"
    ];

    string[] public backgroundNames = [
        "base-blue",
        "base-green",
        "base-light",
        "base-purple",
        "base-red",
        "base-yellow"
    ];

    bytes[] public backgrounds = [
        bytes(
            hex"0000100003000a060300020001060a1a01060200020001060a1a01060200020001060a1a01060200020001060a1a01060200020001060a1b01060200020001060a1b01060200020001060a1b01060200020001060a1b01060200020001060a1b01060200020001060a1a01060200020001060a1a01060200020001060a1a0106020003000a060300"
        ),
        bytes(
            hex"0000100003000a06030002000106011c011d011c011d011c011d011c011d011c011d0106020002000106011d011c011d011c011d011c011d011c011d011c0106020002000106011c011d011c011d011c011d011c011d011c011d0106020002000106011d011c011d011c011d011c011d011c011d011c0106020002000106011c011d011c011d011c011d011c011d011c01100106020002000106011d011c011d011c011d011c011d011c0110011d0106020002000106011c011d011c011d011c011d011c0110011d01100106020002000106011d011c011d011c011d011c0110011d0110011d0106020002000106011c011d011c011d011c0110011d0110011d01100106020002000106011d011c011d011c0110011d0110011d0110011d0106020002000106011c011d011c0110011d0110011d0110011d01100106020002000106011d011c0110011d0110011d0110011d0110011d0106020003000a060300"
        ),
        bytes(
            hex"0000100003000a060300020001060a1601060200020001060a1601060200020001060a1601060200020001060a1601060200020001060a1e01060200020001060a1e01060200020001060a1e01060200020001060a1e01060200020001060a1e01060200020001060a1601060200020001060a1601060200020001060a160106020003000a060300"
        ),
        bytes(
            hex"0000100003000a060300020001060a1f01060200020001060a1f01060200020001060a1f01060200020001060a1f01060200020001060a1901060200020001060a1901060200020001060a1901060200020001060a1901060200020001060a1901060200020001060a1f01060200020001060a1f01060200020001060a1f0106020003000a060300"
        ),
        bytes(
            hex"0000100003000a060300020001060a1801060200020001060a1801060200020001060a1801060200020001060a1801060200020001060a0f01060200020001060a0f01060200020001060a0f01060200020001060a0f01060200020001060a0f01060200020001060a1801060200020001060a1801060200020001060a180106020003000a060300"
        ),
        bytes(
            hex"0000100003000a060300020001060a0701060200020001060a0701060200020001060a0701060200020001060a0701060200020001060a0801060200020001060a0801060200020001060a0801060200020001060a0801060200020001060a0801060200020001060a0701060200020001060a0701060200020001060a070106020003000a060300"
        )
    ];

    string[] public logoNames = [
        "blueberry",
        "castle",
        "circle",
        "cross",
        "egg",
        "footy",
        "pepe",
        "pig",
        "sword",
        "treasure"
    ];

    bytes[] public logos = [
        bytes(
            hex"000010001000100006000102010302040600040001040103020401030104020204000400020402030204020204000300070402020105030003000202040403020105030003000302020403020205030004000702010504000400050203050400060004050600100010001000"
        ),
        bytes(
            hex"0000100010001000040002060100020601000206040004000106010701060207010601070106040004000206040702060400040001060108010602080106010801060400040001060108010602080106010801060400040001060208020602080106040004000106020802060208010604000400010601070106020701060107010604000400020604070206040004000806040010001000"
        ),
        bytes(
            hex"00001000100010001000040001090600010904000500010904060109050005000106010902000109010605000500010601000209010001060500050001060100020901000106050005000106010902000109010605000500010904060109050004000109060001090400100010001000"
        ),
        bytes(
            hex"00001000100010001000060001060200010606000600010602000106060005000206020002060500070002060700070002060700050002060200020605000600010602000106060006000106020001060600100010001000"
        ),
        bytes(
            hex"00001000100010000700010a010b07000600030a010b06000500040a010b010c05000500050a010b05000400060a010b010c04000400060a010b010c04000400060a010b010c04000500040a010b010c05000600010a020b010c0600100010001000"
        ),
        bytes(
            hex"000010001000100010000400010d010e010d010e010d010e010d010e04000400010a030f010a030f04000400020f0106030f0106010f04000400010a030f010a030f04000400010d010e010d010a010d010a010d010e040006000406060005000106010e0106010a020605000400010a0100010a0106010a01060100010a04000400010a010f010a0106010a01060100010a04000600010a0106010a010606001000"
        ),
        bytes(
            hex"0000100010001000060001100200011006000400021102100211060004000106010a02100106010a06000400061006000400030f0310060005000604050004000110010004040100011004000600040406000600041006000600011002000110060010001000"
        ),
        bytes(
            hex"000010001000100005000212020002120500050006130500040001130614011304000400011301140115021401150114011304000400011302140213021401130400040001130214021302140113040004000113061401130400040001130614011304000500061305000500021502000215050010001000"
        ),
        bytes(
            hex"00001000100010000a00011605000a000116050009000116010d050009000116010d050008000116020d05000400010602000116020d0600050001060116020d0700050001150106010d0800040001150217010608000400021702000106070010001000"
        ),
        bytes(
            hex"0000100010001000060004180600040002180400021804000400080f040003000118080f01180300030001180300020f030001180300030001180300020f030001180300040001180200020f020001180400040002180100020f010002180400060004180600100010001000"
        )
    ];

    string[] public decorationNames = [
        "fancy",
        "green-marks",
        "none",
        "red-marks",
        "yellow-marks"
    ];

    bytes[] public decorations = [
        bytes(
            hex"00000108010f0100010f0119010f0119020f0119010f0119010f0100010f0108010f010801190a0001190108010f0100010f0c00010f0100010f01190c000119010f0100010f0c00010f0100010f01190c000119010f010f01190c000119010f02190c00021902190c000219010f01190c000119010f010f01190c000119010f0100010f0c00010f0100010f01190c000119010f0100010f0c00010f0100010f010801190a0001190108010f0108010f0100010f0119010f0119020f0119010f0119010f0100010f"
        ),
        bytes(
            hex"0000100002000410040004100200020001100a0001100200020001100a000110020010001000100010001000100010001000020001100a0001100200020001100a000110020002000410040004100200"
        ),
        bytes(
            hex"0000100010001000100010001000100010001000100010001000100010001000"
        ),
        bytes(
            hex"000010000200040f0400040f02000200010f0a00010f02000200010f0a00010f0200100010001000100010001000100010000200010f0a00010f02000200010f0a00010f02000200040f0400040f0200"
        ),
        bytes(
            hex"00001000020001080100020804000208010001080200100010001000100010001000100010001000100010001000020001080100020804000208010001080200"
        )
    ];

    // Seeds
    struct BallotSeed {
        uint32 background;
        uint32 logo;
        uint32 decoration;
    }

    mapping(uint256 => BallotSeed) public seeds;

    // Mint info
    bool public isLive = true;

    mapping(address => bool) public whitelisted;

    function addToWhitelistMultiple(address[] memory _accounts)
        public
        onlyOwner
    {
        uint256 size = _accounts.length;

        for (uint256 i = 0; i < size; i++) {
            address account = _accounts[i];
            whitelisted[account] = true;
        }
    }

    constructor() ERC721("CastleDAOBallot", "CASTLEBALLOT") {}

    function toggleLive() external onlyOwner {
        isLive = !isLive;
    }

    function _internalMint(
        address _address,
        uint32 _decoration,
        uint32 _background,
        uint32 _logo
    ) internal returns (uint256) {
        require(isLive == true, "Minting is not live");
        // minting logic
        _tokenIds.increment();
        uint256 tokenId = _tokenIds.current();

        // Check that the parts are correct and exist
        require(
            _decoration < decorations.length && _decoration >= 0,
            "Invalid data"
        );
        require(_logo < logos.length && _logo >= 0, "Invalid data");
        require(
            _background < backgrounds.length && _background >= 0,
            "Invalid data"
        );
        // Store the seed
        seeds[tokenId] = BallotSeed({
            background: _background,
            decoration: _decoration,
            logo: _logo
        });

        _safeMint(_address, tokenId);
        emit Mint(_address, tokenId, msg.value);
        return tokenId;
    }

    function mint(
        uint32 _decoration,
        uint32 _background,
        uint32 _logo
    ) public payable nonReentrant {
        require(whitelisted[msg.sender], "Not allowed to mint");
        _internalMint(_msgSender(), _decoration, _background, _logo);
        whitelisted[msg.sender] = false;
    }

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

        string memory data = _render(tokenId, seeds[tokenId]);
        return data;
    }

    // owner functions
    function ownerWithdraw() external onlyOwner nonReentrant {
        payable(owner()).transfer(address(this).balance);
    }

    function _render(uint256 tokenId, BallotSeed memory seed)
        internal
        view
        returns (string memory)
    {
        string memory image = string(
            abi.encodePacked(
                '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" shape-rendering="crispEdges" width="256" height="256">'
                '<rect width="100%" height="100%" fill="transparent" />',
                _renderRects(backgrounds[seed.background]),
                _renderRects(logos[seed.logo]),
                _renderRects(decorations[seed.decoration]),
                "</svg>"
            )
        );

        return
            string(
                abi.encodePacked(
                    "data:application/json;base64,",
                    Base64.encode(
                        bytes(
                            abi.encodePacked(
                                '{"image": "data:image/svg+xml;base64,',
                                Base64.encode(bytes(image)),
                                '", "name": "CastleDAO Ballot #',
                                tokenId.toString(),
                                '", "decoration":"',
                                decorationNames[seed.decoration],
                                '", "background":"',
                                backgroundNames[seed.background],
                                '", "logo":"',
                                logoNames[seed.logo],
                                '", "description": "A memory for helping CastleDAO in the urnes. 16/04/2022"}'
                            )
                        )
                    )
                )
            );
    }

    function _renderRects(bytes memory data)
        private
        view
        returns (string memory)
    {
        string[17] memory lookup = [
            "0",
            "1",
            "2",
            "3",
            "4",
            "5",
            "6",
            "7",
            "8",
            "9",
            "10",
            "11",
            "12",
            "13",
            "14",
            "15",
            "16"
        ];

        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 (16px)

            uint8 colorIndex = uint8(data[i + 1]);

            if (colorIndex != 0 && colorIndex != 1) {
                // transparent
                uint8 x = uint8(drawIndex % 16);
                uint8 y = uint8(drawIndex / 16);
                string memory color = "#000000";
                if (colorIndex > 1) {
                    color = palette[colorIndex - 1];
                }
                rects = string(
                    abi.encodePacked(
                        rects,
                        '<rect width="',
                        lookup[runLength],
                        '" height="1" x="',
                        lookup[x],
                        '" y="',
                        lookup[y],
                        '" fill="',
                        color,
                        '" />'
                    )
                );
            }
            drawIndex += runLength;
        }

        return rects;
    }
}

File 2 of 16 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.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: balance query for the zero address");
        return _balances[owner];
    }

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

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

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

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

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

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

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

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

        _approve(to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

        _transfer(from, to, tokenId);
    }

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

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

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

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

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

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

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

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

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

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

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

        _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 a {Approval} event.
     */
    function _approve(address to, uint256 tokenId) internal virtual {
        _tokenApprovals[tokenId] = to;
        emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
    }

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

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

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

    /**
     * @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 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 7 of 16 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 8 of 16 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

/// @title Base64
/// @author Brecht Devos - <[email protected]>
/// @notice Provides a function for encoding some bytes in base64

pragma solidity ^0.8.0;

library Base64 {
    string internal constant TABLE =
        "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

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

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

        // 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) {

            } {
                dataPtr := add(dataPtr, 3)

                // read 3 bytes
                let input := mload(dataPtr)

                // write 4 characters
                mstore(
                    resultPtr,
                    shl(248, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                )
                resultPtr := add(resultPtr, 1)
                mstore(
                    resultPtr,
                    shl(248, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                )
                resultPtr := add(resultPtr, 1)
                mstore(
                    resultPtr,
                    shl(248, mload(add(tablePtr, and(shr(6, input), 0x3F))))
                )
                resultPtr := add(resultPtr, 1)
                mstore(
                    resultPtr,
                    shl(248, 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;
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

File 12 of 16 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.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

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

File 13 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 14 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 15 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 16 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);
}

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

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"}],"name":"Mint","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":"_accounts","type":"address[]"}],"name":"addToWhitelistMultiple","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"backgroundNames","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"backgrounds","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"decorationNames","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"decorations","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"isLive","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"logoNames","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"logos","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"_decoration","type":"uint32"},{"internalType":"uint32","name":"_background","type":"uint32"},{"internalType":"uint32","name":"_logo","type":"uint32"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"ownerWithdraw","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"palette","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"seeds","outputs":[{"internalType":"uint32","name":"background","type":"uint32"},{"internalType":"uint32","name":"logo","type":"uint32"},{"internalType":"uint32","name":"decoration","type":"uint32"}],"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":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"toggleLive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"whitelisted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

6007610460818152660233030303030360cc1b6104805260809081526104a08281526611991c98a09b9960c91b6104c05260a0526104e0828152662332343035353360c81b6105005260c052610520828152662332463430393160c81b6105405260e052610560828152662331463043324360c81b61058052610100526105a0828152662331343230323960c81b6105c052610120526105e0828152662346343839323560c81b6106005261014052610620828152660468c6e828666760cb1b6106405261016052610660828152662346464546353760c81b61068052610180526106a0828152662346304634463760c81b6106c0526101a0526106e08281526608d04e1050905160ca1b610700526101c052610720828152660233744374638360cc1b610740526101e0526107608281526608cd4e0dce0e1160ca1b61078052610200526107a08281526611a3232323232360c91b6107c052610220526107e0828152660234132303030360cc1b6108005261024052610820828152662330303630343560c81b6108405261026052610860828152660466060686a66760cb1b61088052610280526108a08281526611a19a199c9c2160c91b6108c0526102a0526108e08281526611a2219aa21c1b60c91b610900526102c052610920828152662346343844384160c81b610940526102e05261096082815266119c191923191960c91b61098052610300526109a0828152660466e68726a82760cb1b6109c052610320526109e0828152662336353134313560c81b610a005261034052610a20828152660233831303030360cc1b610a405261036052610a60828152662337413034373560c81b610a805261038052610aa0828152662332383436354160c81b610ac0526103a052610ae08281526608ccd10d50cdcd60ca1b610b00526103c052610b20828152662335304230344160c81b610b40526103e052610b60828152661198181ba11a1b60c91b610b805261040052610ba0828152662343444444453560c81b610bc05261042052610c20604052610be09182526608cd0dcc0e4d1160ca1b610c0052610440919091526200031f90600d90601f62000a11565b506040805161010081018252600960c0820190815268626173652d626c756560b81b60e0830152815281518083018352600a808252693130b9b296b3b932b2b760b11b60208381019190915280840192909252835180850185529081526918985cd94b5b1a59da1d60b21b818301528284015282518084018452600b8082526a626173652d707572706c6560a81b82840152606084019190915283518085018552600881526718985cd94b5c995960c21b818401526080840152835180850190945283526a626173652d79656c6c6f7760a81b9083015260a08101919091526200040e90600e90600662000a75565b50604080516101808101909152608860c08201818152829162003fd860e0840139815260200160405180610180016040528061016081526020016200447e610160913981526020016040518060c0016040528060888152602001620042366088913981526020016040518060c00160405280608881526020016200432e6088913981526020016040518060c0016040528060888152602001620043b66088913981526020016040518060c001604052806088815260200162003e5e608891399052620004df90600f90600662000ac7565b5060408051610180810182526009610140820190815268626c7565626572727960b81b610160830152815281518083018352600680825265636173746c6560d01b602083810191909152808401929092528351808501855290815265636972636c6560d01b81830152828401528251808401845260058082526463726f737360d81b8284015260608401919091528351808501855260038082526265676760e81b8285015260808501919091528451808601865282815264666f6f747960d81b8185015260a08501528451808601865260048152637065706560e01b8185015260c0850152845180860186529081526270696760e81b8184015260e084015283518085018552908152641cdddbdc9960da1b8183015261010083015282518084019093526008835267747265617375726560c01b908301526101208101919091526200063090601090600a62000b27565b50604080516101e08101909152606c61014082018181528291620041ca61016084013981526020016040518060c0016040528060988152602001620040cc6098913981526020016040518060a0016040528060708152602001620042be607091398152602001604051806080016040528060588152602001620046906058913981526020016040518060a0016040528060628152602001620045de6062913981526020016040518060e0016040528060a2815260200162003ee660a2913981526020016040518060a0016040528060668152602001620041646066913981526020016040518060a00160405280607881526020016200474c6078913981526020016040518060a0016040528060648152602001620046e86064913981526020016040518060a00160405280606c815260200162004060606c913990526200077c90601190600a62000b79565b506040805160e081018252600560a082018181526466616e637960d81b60c0840152825282518084018452600b81526a677265656e2d6d61726b7360a81b602082810191909152808401919091528351808501855260048152636e6f6e6560e01b81830152838501528351808501855260098152687265642d6d61726b7360b81b8183015260608401528351808501909452600c84526b79656c6c6f772d6d61726b7360a01b9084015260808201929092526200083d916012919062000bcb565b50604080516101a0810190915260c860a082018181528291620047c460c08401398152602001604051806080016040528060508152602001620046406050913981526020016040518060400160405280602081526020017d100010001000100010001000100010001000100010001000100010001000815250815260200160405180608001604052806050815260200162003f886050913981526020016040518060600160405280604081526020016200443e6040913990526200090690601390600562000c1d565b506015805460ff191660011790553480156200092157600080fd5b50604080518082018252600f81526e10d85cdd1b19511053d0985b1b1bdd608a1b60208083019182528351808501909452600c84526b10d054d513115090531313d560a21b9084015281519192916200097d9160009162000c6f565b5080516200099390600190602084019062000c6f565b505050620009b0620009aa620009bb60201b60201c565b620009bf565b6001600b5562000dd2565b3390565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b82805482825590600052602060002090810192821562000a63579160200282015b8281111562000a63578251805162000a5291849160209091019062000c6f565b509160200191906001019062000a32565b5062000a7192915062000cfa565b5090565b82805482825590600052602060002090810192821562000a63579160200282015b8281111562000a63578251805162000ab691849160209091019062000c6f565b509160200191906001019062000a96565b82805482825590600052602060002090810192821562000b19579160200282015b8281111562000b19578251805162000b0891849160209091019062000c6f565b509160200191906001019062000ae8565b5062000a7192915062000d1b565b82805482825590600052602060002090810192821562000a63579160200282015b8281111562000a63578251805162000b6891849160209091019062000c6f565b509160200191906001019062000b48565b82805482825590600052602060002090810192821562000b19579160200282015b8281111562000b19578251805162000bba91849160209091019062000c6f565b509160200191906001019062000b9a565b82805482825590600052602060002090810192821562000a63579160200282015b8281111562000a63578251805162000c0c91849160209091019062000c6f565b509160200191906001019062000bec565b82805482825590600052602060002090810192821562000b19579160200282015b8281111562000b19578251805162000c5e91849160209091019062000c6f565b509160200191906001019062000c3e565b82805462000c7d9062000d95565b90600052602060002090601f01602090048101928262000ca1576000855562000cec565b82601f1062000cbc57805160ff191683800117855562000cec565b8280016001018555821562000cec579182015b8281111562000cec57825182559160200191906001019062000ccf565b5062000a7192915062000d3c565b8082111562000a7157600062000d11828262000d53565b5060010162000cfa565b8082111562000a7157600062000d32828262000d53565b5060010162000d1b565b5b8082111562000a71576000815560010162000d3d565b50805462000d619062000d95565b6000825580601f1062000d72575050565b601f01602090049060005260206000209081019062000d92919062000d3c565b50565b600181811c9082168062000daa57607f821691505b6020821081141562000dcc57634e487b7160e01b600052602260045260246000fd5b50919050565b61307c8062000de26000396000f3fe6080604052600436106101ee5760003560e01c806370a082311161010d578063a22cb465116100a0578063d936547e1161006f578063d936547e1461056d578063e985e9c51461059d578063ec0d7557146105e6578063f0503e80146105fb578063f2fde38b1461066c57600080fd5b8063a22cb465146104f3578063b88d4fde14610513578063b8f7a66514610533578063c87b56dd1461054d57600080fd5b806392529b8f116100dc57806392529b8f1461047e578063958973aa1461049e57806395d89b41146104be5780639cb71ef8146104d357600080fd5b806370a082311461040b578063715018a61461042b5780638da5cb5b146104405780638fe6677d1461045e57600080fd5b80632f745c59116101855780634311de8f116101545780634311de8f146103965780634e6dcee4146103ab5780634f6ccce7146103cb5780636352211e146103eb57600080fd5b80632f745c59146103235780633040ea96146103435780633adbb3a41461036357806342842e0e1461037657600080fd5b8063095ea7b3116101c1578063095ea7b3146102a257806314179865146102c457806318160ddd146102e457806323b872dd1461030357600080fd5b806301ffc9a7146101f357806304bde4dd1461022857806306fdde0314610255578063081812fc1461026a575b600080fd5b3480156101ff57600080fd5b5061021361020e366004612803565b61068c565b60405190151581526020015b60405180910390f35b34801561023457600080fd5b5061024861024336600461283b565b6106b7565b60405161021f9190612d51565b34801561026157600080fd5b50610248610763565b34801561027657600080fd5b5061028a61028536600461283b565b6107f5565b6040516001600160a01b03909116815260200161021f565b3480156102ae57600080fd5b506102c26102bd36600461272b565b61088f565b005b3480156102d057600080fd5b506102486102df36600461283b565b6109a5565b3480156102f057600080fd5b506008545b60405190815260200161021f565b34801561030f57600080fd5b506102c261031e3660046125fe565b6109b5565b34801561032f57600080fd5b506102f561033e36600461272b565b6109e6565b34801561034f57600080fd5b5061024861035e36600461283b565b610a7c565b6102c2610371366004612853565b610a8c565b34801561038257600080fd5b506102c26103913660046125fe565b610b67565b3480156103a257600080fd5b506102c2610b82565b3480156103b757600080fd5b506102486103c636600461283b565b610c45565b3480156103d757600080fd5b506102f56103e636600461283b565b610c55565b3480156103f757600080fd5b5061028a61040636600461283b565b610cf6565b34801561041757600080fd5b506102f56104263660046125b2565b610d6d565b34801561043757600080fd5b506102c2610df4565b34801561044c57600080fd5b50600a546001600160a01b031661028a565b34801561046a57600080fd5b506102c2610479366004612754565b610e2a565b34801561048a57600080fd5b5061024861049936600461283b565b610ec4565b3480156104aa57600080fd5b506102486104b936600461283b565b610ed4565b3480156104ca57600080fd5b50610248610ee4565b3480156104df57600080fd5b506102486104ee36600461283b565b610ef3565b3480156104ff57600080fd5b506102c261050e3660046126f1565b610f03565b34801561051f57600080fd5b506102c261052e366004612639565b610f12565b34801561053f57600080fd5b506015546102139060ff1681565b34801561055957600080fd5b5061024861056836600461283b565b610f4a565b34801561057957600080fd5b506102136105883660046125b2565b60166020526000908152604090205460ff1681565b3480156105a957600080fd5b506102136105b83660046125cc565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156105f257600080fd5b506102c2611007565b34801561060757600080fd5b5061064561061636600461283b565b60146020526000908152604090205463ffffffff808216916401000000008104821691600160401b9091041683565b6040805163ffffffff9485168152928416602084015292169181019190915260600161021f565b34801561067857600080fd5b506102c26106873660046125b2565b611045565b60006001600160e01b0319821663780e9d6360e01b14806106b157506106b1826110e0565b92915050565b600f81815481106106c757600080fd5b9060005260206000200160009150905080546106e290612f44565b80601f016020809104026020016040519081016040528092919081815260200182805461070e90612f44565b801561075b5780601f106107305761010080835404028352916020019161075b565b820191906000526020600020905b81548152906001019060200180831161073e57829003601f168201915b505050505081565b60606000805461077290612f44565b80601f016020809104026020016040519081016040528092919081815260200182805461079e90612f44565b80156107eb5780601f106107c0576101008083540402835291602001916107eb565b820191906000526020600020905b8154815290600101906020018083116107ce57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166108735760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061089a82610cf6565b9050806001600160a01b0316836001600160a01b031614156109085760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161086a565b336001600160a01b0382161480610924575061092481336105b8565b6109965760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161086a565b6109a08383611130565b505050565b601181815481106106c757600080fd5b6109bf338261119e565b6109db5760405162461bcd60e51b815260040161086a90612e11565b6109a0838383611295565b60006109f183610d6d565b8210610a535760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840161086a565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b601081815481106106c757600080fd5b6002600b541415610adf5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161086a565b6002600b553360009081526016602052604090205460ff16610b395760405162461bcd60e51b8152602060048201526013602482015272139bdd08185b1b1bddd959081d1bc81b5a5b9d606a1b604482015260640161086a565b610b453384848461143c565b5050336000908152601660205260409020805460ff1916905550506001600b55565b6109a083838360405180602001604052806000815250610f12565b600a546001600160a01b03163314610bac5760405162461bcd60e51b815260040161086a90612ddc565b6002600b541415610bff5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161086a565b6002600b55600a546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610c3d573d6000803e3d6000fd5b506001600b55565b600e81815481106106c757600080fd5b6000610c6060085490565b8210610cc35760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840161086a565b60088281548110610ce457634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806106b15760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161086a565b60006001600160a01b038216610dd85760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161086a565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b03163314610e1e5760405162461bcd60e51b815260040161086a90612ddc565b610e28600061160c565b565b600a546001600160a01b03163314610e545760405162461bcd60e51b815260040161086a90612ddc565b805160005b818110156109a0576000838281518110610e8357634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03166000908152601690915260409020805460ff191660011790555080610ebc81612f7f565b915050610e59565b601381815481106106c757600080fd5b601281815481106106c757600080fd5b60606001805461077290612f44565b600d81815481106106c757600080fd5b610f0e33838361165e565b5050565b610f1c338361119e565b610f385760405162461bcd60e51b815260040161086a90612e11565b610f448484848461172d565b50505050565b6000818152600260205260409020546060906001600160a01b0316610fb15760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e00604482015260640161086a565b60008281526014602090815260408083208151606081018352905463ffffffff80821683526401000000008204811694830194909452600160401b900490921690820152611000908490611760565b9392505050565b600a546001600160a01b031633146110315760405162461bcd60e51b815260040161086a90612ddc565b6015805460ff19811660ff90911615179055565b600a546001600160a01b0316331461106f5760405162461bcd60e51b815260040161086a90612ddc565b6001600160a01b0381166110d45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161086a565b6110dd8161160c565b50565b60006001600160e01b031982166380ac58cd60e01b148061111157506001600160e01b03198216635b5e139f60e01b145b806106b157506301ffc9a760e01b6001600160e01b03198316146106b1565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061116582610cf6565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166112175760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161086a565b600061122283610cf6565b9050806001600160a01b0316846001600160a01b0316148061125d5750836001600160a01b0316611252846107f5565b6001600160a01b0316145b8061128d57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166112a882610cf6565b6001600160a01b03161461130c5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161086a565b6001600160a01b03821661136e5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161086a565b6113798383836119ad565b611384600082611130565b6001600160a01b03831660009081526003602052604081208054600192906113ad908490612ede565b90915550506001600160a01b03821660009081526003602052604081208054600192906113db908490612e93565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60155460009060ff16151560011461148c5760405162461bcd60e51b81526020600482015260136024820152724d696e74696e67206973206e6f74206c69766560681b604482015260640161086a565b61149a600c80546001019055565b60006114a5600c5490565b60135490915063ffffffff86161080156114bd575060015b6114d95760405162461bcd60e51b815260040161086a90612db6565b60115463ffffffff84161080156114ee575060015b61150a5760405162461bcd60e51b815260040161086a90612db6565b600f5463ffffffff851610801561151f575060015b61153b5760405162461bcd60e51b815260040161086a90612db6565b6040805160608101825263ffffffff808716825285811660208084019182528983168486019081526000878152601490925294902092518354915194518316600160401b026bffffffff0000000000000000199584166401000000000267ffffffffffffffff19909316919093161717929092169190911790556115bf8682611a65565b80866001600160a01b03167f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f346040516115fb91815260200190565b60405180910390a395945050505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156116c05760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161086a565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611738848484611295565b61174484848484611a7f565b610f445760405162461bcd60e51b815260040161086a90612d64565b6060600061182a600f846000015163ffffffff168154811061179257634e487b7160e01b600052603260045260246000fd5b9060005260206000200180546117a790612f44565b80601f01602080910402602001604051908101604052809291908181526020018280546117d390612f44565b80156118205780601f106117f557610100808354040283529160200191611820565b820191906000526020600020905b81548152906001019060200180831161180357829003601f168201915b5050505050611b89565b6118586011856020015163ffffffff168154811061179257634e487b7160e01b600052603260045260246000fd5b6118866013866040015163ffffffff168154811061179257634e487b7160e01b600052603260045260246000fd5b60405160200161189893929190612ba1565b60405160208183030381529060405290506119856118b582611fb7565b6118be8661212d565b6012866040015163ffffffff16815481106118e957634e487b7160e01b600052603260045260246000fd5b90600052602060002001600e876000015163ffffffff168154811061191e57634e487b7160e01b600052603260045260246000fd5b906000526020600020016010886020015163ffffffff168154811061195357634e487b7160e01b600052603260045260246000fd5b90600052602060002001604051602001611971959493929190612a3f565b604051602081830303815290604052611fb7565b6040516020016119959190612ccf565b60405160208183030381529060405291505092915050565b6001600160a01b038316611a0857611a0381600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b611a2b565b816001600160a01b0316836001600160a01b031614611a2b57611a2b8382612247565b6001600160a01b038216611a42576109a0816122e4565b826001600160a01b0316826001600160a01b0316146109a0576109a082826123bd565b610f0e828260405180602001604052806000815250612401565b60006001600160a01b0384163b15611b8157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611ac3903390899088908890600401612d14565b602060405180830381600087803b158015611add57600080fd5b505af1925050508015611b0d575060408051601f3d908101601f19168201909252611b0a9181019061281f565b60015b611b67573d808015611b3b576040519150601f19603f3d011682016040523d82523d6000602084013e611b40565b606091505b508051611b5f5760405162461bcd60e51b815260040161086a90612d64565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061128d565b50600161128d565b604080516102608101825260016102208201818152600360fc1b610240840152825282518084018452818152603160f81b6020828101919091528084019190915283518085018552828152601960f91b818301528385015283518085018552828152603360f81b8183015260608481019190915284518086018652838152600d60fa1b81840152608085015284518086018652838152603560f81b8184015260a085015284518086018652838152601b60f91b8184015260c085015284518086018652838152603760f81b8184015260e085015284518086018652838152600760fb1b8184015261010085015284518086018652928352603960f81b8383015261012084019290925283518085018552600280825261031360f41b828401526101408501919091528451808601865281815261313160f01b818401526101608501528451808601865281815261189960f11b818401526101808501528451808601865281815261313360f01b818401526101a085015284518086018652818152610c4d60f21b818401526101c08501528451808601865281815261313560f01b818401526101e08501528451808601909552845261189b60f11b90840152610200820192909252816000805b8551811015611fad576000868281518110611d8057634e487b7160e01b600052603260045260246000fd5b016020015160f81c9050600087611d98846001612e93565b81518110611db657634e487b7160e01b600052603260045260246000fd5b016020015160f81c90508015801590611dd357508060ff16600114155b15611f88576000611de5601086612f9a565b90506000611df4601087612eab565b6040805180820190915260078152660233030303030360cc1b6020820152909150600160ff85161115611ee557600d611e2e600186612ef5565b60ff1681548110611e4f57634e487b7160e01b600052603260045260246000fd5b906000526020600020018054611e6490612f44565b80601f0160208091040260200160405190810160405280929190818152602001828054611e9090612f44565b8015611edd5780601f10611eb257610100808354040283529160200191611edd565b820191906000526020600020905b815481529060010190602001808311611ec057829003601f168201915b505050505090505b87898660ff1660118110611f0957634e487b7160e01b600052603260045260246000fd5b60200201518a8560ff1660118110611f3157634e487b7160e01b600052603260045260246000fd5b60200201518b8560ff1660118110611f5957634e487b7160e01b600052603260045260246000fd5b602002015184604051602001611f73959493929190612959565b60405160208183030381529060405297505050505b611f9560ff831685612e93565b93505050806002611fa69190612e93565b9050611d55565b5090949350505050565b6060815160001415611fd757505060408051602081019091526000815290565b600060405180606001604052806040815260200161300760409139905060006003845160026120069190612e93565b6120109190612eab565b61201b906004612ebf565b9050600061202a826020612e93565b67ffffffffffffffff81111561205057634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561207a576020820181803683370190505b509050818152600183018586518101602084015b818310156120e85760039283018051603f601282901c811687015160f890811b8552600c83901c8216880151811b6001860152600683901c8216880151811b60028601529116860151901b9382019390935260040161208e565b60038951066001811461210257600281146121135761211f565b613d3d60f01b60011983015261211f565b603d60f81b6000198301525b509398975050505050505050565b6060816121515750506040805180820190915260018152600360fc1b602082015290565b8160005b811561217b578061216581612f7f565b91506121749050600a83612eab565b9150612155565b60008167ffffffffffffffff8111156121a457634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156121ce576020820181803683370190505b5090505b841561128d576121e3600183612ede565b91506121f0600a86612f9a565b6121fb906030612e93565b60f81b81838151811061221e57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612240600a86612eab565b94506121d2565b6000600161225484610d6d565b61225e9190612ede565b6000838152600760205260409020549091508082146122b1576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906122f690600190612ede565b6000838152600960205260408120546008805493945090928490811061232c57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061235b57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806123a157634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006123c883610d6d565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b61240b8383612434565b6124186000848484611a7f565b6109a05760405162461bcd60e51b815260040161086a90612d64565b6001600160a01b03821661248a5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161086a565b6000818152600260205260409020546001600160a01b0316156124ef5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161086a565b6124fb600083836119ad565b6001600160a01b0382166000908152600360205260408120805460019290612524908490612e93565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b80356001600160a01b038116811461259957600080fd5b919050565b803563ffffffff8116811461259957600080fd5b6000602082840312156125c3578081fd5b61100082612582565b600080604083850312156125de578081fd5b6125e783612582565b91506125f560208401612582565b90509250929050565b600080600060608486031215612612578081fd5b61261b84612582565b925061262960208501612582565b9150604084013590509250925092565b6000806000806080858703121561264e578081fd5b61265785612582565b93506020612666818701612582565b935060408601359250606086013567ffffffffffffffff80821115612689578384fd5b818801915088601f83011261269c578384fd5b8135818111156126ae576126ae612fda565b6126c0601f8201601f19168501612e62565b915080825289848285010111156126d5578485fd5b8084840185840137810190920192909252939692955090935050565b60008060408385031215612703578182fd5b61270c83612582565b915060208301358015158114612720578182fd5b809150509250929050565b6000806040838503121561273d578182fd5b61274683612582565b946020939093013593505050565b60006020808385031215612766578182fd5b823567ffffffffffffffff8082111561277d578384fd5b818501915085601f830112612790578384fd5b8135818111156127a2576127a2612fda565b8060051b91506127b3848301612e62565b8181528481019084860184860187018a10156127cd578788fd5b8795505b838610156127f6576127e281612582565b8352600195909501949186019186016127d1565b5098975050505050505050565b600060208284031215612814578081fd5b813561100081612ff0565b600060208284031215612830578081fd5b815161100081612ff0565b60006020828403121561284c578081fd5b5035919050565b600080600060608486031215612867578283fd5b6128708461259e565b925061287e6020850161259e565b915061288c6040850161259e565b90509250925092565b600081518084526128ad816020860160208601612f18565b601f01601f19169290920160200192915050565b8054600090600181811c90808316806128db57607f831692505b60208084108214156128fb57634e487b7160e01b86526022600452602486fd5b81801561290f57600181146129205761294d565b60ff1986168952848901965061294d565b60008881526020902060005b868110156129455781548b82015290850190830161292c565b505084890196505b50505050505092915050565b6000865161296b818460208b01612f18565b6c1e3932b1ba103bb4b23a341e9160991b908301908152865161299581600d840160208b01612f18565b6f11103432b4b3b43a1e911891103c1e9160811b600d929091019182015285516129c681601d840160208a01612f18565b6411103c9e9160d91b601d929091019182015284516129ec816022840160208901612f18565b600d818301019150506711103334b6361e9160c11b60158201528351612a1981601d840160208801612f18565b612a32601d82840101631110179f60e11b815260040190565b9998505050505050505050565b7f7b22696d616765223a2022646174613a696d6167652f7376672b786d6c3b62618152641cd94d8d0b60da1b602082015260008651612a85816025850160208b01612f18565b7f222c20226e616d65223a2022436173746c6544414f2042616c6c6f74202300006025918401918201528651612ac2816043840160208b01612f18565b70111610113232b1b7b930ba34b7b7111d1160791b60439290910191820152612aee60548201876128c1565b70111610113130b1b5b3b937bab732111d1160791b81529050612b1460118201866128c1565b6a111610113637b3b7911d1160a91b81529050612b34600b8201856128c1565b7f222c20226465736372697074696f6e223a202241206d656d6f727920666f722081527f68656c70696e6720436173746c6544414f20696e207468652075726e65732e2060208201526b31362f30342f32303232227d60a01b6040820152604c0198975050505050505050565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f737667222076696577426f783d2230203020313620313622207368617060208201527f652d72656e646572696e673d2263726973704564676573222077696474683d2260408201527f32353622206865696768743d22323536223e3c726563742077696474683d223160608201527f30302522206865696768743d2231303025222066696c6c3d227472616e7370616080820152673932b73a1110179f60c11b60a082015260008451612c828160a8850160208901612f18565b845190830190612c998160a8840160208901612f18565b8451910190612caf8160a8840160208801612f18565b651e17b9bb339f60d11b910160a881019190915260ae0195945050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251612d0781601d850160208701612f18565b91909101601d0192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612d4790830184612895565b9695505050505050565b6020815260006110006020830184612895565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252600c908201526b496e76616c6964206461746160a01b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff81118282101715612e8b57612e8b612fda565b604052919050565b60008219821115612ea657612ea6612fae565b500190565b600082612eba57612eba612fc4565b500490565b6000816000190483118215151615612ed957612ed9612fae565b500290565b600082821015612ef057612ef0612fae565b500390565b600060ff821660ff841680821015612f0f57612f0f612fae565b90039392505050565b60005b83811015612f33578181015183820152602001612f1b565b83811115610f445750506000910152565b600181811c90821680612f5857607f821691505b60208210811415612f7957634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612f9357612f93612fae565b5060010190565b600082612fa957612fa9612fc4565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146110dd57600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220cf4629dc6a563823491552e17742a1062e8647139863530ada0738d0abfe12e864736f6c634300080400330000100003000a060300020001060a0701060200020001060a0701060200020001060a0701060200020001060a0701060200020001060a0801060200020001060a0801060200020001060a0801060200020001060a0801060200020001060a0801060200020001060a0701060200020001060a0701060200020001060a070106020003000a060300000010001000100010000400010d010e010d010e010d010e010d010e04000400010a030f010a030f04000400020f0106030f0106010f04000400010a030f010a030f04000400010d010e010d010a010d010a010d010e040006000406060005000106010e0106010a020605000400010a0100010a0106010a01060100010a04000400010a010f010a0106010a01060100010a04000600010a0106010a010606001000000010000200040f0400040f02000200010f0a00010f02000200010f0a00010f0200100010001000100010001000100010000200010f0a00010f02000200010f0a00010f02000200040f0400040f02000000100003000a060300020001060a1a01060200020001060a1a01060200020001060a1a01060200020001060a1a01060200020001060a1b01060200020001060a1b01060200020001060a1b01060200020001060a1b01060200020001060a1b01060200020001060a1a01060200020001060a1a01060200020001060a1a0106020003000a0603000000100010001000060004180600040002180400021804000400080f040003000118080f01180300030001180300020f030001180300030001180300020f030001180300040001180200020f020001180400040002180100020f01000218040006000418060010001000100000001000100010000400020601000206010002060400040001060107010602070106010701060400040002060407020604000400010601080106020801060108010604000400010601080106020801060108010604000400010602080206020801060400040001060208020602080106040004000106010701060207010601070106040004000206040702060400040008060400100010000000100010001000060001100200011006000400021102100211060004000106010a02100106010a06000400061006000400030f03100600050006040500040001100100040401000110040006000404060006000410060006000110020001100600100010000000100010001000060001020103020406000400010401030204010301040202040004000204020302040202040003000704020201050300030002020404030201050300030003020204030202050300040007020105040004000502030504000600040506001000100010000000100003000a060300020001060a1601060200020001060a1601060200020001060a1601060200020001060a1601060200020001060a1e01060200020001060a1e01060200020001060a1e01060200020001060a1e01060200020001060a1e01060200020001060a1601060200020001060a1601060200020001060a160106020003000a060300000010001000100010000400010906000109040005000109040601090500050001060109020001090106050005000106010002090100010605000500010601000209010001060500050001060109020001090106050005000109040601090500040001090600010904001000100010000000100003000a060300020001060a1f01060200020001060a1f01060200020001060a1f01060200020001060a1f01060200020001060a1901060200020001060a1901060200020001060a1901060200020001060a1901060200020001060a1901060200020001060a1f01060200020001060a1f01060200020001060a1f0106020003000a0603000000100003000a060300020001060a1801060200020001060a1801060200020001060a1801060200020001060a1801060200020001060a0f01060200020001060a0f01060200020001060a0f01060200020001060a0f01060200020001060a0f01060200020001060a1801060200020001060a1801060200020001060a180106020003000a060300000010000200010801000208040002080100010802001000100010001000100010001000100010001000100010000200010801000208040002080100010802000000100003000a06030002000106011c011d011c011d011c011d011c011d011c011d0106020002000106011d011c011d011c011d011c011d011c011d011c0106020002000106011c011d011c011d011c011d011c011d011c011d0106020002000106011d011c011d011c011d011c011d011c011d011c0106020002000106011c011d011c011d011c011d011c011d011c01100106020002000106011d011c011d011c011d011c011d011c0110011d0106020002000106011c011d011c011d011c011d011c0110011d01100106020002000106011d011c011d011c011d011c0110011d0110011d0106020002000106011c011d011c011d011c0110011d0110011d01100106020002000106011d011c011d011c0110011d0110011d0110011d0106020002000106011c011d011c0110011d0110011d0110011d01100106020002000106011d011c0110011d0110011d0110011d0110011d0106020003000a06030000001000100010000700010a010b07000600030a010b06000500040a010b010c05000500050a010b05000400060a010b010c04000400060a010b010c04000400060a010b010c04000500040a010b010c05000600010a020b010c06001000100010000000100002000410040004100200020001100a0001100200020001100a000110020010001000100010001000100010001000020001100a0001100200020001100a0001100200020004100400041002000000100010001000100006000106020001060600060001060200010606000500020602000206050007000206070007000206070005000206020002060500060001060200010606000600010602000106060010001000100000001000100010000a00011605000a000116050009000116010d050009000116010d050008000116020d05000400010602000116020d0600050001060116020d0700050001150106010d080004000115021701060800040002170200010607001000100000001000100010000500021202000212050005000613050004000113061401130400040001130114011502140115011401130400040001130214021302140113040004000113021402130214011304000400011306140113040004000113061401130400050006130500050002150200021505001000100000000108010f0100010f0119010f0119020f0119010f0119010f0100010f0108010f010801190a0001190108010f0100010f0c00010f0100010f01190c000119010f0100010f0c00010f0100010f01190c000119010f010f01190c000119010f02190c00021902190c000219010f01190c000119010f010f01190c000119010f0100010f0c00010f0100010f01190c000119010f0100010f0c00010f0100010f010801190a0001190108010f0108010f0100010f0119010f0119020f0119010f0119010f0100010f

Deployed Bytecode

0x6080604052600436106101ee5760003560e01c806370a082311161010d578063a22cb465116100a0578063d936547e1161006f578063d936547e1461056d578063e985e9c51461059d578063ec0d7557146105e6578063f0503e80146105fb578063f2fde38b1461066c57600080fd5b8063a22cb465146104f3578063b88d4fde14610513578063b8f7a66514610533578063c87b56dd1461054d57600080fd5b806392529b8f116100dc57806392529b8f1461047e578063958973aa1461049e57806395d89b41146104be5780639cb71ef8146104d357600080fd5b806370a082311461040b578063715018a61461042b5780638da5cb5b146104405780638fe6677d1461045e57600080fd5b80632f745c59116101855780634311de8f116101545780634311de8f146103965780634e6dcee4146103ab5780634f6ccce7146103cb5780636352211e146103eb57600080fd5b80632f745c59146103235780633040ea96146103435780633adbb3a41461036357806342842e0e1461037657600080fd5b8063095ea7b3116101c1578063095ea7b3146102a257806314179865146102c457806318160ddd146102e457806323b872dd1461030357600080fd5b806301ffc9a7146101f357806304bde4dd1461022857806306fdde0314610255578063081812fc1461026a575b600080fd5b3480156101ff57600080fd5b5061021361020e366004612803565b61068c565b60405190151581526020015b60405180910390f35b34801561023457600080fd5b5061024861024336600461283b565b6106b7565b60405161021f9190612d51565b34801561026157600080fd5b50610248610763565b34801561027657600080fd5b5061028a61028536600461283b565b6107f5565b6040516001600160a01b03909116815260200161021f565b3480156102ae57600080fd5b506102c26102bd36600461272b565b61088f565b005b3480156102d057600080fd5b506102486102df36600461283b565b6109a5565b3480156102f057600080fd5b506008545b60405190815260200161021f565b34801561030f57600080fd5b506102c261031e3660046125fe565b6109b5565b34801561032f57600080fd5b506102f561033e36600461272b565b6109e6565b34801561034f57600080fd5b5061024861035e36600461283b565b610a7c565b6102c2610371366004612853565b610a8c565b34801561038257600080fd5b506102c26103913660046125fe565b610b67565b3480156103a257600080fd5b506102c2610b82565b3480156103b757600080fd5b506102486103c636600461283b565b610c45565b3480156103d757600080fd5b506102f56103e636600461283b565b610c55565b3480156103f757600080fd5b5061028a61040636600461283b565b610cf6565b34801561041757600080fd5b506102f56104263660046125b2565b610d6d565b34801561043757600080fd5b506102c2610df4565b34801561044c57600080fd5b50600a546001600160a01b031661028a565b34801561046a57600080fd5b506102c2610479366004612754565b610e2a565b34801561048a57600080fd5b5061024861049936600461283b565b610ec4565b3480156104aa57600080fd5b506102486104b936600461283b565b610ed4565b3480156104ca57600080fd5b50610248610ee4565b3480156104df57600080fd5b506102486104ee36600461283b565b610ef3565b3480156104ff57600080fd5b506102c261050e3660046126f1565b610f03565b34801561051f57600080fd5b506102c261052e366004612639565b610f12565b34801561053f57600080fd5b506015546102139060ff1681565b34801561055957600080fd5b5061024861056836600461283b565b610f4a565b34801561057957600080fd5b506102136105883660046125b2565b60166020526000908152604090205460ff1681565b3480156105a957600080fd5b506102136105b83660046125cc565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b3480156105f257600080fd5b506102c2611007565b34801561060757600080fd5b5061064561061636600461283b565b60146020526000908152604090205463ffffffff808216916401000000008104821691600160401b9091041683565b6040805163ffffffff9485168152928416602084015292169181019190915260600161021f565b34801561067857600080fd5b506102c26106873660046125b2565b611045565b60006001600160e01b0319821663780e9d6360e01b14806106b157506106b1826110e0565b92915050565b600f81815481106106c757600080fd5b9060005260206000200160009150905080546106e290612f44565b80601f016020809104026020016040519081016040528092919081815260200182805461070e90612f44565b801561075b5780601f106107305761010080835404028352916020019161075b565b820191906000526020600020905b81548152906001019060200180831161073e57829003601f168201915b505050505081565b60606000805461077290612f44565b80601f016020809104026020016040519081016040528092919081815260200182805461079e90612f44565b80156107eb5780601f106107c0576101008083540402835291602001916107eb565b820191906000526020600020905b8154815290600101906020018083116107ce57829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166108735760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061089a82610cf6565b9050806001600160a01b0316836001600160a01b031614156109085760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b606482015260840161086a565b336001600160a01b0382161480610924575061092481336105b8565b6109965760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161086a565b6109a08383611130565b505050565b601181815481106106c757600080fd5b6109bf338261119e565b6109db5760405162461bcd60e51b815260040161086a90612e11565b6109a0838383611295565b60006109f183610d6d565b8210610a535760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b606482015260840161086a565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b601081815481106106c757600080fd5b6002600b541415610adf5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161086a565b6002600b553360009081526016602052604090205460ff16610b395760405162461bcd60e51b8152602060048201526013602482015272139bdd08185b1b1bddd959081d1bc81b5a5b9d606a1b604482015260640161086a565b610b453384848461143c565b5050336000908152601660205260409020805460ff1916905550506001600b55565b6109a083838360405180602001604052806000815250610f12565b600a546001600160a01b03163314610bac5760405162461bcd60e51b815260040161086a90612ddc565b6002600b541415610bff5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161086a565b6002600b55600a546040516001600160a01b03909116904780156108fc02916000818181858888f19350505050158015610c3d573d6000803e3d6000fd5b506001600b55565b600e81815481106106c757600080fd5b6000610c6060085490565b8210610cc35760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b606482015260840161086a565b60088281548110610ce457634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050919050565b6000818152600260205260408120546001600160a01b0316806106b15760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b606482015260840161086a565b60006001600160a01b038216610dd85760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b606482015260840161086a565b506001600160a01b031660009081526003602052604090205490565b600a546001600160a01b03163314610e1e5760405162461bcd60e51b815260040161086a90612ddc565b610e28600061160c565b565b600a546001600160a01b03163314610e545760405162461bcd60e51b815260040161086a90612ddc565b805160005b818110156109a0576000838281518110610e8357634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03166000908152601690915260409020805460ff191660011790555080610ebc81612f7f565b915050610e59565b601381815481106106c757600080fd5b601281815481106106c757600080fd5b60606001805461077290612f44565b600d81815481106106c757600080fd5b610f0e33838361165e565b5050565b610f1c338361119e565b610f385760405162461bcd60e51b815260040161086a90612e11565b610f448484848461172d565b50505050565b6000818152600260205260409020546060906001600160a01b0316610fb15760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e00604482015260640161086a565b60008281526014602090815260408083208151606081018352905463ffffffff80821683526401000000008204811694830194909452600160401b900490921690820152611000908490611760565b9392505050565b600a546001600160a01b031633146110315760405162461bcd60e51b815260040161086a90612ddc565b6015805460ff19811660ff90911615179055565b600a546001600160a01b0316331461106f5760405162461bcd60e51b815260040161086a90612ddc565b6001600160a01b0381166110d45760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161086a565b6110dd8161160c565b50565b60006001600160e01b031982166380ac58cd60e01b148061111157506001600160e01b03198216635b5e139f60e01b145b806106b157506301ffc9a760e01b6001600160e01b03198316146106b1565b600081815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061116582610cf6565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b03166112175760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b606482015260840161086a565b600061122283610cf6565b9050806001600160a01b0316846001600160a01b0316148061125d5750836001600160a01b0316611252846107f5565b6001600160a01b0316145b8061128d57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166112a882610cf6565b6001600160a01b03161461130c5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b606482015260840161086a565b6001600160a01b03821661136e5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b606482015260840161086a565b6113798383836119ad565b611384600082611130565b6001600160a01b03831660009081526003602052604081208054600192906113ad908490612ede565b90915550506001600160a01b03821660009081526003602052604081208054600192906113db908490612e93565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b60155460009060ff16151560011461148c5760405162461bcd60e51b81526020600482015260136024820152724d696e74696e67206973206e6f74206c69766560681b604482015260640161086a565b61149a600c80546001019055565b60006114a5600c5490565b60135490915063ffffffff86161080156114bd575060015b6114d95760405162461bcd60e51b815260040161086a90612db6565b60115463ffffffff84161080156114ee575060015b61150a5760405162461bcd60e51b815260040161086a90612db6565b600f5463ffffffff851610801561151f575060015b61153b5760405162461bcd60e51b815260040161086a90612db6565b6040805160608101825263ffffffff808716825285811660208084019182528983168486019081526000878152601490925294902092518354915194518316600160401b026bffffffff0000000000000000199584166401000000000267ffffffffffffffff19909316919093161717929092169190911790556115bf8682611a65565b80866001600160a01b03167f4c209b5fc8ad50758f13e2e1088ba56a560dff690a1c6fef26394f4c03821c4f346040516115fb91815260200190565b60405180910390a395945050505050565b600a80546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156116c05760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161086a565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611738848484611295565b61174484848484611a7f565b610f445760405162461bcd60e51b815260040161086a90612d64565b6060600061182a600f846000015163ffffffff168154811061179257634e487b7160e01b600052603260045260246000fd5b9060005260206000200180546117a790612f44565b80601f01602080910402602001604051908101604052809291908181526020018280546117d390612f44565b80156118205780601f106117f557610100808354040283529160200191611820565b820191906000526020600020905b81548152906001019060200180831161180357829003601f168201915b5050505050611b89565b6118586011856020015163ffffffff168154811061179257634e487b7160e01b600052603260045260246000fd5b6118866013866040015163ffffffff168154811061179257634e487b7160e01b600052603260045260246000fd5b60405160200161189893929190612ba1565b60405160208183030381529060405290506119856118b582611fb7565b6118be8661212d565b6012866040015163ffffffff16815481106118e957634e487b7160e01b600052603260045260246000fd5b90600052602060002001600e876000015163ffffffff168154811061191e57634e487b7160e01b600052603260045260246000fd5b906000526020600020016010886020015163ffffffff168154811061195357634e487b7160e01b600052603260045260246000fd5b90600052602060002001604051602001611971959493929190612a3f565b604051602081830303815290604052611fb7565b6040516020016119959190612ccf565b60405160208183030381529060405291505092915050565b6001600160a01b038316611a0857611a0381600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b611a2b565b816001600160a01b0316836001600160a01b031614611a2b57611a2b8382612247565b6001600160a01b038216611a42576109a0816122e4565b826001600160a01b0316826001600160a01b0316146109a0576109a082826123bd565b610f0e828260405180602001604052806000815250612401565b60006001600160a01b0384163b15611b8157604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290611ac3903390899088908890600401612d14565b602060405180830381600087803b158015611add57600080fd5b505af1925050508015611b0d575060408051601f3d908101601f19168201909252611b0a9181019061281f565b60015b611b67573d808015611b3b576040519150601f19603f3d011682016040523d82523d6000602084013e611b40565b606091505b508051611b5f5760405162461bcd60e51b815260040161086a90612d64565b805181602001fd5b6001600160e01b031916630a85bd0160e11b14905061128d565b50600161128d565b604080516102608101825260016102208201818152600360fc1b610240840152825282518084018452818152603160f81b6020828101919091528084019190915283518085018552828152601960f91b818301528385015283518085018552828152603360f81b8183015260608481019190915284518086018652838152600d60fa1b81840152608085015284518086018652838152603560f81b8184015260a085015284518086018652838152601b60f91b8184015260c085015284518086018652838152603760f81b8184015260e085015284518086018652838152600760fb1b8184015261010085015284518086018652928352603960f81b8383015261012084019290925283518085018552600280825261031360f41b828401526101408501919091528451808601865281815261313160f01b818401526101608501528451808601865281815261189960f11b818401526101808501528451808601865281815261313360f01b818401526101a085015284518086018652818152610c4d60f21b818401526101c08501528451808601865281815261313560f01b818401526101e08501528451808601909552845261189b60f11b90840152610200820192909252816000805b8551811015611fad576000868281518110611d8057634e487b7160e01b600052603260045260246000fd5b016020015160f81c9050600087611d98846001612e93565b81518110611db657634e487b7160e01b600052603260045260246000fd5b016020015160f81c90508015801590611dd357508060ff16600114155b15611f88576000611de5601086612f9a565b90506000611df4601087612eab565b6040805180820190915260078152660233030303030360cc1b6020820152909150600160ff85161115611ee557600d611e2e600186612ef5565b60ff1681548110611e4f57634e487b7160e01b600052603260045260246000fd5b906000526020600020018054611e6490612f44565b80601f0160208091040260200160405190810160405280929190818152602001828054611e9090612f44565b8015611edd5780601f10611eb257610100808354040283529160200191611edd565b820191906000526020600020905b815481529060010190602001808311611ec057829003601f168201915b505050505090505b87898660ff1660118110611f0957634e487b7160e01b600052603260045260246000fd5b60200201518a8560ff1660118110611f3157634e487b7160e01b600052603260045260246000fd5b60200201518b8560ff1660118110611f5957634e487b7160e01b600052603260045260246000fd5b602002015184604051602001611f73959493929190612959565b60405160208183030381529060405297505050505b611f9560ff831685612e93565b93505050806002611fa69190612e93565b9050611d55565b5090949350505050565b6060815160001415611fd757505060408051602081019091526000815290565b600060405180606001604052806040815260200161300760409139905060006003845160026120069190612e93565b6120109190612eab565b61201b906004612ebf565b9050600061202a826020612e93565b67ffffffffffffffff81111561205057634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561207a576020820181803683370190505b509050818152600183018586518101602084015b818310156120e85760039283018051603f601282901c811687015160f890811b8552600c83901c8216880151811b6001860152600683901c8216880151811b60028601529116860151901b9382019390935260040161208e565b60038951066001811461210257600281146121135761211f565b613d3d60f01b60011983015261211f565b603d60f81b6000198301525b509398975050505050505050565b6060816121515750506040805180820190915260018152600360fc1b602082015290565b8160005b811561217b578061216581612f7f565b91506121749050600a83612eab565b9150612155565b60008167ffffffffffffffff8111156121a457634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156121ce576020820181803683370190505b5090505b841561128d576121e3600183612ede565b91506121f0600a86612f9a565b6121fb906030612e93565b60f81b81838151811061221e57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612240600a86612eab565b94506121d2565b6000600161225484610d6d565b61225e9190612ede565b6000838152600760205260409020549091508082146122b1576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b6008546000906122f690600190612ede565b6000838152600960205260408120546008805493945090928490811061232c57634e487b7160e01b600052603260045260246000fd5b90600052602060002001549050806008838154811061235b57634e487b7160e01b600052603260045260246000fd5b60009182526020808320909101929092558281526009909152604080822084905585825281205560088054806123a157634e487b7160e01b600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006123c883610d6d565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b61240b8383612434565b6124186000848484611a7f565b6109a05760405162461bcd60e51b815260040161086a90612d64565b6001600160a01b03821661248a5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f2061646472657373604482015260640161086a565b6000818152600260205260409020546001600160a01b0316156124ef5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000604482015260640161086a565b6124fb600083836119ad565b6001600160a01b0382166000908152600360205260408120805460019290612524908490612e93565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b80356001600160a01b038116811461259957600080fd5b919050565b803563ffffffff8116811461259957600080fd5b6000602082840312156125c3578081fd5b61100082612582565b600080604083850312156125de578081fd5b6125e783612582565b91506125f560208401612582565b90509250929050565b600080600060608486031215612612578081fd5b61261b84612582565b925061262960208501612582565b9150604084013590509250925092565b6000806000806080858703121561264e578081fd5b61265785612582565b93506020612666818701612582565b935060408601359250606086013567ffffffffffffffff80821115612689578384fd5b818801915088601f83011261269c578384fd5b8135818111156126ae576126ae612fda565b6126c0601f8201601f19168501612e62565b915080825289848285010111156126d5578485fd5b8084840185840137810190920192909252939692955090935050565b60008060408385031215612703578182fd5b61270c83612582565b915060208301358015158114612720578182fd5b809150509250929050565b6000806040838503121561273d578182fd5b61274683612582565b946020939093013593505050565b60006020808385031215612766578182fd5b823567ffffffffffffffff8082111561277d578384fd5b818501915085601f830112612790578384fd5b8135818111156127a2576127a2612fda565b8060051b91506127b3848301612e62565b8181528481019084860184860187018a10156127cd578788fd5b8795505b838610156127f6576127e281612582565b8352600195909501949186019186016127d1565b5098975050505050505050565b600060208284031215612814578081fd5b813561100081612ff0565b600060208284031215612830578081fd5b815161100081612ff0565b60006020828403121561284c578081fd5b5035919050565b600080600060608486031215612867578283fd5b6128708461259e565b925061287e6020850161259e565b915061288c6040850161259e565b90509250925092565b600081518084526128ad816020860160208601612f18565b601f01601f19169290920160200192915050565b8054600090600181811c90808316806128db57607f831692505b60208084108214156128fb57634e487b7160e01b86526022600452602486fd5b81801561290f57600181146129205761294d565b60ff1986168952848901965061294d565b60008881526020902060005b868110156129455781548b82015290850190830161292c565b505084890196505b50505050505092915050565b6000865161296b818460208b01612f18565b6c1e3932b1ba103bb4b23a341e9160991b908301908152865161299581600d840160208b01612f18565b6f11103432b4b3b43a1e911891103c1e9160811b600d929091019182015285516129c681601d840160208a01612f18565b6411103c9e9160d91b601d929091019182015284516129ec816022840160208901612f18565b600d818301019150506711103334b6361e9160c11b60158201528351612a1981601d840160208801612f18565b612a32601d82840101631110179f60e11b815260040190565b9998505050505050505050565b7f7b22696d616765223a2022646174613a696d6167652f7376672b786d6c3b62618152641cd94d8d0b60da1b602082015260008651612a85816025850160208b01612f18565b7f222c20226e616d65223a2022436173746c6544414f2042616c6c6f74202300006025918401918201528651612ac2816043840160208b01612f18565b70111610113232b1b7b930ba34b7b7111d1160791b60439290910191820152612aee60548201876128c1565b70111610113130b1b5b3b937bab732111d1160791b81529050612b1460118201866128c1565b6a111610113637b3b7911d1160a91b81529050612b34600b8201856128c1565b7f222c20226465736372697074696f6e223a202241206d656d6f727920666f722081527f68656c70696e6720436173746c6544414f20696e207468652075726e65732e2060208201526b31362f30342f32303232227d60a01b6040820152604c0198975050505050505050565b7f3c73766720786d6c6e733d22687474703a2f2f7777772e77332e6f72672f323081527f30302f737667222076696577426f783d2230203020313620313622207368617060208201527f652d72656e646572696e673d2263726973704564676573222077696474683d2260408201527f32353622206865696768743d22323536223e3c726563742077696474683d223160608201527f30302522206865696768743d2231303025222066696c6c3d227472616e7370616080820152673932b73a1110179f60c11b60a082015260008451612c828160a8850160208901612f18565b845190830190612c998160a8840160208901612f18565b8451910190612caf8160a8840160208801612f18565b651e17b9bb339f60d11b910160a881019190915260ae0195945050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251612d0781601d850160208701612f18565b91909101601d0192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090612d4790830184612895565b9695505050505050565b6020815260006110006020830184612895565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252600c908201526b496e76616c6964206461746160a01b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b604051601f8201601f1916810167ffffffffffffffff81118282101715612e8b57612e8b612fda565b604052919050565b60008219821115612ea657612ea6612fae565b500190565b600082612eba57612eba612fc4565b500490565b6000816000190483118215151615612ed957612ed9612fae565b500290565b600082821015612ef057612ef0612fae565b500390565b600060ff821660ff841680821015612f0f57612f0f612fae565b90039392505050565b60005b83811015612f33578181015183820152602001612f1b565b83811115610f445750506000910152565b600181811c90821680612f5857607f821691505b60208210811415612f7957634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415612f9357612f93612fae565b5060010190565b600082612fa957612fa9612fc4565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b0319811681146110dd57600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220cf4629dc6a563823491552e17742a1062e8647139863530ada0738d0abfe12e864736f6c63430008040033

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.