Contract 0x45d86E0dB60c4AEE3dFea312d8F4b5eE87E4886a 2

 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x7fcaa8e3303c640f47d5a11300f63e84e4a734a9ffc71876cbcdd0c1b77721ddSet Approval For...196070682022-08-07 8:33:471 day 8 hrs ago0x234325dd56a4fe80ce004dc9bbed15275a9246e9 IN  0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH0.000037066467 ETH
0x2f2026e6e5c06d3058f538a47521c36e9208228bb773488d0d68cea6166dcdf6Safe Transfer Fr...194856532022-08-05 20:19:292 days 20 hrs ago0x2284d82ff70bf835804b116ec0766fa6aaf1c9c1 IN  0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH0.00007808864 ETH
0x95692764109dd0d28824d4803aa2b7e4a3ef62559bf031e3428d0590dcf6e66eMerge Towers194855662022-08-05 20:17:382 days 20 hrs ago0x2284d82ff70bf835804b116ec0766fa6aaf1c9c1 IN  0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH0.000068041005 ETH
0x800b232e9840e01c64ea26ea57c015dba3c9e840f2514e9f6975aae3e39be0e2Merge Towers194855422022-08-05 20:17:382 days 20 hrs ago0x2284d82ff70bf835804b116ec0766fa6aaf1c9c1 IN  0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH0.000067832752 ETH
0x0c36e7242421f36dcbcd993d37cc37164028abbf04ae0d5ffb6ab185438f465aMerge Towers194833322022-08-05 19:31:432 days 21 hrs ago0x16e178618d9eb02e902b4469537025eede3ffe89 IN  0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH0.000069189841 ETH
0xab7c0f98bbaeaf9de9112377e80dc31e526b1fc7743ca1b769005512c0ba92bfSet Approval For...194832962022-08-05 19:30:152 days 21 hrs ago0xcbbc9f20619205a7e74c8309f2b5777cedd33f77 IN  0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH0.000080771778 ETH
0xb0899b40309af16d1068514d166c32680b8aaad658a45ea5cb044db572e5ae6eMerge Towers194830082022-08-05 19:21:062 days 21 hrs ago0x3962d053037f2b9b90ec732cefe4e2298277303f IN  0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH0.000069188928 ETH
0x09c1dc06f7a680d57970cbb681554373ec026c934fc02a66ab935daa47a97513Set Approval For...194829422022-08-05 19:18:312 days 21 hrs ago0xa3ad5cfb4ff4b68e37a338da200ba441c1850b5b IN  0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH0.000080214151 ETH
0x500ab235111966db025dde6ce6df2f63136780b10eacb2f8bfd43d06388dc0f8Merge Towers194145562022-08-05 2:42:473 days 14 hrs ago0x66c140ff277b3857377f33dbbd42cdbffac349b2 IN  0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH0.00005366433 ETH
0x7b3d3a488184678b5f0bcc701c65cca46358e063e5cec5d167bae01db171268eSet Approval For...193725722022-08-04 13:07:004 days 3 hrs ago0xf6e6c3a86166d0db2dd03417d041792e3463cbc0 IN  0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH0.000059744949 ETH
0xb363a2589847db534cb1de8e876a83f565874f6181fdc810a50017058ad83759Set Approval For...193718722022-08-04 12:56:214 days 3 hrs ago0xf6e6c3a86166d0db2dd03417d041792e3463cbc0 IN  0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH0.000059586872 ETH
0x5b965b17a4bda4486fd0abed923a60a519dc0610b1ad76aa6dd43aa5cbbadd5bIs Public Sale O...193266452022-08-04 0:23:224 days 16 hrs ago0x2b59a7f69d1211ecc9328635f3295f14f86704b7 IN  0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH0.000057690624 ETH
0x893e995d94c15b9d1e1f0d51abbf5f0e8edf0f311650f6d197010974d35ba790Set Approval For...192542122022-08-03 5:53:025 days 10 hrs ago0x4e258cc6180e73a69bb0ce18621c8901aed3b792 IN  0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH0.000060140605 ETH
0x40b02ea6d44999137fb6898398be02e7b7284aff3f3a3c0e9b36482d69369691Set Approval For...192306372022-08-02 22:04:115 days 18 hrs ago0xbffafd3588a4629d5b907807d7d9eee9270051e1 IN  0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH0.000081758584 ETH
0xbd538c40b38562140302fc20477fc2e296130fe046e89af93f0a31f4f39c8b92Merge Towers191240042022-08-01 14:12:127 days 2 hrs ago0x23c0954c4b997c58a1544717de90c8e174ea194c IN  0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH0.000049031932 ETH
0xe2eb7bf522e9d9c7f05bd1a365d115a68838167a80ac647f04ce863883c2ee60Merge Towers191239292022-08-01 14:10:227 days 2 hrs ago0x23c0954c4b997c58a1544717de90c8e174ea194c IN  0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH0.00004793231 ETH
0x86468380a27c6798fce1daea7f3ea43d254e4fb6cb2f1c56a8038073d323b284Merge Towers191238632022-08-01 14:10:227 days 2 hrs ago0x23c0954c4b997c58a1544717de90c8e174ea194c IN  0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH0.000047932206 ETH
0x4a9e9180ef98455499407df1ffd45f1efd41dd01341aafabde54ff4fcacc00daMerge Towers191237432022-08-01 14:09:197 days 2 hrs ago0x23c0954c4b997c58a1544717de90c8e174ea194c IN  0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH0.000048075728 ETH
0x8983cb12d7ef893d881e33a11090b0d5b609d95f007d4daf4398bb4de8bfa872Merge Towers191237192022-08-01 14:09:197 days 2 hrs ago0x23c0954c4b997c58a1544717de90c8e174ea194c IN  0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH0.000047931474 ETH
0xd8480dac9844aa4f1fe352ede067c2d8c8dddd571b0f004e1c9226f9632a77fbMerge Towers191236152022-08-01 14:07:397 days 2 hrs ago0x23c0954c4b997c58a1544717de90c8e174ea194c IN  0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH0.000048078027 ETH
0x1a789eb2e2ce64f6a4510dc1754c72c3be2c2a91ddd1bbbfc2374bc4ed8b9e13Merge Towers191234232022-08-01 14:06:147 days 2 hrs ago0x23c0954c4b997c58a1544717de90c8e174ea194c IN  0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH0.000047932206 ETH
0xed38f77afff7c714efb355cf1cd361119a0abe50080f51b2c1f564c312de6f5fMerge Towers191233782022-08-01 14:05:347 days 2 hrs ago0x23c0954c4b997c58a1544717de90c8e174ea194c IN  0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH0.000047933564 ETH
0x3f028bbc4982ea5856428142b1b4823b3122a4a5596b03e34363e249a1005645Merge Towers191233172022-08-01 14:03:517 days 2 hrs ago0x23c0954c4b997c58a1544717de90c8e174ea194c IN  0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH0.000047932206 ETH
0xdcf6e890c66cf7675b34639e7082d3870468a3e68bbd65b5f8c67739409854eeMerge Towers191232662022-08-01 14:03:517 days 2 hrs ago0x23c0954c4b997c58a1544717de90c8e174ea194c IN  0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH0.00004779067 ETH
0x6dc36f5c689b9ca1d2a5a2383a05b1f1bae5756f7dbb7083dc0a868bd91e0892Merge Towers191232242022-08-01 14:03:517 days 2 hrs ago0x23c0954c4b997c58a1544717de90c8e174ea194c IN  0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH0.000048077818 ETH
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x0f65c899b144c83371b0a7c4266a8b5b18dba1291f1e78f0cd4d0a7480fa4dcd196682262022-08-08 1:31:4015 hrs 12 mins ago 0x09986b4e255b3c548041a30a2ee312fe176731c2 0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH
0x0f65c899b144c83371b0a7c4266a8b5b18dba1291f1e78f0cd4d0a7480fa4dcd196682262022-08-08 1:31:4015 hrs 12 mins ago 0x09986b4e255b3c548041a30a2ee312fe176731c2 0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH
0x13084527d6d47f59aa75203c4ea13bfb1cb3c3daa6be769104f96ee2471ef76f196682032022-08-08 1:30:1615 hrs 13 mins ago 0x09986b4e255b3c548041a30a2ee312fe176731c2 0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH
0x13084527d6d47f59aa75203c4ea13bfb1cb3c3daa6be769104f96ee2471ef76f196682032022-08-08 1:30:1615 hrs 13 mins ago 0x09986b4e255b3c548041a30a2ee312fe176731c2 0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH
0xad1d2ee03ee1a01ee3137727979f438293eeb60e4d3cc8b868719e7c3e195959196564802022-08-07 21:24:4419 hrs 19 mins ago 0xf207a094737751dc3e420e1f71e5d74de4c448b2 0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH
0xad1d2ee03ee1a01ee3137727979f438293eeb60e4d3cc8b868719e7c3e195959196564802022-08-07 21:24:4419 hrs 19 mins ago 0xf207a094737751dc3e420e1f71e5d74de4c448b2 0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH
0xad1d2ee03ee1a01ee3137727979f438293eeb60e4d3cc8b868719e7c3e195959196564802022-08-07 21:24:4419 hrs 19 mins ago 0xf207a094737751dc3e420e1f71e5d74de4c448b2 0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH
0xad1d2ee03ee1a01ee3137727979f438293eeb60e4d3cc8b868719e7c3e195959196564802022-08-07 21:24:4419 hrs 19 mins ago 0xf207a094737751dc3e420e1f71e5d74de4c448b2 0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH
0x4877adb24b5acf3641d3e5c7d3444371bfd866736a89925b573d9138aaf4d5e5196072902022-08-07 8:38:001 day 8 hrs ago 0x09986b4e255b3c548041a30a2ee312fe176731c2 0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH
0x4877adb24b5acf3641d3e5c7d3444371bfd866736a89925b573d9138aaf4d5e5196072902022-08-07 8:38:001 day 8 hrs ago 0x09986b4e255b3c548041a30a2ee312fe176731c2 0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH
0x5e02f089279c46ea8b841be62742e53bbc2ef644402dbae7381d8b5742ea6cd5196072002022-08-07 8:36:421 day 8 hrs ago 0x09986b4e255b3c548041a30a2ee312fe176731c2 0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH
0x5e02f089279c46ea8b841be62742e53bbc2ef644402dbae7381d8b5742ea6cd5196072002022-08-07 8:36:421 day 8 hrs ago 0x09986b4e255b3c548041a30a2ee312fe176731c2 0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH
0xc4899d7dc6b7b9b27a547e58e7c0b55cc50279af239d5511b88d93785f1c61e1196071492022-08-07 8:35:571 day 8 hrs ago 0x09986b4e255b3c548041a30a2ee312fe176731c2 0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH
0xc4899d7dc6b7b9b27a547e58e7c0b55cc50279af239d5511b88d93785f1c61e1196071492022-08-07 8:35:571 day 8 hrs ago 0x09986b4e255b3c548041a30a2ee312fe176731c2 0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH
0x3bf2ff4a42191c2a4482a3ead2f58fc9f2e1a048d7b24ea40ad2f94cca003b18194833132022-08-05 19:30:152 days 21 hrs ago 0x09986b4e255b3c548041a30a2ee312fe176731c2 0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH
0x3bf2ff4a42191c2a4482a3ead2f58fc9f2e1a048d7b24ea40ad2f94cca003b18194833132022-08-05 19:30:152 days 21 hrs ago 0x09986b4e255b3c548041a30a2ee312fe176731c2 0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH
0x536a0daed56a04998a4855b04757e10b24857b471e5a78f1d8f46754f389f6ce193998272022-08-04 21:21:513 days 19 hrs ago 0x09986b4e255b3c548041a30a2ee312fe176731c2 0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH
0x411656b5ad8628200b479038af39b96875f58e9e80feb37c526065cfeb463e73193725892022-08-04 13:07:004 days 3 hrs ago 0x09986b4e255b3c548041a30a2ee312fe176731c2 0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH
0x411656b5ad8628200b479038af39b96875f58e9e80feb37c526065cfeb463e73193725892022-08-04 13:07:004 days 3 hrs ago 0x09986b4e255b3c548041a30a2ee312fe176731c2 0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH
0x00bd50cbf7ee199c17d278a4ce265f1195eeb073d53fb00ea23d0fae6dbf1ed3193233202022-08-03 23:19:454 days 17 hrs ago 0x998ef16ea4111094eb5ee72fc2c6f4e6e8647666 0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH
0x704cceff415119471376f3c8fd0b4a1e3996f4d35a11098f55426901679085a4192542762022-08-03 5:53:545 days 10 hrs ago 0x09986b4e255b3c548041a30a2ee312fe176731c2 0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH
0x704cceff415119471376f3c8fd0b4a1e3996f4d35a11098f55426901679085a4192542762022-08-03 5:53:545 days 10 hrs ago 0x09986b4e255b3c548041a30a2ee312fe176731c2 0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH
0xf41a92f8e8c92b8baa450f7f42352366a3cb9d6d204bac11e1298c7625b21ec3192542392022-08-03 5:53:545 days 10 hrs ago 0x09986b4e255b3c548041a30a2ee312fe176731c2 0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH
0xf41a92f8e8c92b8baa450f7f42352366a3cb9d6d204bac11e1298c7625b21ec3192542392022-08-03 5:53:545 days 10 hrs ago 0x09986b4e255b3c548041a30a2ee312fe176731c2 0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH
0x0cddfcedf9966c9878dd40029dd14c26acce4b3d4bdfa9242f697b47faadb1c4191245202022-08-01 14:18:217 days 2 hrs ago 0xf207a094737751dc3e420e1f71e5d74de4c448b2 0x45d86e0db60c4aee3dfea312d8f4b5ee87e4886a0 ETH
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
CityClashTowers

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 18 : CityClashTowers.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.4;

