Contract 0x9FE6688e7d4BFbC69fE2727f578B1f1b8c75B930

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0xfa53b42b9e723276e753b3b96a13f9ff81c6d6bed83cf07d95db55c6b26d60ceSet Approval For...417369272022-11-27 23:09:097 days 22 hrs ago0xf2c2d3813f204d574ac8574025f3d2de3c2bb2f5 IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.00001666
0x07836df0a64795eac38d0614f411d685840b491e4dba77e56f574352ffec41d1Set Approval For...410925562022-11-25 12:45:4810 days 8 hrs ago0x3ef2100230bfc630dc02fabdec263db0f35bfd04 IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.00001706
0x56e775a88541f70c998a5bd15255cdf6f673eafe53948606f1e6667d6d355512Set Approval For...403026022022-11-22 16:45:4213 days 4 hrs ago0xf694ffa78947d399eedf26855b8d2463ce8f8c81 IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.00003201
0xc8e3588add084a7a0cf9d00ae3473998cc6c13f8859d4bcc5488513e5a17f542Set Approval For...394316572022-11-19 20:58:5116 days 33 mins ago0x10d10588694da68efd40544a90177b1ba9dd4e9e IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.00001939
0xdc753d8439af47304612e5ae710dfaaa64f1f8ab2041a16c4b8a3940c5e1f54bSet Approval For...388017102022-11-17 11:56:3018 days 9 hrs ago0xb6bd1b9b3e6e3512bb354789289f6d8fbc0f65bc IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.00002032
0x45d876bce73602cb35112f574bce4c3fef560491f94387dbdd754f3945f93d46Set Approval For...368791942022-11-10 9:51:4525 days 11 hrs ago0x59966e8e109b62acd549e6ce5f485e08a4a6b7a7 IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.00003321
0x881557827c910b9efc65e67dbf2aff63095761062d2188a6b7933b610168697bSet Approval For...365264702022-11-09 6:01:5126 days 15 hrs ago0xc8a5daa008cfed4429e0f6f0130524f6807754a7 IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.00002061
0x912d2d784484f68e34b02fb613b9567c54dc13399b040f7cdb4c778dd2f8e565Set Approval For...361867882022-11-08 3:25:4927 days 18 hrs ago0x3326a2eeaeec68d7275b6d4560e1fe1272250b5c IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.00003075
0x4765d30646336d73fbcb2682079e2829a283f467235cb7dfa7fea8d4c5a4cbcbSet Approval For...361846562022-11-08 3:16:2327 days 18 hrs ago0x23ee374e2d80a11ff433d8c496641bd96a30ff27 IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.00003125
0x0c100815fc8da905626a9995d8c7e992bca0b3cfb9f9daa771cba22590e11a1cSet Approval For...361799662022-11-08 2:55:2027 days 18 hrs ago0xb036d544be4b86a8545bd39bbc1044e1468917bd IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.00002075
0x18445b01eb38aebb2132fcd6703e5fb1e5c0fa9034e5ee4918fad4cc7f90c17dSet Approval For...361788442022-11-08 2:50:1627 days 18 hrs ago0x4a22948612e88ff5b803e5bbde2d5a622d157def IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.00002075
0x65a4dbfbfedb6186ea7ebb27c1beebaab9c792f0b407de09834c3a709881e201Set Approval For...361772292022-11-08 2:42:1127 days 18 hrs ago0x42676208a22f062055f37e31d490199b612e6108 IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.00002098
0x7679f0f0c88f705f89a3df21c497852c51a0cd54dcf2593c04e438c8e177535cSet Approval For...361764362022-11-08 2:37:5827 days 18 hrs ago0x7bd55ffb51a546d7f96f8137416d280e95f3b045 IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.00002098
0xf10dda042288354b9fb489e59e79e1c43d70af53c9bffeffb1b6a5ee0e135e65Set Approval For...361756832022-11-08 2:34:0027 days 18 hrs ago0x63f3e64a242ee68f5f0e854c1458ec3c6149a9ec IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.00002166
0x849f7ec40ca12e9f1bc61852e0fd2f79fb10565971c3a71e1d642e5c583c8760Set Approval For...361750452022-11-08 2:30:3827 days 19 hrs ago0x8b5ef6475e62168f679f3751265e4ff4963ec4ae IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.00002219
0x94e43d07a7c43fbd9414a2b6685103ab0f707700eed8c1635392fbe40a034ad7Set Approval For...361743452022-11-08 2:26:3027 days 19 hrs ago0x5b8fa146a61e5b32b48215fa99f5431a2597f4cf IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.00002219
0x7bff0321acddaa9227677c0d73076afc4897a1c4ed1bcbfce2b2984cc6bc1f93Set Approval For...361732962022-11-08 2:20:2627 days 19 hrs ago0xc31f7a36e489cadee990eca195bf58ac7a8180e1 IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.00002284
0x90c728fe2541493624d8e26c6793dec4551e70e63a959d40c6561219253b0a17Set Approval For...361724782022-11-08 2:16:0127 days 19 hrs ago0x9351e89f7dab9014efac169164c612f63f6480d7 IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.0000231
0x2e8e9a64459553a26d62bbe31372d8c1483a4c62d8cf84a8b668024397ce6a68Set Approval For...361699462022-11-08 2:01:2827 days 19 hrs ago0x3f7626355014cecd95ccda67ed3f01140e592058 IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.00002353
0x4c3b27b18ccc6915a21966d4d23f369d0cf2acb0be56f8d102f8b4ed50cf5e02Set Approval For...361696602022-11-08 1:59:4727 days 19 hrs ago0xf48c174a4de111b0e6efa4d0fe685ca4fe458f9a IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.00002353
0x97153c65ea0f5150f77f6c3f82cdbced3f60494e752406091116c4dba5a42b8aSet Approval For...361694182022-11-08 1:58:3227 days 19 hrs ago0x24c5a19849a1670d3753f92d43c1dd2b8cdca80e IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.00002398
0xea38a4344cc5b8f3d086be689187007bc8b2033b7d3f5e7befc4978c4618dcd4Set Approval For...361692642022-11-08 1:57:3627 days 19 hrs ago0xb7c934016a1d171c395358919aef1733fcbe406f IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.00002398
0x077c89c9077d3c8914e0f2dae447f8e3c64177988b784918a29700606c156cf0Set Approval For...361691082022-11-08 1:56:4527 days 19 hrs ago0xbca1aad82d7c1f9f78671421022f795ef21fbd71 IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.00002398
0x596e749f0f5f04941c724064e1dfcaf34ed6584d18184fc64d49c73963acce1bSet Approval For...361689422022-11-08 1:55:4927 days 19 hrs ago0xf6950c1f7c0d285d64278cca63a9f0d6ebd73f0b IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.00002398
0xe013032f77b54fc0926df9caffb0ec4bcc5d61cab4228b35033090f885dd31ebSet Approval For...361687872022-11-08 1:54:5627 days 19 hrs ago0x76a22ede7c2e4cfe5338e9a674b6011312316422 IN  0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH0.00002398
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xcc77a361a1a63570779343007791db061515db89276bd31fae0e77d58227f286400273162022-11-21 18:45:0914 days 2 hrs ago 0x998ef16ea4111094eb5ee72fc2c6f4e6e8647666 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH
0xf6e0fb96fcd45a2a6c0e36c0418c9812ea1755b1fbcc3c4c4691a9c8be5b458c396388782022-11-20 13:12:2315 days 8 hrs ago 0x998ef16ea4111094eb5ee72fc2c6f4e6e8647666 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH
0xeb2ad44afbeebc69d367b6a2a36051d4c67356f3d74f41a637f1dcb1ccf6cb7c380403372022-11-14 14:08:5421 days 7 hrs ago 0x998ef16ea4111094eb5ee72fc2c6f4e6e8647666 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH
0xd974f0e1deb2038f44ee7be32e8f60ca985b72f23c32bfa07129e05e9a5838ba376833262022-11-13 6:33:0522 days 14 hrs ago 0x998ef16ea4111094eb5ee72fc2c6f4e6e8647666 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH
0x916f557211f3938b4b9091c62132c22f00fc0939a48ccb23b817ade013ccf847368857402022-11-10 10:21:5025 days 11 hrs ago 0x998ef16ea4111094eb5ee72fc2c6f4e6e8647666 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH
0x46b04008b20cd6f3872b5e0355f32194f5dea0a37d81882d546fcff601b86bd5361869072022-11-08 3:26:2127 days 18 hrs ago 0x998ef16ea4111094eb5ee72fc2c6f4e6e8647666 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH
0x05758f1f7a6cf356b74eb435e4ac4daee9ebcff6c12d7f465065eda51cb1a89a361848952022-11-08 3:17:2727 days 18 hrs ago 0x998ef16ea4111094eb5ee72fc2c6f4e6e8647666 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH
0x8e9e81000fabc02de2591c56a562c731a11743936d3b68657f5f013b63fac219361814692022-11-08 3:02:0027 days 18 hrs ago 0x998ef16ea4111094eb5ee72fc2c6f4e6e8647666 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH
0x621449d956e2d839ee8ea9508b19f89337286869ce0e2ed7d96beba0f45eaabe361798842022-11-08 2:54:5927 days 18 hrs ago 0x998ef16ea4111094eb5ee72fc2c6f4e6e8647666 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH
0xd92291591e8d150369d94e00e29df84d167c42a78150f11db294ff37d6f27746361785812022-11-08 2:49:0627 days 18 hrs ago 0x998ef16ea4111094eb5ee72fc2c6f4e6e8647666 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH
0x3e92270b53a2c266e82325f6fbf12c8b693559cfa37df83d06e9b26a59b5b28d361771622022-11-08 2:41:5227 days 18 hrs ago 0x998ef16ea4111094eb5ee72fc2c6f4e6e8647666 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH
0xffe6ab62b1e1b1c8e4c11c4c126c50bcbdb2f325c8579ed2ee11418a8365c08c361763502022-11-08 2:37:3027 days 18 hrs ago 0x998ef16ea4111094eb5ee72fc2c6f4e6e8647666 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH
0x224eeeb78c1ecf510638a43bd99b803071a972e6d224d2194142ab29a9ed4cf8361755992022-11-08 2:33:3427 days 18 hrs ago 0x998ef16ea4111094eb5ee72fc2c6f4e6e8647666 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH
0xb36d531f2d04fd2c5f299552e979b0be7b7d3986ceab89a4c8e4b8e9349d17e7361749522022-11-08 2:30:0627 days 19 hrs ago 0x998ef16ea4111094eb5ee72fc2c6f4e6e8647666 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH
0x24ddddd73283b63fd68f68bf1551a2ab8cf1edc8c4676539729892ec32c62b81361741912022-11-08 2:25:3627 days 19 hrs ago 0x998ef16ea4111094eb5ee72fc2c6f4e6e8647666 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH
0xc0d8e00b0e15bf64bcce82a2f26dd6a83fc9fbbe6971daa2400e2b90911f75b9361732292022-11-08 2:20:0127 days 19 hrs ago 0x998ef16ea4111094eb5ee72fc2c6f4e6e8647666 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH
0xa667ff757242ddd51032dc727eb454e33db691cb70893074803800400e89273a361702672022-11-08 2:03:1627 days 19 hrs ago 0x998ef16ea4111094eb5ee72fc2c6f4e6e8647666 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH
0x65325b6ff5e94e79a49b1a0229f66e861dde516e5d1a78f3d96d5ae94f6952d6361698912022-11-08 2:01:0927 days 19 hrs ago 0x998ef16ea4111094eb5ee72fc2c6f4e6e8647666 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH
0x3c8f36725199c0991d114d5f76739f151fc542e6376b253e7d7813849d846723361695932022-11-08 1:59:2327 days 19 hrs ago 0x998ef16ea4111094eb5ee72fc2c6f4e6e8647666 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH
0x9548483c283b5cedc56931d48ef31a15a7915874578428bd34fb57b77f9be224361693682022-11-08 1:58:1527 days 19 hrs ago 0x998ef16ea4111094eb5ee72fc2c6f4e6e8647666 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH
0x0ab5cf01ae18b4ba97f414d6bb892e0d73d0dc539a91cd0aef4b8acc1b5ba69d361692162022-11-08 1:57:1927 days 19 hrs ago 0x998ef16ea4111094eb5ee72fc2c6f4e6e8647666 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH
0x6be8bc5ebf66af12d74e344265215c6e99c947f43c240274abcb1b0ddd7c75ad361690552022-11-08 1:56:2727 days 19 hrs ago 0x998ef16ea4111094eb5ee72fc2c6f4e6e8647666 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH
0x560900daf40c01465333758e1767d3303080cae0ad35fcb47618e0cbb5ab633d361689012022-11-08 1:55:3227 days 19 hrs ago 0x998ef16ea4111094eb5ee72fc2c6f4e6e8647666 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH
0xefbd0ca5b8cd411a2f7183ab538aa5a291b662485948f31a2663e6b04bdf922c361686732022-11-08 1:54:1327 days 19 hrs ago 0x998ef16ea4111094eb5ee72fc2c6f4e6e8647666 0x9fe6688e7d4bfbc69fe2727f578b1f1b8c75b9300 ETH
0xbf61372d594a9ba91061976ee7aa5585c29d04b518f1f115693d544797ab5eb0361685332022-11-08 1:53:2127 days 19 hrs ago 0x998ef16ea4111094eb5ee72fc2c6f4e6e8647666 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

Contract Source Code (Solidity Standard Json-Input format)

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

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.