import './TowersNFT.sol';

contract CityClashTowers is TowersNFT {

    event MergeEvent(uint256 tokenIdToUpgrade, uint256 tokenIdToBurn, address a);

    address cityClashContractAddress;

    //upgrades one token by burning the other one into it.
    function mergeTowers(uint tokenIdToUpgrade, uint tokenIdToBurn) public {
        require(_exists(tokenIdToUpgrade), "Tower Token must exist");
        require(_exists(tokenIdToBurn), "Tower Token must exist");
        require(ownerOf(tokenIdToUpgrade) == msg.sender, "You must own both Tower tokens");
        require(ownerOf(tokenIdToBurn) == msg.sender, "You must own both Tower tokens");

        idToNumStories[tokenIdToUpgrade] = min(idToNumStories[tokenIdToUpgrade] + idToNumStories[tokenIdToBurn], 100);
        burn(tokenIdToBurn);

        emit MergeEvent(tokenIdToUpgrade, tokenIdToBurn, address(this));
    }

    function burn(uint _tokenId) internal {
        idToNumStories[_tokenId] = 0;
        _burn(_tokenId);
    }
    
    function burnByCityClashContract(uint _tokenId, address _ownerAddress) external {
        require(ownerOf(_tokenId) == _ownerAddress, "the address must own the tokenId");
        require(cityClashContractAddress == msg.sender, "Only the City Clash Contract can call this function");
        burn(_tokenId);
    }

    function setCityClashContract(address _contractAddress) external onlyOwner {
        cityClashContractAddress = _contractAddress;
    }

    function getCityClashContract() external view onlyOwner returns (address) {
        return cityClashContractAddress;
    }

    function withdraw() external onlyOwner {
        uint balance = address(this).balance;
        uint share = balance * 30 / 100;
        (bool success1,) = address(0x9FFfd1CA952faD6BE57b99b61a0E75c192F201c1).call{value: share}('');
        (bool success2,) = address(0x2429Bc492d2cdfB7114963aF5C3f4d23922af27e).call{value: share}('');
        (bool success3,) = msg.sender.call{value: balance * 40 / 100}('');
        require(success1 && success2 && success3, "Withdrawal failed");
    }
}

File 2 of 18 : TowersNFT.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.4;

import "hardhat/console.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "./TowerTypes.sol";
import { Base64 } from "../libraries/Base64.sol";

contract TowersNFT is ERC721, Ownable, ReentrancyGuard {
    mapping(uint256 => uint256) public idToNumStories;

    using Counters for Counters.Counter;
    Counters.Counter private _tokenIds;

    uint256 public constant MAX_TOWERS = 3000;
    uint256 private constant MAX_PER_ADDRESS = 3;

    address public magicAddress = address(0);//address(0x539bdE0d7Dbd336b79148AA742883198BBF60342);
    uint256 public minimumMagicAmount = 5000000000000000000;    //in wei
    uint256 public publicSaleStartTimestamp;
    uint256 public mintPrice = 0.0 ether;

    mapping(address => uint256) public mintedCounts;

    constructor() ERC721("City Clash Towers", "City Clash Towers is a collection of 3000 single-floor tower NFTs. Holders can merge two NFTs to create a single tower with the height of the two combined (max 100 floors). To merge, holders select one tower to grow, and one to burn on our site. Tower holders will get an advantage later, in City Clash, by burning their tower in order to increase the value of one of their cities. The value increase will be proportional to the number of floors of the burned tower. TL;DR: You are going to want to grow your tower!") {
        // console.log("Deploying BlahNFT");
    }

    modifier whenPublicSaleActive() {
        require(isPublicSaleOpen(), "Public sale not open");
        _;
    }

    function mintPublicSale(uint256 _count) external payable nonReentrant whenPublicSaleActive returns (uint256, uint256) {
        require(_count > 0 && _count <= MAX_PER_ADDRESS, "Invalid Tower count");
        require(_tokenIds.current() + _count <= MAX_TOWERS, "All Towers have been minted");
        require(_count * mintPrice == msg.value, "Incorrect amount of ether sent");
        if(magicAddress != address(0)) {
            uint256 magicBalance = IERC20(magicAddress).balanceOf(address(msg.sender));
            require(magicBalance >= minimumMagicAmount, "You need 5 magic to mint");
        }

        uint256 userMintedAmount = mintedCounts[msg.sender] + _count;
        require(userMintedAmount <= MAX_PER_ADDRESS, "Max count per address exceeded");

        uint256 firstMintedId = _tokenIds.current() + 1;

        for (uint256 i = 0; i < _count; i++) {
            _tokenIds.increment();
            mint(_tokenIds.current());
        }
        mintedCounts[msg.sender] = userMintedAmount;

        return (firstMintedId, _count);
    }

    function mint(uint256 _tokenId) internal {
        idToNumStories[_tokenId] = 1;
        _safeMint(msg.sender, _tokenId);
    }

    function getRemainingMints(address _addr) public view returns (uint256) {
        return MAX_PER_ADDRESS - mintedCounts[_addr];
    }

    function isPublicSaleOpen() public view returns (bool) {
        return block.timestamp >= publicSaleStartTimestamp && publicSaleStartTimestamp != 0;
    }

    function setPublicSaleTimestamp(uint256 _timestamp) external onlyOwner {
        publicSaleStartTimestamp = _timestamp;
    }

    function setMintPrice(uint256 _price) external onlyOwner {
        mintPrice = _price;
    }

    function tokensMinted() public view returns (uint256) {
        return _tokenIds.current();
    }

    function getTokenIds() public view returns (uint256) {
        return _tokenIds.current();
    }

    function setMagicAddress(address _magicAddress) external onlyOwner {
        magicAddress = _magicAddress;
    }

    function setMinimumMagicAmount(uint256 _minimumAmount) external onlyOwner {
        minimumMagicAmount = _minimumAmount;
    }

    function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) {
        require(_exists(_tokenId), "ERC721Metadata: URI query for nonexistent token");
        uint256 numStories = idToNumStories[_tokenId];
        (, string memory groundColor) = getGroundColor(_tokenId);
        (, string memory treeColor) = getTreeColor(_tokenId);
        (, string memory windowColor) = getWindowColor(_tokenId);
        (, string memory towerColor) = getTowerColor(_tokenId);
        string memory attributes = string(
            abi.encodePacked(
                '{"trait_type": "# of Stories",',
                '"value": ', uintToByteString(numStories, 3),
                '},{"trait_type": "Tower Color",',
                '"value": "', towerColor,
                '"}, {"trait_type": "Tree Side",',
                '"value": "', getTreeSide(_tokenId),
                '"}, '
            )
        );
        attributes = string(
            abi.encodePacked(
                attributes,
                '{"trait_type": "Cloud Side",',
                '"value": "', getCloudSide(_tokenId),
                '"}, {"trait_type": "Tree Color",',
                '"value": "', treeColor,
                '"}, {"trait_type": "Window Color",',
                '"value": "', windowColor,
                '"}, {"trait_type": "Ground Color",',
                '"value": "', groundColor,
                '"}'
            )
        );

        string memory imageString = getImage(numStories, _tokenId);
        
        string memory json = Base64.encode(
            bytes(
                string(
                    abi.encodePacked(
                        '{',
                            '"name": "Tower #', uintToByteString(_tokenId, 4),
                            '", "tokenId": ', uintToByteString(_tokenId, 4),
                            ', "image": "data:image/svg+xml;base64,',  Base64.encode(bytes(imageString)),
                            '", "description": "Build your towers to the sky!",',
                            '"attributes": [',
                                attributes,
                            ']',
                        '}'
                    )
                )
            )
        );

        string memory finalTokenUri = string(abi.encodePacked("data:application/json;base64,", json));
        console.log("\n--------------------");
        console.log(finalTokenUri);
        console.log("--------------------\n");
        return finalTokenUri;
    }

    function getImage(uint _numStories, uint _tokenId) private view returns (string memory) {
        TowerTypes.TowerParams memory tp;
        tp.roofHeight = 25;
        tp.numWindows = 2;
        tp.isAntennasIncluded = false;
        if(_numStories > 50) {
            tp.numWindows = 8;
            tp.roofHeight = 45;
        } else if(_numStories > 25) {
            tp.numWindows = 7;
            tp.roofHeight = 75;
            tp.isAntennasIncluded = true;
        } else if(_numStories > 10) {
            tp.numWindows = 6;
            tp.roofHeight = 95;
            tp.isAntennasIncluded = true;
        } else if(_numStories > 8) {
            tp.numWindows = 5;
            tp.roofHeight = 85;
            tp.isAntennasIncluded = true;
        } else if(_numStories > 6) {
            tp.numWindows = 4;
            tp.roofHeight = 65;
        } else if(_numStories > 3) {
            tp.numWindows = 3;
            tp.roofHeight = 45;
        }

        tp.maxHeight = 14 * 110 + 100;
        tp.heightInPixels = min(_numStories * 110 + 100, tp.maxHeight);
        
        tp.whiteBackgroundHeight = tp.heightInPixels - 100;
        tp.windowLength = 50;
        if(tp.heightInPixels == tp.maxHeight) {
            uint amountPerWindow = (tp.whiteBackgroundHeight) / _numStories;
            tp.windowLength = amountPerWindow * 10 / 23;
            console.log(tp.windowLength);
        }

        uint stripLength = (18 * tp.windowLength / 10) - tp.windowLength;
        tp.fullWindowWidth = (stripLength * tp.numWindows) + (tp.windowLength * tp.numWindows) - stripLength;
        tp.towerWidth = tp.fullWindowWidth + (tp.windowLength * (14 / uint(10)));

        tp.buildingStartingX = 1000 - uint(tp.towerWidth / 2);
        tp.windowStartingX = ((tp.towerWidth - tp.fullWindowWidth) / 2) + tp.buildingStartingX;
        
        (tp.colorForToken,) = getTowerColor(_tokenId);
        tp.windows = getWindows(_numStories, tp);
        
        tp.antennas = '';
        if(tp.isAntennasIncluded) {
            tp.antennas = string(abi.encodePacked(getAntennaOne(tp), getAntennaTwo(tp)));
        }
        
        return string(
            abi.encodePacked(
                getSvg1(tp, _tokenId),
                getSvg2(tp),
                getSvg3(tp, _tokenId),
                getSvg4(tp, _numStories),
                getSvg5(tp, _numStories),
                getSvg6(tp, _tokenId),
                getSvg7(tp, _tokenId),
                getSvg8(tp, _tokenId),
                getSvg9(tp, _tokenId)
            )
        );
    }

    function getWindows(uint _numStories, TowerTypes.TowerParams memory _tp) private pure returns (string  memory str) {
        string memory windows = "";
       
        //for vertical
        for(uint k = 0; k < _numStories; k++) {
            uint height = _tp.whiteBackgroundHeight / _numStories - _tp.windowLength;// + 1;
            uint y = 2000 - _tp.heightInPixels + _tp.windowLength + ((_tp.windowLength + height) * k);
            windows = string(
                abi.encodePacked(
                    windows,
                    '<rect x="', uintToByteString(_tp.windowStartingX - 1, 4),
                    '" y="', uintToByteString(y, 4),
                    '" width="', uintToByteString(_tp.fullWindowWidth + 2, 4),
                    '" height="', uintToByteString(height, 4),
                    '" fill="', _tp.colorForToken,
                    '"/>'
                )
            );
        }

        //for horizontal
        uint windowStartingY = 2000 - _tp.heightInPixels - 1;
        for(uint i = 0; i < _tp.numWindows - 1; i++) {
            uint stripLength = (18 * _tp.windowLength / 10) - _tp.windowLength;
            uint x = _tp.windowStartingX + _tp.windowLength * (i + 1) + stripLength * i;
            windows = string(
                abi.encodePacked(
                    windows,
                    '<rect x="', uintToByteString(x, 4),
                    '" y="', uintToByteString(windowStartingY, 4),
                    '" width="', uintToByteString(stripLength, 4),
                    '" height="', uintToByteString(_tp.whiteBackgroundHeight + 2, 4),
                    '" fill="', _tp.colorForToken,
                    '"/>'
                )
            );
        }
        return windows;
    }

    function getAntennaOne(TowerTypes.TowerParams memory _tp) private pure returns (string memory str) {
        uint heightOne = _tp.windowLength * 5;
        return string(
            abi.encodePacked('<rect x="', uintToByteString(_tp.buildingStartingX + _tp.fullWindowWidth - 10, 4),
                '" y="', uintToByteString(2000 + (_tp.fullWindowWidth / 15) - _tp.heightInPixels - heightOne - 20 - _tp.roofHeight, 4),
                '" width="', uintToByteString(_tp.windowLength / 4, 4),
                '" height="', uintToByteString(heightOne, 4),
                '" fill="', _tp.colorForToken,
                '"/>'
            )
        );
    }

    function getAntennaTwo(TowerTypes.TowerParams memory _tp) private pure returns (string memory str) {
        uint heightTwo = _tp.windowLength * 3;
        return string(
            abi.encodePacked(
                '<rect x="', uintToByteString(_tp.buildingStartingX + _tp.fullWindowWidth + _tp.windowLength - 18,  4),
                '" y="', uintToByteString(2000 + (_tp.fullWindowWidth / 20) - _tp.heightInPixels - heightTwo - 20 - _tp.roofHeight, 4),
                '" width="', uintToByteString(_tp.windowLength / 4, 4),
                '" height="', uintToByteString(heightTwo, 4),
                '" fill="', _tp.colorForToken,
                '"/>'
            )
        );
    }

    function getSvg1(TowerTypes.TowerParams memory _tp, uint _tokenId) private pure returns (string memory str) {
        (string memory groundColor,) = getGroundColor(_tokenId);
        return string(
            abi.encodePacked(
                '<svg width="2000" height="2000" viewBox="0 0 2000 2000" fill="none" xmlns="http://www.w3.org/2000/svg">',
                    '<rect width="2000" height="2000" fill="#D0F9FC"/>',
                    '<rect y="1925" width="2000" height="2000" fill="',
                    groundColor,
                    '"/>',
                    '<rect x="', uintToByteString(_tp.buildingStartingX, 4)
            )
        );
    }

    function getSvg2(TowerTypes.TowerParams memory _tp) private pure returns (string memory str) {
        return string(
            abi.encodePacked(
                    '" y="', uintToByteString(2000 - _tp.heightInPixels - 50, 4),
                    '" width="', uintToByteString(_tp.towerWidth, 4),
                    '" height="',uintToByteString( _tp.heightInPixels, 4),
                    '" fill="', _tp.colorForToken,
                    '"/>'
            )
        );
    }

    function getSvg3(TowerTypes.TowerParams memory _tp, uint _tokenId) private pure returns (string memory str) {
        (string memory windowColor,) = getWindowColor(_tokenId);
        return string(
            abi.encodePacked(
                    '<rect x="', uintToByteString(_tp.windowStartingX, 4),
                    '" y="', uintToByteString(2000 - _tp.heightInPixels, 4),
                    '" width="', uintToByteString(_tp.fullWindowWidth, 4),
                    '" height="', uintToByteString(_tp.whiteBackgroundHeight - 1, 4),
                    '" fill="', windowColor,
                    '"/>'
            )
        );          
    }

    function getSvg4(TowerTypes.TowerParams memory _tp, uint _numStories) private pure returns (string memory str) {
        uint height = _tp.whiteBackgroundHeight / _numStories - _tp.windowLength;
        uint y = 2000 - _tp.heightInPixels + ((_tp.windowLength + height) * _numStories - 1);
        uint rectHeight = 2000 - _tp.heightInPixels + _tp.whiteBackgroundHeight + 1 - y;
        return string(
            abi.encodePacked(
                    '<rect x="', uintToByteString(_tp.windowStartingX - 2, 4),
                    '" y="', uintToByteString(y - 1, 4),
                    '" width="', uintToByteString(_tp.fullWindowWidth + 4, 4),
                    '" height="', uintToByteString(rectHeight + 2, 4),
                    '" fill="', _tp.colorForToken,
                    '"/>'
            )
        );          
    }

    function getSvg5(TowerTypes.TowerParams memory _tp, uint _numStories) private pure returns (string memory str) {
        uint heightLen = 4;
        if(_numStories > 7) {
            heightLen = 3;
        }
        return string(
            abi.encodePacked(
                    '<path d="M', uintToByteString(_tp.buildingStartingX + _tp.towerWidth, 4),
                    ' ', uintToByteString(2000 - _tp.heightInPixels - _tp.roofHeight - 50, heightLen),
                    'L', uintToByteString(_tp.buildingStartingX, heightLen),
                    ' ', uintToByteString(2000 - _tp.heightInPixels + 1 - 50, heightLen)    //needs to be 4 in certain circ
            )
        );
    }

    function getSvg6(TowerTypes.TowerParams memory _tp, uint _tokenId) private pure returns (string memory str) {
        string memory treeSide = getTreeSide(_tokenId);
        uint x = _tp.buildingStartingX - (_tp.windowLength * 6 + _tp.windowLength / uint(4));
        if(keccak256(abi.encodePacked(treeSide)) == keccak256(abi.encodePacked("Right"))) {
            x = _tp.buildingStartingX + _tp.towerWidth + (_tp.windowLength * 6 + _tp.windowLength / uint(4));
        }
        return string(
            abi.encodePacked(
                '.5H', uintToByteString(_tp.buildingStartingX + _tp.towerWidth, 4),
                'V353Z" fill="', _tp.colorForToken,
                '"/>'
                '<rect x="', uintToByteString(x, 4),
                '" y="', uintToByteString(2000 - 3 * _tp.windowLength - 50, 4),
                '" width="', uintToByteString(_tp.windowLength,  4) //was times uint(9) / uint(10)
            )
        );
    }

    function getSvg7(TowerTypes.TowerParams memory _tp, uint _tokenId) private pure returns (string memory str) {
        string memory treeSide = getTreeSide(_tokenId);
        uint x = _tp.buildingStartingX - (_tp.windowLength * 6) + (uint(13) / uint(10) * _tp.windowLength / 3);
        if(keccak256(abi.encodePacked(treeSide)) == keccak256(abi.encodePacked("Right"))) {
            x = _tp.buildingStartingX + _tp.towerWidth + (_tp.windowLength * 7) - (_tp.windowLength / 7);
        }
        (string memory treeColor,) = getTreeColor(_tokenId);
        return string(
            abi.encodePacked(
                '" height="', uintToByteString(3 * _tp.windowLength, 4),
                '" fill="#460509" fill-opacity="0.92"/>',
                '<circle cx="', uintToByteString(x, 4),
                '" cy="', uintToByteString(2000 - (2 * _tp.windowLength + uint(25) / uint(10) * _tp.windowLength) - 50, 4),
                '" r="', uintToByteString(2 * _tp.windowLength, 4),
                '" fill="', treeColor,
                '"/>'
            )
        );
    }
    
    function getSvg8(TowerTypes.TowerParams memory _tp, uint _tokenId) private pure returns (string memory str) {
        uint startingX = 350;
        string memory cloudSide = getCloudSide(_tokenId);
        if(keccak256(abi.encodePacked(cloudSide)) == keccak256(abi.encodePacked("Right"))) {
            startingX = 1450;
        }
        return string(
            abi.encodePacked(
                 '<ellipse cx="', uintToByteString(startingX + 16 / uint(10) * _tp.windowLength * 2 - 10, 4),
                '" cy="150" rx="', uintToByteString(3 * _tp.windowLength, 4),
                '" ry="', uintToByteString(2 * _tp.windowLength, 4),
                '" fill="#FDFAFA"/>',
                '<ellipse cx="', uintToByteString(startingX, 4),
                '" cy="', uintToByteString(157 + 13 / uint(10) * _tp.windowLength * 2 - 14 / uint(10) * _tp.windowLength, 4),
                '" rx="', uintToByteString(3 * _tp.windowLength, 4),
                '" ry="', uintToByteString(2 * _tp.windowLength, 4),
                '" fill="#FDFAFA"/>'  
            )
        );
    }

    function getSvg9(TowerTypes.TowerParams memory _tp, uint _tokenId) private pure returns (string memory str) {
        uint startingX = 350;
        string memory cloudSide = getCloudSide(_tokenId);
        if(keccak256(abi.encodePacked(cloudSide)) == keccak256(abi.encodePacked("Right"))) {
            startingX = 1450;
        }
        return string(
            abi.encodePacked(
                '<ellipse cx="', uintToByteString(startingX + 2 * _tp.windowLength * 2 - 10, 4),
                '" cy="', uintToByteString(157 + 13 / uint(10) * _tp.windowLength * 2 - 14 / uint(10) * _tp.windowLength, 4),
                '" rx="', uintToByteString(4 * _tp.windowLength, 4),
                '" ry="', uintToByteString(2 * _tp.windowLength,  4),
                '" fill="#FDFAFA"/>',
                _tp.antennas,
                _tp.windows,
                '</svg>'
            )
        );
    }

    function getTowerColor(uint _tokenId) private pure returns (string memory str, string memory name) {
        uint num = uint(keccak256(abi.encodePacked(_tokenId)));
        uint colorNum = uint8(num % 20);  //mod by the number of colors
        if(colorNum == 0) {
            return ("#FE8670", "Lite Red");
        } else if(colorNum == 1) {
            return ("#A0DAA2", "Green Trance");
        } else if(colorNum == 2) {
            return ("#2C8CC7", "Steel Blue");
        } else if(colorNum == 3) {
            return ("#70161E", "Arterial Blood Red");
        } else if(colorNum == 4) {
            return ("#E7A0D4", "Spring Blossoms"); 
        } else if(colorNum == 5) {
            return ("#4B4237", "Brown Bear");
        } else if(colorNum == 6) {
            return ("Goldenrod", "#D5A021"); 
        } else if(colorNum == 7) {
            return ("#662E9B", "Rebecca Purple"); 
        } else if(colorNum == 8) {
            return ("#1D201F", "Jet Set"); 
        } else if(colorNum == 9) {
            return ("#DC2626", "Whero Red");
        } else if(colorNum == 10) {
            return ("#A663CC", "Rich Lavender");
        } else if(colorNum == 11) {
            return ("#301A4B", "Russian Violet");
        } else if(colorNum == 12) {
            return ("#25B4B4", "Caicos Turquoise");
        } else if(colorNum == 13) {
            return ("#672A4E", "Ebizome Purple");
        } else if(colorNum == 14) {
            return ("#26532B", "Pine");
        } else if(colorNum == 15) {
            return ("#D2A9EA", "Bright Ube"); 
        } else if(colorNum == 16) {
            return ("#8F250C", "Uluru Red");
        } else if(colorNum == 17) {
            return ("#820263", "Xereus Purple");
        } else if(colorNum == 18) {
            return ("#F6D241", "Basket of Gold"); 
        } else if(colorNum == 19) {
            return ("#F97316", "Orange");
        }
    }

    function getWindowColor(uint _tokenId) private pure returns (string memory str, string memory name) {
        uint num = uint(keccak256(abi.encodePacked(_tokenId)));
        uint colorNum = uint8(num % 4);  //mod by the number of colors
        if(colorNum == 0) {
            return ("#fff", "White");
        } else if(colorNum == 1) {
            return ("#E5E5E5", "Gray");
        } else if(colorNum == 2) {
            return ("#fff", "White");
        } else if(colorNum == 3) {
            return ("#DCF6FE", "Blue");
        }
    }

    function getGroundColor(uint _tokenId) private pure returns (string memory str, string memory name) {
        uint num = uint(keccak256(abi.encodePacked(_tokenId)));
        uint colorNum = uint8(num % 6);  //mod by the number of colors
        if(colorNum == 0) {
            return ("#B7B7A4", "Clay");
        } else if(colorNum == 1) {
            return ("#BCB8A1", "Sand");
        } else if(colorNum == 2) {
            return ("#E5E5E5", "Snow");
        } else if(colorNum == 3) {
            return ("#84A59D", "Grass");
        } else if(colorNum == 4) {
            return ("#8D99AE", "Cement");
        } else if(colorNum == 5) {
            return ("#577590", "Asphalt");
        }
    }

     function getTreeColor(uint _tokenId) private pure returns (string memory str, string memory name) {
        uint num = uint(keccak256(abi.encodePacked(_tokenId)));
        uint colorNum = uint8(num % 3);  //mod by the number of colors
        if(colorNum == 0) {
            return ("#267B24", "Deciduous");
        } else if(colorNum == 1) {
            return ("#1D4A3F", "Evergreen");
        } else if(colorNum == 2) {
            return ("#81B29A", "Palm");
        }
    }

    function getTreeSide(uint _tokenId) private pure returns (string memory side) {
        uint num = uint(keccak256(abi.encodePacked(_tokenId)));
        uint treeSide = uint8(num % 3);
        if(treeSide == 0) {
            return "Right";
        } else {
            return "Left";
        }
    }

    function getCloudSide(uint _tokenId) private pure returns (string memory side) {
        uint num = uint(keccak256(abi.encodePacked(_tokenId)));
        uint cloudSide = uint8(num % 2);
        if(cloudSide == 0) {
            return "Right";
        } else {
            return "Left";
        }
    }

    function min(uint _num1,  uint _num2) internal pure returns (uint minNum) {
        if(_num1 < _num2) {
            return _num1;
        } else {
            return _num2;
        }
    }

    /*
    Convert uint to byte string, padding number string with spaces at end.
    Useful to ensure result's length is a multiple of 3, and therefore base64 encoding won't
    result in '=' padding chars.
    */
    function uintToByteString(uint _a, uint _fixedLen) internal pure returns (bytes memory _uintAsString) {
        uint j = _a;
        uint len;
        while (j != 0) {
            len++;
            j /= 10;
        }
        bytes memory bstr = new bytes(_fixedLen);
        j = _fixedLen;
        if (_a == 0) {
            bstr[0] = "0";
            len = 1;
        }
        while (j > len) {
            j = j - 1;
            bstr[j] = bytes1(' ');
        }
        uint k = len;
        while (_a != 0) {
            k = k - 1;
            uint8 temp = (48 + uint8(_a - _a / 10 * 10));
            bytes1 b1 = bytes1(temp);
            bstr[k] = b1;
            _a /= 10;
        }
        return bstr;
    }
}

File 3 of 18 : console.sol
// SPDX-License-Identifier: MIT
pragma solidity >= 0.4.22 <0.9.0;

library console {
	address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67);

	function _sendLogPayload(bytes memory payload) private view {
		uint256 payloadLength = payload.length;
		address consoleAddress = CONSOLE_ADDRESS;
		assembly {
			let payloadStart := add(payload, 32)
			let r := staticcall(gas(), consoleAddress, payloadStart, payloadLength, 0, 0)
		}
	}

	function log() internal view {
		_sendLogPayload(abi.encodeWithSignature("log()"));
	}

	function logInt(int p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(int)", p0));
	}

	function logUint(uint p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint)", p0));
	}

	function logString(string memory p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string)", p0));
	}

	function logBool(bool p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool)", p0));
	}

	function logAddress(address p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address)", p0));
	}

	function logBytes(bytes memory p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes)", p0));
	}

	function logBytes1(bytes1 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes1)", p0));
	}

	function logBytes2(bytes2 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes2)", p0));
	}

	function logBytes3(bytes3 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes3)", p0));
	}

	function logBytes4(bytes4 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes4)", p0));
	}

	function logBytes5(bytes5 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes5)", p0));
	}

	function logBytes6(bytes6 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes6)", p0));
	}

	function logBytes7(bytes7 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes7)", p0));
	}

	function logBytes8(bytes8 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes8)", p0));
	}

	function logBytes9(bytes9 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes9)", p0));
	}

	function logBytes10(bytes10 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes10)", p0));
	}

	function logBytes11(bytes11 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes11)", p0));
	}

	function logBytes12(bytes12 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes12)", p0));
	}

	function logBytes13(bytes13 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes13)", p0));
	}

	function logBytes14(bytes14 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes14)", p0));
	}

	function logBytes15(bytes15 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes15)", p0));
	}

	function logBytes16(bytes16 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes16)", p0));
	}

	function logBytes17(bytes17 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes17)", p0));
	}

	function logBytes18(bytes18 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes18)", p0));
	}

	function logBytes19(bytes19 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes19)", p0));
	}

	function logBytes20(bytes20 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes20)", p0));
	}

	function logBytes21(bytes21 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes21)", p0));
	}

	function logBytes22(bytes22 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes22)", p0));
	}

	function logBytes23(bytes23 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes23)", p0));
	}

	function logBytes24(bytes24 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes24)", p0));
	}

	function logBytes25(bytes25 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes25)", p0));
	}

	function logBytes26(bytes26 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes26)", p0));
	}

	function logBytes27(bytes27 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes27)", p0));
	}

	function logBytes28(bytes28 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes28)", p0));
	}

	function logBytes29(bytes29 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes29)", p0));
	}

	function logBytes30(bytes30 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes30)", p0));
	}

	function logBytes31(bytes31 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes31)", p0));
	}

	function logBytes32(bytes32 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes32)", p0));
	}

	function log(uint p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint)", p0));
	}

	function log(string memory p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string)", p0));
	}

	function log(bool p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool)", p0));
	}

	function log(address p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address)", p0));
	}

	function log(uint p0, uint p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint)", p0, p1));
	}

	function log(uint p0, string memory p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string)", p0, p1));
	}

	function log(uint p0, bool p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool)", p0, p1));
	}

	function log(uint p0, address p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address)", p0, p1));
	}

	function log(string memory p0, uint p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint)", p0, p1));
	}

	function log(string memory p0, string memory p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string)", p0, p1));
	}

	function log(string memory p0, bool p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool)", p0, p1));
	}

	function log(string memory p0, address p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address)", p0, p1));
	}

	function log(bool p0, uint p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint)", p0, p1));
	}

	function log(bool p0, string memory p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string)", p0, p1));
	}

	function log(bool p0, bool p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool)", p0, p1));
	}

	function log(bool p0, address p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address)", p0, p1));
	}

	function log(address p0, uint p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint)", p0, p1));
	}

	function log(address p0, string memory p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string)", p0, p1));
	}

	function log(address p0, bool p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool)", p0, p1));
	}

	function log(address p0, address p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address)", p0, p1));
	}

	function log(uint p0, uint p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint)", p0, p1, p2));
	}

	function log(uint p0, uint p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string)", p0, p1, p2));
	}

	function log(uint p0, uint p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool)", p0, p1, p2));
	}

	function log(uint p0, uint p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address)", p0, p1, p2));
	}

	function log(uint p0, string memory p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint)", p0, p1, p2));
	}

	function log(uint p0, string memory p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,string)", p0, p1, p2));
	}

	function log(uint p0, string memory p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool)", p0, p1, p2));
	}

	function log(uint p0, string memory p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,address)", p0, p1, p2));
	}

	function log(uint p0, bool p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint)", p0, p1, p2));
	}

	function log(uint p0, bool p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string)", p0, p1, p2));
	}

	function log(uint p0, bool p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool)", p0, p1, p2));
	}

	function log(uint p0, bool p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address)", p0, p1, p2));
	}

	function log(uint p0, address p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint)", p0, p1, p2));
	}

	function log(uint p0, address p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,string)", p0, p1, p2));
	}

	function log(uint p0, address p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool)", p0, p1, p2));
	}

	function log(uint p0, address p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,address)", p0, p1, p2));
	}

	function log(string memory p0, uint p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint)", p0, p1, p2));
	}

	function log(string memory p0, uint p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,string)", p0, p1, p2));
	}

	function log(string memory p0, uint p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool)", p0, p1, p2));
	}

	function log(string memory p0, uint p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,address)", p0, p1, p2));
	}

	function log(string memory p0, string memory p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint)", p0, p1, p2));
	}

	function log(string memory p0, string memory p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string)", p0, p1, p2));
	}

	function log(string memory p0, string memory p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool)", p0, p1, p2));
	}

	function log(string memory p0, string memory p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address)", p0, p1, p2));
	}

	function log(string memory p0, bool p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint)", p0, p1, p2));
	}

	function log(string memory p0, bool p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string)", p0, p1, p2));
	}

	function log(string memory p0, bool p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool)", p0, p1, p2));
	}

	function log(string memory p0, bool p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address)", p0, p1, p2));
	}

	function log(string memory p0, address p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint)", p0, p1, p2));
	}

	function log(string memory p0, address p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string)", p0, p1, p2));
	}

	function log(string memory p0, address p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool)", p0, p1, p2));
	}

	function log(string memory p0, address p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address)", p0, p1, p2));
	}

	function log(bool p0, uint p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint)", p0, p1, p2));
	}

	function log(bool p0, uint p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string)", p0, p1, p2));
	}

	function log(bool p0, uint p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool)", p0, p1, p2));
	}

	function log(bool p0, uint p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address)", p0, p1, p2));
	}

	function log(bool p0, string memory p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint)", p0, p1, p2));
	}

	function log(bool p0, string memory p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string)", p0, p1, p2));
	}

	function log(bool p0, string memory p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool)", p0, p1, p2));
	}

	function log(bool p0, string memory p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address)", p0, p1, p2));
	}

	function log(bool p0, bool p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint)", p0, p1, p2));
	}

	function log(bool p0, bool p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string)", p0, p1, p2));
	}

	function log(bool p0, bool p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool)", p0, p1, p2));
	}

	function log(bool p0, bool p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address)", p0, p1, p2));
	}

	function log(bool p0, address p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint)", p0, p1, p2));
	}

	function log(bool p0, address p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string)", p0, p1, p2));
	}

	function log(bool p0, address p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool)", p0, p1, p2));
	}

	function log(bool p0, address p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address)", p0, p1, p2));
	}

	function log(address p0, uint p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint)", p0, p1, p2));
	}

	function log(address p0, uint p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,string)", p0, p1, p2));
	}

	function log(address p0, uint p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool)", p0, p1, p2));
	}

	function log(address p0, uint p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,address)", p0, p1, p2));
	}

	function log(address p0, string memory p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint)", p0, p1, p2));
	}

	function log(address p0, string memory p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string)", p0, p1, p2));
	}

	function log(address p0, string memory p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool)", p0, p1, p2));
	}

	function log(address p0, string memory p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address)", p0, p1, p2));
	}

	function log(address p0, bool p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint)", p0, p1, p2));
	}

	function log(address p0, bool p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string)", p0, p1, p2));
	}

	function log(address p0, bool p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool)", p0, p1, p2));
	}

	function log(address p0, bool p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address)", p0, p1, p2));
	}

	function log(address p0, address p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint)", p0, p1, p2));
	}

	function log(address p0, address p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string)", p0, p1, p2));
	}

	function log(address p0, address p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool)", p0, p1, p2));
	}

	function log(address p0, address p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address)", p0, p1, p2));
	}

	function log(uint p0, uint p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,string)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint,address)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,string)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string,address)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,string)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool,address)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,string)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, uint p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address,address)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,string)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint,address)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,string,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,string,string)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,string,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,string,address)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,string)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool,address)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,address,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,address,string)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,address,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, string memory p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,address,address)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,string)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,uint,address)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,string)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,string,address)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,string)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,bool,address)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,string)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, bool p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool,address,address)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,string)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,uint,address)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,string,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,string,string)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,string,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,string,address)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,string)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,bool,address)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,address,uint)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,address,string)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,address,bool)", p0, p1, p2, p3));
	}

	function log(uint p0, address p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address,address,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,uint,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,string,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,string,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,string,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,string,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,bool,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,address,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,address,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,address,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, uint p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint,address,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,uint,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,string,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,bool,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, string memory p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string,address,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,uint,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,string,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,bool,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, bool p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool,address,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,uint,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,string,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,bool,address)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address,uint)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address,string)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address,bool)", p0, p1, p2, p3));
	}

	function log(string memory p0, address p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address,address,address)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,string)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,uint,address)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,string)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,string,address)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,string)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,bool,address)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,string)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, uint p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint,address,address)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,string)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,uint,address)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,string)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,string,address)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,string)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,bool,address)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,string)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, string memory p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string,address,address)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,string)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,uint,address)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,string)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,string,address)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,string)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,bool,address)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,string)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, bool p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool,address,address)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,string)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,uint,address)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,string)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,string,address)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,string)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,bool,address)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,uint)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,string)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,bool)", p0, p1, p2, p3));
	}

	function log(bool p0, address p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address,address,address)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,uint)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,string)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,bool)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,uint,address)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,string,uint)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,string,string)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,string,bool)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,string,address)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,uint)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,string)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,bool)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,bool,address)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,address,uint)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,address,string)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,address,bool)", p0, p1, p2, p3));
	}

	function log(address p0, uint p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint,address,address)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint,uint)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint,string)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint,bool)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,uint,address)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string,uint)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string,string)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string,bool)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,string,address)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,uint)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,string)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,bool)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,bool,address)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address,uint)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address,string)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address,bool)", p0, p1, p2, p3));
	}

	function log(address p0, string memory p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string,address,address)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,uint)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,string)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,bool)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,uint,address)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,uint)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,string)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,bool)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,string,address)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,uint)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,string)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,bool)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,bool,address)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,uint)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,string)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,bool)", p0, p1, p2, p3));
	}

	function log(address p0, bool p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool,address,address)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, uint p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint,uint)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, uint p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint,string)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, uint p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint,bool)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, uint p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,uint,address)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, string memory p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string,uint)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, string memory p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string,string)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, string memory p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string,bool)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, string memory p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,string,address)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, bool p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,uint)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, bool p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,string)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, bool p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,bool)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, bool p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,bool,address)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, address p2, uint p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address,uint)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, address p2, string memory p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address,string)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, address p2, bool p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address,bool)", p0, p1, p2, p3));
	}

	function log(address p0, address p1, address p2, address p3) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address,address,address)", p0, p1, p2, p3));
	}

}

File 4 of 18 : ERC721.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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);
    }

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

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

File 5 of 18 : IERC20.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 8 of 18 : Counters.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 18 : TowerTypes.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.4;

interface TowerTypes {
    struct TowerParams {
        bool isAntennasIncluded;
        uint maxHeight;
        uint heightInPixels;
        uint whiteBackgroundHeight;
        uint windowLength;
        uint fullWindowWidth;
        uint towerWidth;
        uint buildingStartingX;
        uint windowStartingX;
        uint8 roofHeight;
        uint8 numWindows;
        string colorForToken;
        string antennas;
        string windows;
    }
}

File 10 of 18 : Base64.sol
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.4;

/// [MIT License]
/// @title Base64
/// @notice Provides a function for encoding some bytes in base64
/// @author Brecht Devos <[email protected]>
library Base64 {
    bytes internal constant TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    /// @notice Encodes some bytes to the base64 representation
    function encode(bytes memory data) internal pure returns (string memory) {
        uint256 len = data.length;
        if (len == 0) return "";

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

        // Add some extra buffer at the end
        bytes memory result = new bytes(encodedLen + 32);

        bytes memory table = TABLE;

        assembly {
            let tablePtr := add(table, 1)
            let resultPtr := add(result, 32)

            for {
                let i := 0
            } lt(i, len) {

            } {
                i := add(i, 3)
                let input := and(mload(add(data, i)), 0xffffff)

                let out := mload(add(tablePtr, and(shr(18, input), 0x3F)))
                out := shl(8, out)
                out := add(out, and(mload(add(tablePtr, and(shr(12, input), 0x3F))), 0xFF))
                out := shl(8, out)
                out := add(out, and(mload(add(tablePtr, and(shr(6, input), 0x3F))), 0xFF))
                out := shl(8, out)
                out := add(out, and(mload(add(tablePtr, and(input, 0x3F))), 0xFF))
                out := shl(224, out)

                mstore(resultPtr, out)

                resultPtr := add(resultPtr, 4)
            }

            switch mod(len, 3)
            case 1 {
                mstore(sub(resultPtr, 2), shl(240, 0x3d3d))
            }
            case 2 {
                mstore(sub(resultPtr, 1), shl(248, 0x3d))
            }

            mstore(result, encodedLen)
        }

        return string(result);
    }
}

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, 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 18 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

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

File 13 of 18 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 14 of 18 : Address.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 15 of 18 : Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 16 of 18 : Strings.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 17 of 18 : ERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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 18 of 18 : IERC165.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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);
}

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

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenIdToUpgrade","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"tokenIdToBurn","type":"uint256"},{"indexed":false,"internalType":"address","name":"a","type":"address"}],"name":"MergeEvent","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":[],"name":"MAX_TOWERS","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"address","name":"_ownerAddress","type":"address"}],"name":"burnByCityClashContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCityClashContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_addr","type":"address"}],"name":"getRemainingMints","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getTokenIds","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"idToNumStories","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"isPublicSaleOpen","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"magicAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenIdToUpgrade","type":"uint256"},{"internalType":"uint256","name":"tokenIdToBurn","type":"uint256"}],"name":"mergeTowers","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"minimumMagicAmount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"mintPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"mintPublicSale","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"mintedCounts","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","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":"publicSaleStartTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_contractAddress","type":"address"}],"name":"setCityClashContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_magicAddress","type":"address"}],"name":"setMagicAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_minimumAmount","type":"uint256"}],"name":"setMinimumMagicAmount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_price","type":"uint256"}],"name":"setMintPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_timestamp","type":"uint256"}],"name":"setPublicSaleTimestamp","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"tokensMinted","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"nonpayable","type":"function"}]

6080604052600a80546001600160a01b0319169055674563918244f40000600b556000600d553480156200003257600080fd5b50604051806040016040528060118152602001704369747920436c61736820546f7765727360781b81525060405180610240016040528061020381526020016200553f610203913981516200008f90600090602085019062000123565b508051620000a590600190602084019062000123565b505050620000c2620000bc620000cd60201b60201c565b620000d1565b600160075562000206565b3390565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b8280546200013190620001c9565b90600052602060002090601f016020900481019282620001555760008555620001a0565b82601f106200017057805160ff1916838001178555620001a0565b82800160010185558215620001a0579182015b82811115620001a057825182559160200191906001019062000183565b50620001ae929150620001b2565b5090565b5b80821115620001ae5760008155600101620001b3565b600181811c90821680620001de57607f821691505b602082108114156200020057634e487b7160e01b600052602260045260246000fd5b50919050565b61532980620002166000396000f3fe60806040526004361061021a5760003560e01c80636817c76c11610123578063b88d4fde116100ab578063e985e9c51161006f578063e985e9c5146105f1578063f073995814610611578063f2fde38b1461063e578063f4a0a5281461065e578063f69b02ba1461067e57600080fd5b8063b88d4fde14610565578063c17846dc14610585578063c87b56dd146105a5578063d7822c99146105c5578063e7b4489a146105db57600080fd5b80637fa803c3116100f25780637fa803c3146104dd5780638da5cb5b146104fd5780639449c7cf1461051b57806395d89b4114610530578063a22cb4651461054557600080fd5b80636817c76c146104925780636de9f32b1461047d57806370a08231146104a8578063715018a6146104c857600080fd5b80632fc6e7df116101a6578063511a960511610175578063511a9605146103f55780635a5e5d5814610415578063611f412e1461043d5780636352211e1461045d57806367f718a91461047d57600080fd5b80632fc6e7df1461036557806337e4f2f6146103855780633ccfd60b146103c057806342842e0e146103d557600080fd5b806312d93fe2116101ed57806312d93fe2146102d05780631591b66c146102f05780631a6949e31461031057806323b872dd146103255780632ef2ebc91461034557600080fd5b806301ffc9a71461021f57806306fdde0314610254578063081812fc14610276578063095ea7b3146102ae575b600080fd5b34801561022b57600080fd5b5061023f61023a36600461418d565b610694565b60405190151581526020015b60405180910390f35b34801561026057600080fd5b506102696106e6565b60405161024b9190615030565b34801561028257600080fd5b506102966102913660046141c5565b610778565b6040516001600160a01b03909116815260200161024b565b3480156102ba57600080fd5b506102ce6102c9366004614164565b610805565b005b3480156102dc57600080fd5b506102ce6102eb3660046141f5565b61091b565b3480156102fc57600080fd5b50600a54610296906001600160a01b031681565b34801561031c57600080fd5b5061023f610a07565b34801561033157600080fd5b506102ce61034036600461401a565b610a21565b34801561035157600080fd5b506102ce610360366004614217565b610a52565b34801561037157600080fd5b506102ce610380366004613fc7565b610c33565b34801561039157600080fd5b506103b26103a0366004613fc7565b600e6020526000908152604090205481565b60405190815260200161024b565b3480156103cc57600080fd5b506102ce610c7f565b3480156103e157600080fd5b506102ce6103f036600461401a565b610e40565b34801561040157600080fd5b506102ce6104103660046141c5565b610e5b565b6104286104233660046141c5565b610e8a565b6040805192835260208301919091520161024b565b34801561044957600080fd5b506102ce6104583660046141c5565b611208565b34801561046957600080fd5b506102966104783660046141c5565b611237565b34801561048957600080fd5b506103b26112ae565b34801561049e57600080fd5b506103b2600d5481565b3480156104b457600080fd5b506103b26104c3366004613fc7565b6112b9565b3480156104d457600080fd5b506102ce611340565b3480156104e957600080fd5b506103b26104f8366004613fc7565b611376565b34801561050957600080fd5b506006546001600160a01b0316610296565b34801561052757600080fd5b5061029661139a565b34801561053c57600080fd5b506102696113d7565b34801561055157600080fd5b506102ce61056036600461412a565b6113e6565b34801561057157600080fd5b506102ce610580366004614055565b6113f1565b34801561059157600080fd5b506102ce6105a0366004613fc7565b611429565b3480156105b157600080fd5b506102696105c03660046141c5565b611475565b3480156105d157600080fd5b506103b2600c5481565b3480156105e757600080fd5b506103b2600b5481565b3480156105fd57600080fd5b5061023f61060c366004613fe8565b611692565b34801561061d57600080fd5b506103b261062c3660046141c5565b60086020526000908152604090205481565b34801561064a57600080fd5b506102ce610659366004613fc7565b6116c0565b34801561066a57600080fd5b506102ce6106793660046141c5565b61175b565b34801561068a57600080fd5b506103b2610bb881565b60006001600160e01b031982166380ac58cd60e01b14806106c557506001600160e01b03198216635b5e139f60e01b145b806106e057506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546106f5906151f1565b80601f0160208091040260200160405190810160405280929190818152602001828054610721906151f1565b801561076e5780601f106107435761010080835404028352916020019161076e565b820191906000526020600020905b81548152906001019060200180831161075157829003601f168201915b5050505050905090565b60006107838261178a565b6107e95760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b600061081082611237565b9050806001600160a01b0316836001600160a01b0316141561087e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016107e0565b336001600160a01b038216148061089a575061089a8133611692565b61090c5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016107e0565b61091683836117a7565b505050565b806001600160a01b031661092e83611237565b6001600160a01b0316146109845760405162461bcd60e51b815260206004820181905260248201527f7468652061646472657373206d757374206f776e2074686520746f6b656e496460448201526064016107e0565b600f546001600160a01b031633146109fa5760405162461bcd60e51b815260206004820152603360248201527f4f6e6c7920746865204369747920436c61736820436f6e74726163742063616e6044820152721031b0b636103a3434b990333ab731ba34b7b760691b60648201526084016107e0565b610a0382611815565b5050565b6000600c544210158015610a1c5750600c5415155b905090565b610a2b338261182d565b610a475760405162461bcd60e51b81526004016107e0906150ca565b6109168383836118f7565b610a5b8261178a565b610aa05760405162461bcd60e51b8152602060048201526016602482015275151bddd95c88151bdad95b881b5d5cdd08195e1a5cdd60521b60448201526064016107e0565b610aa98161178a565b610aee5760405162461bcd60e51b8152602060048201526016602482015275151bddd95c88151bdad95b881b5d5cdd08195e1a5cdd60521b60448201526064016107e0565b33610af883611237565b6001600160a01b031614610b4e5760405162461bcd60e51b815260206004820152601e60248201527f596f75206d757374206f776e20626f746820546f77657220746f6b656e73000060448201526064016107e0565b33610b5882611237565b6001600160a01b031614610bae5760405162461bcd60e51b815260206004820152601e60248201527f596f75206d757374206f776e20626f746820546f77657220746f6b656e73000060448201526064016107e0565b60008181526008602052604080822054848352912054610bd891610bd19161511b565b6064611a97565b600083815260086020526040902055610bf081611815565b6040805183815260208101839052308183015290517ffbac2c6e4d5586ee9fef0d8397a6161fb0e8a37c6ffd4981356b7e8e9fc753439181900360600190a15050565b6006546001600160a01b03163314610c5d5760405162461bcd60e51b81526004016107e090615095565b600f80546001600160a01b0319166001600160a01b0392909216919091179055565b6006546001600160a01b03163314610ca95760405162461bcd60e51b81526004016107e090615095565b4760006064610cb983601e61516c565b610cc39190615158565b604051909150600090739fffd1ca952fad6be57b99b61a0e75c192f201c19083908381818185875af1925050503d8060008114610d1c576040519150601f19603f3d011682016040523d82523d6000602084013e610d21565b606091505b5050604051909150600090732429bc492d2cdfb7114963af5c3f4d23922af27e9084908381818185875af1925050503d8060008114610d7c576040519150601f19603f3d011682016040523d82523d6000602084013e610d81565b606091505b5090915060009050336064610d9787602861516c565b610da19190615158565b604051600081818185875af1925050503d8060008114610ddd576040519150601f19603f3d011682016040523d82523d6000602084013e610de2565b606091505b50509050828015610df05750815b8015610df95750805b610e395760405162461bcd60e51b815260206004820152601160248201527015da5d1a191c985dd85b0819985a5b1959607a1b60448201526064016107e0565b5050505050565b610916838383604051806020016040528060008152506113f1565b6006546001600160a01b03163314610e855760405162461bcd60e51b81526004016107e090615095565b600c55565b60008060026007541415610ee05760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c0060448201526064016107e0565b6002600755610eed610a07565b610f305760405162461bcd60e51b8152602060048201526014602482015273283ab13634b19039b0b632903737ba1037b832b760611b60448201526064016107e0565b600083118015610f41575060038311155b610f835760405162461bcd60e51b8152602060048201526013602482015272125b9d985b1a5908151bddd95c8818dbdd5b9d606a1b60448201526064016107e0565b610bb883610f9060095490565b610f9a919061511b565b1115610fe85760405162461bcd60e51b815260206004820152601b60248201527f416c6c20546f776572732068617665206265656e206d696e746564000000000060448201526064016107e0565b34600d5484610ff7919061516c565b146110445760405162461bcd60e51b815260206004820152601e60248201527f496e636f727265637420616d6f756e74206f662065746865722073656e74000060448201526064016107e0565b600a546001600160a01b03161561112757600a546040516370a0823160e01b81523360048201526000916001600160a01b0316906370a082319060240160206040518083038186803b15801561109957600080fd5b505afa1580156110ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110d191906141dd565b9050600b548110156111255760405162461bcd60e51b815260206004820152601860248201527f596f75206e6565642035206d6167696320746f206d696e74000000000000000060448201526064016107e0565b505b336000908152600e602052604081205461114290859061511b565b905060038111156111955760405162461bcd60e51b815260206004820152601e60248201527f4d617820636f756e74207065722061646472657373206578636565646564000060448201526064016107e0565b60006111a060095490565b6111ab90600161511b565b905060005b858110156111e9576111c6600980546001019055565b6111d76111d260095490565b611aaf565b806111e18161522c565b9150506111b0565b50336000908152600e6020526040902091909155600160075593915050565b6006546001600160a01b031633146112325760405162461bcd60e51b81526004016107e090615095565b600b55565b6000818152600260205260408120546001600160a01b0316806106e05760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016107e0565b6000610a1c60095490565b60006001600160a01b0382166113245760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016107e0565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b0316331461136a5760405162461bcd60e51b81526004016107e090615095565b6113746000611acb565b565b6001600160a01b0381166000908152600e60205260408120546106e090600361518b565b6006546000906001600160a01b031633146113c75760405162461bcd60e51b81526004016107e090615095565b50600f546001600160a01b031690565b6060600180546106f5906151f1565b610a03338383611b1d565b6113fb338361182d565b6114175760405162461bcd60e51b81526004016107e0906150ca565b61142384848484611bec565b50505050565b6006546001600160a01b031633146114535760405162461bcd60e51b81526004016107e090615095565b600a80546001600160a01b0319166001600160a01b0392909216919091179055565b60606114808261178a565b6114e45760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016107e0565b600082815260086020526040812054906114fd84611c1f565b915050600061150b85611e52565b915050600061151986611f8f565b91505060006115278761210f565b9150506000611537866003612834565b826115418a6129f8565b6040516020016115539392919061467a565b60405160208183030381529060405290508061156e89612a87565b85858860405160200161158595949392919061438d565b604051602081830303815290604052905060006115a2878a612ac5565b905060006115f06115b48b6004612834565b6115bf8c6004612834565b6115c885612e98565b866040516020016115dc9493929190614cd0565b604051602081830303815290604052612e98565b90506000816040516020016116059190614e16565b60408051601f1981840301815282820190915260158252740a2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d2d60581b602083015291506116459061300c565b61164e8161300c565b6116846040518060400160405280601581526020017416969696969696969696969696969696969696968560591b81525061300c565b9a9950505050505050505050565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6006546001600160a01b031633146116ea5760405162461bcd60e51b81526004016107e090615095565b6001600160a01b03811661174f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107e0565b61175881611acb565b50565b6006546001600160a01b031633146117855760405162461bcd60e51b81526004016107e090615095565b600d55565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b03841690811790915581906117dc82611237565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600860205260408120556117588161304f565b60006118388261178a565b6118995760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016107e0565b60006118a483611237565b9050806001600160a01b0316846001600160a01b031614806118df5750836001600160a01b03166118d484610778565b6001600160a01b0316145b806118ef57506118ef8185611692565b949350505050565b826001600160a01b031661190a82611237565b6001600160a01b0316146119725760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016107e0565b6001600160a01b0382166119d45760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016107e0565b6119df6000826117a7565b6001600160a01b0383166000908152600360205260408120805460019290611a0890849061518b565b90915550506001600160a01b0382166000908152600360205260408120805460019290611a3690849061511b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600081831015611aa85750816106e0565b50806106e0565b60008181526008602052604090206001905561175833826130ea565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b03161415611b7f5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016107e0565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b611bf78484846118f7565b611c0384848484613104565b6114235760405162461bcd60e51b81526004016107e090615043565b606080600083604051602001611c3791815260200190565b60408051601f19818403018152919052805160209091012090506000611c5e600683615247565b60ff16905080611cb0576040518060400160405280600781526020016608d08dd08dd04d60ca1b81525060405180604001604052806004815260200163436c617960e01b815250935093505050915091565b8060011415611d0157604051806040016040528060078152602001662342434238413160c81b8152506040518060400160405280600481526020016314d85b9960e21b815250935093505050915091565b8060021415611d5257604051806040016040528060078152602001662345354535453560c81b81525060405180604001604052806004815260200163536e6f7760e01b815250935093505050915091565b8060031415611da4576040518060400160405280600781526020016608ce0d104d4e5160ca1b81525060405180604001604052806005815260200164477261737360d81b815250935093505050915091565b8060041415611df757604051806040016040528060078152602001662338443939414560c81b8152506040518060400160405280600681526020016510d95b595b9d60d21b815250935093505050915091565b8060051415611e4b57604051806040016040528060078152602001660233537373539360cc1b81525060405180604001604052806007815260200166105cdc1a185b1d60ca1b815250935093505050915091565b5050915091565b606080600083604051602001611e6a91815260200190565b60408051601f19818403018152919052805160209091012090506000611e91600383615247565b60ff16905080611ee8576040518060400160405280600781526020016608cc8d8dd08c8d60ca1b815250604051806040016040528060098152602001684465636964756f757360b81b815250935093505050915091565b8060011415611f3e57604051806040016040528060078152602001661198a21a2099a360c91b8152506040518060400160405280600981526020016822bb32b933b932b2b760b91b815250935093505050915091565b8060021415611e4b57604051806040016040528060078152602001662338314232394160c81b8152506040518060400160405280600481526020016350616c6d60e01b815250935093505050915091565b606080600083604051602001611fa791815260200190565b60408051601f19818403018152919052805160209091012090506000611fce600483615247565b60ff1690508061201e576040518060400160405280600481526020016311b3333360e11b81525060405180604001604052806005815260200164576869746560d81b815250935093505050915091565b806001141561206f57604051806040016040528060078152602001662345354535453560c81b815250604051806040016040528060048152602001634772617960e01b815250935093505050915091565b80600214156120be576040518060400160405280600481526020016311b3333360e11b81525060405180604001604052806005815260200164576869746560d81b815250935093505050915091565b8060031415611e4b57604051806040016040528060078152602001662344434636464560c81b81525060405180604001604052806004815260200163426c756560e01b815250935093505050915091565b60608060008360405160200161212791815260200190565b60408051601f1981840301815291905280516020909101209050600061214e601483615247565b60ff169050806121a457604051806040016040528060078152602001660234645383637360cc1b81525060405180604001604052806008815260200167131a5d194814995960c21b815250935093505050915091565b80600114156121fd576040518060400160405280600781526020016611a0982220a09960c91b8152506040518060400160405280600c81526020016b477265656e205472616e636560a01b815250935093505050915091565b806002141561225457604051806040016040528060078152602001662332433843433760c81b8152506040518060400160405280600a815260200169537465656c20426c756560b01b815250935093505050915091565b80600314156122b357604051806040016040528060078152602001662337303136314560c81b81525060405180604001604052806012815260200171105c9d195c9a585b08109b1bdbd90814995960721b815250935093505050915091565b806004141561230f576040518060400160405280600781526020016608d14dd04c110d60ca1b8152506040518060400160405280600f81526020016e537072696e6720426c6f73736f6d7360881b815250935093505050915091565b806005141561236657604051806040016040528060078152602001662334423432333760c81b8152506040518060400160405280600a815260200169213937bbb7102132b0b960b11b815250935093505050915091565b80600614156123bc576040518060400160405280600981526020016811dbdb19195b9c9bd960ba1b815250604051806040016040528060078152602001662344354130323160c81b815250935093505050915091565b80600714156124175760405180604001604052806007815260200166119b1b19229ca160c91b8152506040518060400160405280600e81526020016d5265626563636120507572706c6560901b815250935093505050915091565b806008141561246b57604051806040016040528060078152602001661198a2191818a360c91b8152506040518060400160405280600781526020016612995d0814d95d60ca1b815250935093505050915091565b80600914156124c1576040518060400160405280600781526020016611a221991b191b60c91b8152506040518060400160405280600981526020016815da195c9bc814995960ba1b815250935093505050915091565b80600a141561251b57604051806040016040528060078152602001662341363633434360c81b8152506040518060400160405280600d81526020016c2934b1b4102630bb32b73232b960991b815250935093505050915091565b80600b1415612576576040518060400160405280600781526020016611999818a09a2160c91b8152506040518060400160405280600e81526020016d149d5cdcda585b88159a5bdb195d60921b815250935093505050915091565b80600c14156125d3576040518060400160405280600781526020016608cc8d508d108d60ca1b8152506040518060400160405280601081526020016f436169636f732054757271756f69736560801b815250935093505050915091565b80600d141561262e57604051806040016040528060078152602001662336373241344560c81b8152506040518060400160405280600e81526020016d4562697a6f6d6520507572706c6560901b815250935093505050915091565b80600e141561267f576040518060400160405280600781526020016611991b1a99992160c91b8152506040518060400160405280600481526020016350696e6560e01b815250935093505050915091565b80600f14156126d657604051806040016040528060078152602001662344324139454160c81b8152506040518060400160405280600a8152602001694272696768742055626560b01b815250935093505050915091565b806010141561272c57604051806040016040528060078152602001662338463235304360c81b81525060405180604001604052806009815260200168155b1d5c9d4814995960ba1b815250935093505050915091565b806011141561278657604051806040016040528060078152602001662338323032363360c81b8152506040518060400160405280600d81526020016c58657265757320507572706c6560981b815250935093505050915091565b80601214156127e157604051806040016040528060078152602001662346364432343160c81b8152506040518060400160405280600e81526020016d10985cdad95d081bd98811dbdb1960921b815250935093505050915091565b8060131415611e4b576040518060400160405280600781526020016611a31c9b99989b60c91b815250604051806040016040528060068152602001654f72616e676560d01b815250935093505050915091565b60608260005b8115612860578061284a8161522c565b91506128599050600a83615158565b915061283a565b60008467ffffffffffffffff81111561288957634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156128b3576020820181803683370190505b5085935090508561290057600360fc1b816000815181106128e457634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350600191505b818311156129565761291360018461518b565b9250600160fd1b81848151811061293a57634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a905350612900565b815b86156129ee5761296960018261518b565b90506000612978600a89615158565b61298390600a61516c565b61298d908961518b565b612998906030615133565b905060008160f81b9050808484815181106129c357634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a9053506129e5600a8a615158565b98505050612958565b5095945050505050565b6060600082604051602001612a0f91815260200190565b60408051601f19818403018152919052805160209091012090506000612a36600383615247565b60ff16905080612a64575050604080518082019091526005815264149a59da1d60da1b602082015292915050565b50506040805180820190915260048152631319599d60e21b602082015292915050565b6060600082604051602001612a9e91815260200190565b60408051601f19818403018152919052805160209091012090506000612a36600283615247565b6060612b41604051806101c001604052806000151581526020016000815260200160008152602001600081526020016000815260200160008152602001600081526020016000815260200160008152602001600060ff168152602001600060ff1681526020016060815260200160608152602001606081525090565b60196101208201526002610140820152600081526032841115612b73576008610140820152602d610120820152612c11565b6019841115612b95576007610140820152604b61012082015260018152612c11565b600a841115612bb7576006610140820152605f61012082015260018152612c11565b6008841115612bd9576005610140820152605561012082015260018152612c11565b6006841115612bf75760046101408201526041610120820152612c11565b6003841115612c11576003610140820152602d6101208201525b6106686020820152612c3c612c2785606e61516c565b612c3290606461511b565b8260200151611a97565b60408201819052612c4f9060649061518b565b606082015260326080820152602081015160408201511415612ca8576000848260600151612c7d9190615158565b90506017612c8c82600a61516c565b612c969190615158565b60808301819052612ca690613211565b505b6080810151600090600a612cbd82601261516c565b612cc79190615158565b612cd1919061518b565b90508082610140015160ff168360800151612cec919061516c565b610140840151612cff9060ff168461516c565b612d09919061511b565b612d13919061518b565b60a0830152612d24600a600e615158565b8260800151612d33919061516c565b8260a00151612d42919061511b565b60c08301819052612d5590600290615158565b612d61906103e861518b565b60e0830181905260a083015160c0840151600291612d7e9161518b565b612d889190615158565b612d92919061511b565b610100830152612da18461210f565b50610160830152612db28583613256565b6101a0830152604080516020810190915260008152610180830152815115612e0e57612ddd82613497565b612de683613570565b604051602001612df792919061429c565b60408051601f198184030181529190526101808301525b612e1882856135d4565b612e218361361d565b612e2b8487613683565b612e3585896136f0565b612e3f868a61380f565b612e49878a6138c4565b612e53888b613a22565b612e5d898c613bbd565b612e678a8d613d25565b604051602001612e7f999897969594939291906142cb565b6040516020818303038152906040529250505092915050565b805160609080612eb8575050604080516020810190915260008152919050565b60006003612ec783600261511b565b612ed19190615158565b612edc90600461516c565b90506000612eeb82602061511b565b67ffffffffffffffff811115612f1157634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612f3b576020820181803683370190505b50905060006040518060600160405280604081526020016152b4604091399050600181016020830160005b86811015612fc7576003818a01810151603f601282901c8116860151600c83901c8216870151600684901c831688015192909316870151600891821b60ff94851601821b92841692909201901b91160160e01b835260049092019101612f66565b506003860660018114612fe15760028114612ff257612ffe565b613d3d60f01b600119830152612ffe565b603d60f81b6000198301525b505050918152949350505050565b611758816040516024016130209190615030565b60408051601f198184030181529190526020810180516001600160e01b031663104c13eb60e21b179052613e24565b600061305a82611237565b90506130676000836117a7565b6001600160a01b038116600090815260036020526040812080546001929061309090849061518b565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b610a03828260405180602001604052806000815250613e45565b60006001600160a01b0384163b1561320657604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290613148903390899088908890600401614ff3565b602060405180830381600087803b15801561316257600080fd5b505af1925050508015613192575060408051601f3d908101601f1916820190925261318f918101906141a9565b60015b6131ec573d8080156131c0576040519150601f19603f3d011682016040523d82523d6000602084013e6131c5565b606091505b5080516131e45760405162461bcd60e51b81526004016107e090615043565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506118ef565b506001949350505050565b6117588160405160240161322791815260200190565b60408051601f198184030181529190526020810180516001600160e01b031663f5b1bba960e01b179052613e24565b60408051602081019091526000808252606091905b84811015613367576000846080015186866060015161328a9190615158565b613294919061518b565b90506000828287608001516132a9919061511b565b6132b3919061516c565b608087015160408801516132c9906107d061518b565b6132d3919061511b565b6132dd919061511b565b9050836132fc60018861010001516132f5919061518b565b6004612834565b613307836004612834565b61331b8960a0015160026132f5919061511b565b613326866004612834565b8a6101600151604051602001613341969594939291906144f1565b60405160208183030381529060405293505050808061335f9061522c565b91505061326b565b506000600184604001516107d061337e919061518b565b613388919061518b565b905060005b600185610140015161339f91906151a2565b60ff1681101561348d576080850151600090600a6133be82601261516c565b6133c89190615158565b6133d2919061518b565b905060006133e0838361516c565b6133eb84600161511b565b88608001516133fa919061516c565b88610100015161340a919061511b565b613414919061511b565b905084613422826004612834565b61342d866004612834565b613438856004612834565b61344c8b6060015160026132f5919061511b565b8b6101600151604051602001613467969594939291906144f1565b6040516020818303038152906040529450505080806134859061522c565b91505061338d565b5090949350505050565b60606000826080015160056134ac919061516c565b90506134d1600a8460a001518560e001516134c7919061511b565b6132f5919061518b565b61352084610120015160ff166014848760400151600f8960a001516134f69190615158565b613502906107d061511b565b61350c919061518b565b613516919061518b565b6134c7919061518b565b613534600486608001516132f59190615158565b61353f846004612834565b866101600151604051602001613559959493929190614f13565b604051602081830303815290604052915050919050565b6060600082608001516003613585919061516c565b90506135af601284608001518560a001518660e001516135a5919061511b565b6134c7919061511b565b61352084610120015160ff16601484876040015160148960a001516134f69190615158565b606060006135e183611c1f565b509050806135f48560e001516004612834565b604051602001613605929190614875565b60405160208183030381529060405291505092915050565b6060613636603283604001516107d06134c7919061518b565b6136458360c001516004612834565b61365484604001516004612834565b84610160015160405160200161366d9493929190614e5b565b6040516020818303038152906040529050919050565b6060600061369083611f8f565b5090506136a38461010001516004612834565b6136b885604001516107d06132f5919061518b565b6136c78660a001516004612834565b6136db600188606001516132f5919061518b565b84604051602001613605959493929190614f13565b6060600083608001518385606001516137099190615158565b613713919061518b565b9050600060018483876080015161372a919061511b565b613734919061516c565b61373e919061518b565b604086015161374f906107d061518b565b613759919061511b565b9050600081866060015187604001516107d0613775919061518b565b61377f919061511b565b61378a90600161511b565b613794919061518b565b90506137ab60028761010001516132f5919061518b565b6137b96132f560018561518b565b6137cd8860a0015160046132f5919061511b565b6137db6132f585600261511b565b8961016001516040516020016137f5959493929190614f13565b604051602081830303815290604052935050505092915050565b606060046007831115613820575060035b6138378460c001518560e001516132f5919061511b565b613871603286610120015160ff1687604001516107d0613857919061518b565b613861919061518b565b61386b919061518b565b83612834565b61387f8660e0015184612834565b6138b1603288604001516107d0613896919061518b565b6138a190600161511b565b6138ab919061518b565b85612834565b60405160200161360594939291906145e6565b606060006138d1836129f8565b90506000600485608001516138e69190615158565b60808601516138f690600661516c565b613900919061511b565b8560e0015161390f919061518b565b60405164149a59da1d60da1b6020820152909150602501604051602081830303815290604052805190602001208260405160200161394d9190614280565b6040516020818303038152906040528051906020012014156139b5576004856080015161397a9190615158565b608086015161398a90600661516c565b613994919061511b565b8560c001518660e001516139a8919061511b565b6139b2919061511b565b90505b6139cc8560c001518660e001516132f5919061511b565b8561016001516139dd836004612834565b6139ff6032896080015160036139f3919061516c565b6134c7906107d061518b565b613a0e89608001516004612834565b604051602001612e7f9594939291906149c0565b60606000613a2f836129f8565b9050600060038560800151600a600d613a489190615158565b613a52919061516c565b613a5c9190615158565b6080860151613a6c90600661516c565b8660e00151613a7b919061518b565b613a85919061511b565b60405164149a59da1d60da1b60208201529091506025016040516020818303038152906040528051906020012082604051602001613ac39190614280565b604051602081830303815290604052805190602001201415613b2b5760078560800151613af09190615158565b6080860151613b0090600761516c565b8660c001518760e00151613b14919061511b565b613b1e919061511b565b613b28919061518b565b90505b6000613b3685611e52565b509050613b4d866080015160036132f5919061516c565b613b58836004612834565b613b9460328960800151600a6019613b709190615158565b613b7a919061516c565b60808b0151613b8a90600261516c565b6139f3919061511b565b613ba8896080015160026132f5919061516c565b846040516020016137f5959493929190614778565b606061015e6000613bcd84612a87565b60405164149a59da1d60da1b60208201529091506025016040516020818303038152906040528051906020012081604051602001613c0b9190614280565b604051602081830303815290604052805190602001201415613c2d576105aa91505b613c64600a8660800151600a6010613c459190615158565b613c4f919061516c565b613c5a90600261516c565b6134c7908561511b565b613c78866080015160036132f5919061516c565b613c8c876080015160026132f5919061516c565b613c97856004612834565b6080890151613ce790613cac600a600e615158565b613cb6919061516c565b60808b0151613cc7600a600d615158565b613cd1919061516c565b613cdc90600261516c565b6134c790609d61511b565b613cfb8a6080015160036132f5919061516c565b613d0f8b6080015160026132f5919061516c565b604051602001612e7f9796959493929190614b8b565b606061015e6000613d3584612a87565b60405164149a59da1d60da1b60208201529091506025016040516020818303038152906040528051906020012081604051602001613d739190614280565b604051602081830303815290604052805190602001201415613d95576105aa91505b613dab600a86608001516002613c4f919061516c565b6080860151613ddb90613dc0600a600e615158565b613dca919061516c565b6080880151613cc7600a600d615158565b613def876080015160046132f5919061516c565b613e03886080015160026132f5919061516c565b886101800151896101a00151604051602001612e7f96959493929190614a97565b80516a636f6e736f6c652e6c6f67602083016000808483855afa5050505050565b613e4f8383613e78565b613e5c6000848484613104565b6109165760405162461bcd60e51b81526004016107e090615043565b6001600160a01b038216613ece5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016107e0565b613ed78161178a565b15613f245760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016107e0565b6001600160a01b0382166000908152600360205260408120805460019290613f4d90849061511b565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b80356001600160a01b0381168114613fc257600080fd5b919050565b600060208284031215613fd8578081fd5b613fe182613fab565b9392505050565b60008060408385031215613ffa578081fd5b61400383613fab565b915061401160208401613fab565b90509250929050565b60008060006060848603121561402e578081fd5b61403784613fab565b925061404560208501613fab565b9150604084013590509250925092565b6000806000806080858703121561406a578081fd5b61407385613fab565b935061408160208601613fab565b925060408501359150606085013567ffffffffffffffff808211156140a4578283fd5b818701915087601f8301126140b7578283fd5b8135818111156140c9576140c9615287565b604051601f8201601f19908116603f011681019083821181831017156140f1576140f1615287565b816040528281528a6020848701011115614109578586fd5b82602086016020830137918201602001949094529598949750929550505050565b6000806040838503121561413c578182fd5b61414583613fab565b915060208301358015158114614159578182fd5b809150509250929050565b60008060408385031215614176578182fd5b61417f83613fab565b946020939093013593505050565b60006020828403121561419e578081fd5b8135613fe18161529d565b6000602082840312156141ba578081fd5b8151613fe18161529d565b6000602082840312156141d6578081fd5b5035919050565b6000602082840312156141ee578081fd5b5051919050565b60008060408385031215614207578182fd5b8235915061401160208401613fab565b60008060408385031215614229578182fd5b50508035926020909101359150565b600081518084526142508160208601602086016151c5565b601f01601f19169290920160200192915050565b600081516142768185602086016151c5565b9290920192915050565b600082516142928184602087016151c5565b9190910192915050565b600083516142ae8184602088016151c5565b8351908301906142c28183602088016151c5565b01949350505050565b60008a516142dd818460208f016151c5565b8a51908301906142f1818360208f016151c5565b8a516143038183850160208f016151c5565b8a51929091010190614319818360208d016151c5565b885161432b8183850160208d016151c5565b8851929091010190614341818360208b016151c5565b86516143538183850160208b016151c5565b86519290910101906143698183602089016151c5565b845161437b81838501602089016151c5565b9101019b9a5050505050505050505050565b6000865161439f818460208b016151c5565b7f7b2274726169745f74797065223a2022436c6f75642053696465222c0000000090830190815269113b30b63ab2911d101160b11b601c820181905287516143ee816026850160208c016151c5565b8083019250507f227d2c207b2274726169745f74797065223a20225472656520436f6c6f72222c60268301528060468301528651614433816050850160208b016151c5565b7f227d2c207b2274726169745f74797065223a202257696e646f7720436f6c6f726050939091019283015261088b60f21b607083015260728201526144e56144d76144d16144bb614487607c86018a614264565b7f227d2c207b2274726169745f74797065223a202247726f756e6420436f6c6f72815261088b60f21b602082015260220190565b69113b30b63ab2911d101160b11b8152600a0190565b86614264565b61227d60f01b815260020190565b98975050505050505050565b60008751614503818460208c016151c5565b681e3932b1ba103c1e9160b91b9083019081528751614529816009840160208c016151c5565b6411103c9e9160d91b60099290910191820152865161454f81600e840160208b016151c5565b6811103bb4b23a341e9160b91b600e92909101918201528551614579816017840160208a016151c5565b6911103432b4b3b43a1e9160b11b6017929091019182015284516145a48160218401602089016151c5565b6711103334b6361e9160c11b602192909101918201526145d96145ca6029830186614264565b6211179f60e91b815260030190565b9998505050505050505050565b693c7061746820643d224d60b01b8152845160009061460c81600a850160208a016151c5565b8083019050600160fd1b80600a830152865161462f81600b850160208b016151c5565b601360fa1b600b9390910192830152855161465181600c850160208a016151c5565b600c920191820152835161466c81600d8401602088016151c5565b01600d019695505050505050565b7f7b2274726169745f74797065223a202223206f662053746f72696573222c00008152680113b30b63ab2911d160bd1b601e82015283516000906146c58160278501602089016151c5565b7f7d2c7b2274726169745f74797065223a2022546f77657220436f6c6f72222c0060279184019182015269113b30b63ab2911d101160b11b604682018190528551614717816050850160208a016151c5565b7f227d2c207b2274726169745f74797065223a2022547265652053696465222c0060509390910192830152606f820152835161475a8160798401602088016151c5565b630113e96160e51b60799290910191820152607d0195945050505050565b6911103432b4b3b43a1e9160b11b8152855160009061479e81600a850160208b016151c5565b7f222066696c6c3d2223343630353039222066696c6c2d6f7061636974793d2230600a9184019182015265171c9911179f60d11b602a8201526b1e31b4b931b6329031bc1e9160a11b603082015286516147ff81603c840160208b016151c5565b65111031bc9e9160d11b603c92909101918201528551614826816042840160208a016151c5565b641110391e9160d91b60429290910191820152845161484c8160478401602089016151c5565b6145d96145ca61486f6047848601016711103334b6361e9160c11b815260080190565b87614264565b7f3c7376672077696474683d223230303022206865696768743d2232303030222081527f76696577426f783d2230203020323030302032303030222066696c6c3d226e6f60208201527f6e652220786d6c6e733d22687474703a2f2f7777772e77332e6f72672f3230306040820152661817b9bb33911f60c91b60608201527f3c726563742077696474683d223230303022206865696768743d223230303022606782015270103334b6361e9111a218231ca32191179f60791b60878201527f3c7265637420793d2231393235222077696474683d223230303022206865696760988201526f343a1e911918181811103334b6361e9160811b60b8820152600083516149888160c88501602088016151c5565b6211179f60e91b60c891840191820152681e3932b1ba103c1e9160b91b60cb8201526149b760d4820185614264565b95945050505050565b6205c6a960eb1b8152600086516149de816003850160208b016151c5565b6c2b199a99ad11103334b6361e9160991b6003918401918201528651614a0b816010840160208b016151c5565b6b11179f1e3932b1ba103c1e9160a11b601092909101918201528551614a3881601c840160208a016151c5565b6411103c9e9160d91b601c92909101918201528451614a5e8160218401602089016151c5565b6811103bb4b23a341e9160b91b602192909101918201528351614a8881602a8401602088016151c5565b01602a01979650505050505050565b6c1e32b63634b839b29031bc1e9160991b81528651600090614ac081600d850160208c016151c5565b65111031bc9e9160d11b600d918401918201528751614ae6816013840160208c016151c5565b651110393c1e9160d11b601392909101918201528651614b0d816019840160208b016151c5565b651110393c9e9160d11b601992909101918201528551614b3481601f840160208a016151c5565b7111103334b6361e9111a3222320a32091179f60711b601f92909101918201528451614b678160318401602089016151c5565b611684614b7960318385010187614264565b651e17b9bb339f60d11b815260060190565b60006c1e32b63634b839b29031bc1e9160991b8083528951614bb481600d860160208e016151c5565b6e111031bc9e91189a981110393c1e9160891b600d918501918201528951614be381601c840160208e016151c5565b651110393c9e9160d11b601c92909101918201528851614c0a816022840160208d016151c5565b7111103334b6361e9111a3222320a32091179f60711b602292909101918201526034810191909152865190614c46826041830160208b016151c5565b614cc1614ca361486f614c91614c8b614c79614c7360418989010165111031bc9e9160d11b815260060190565b8d614264565b651110393c1e9160d11b815260060190565b8a614264565b651110393c9e9160d11b815260060190565b7111103334b6361e9111a3222320a32091179f60711b815260120190565b9b9a5050505050505050505050565b607b60f81b81526f226e616d65223a2022546f776572202360801b60018201528451600090614d06816011850160208a016151c5565b6d0111610113a37b5b2b724b2111d160951b6011918401918201528551614d3481601f840160208a016151c5565b7f2c2022696d616765223a2022646174613a696d6167652f7376672b786d6c3b62601f929091019182015265185cd94d8d0b60d21b603f8201528451614d818160458401602089016151c5565b7f222c20226465736372697074696f6e223a20224275696c6420796f757220746f91016045810191909152711dd95c9cc81d1bc81d1a19481cdade48488b60721b60658201526e2261747472696275746573223a205b60881b6077820152614e0b614dfe614df16086840161486f565b605d60f81b815260010190565b607d60f81b815260010190565b979650505050505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000815260008251614e4e81601d8501602087016151c5565b91909101601d0192915050565b6411103c9e9160d91b815284516000906020614e7d8260058601838b016151c5565b6811103bb4b23a341e9160b91b6005928501928301528651614ea581600e8501848b016151c5565b6911103432b4b3b43a1e9160b11b600e93909101928301528551614ecf8160188501848a016151c5565b6711103334b6361e9160c11b601893909101928301528451614ef6818385018489016151c5565b6211179f60e91b9201908101919091526023019695505050505050565b681e3932b1ba103c1e9160b91b81528551600090614f38816009850160208b016151c5565b6411103c9e9160d91b6009918401918201528651614f5d81600e840160208b016151c5565b6811103bb4b23a341e9160b91b600e92909101918201528551614f87816017840160208a016151c5565b6911103432b4b3b43a1e9160b11b601792909101918201528451614fb28160218401602089016151c5565b6711103334b6361e9160c11b602192909101918201528351614fdb8160298401602088016151c5565b6145d96029828401016211179f60e91b815260030190565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061502690830184614238565b9695505050505050565b602081526000613fe16020830184614238565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b6000821982111561512e5761512e61525b565b500190565b600060ff821660ff84168060ff038211156151505761515061525b565b019392505050565b60008261516757615167615271565b500490565b60008160001904831182151516156151865761518661525b565b500290565b60008282101561519d5761519d61525b565b500390565b600060ff821660ff8416808210156151bc576151bc61525b565b90039392505050565b60005b838110156151e05781810151838201526020016151c8565b838111156114235750506000910152565b600181811c9082168061520557607f821691505b6020821081141561522657634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156152405761524061525b565b5060010190565b60008261525657615256615271565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160e01b03198116811461175857600080fdfe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220c1d9e51181f0d58d35438081302332bf75621e1627134d842692523350e52c9364736f6c634300080400334369747920436c61736820546f77657273206973206120636f6c6c656374696f6e206f6620333030302073696e676c652d666c6f6f7220746f776572204e4654732e20486f6c646572732063616e206d657267652074776f204e46547320746f2063726561746520612073696e676c6520746f77657220776974682074686520686569676874206f66207468652074776f20636f6d62696e656420286d61782031303020666c6f6f7273292e20546f206d657267652c20686f6c646572732073656c656374206f6e6520746f77657220746f2067726f772c20616e64206f6e6520746f206275726e206f6e206f757220736974652e20546f77657220686f6c646572732077696c6c2067657420616e20616476616e74616765206c617465722c20696e204369747920436c6173682c206279206275726e696e6720746865697220746f77657220696e206f7264657220746f20696e637265617365207468652076616c7565206f66206f6e65206f66207468656972206369746965732e205468652076616c756520696e6372656173652077696c6c2062652070726f706f7274696f6e616c20746f20746865206e756d626572206f6620666c6f6f7273206f6620746865206275726e656420746f7765722e20544c3b44523a20596f752061726520676f696e6720746f2077616e7420746f2067726f7720796f757220746f77657221

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.