Contract 0x85c4ae348d35784f6f28b3fface7cb1629d5126c 2

 

Contract Overview

Balance:
1.38 MATIC

MATIC Value:
$0.79 (@ $0.57/MATIC)

Token:
 
Txn Hash Method
Block
From
To
Value [Txn Fee]
0x9b204cdd8918b3b4d7b21ab01262af0b7456126347911010e661b08fd9327b7eClaim Caps281855632022-05-11 9:30:4646 days 17 hrs ago0x0000000000333f28d3a20605c702f66c3143cccf IN  0x85c4ae348d35784f6f28b3fface7cb1629d5126c0 MATIC0.010132849669115.307186975
0xbbdca92983cd9242153a24809728d798ee14852693e6e1fac2ab8d3245399263Set Approval For...280714832022-05-08 12:20:3549 days 14 hrs ago0x863c5bf79bb048958f35636cc3455cd61766c36a IN  0x85c4ae348d35784f6f28b3fface7cb1629d5126c0 MATIC0.001822803068 38.974600026
0xb8533999bd914fee446d90d0b1f1fc3dba091154d69bd7c52c7766f3a1c006fcShake It Up For ...280005092022-05-06 18:03:2651 days 9 hrs ago0x45d46f51c468f81600aa3cbcb9c7608cbf46044f IN  0x85c4ae348d35784f6f28b3fface7cb1629d5126c0 MATIC0.002674983951 48.42038105
0x63248ec11c69068b106888e87004f8ddd617827f78052921998e86629597887cChange Name280004832022-05-06 18:02:3451 days 9 hrs ago0x45d46f51c468f81600aa3cbcb9c7608cbf46044f IN  0x85c4ae348d35784f6f28b3fface7cb1629d5126c0 MATIC0.005227892118 46.56576721
0x55f371863edf789ff65fb71db1269914d80e5e04244d2705100b02c5c30b8620Pour279994712022-05-06 17:27:1451 days 9 hrs ago0x7fdf5fbf921e7a8089986895c34939d6338110ed IN  0x85c4ae348d35784f6f28b3fface7cb1629d5126c0.414 MATIC0.153069357729 99.095697136
0xf6f38e38df29c2ad9d1234ab7ec1cf7902bd2d6863b0b9847fd229ad71358098Pour279993482022-05-06 17:21:2451 days 9 hrs ago0x45d46f51c468f81600aa3cbcb9c7608cbf46044f IN  0x85c4ae348d35784f6f28b3fface7cb1629d5126c0.414 MATIC0.061576918522 41.620762028
0x31a7660b1b804ec68c29ea95f1599d4c33590f0418e8f6561a3d67fd65403dd2Pour279992152022-05-06 17:16:5051 days 9 hrs ago0x45d46f51c468f81600aa3cbcb9c7608cbf46044f IN  0x85c4ae348d35784f6f28b3fface7cb1629d5126c0.414 MATIC0.063927073957 41.925935954
0xbbd057341e9d7fe362ce67217b46bfa43fe709af1e47d40c3d731f637fd3c8a8Safe Transfer Fr...278526412022-05-02 23:28:5655 days 3 hrs ago0xcee7f267ba9b2d32a1304588da5699db50e0bdf3 IN  0x85c4ae348d35784f6f28b3fface7cb1629d5126c0 MATIC0.005390341672 47.702138691
0xd6c4004b692e2f74a4dfa91ddd419fb40aff0361feece73e2197816263826035Safe Transfer Fr...278526282022-05-02 23:28:3055 days 3 hrs ago0xcee7f267ba9b2d32a1304588da5699db50e0bdf3 IN  0x85c4ae348d35784f6f28b3fface7cb1629d5126c0 MATIC0.005889068097 47.702143272
0x7f97aef9c71196f84da92e853bd94c7324f6be5d5327913674ba99c1a9b55b60Safe Transfer Fr...278526062022-05-02 23:27:4255 days 3 hrs ago0xcee7f267ba9b2d32a1304588da5699db50e0bdf3 IN  0x85c4ae348d35784f6f28b3fface7cb1629d5126c0 MATIC0.005143261484 46.271076283
0x52c16a3f122890aae8c30ce03161e8ab9aa8c46b9dff1cabdd5c878cdf358f8eSafe Transfer Fr...278525872022-05-02 23:27:0455 days 3 hrs ago0xcee7f267ba9b2d32a1304588da5699db50e0bdf3 IN  0x85c4ae348d35784f6f28b3fface7cb1629d5126c0 MATIC0.005889067746 47.70214043
0xf437fd686e58871e0dcf07cadcb7754bfaf73cb9d43893025d776dfcc70b6315Safe Transfer Fr...278525632022-05-02 23:26:1655 days 3 hrs ago0xcee7f267ba9b2d32a1304588da5699db50e0bdf3 IN  0x85c4ae348d35784f6f28b3fface7cb1629d5126c0 MATIC0.004895174867 45.177194107
0xce0ef84def3817ff844f61371aa69b6de41b95ff73b4da03081abc8ace0eeebdSafe Transfer Fr...278525092022-05-02 23:24:2455 days 3 hrs ago0xcee7f267ba9b2d32a1304588da5699db50e0bdf3 IN  0x85c4ae348d35784f6f28b3fface7cb1629d5126c0 MATIC0.005755502171 47.702143891
0x768260c8910f4e7554ad8dd957614d76c03eb9b9ca53a3699d45b67392617adcSet Approval For...268780172022-04-08 4:59:1279 days 22 hrs ago0x863c5bf79bb048958f35636cc3455cd61766c36a IN  0x85c4ae348d35784f6f28b3fface7cb1629d5126c0 MATIC0.000851029862 31.673298706
0xe60cffaf288e5ab31b03046ff25c7099ce4473ed179cdaa648b4962677793763Set Approval For...268779852022-04-08 4:58:0479 days 22 hrs ago0x863c5bf79bb048958f35636cc3455cd61766c36a IN  0x85c4ae348d35784f6f28b3fface7cb1629d5126c0 MATIC0.001452122217 31.04881904
0xbf8aa22b13cefc9e233659bd0bce24a603cc2e96a8c12d0a3c8fb08c8052c4ebShake It Up For ...268302332022-04-06 22:51:5881 days 4 hrs ago0x863c5bf79bb048958f35636cc3455cd61766c36a IN  0x85c4ae348d35784f6f28b3fface7cb1629d5126c0 MATIC0.002589074511 35.787884608
0xb8dbe90eba63d9f5dff8f646ee3c8f2db6438c8c9eeceac376c7cde2e1b72ffaPour268301972022-04-06 22:50:4281 days 4 hrs ago0x863c5bf79bb048958f35636cc3455cd61766c36a IN  0x85c4ae348d35784f6f28b3fface7cb1629d5126c0.069 MATIC0.011794735662 34.636610388
0x215f0a0176764de3aa16ee59aeb74b5c5c18c53d5549d782c635601cf9400aeeClaim Caps255074332022-03-02 20:58:09116 days 6 hrs ago0xa0aa6e3fa533acc4639c66682305de78c8e45a31 IN  0x85c4ae348d35784f6f28b3fface7cb1629d5126c0 MATIC0.00161406739 30.070000018
0xbac64530906b7b1fcf4641084ff9bfba6a7098b50e077b415e540048ba3e4c1aPour255024242022-03-02 17:44:59116 days 9 hrs ago0x0cf661907e76c4921f7df302092697799dc63b24 IN  0x85c4ae348d35784f6f28b3fface7cb1629d5126c0.069 MATIC0.009595511532 30.448215511
0x34f082174badcc42abef75af88af9696c13e136cdc18aa30450f0811d0a7e25aSet Approval For...252412732022-02-22 21:52:44124 days 5 hrs ago0xea8afeb29a8f3bbbd9de7792d117024e31884e93 IN  0x85c4ae348d35784f6f28b3fface7cb1629d5126c0 MATIC0.001418409177 30.327977456
0x05d84d8e9615546fd756fd46e4637da4c21cec6c0348deca668f72b83d33b73bSafe Transfer Fr...246836812022-02-08 5:24:30138 days 21 hrs ago0x3213a70ad2be6b2750056b54f2ae02b648df9971 IN  0x85c4ae348d35784f6f28b3fface7cb1629d5126c0 MATIC0.000523742578 4.704500026
0x15654897694a37fb9ad43ed4c4bfc942aaed869df3064a7e1dde0bea4ca7b90aSafe Transfer Fr...246434192022-02-07 4:56:34139 days 22 hrs ago0x1aba693fbd9a8d24508ea9ab99a0bf074eaca1ee IN  0x85c4ae348d35784f6f28b3fface7cb1629d5126c0 MATIC0.000215976318 1.939999989
0x60dd5b56ba487503264642058193f1f4dcb759fbabba9198042b930989eeeac9Claim Caps242504662022-01-28 3:30:26149 days 23 hrs ago0x3213a70ad2be6b2750056b54f2ae02b648df9971 IN  0x85c4ae348d35784f6f28b3fface7cb1629d5126c0 MATIC0.001667474888 31.064979194
0xf646bbe06cd99c923da8b5093b3c90d8ccbc8592e5bba0b827725922df620526Claim Caps237676642022-01-16 1:00:17162 days 2 hrs ago0x0cf661907e76c4921f7df302092697799dc63b24 IN  0x85c4ae348d35784f6f28b3fface7cb1629d5126c0 MATIC0.0021233130
0x5aec2e8ee226a8b5aec389724a336283023fd4cbcfa40ecea11d00921b022e6eChange Name234074652022-01-06 15:36:37171 days 11 hrs ago0xb2fdf6f2c2a9592a9e6abc86be1a8bba31963896 IN  0x85c4ae348d35784f6f28b3fface7cb1629d5126c0 MATIC0.0676508700
[ Download CSV Export 
Latest 21 internal transactions
Parent Txn Hash Block From To Value
0xb85bc19b06141e75224eb0be1a28388259b0e68381452ad35737406401d006bd229289112021-12-25 2:34:49184 days 36 mins ago 0x85c4ae348d35784f6f28b3fface7cb1629d5126c0x06f6327f7f5e09cba31ce98c74071c786112f22d2.76 MATIC
0xb85bc19b06141e75224eb0be1a28388259b0e68381452ad35737406401d006bd229289112021-12-25 2:34:49184 days 36 mins ago 0x85c4ae348d35784f6f28b3fface7cb1629d5126c0x0cf661907e76c4921f7df302092697799dc63b242.76 MATIC
0xb85bc19b06141e75224eb0be1a28388259b0e68381452ad35737406401d006bd229289112021-12-25 2:34:49184 days 36 mins ago 0x85c4ae348d35784f6f28b3fface7cb1629d5126c0x6883478ad90fffbee0a69274ad44c1b46adaafb92.76 MATIC
0x687e641ad6a06339f102dacd0513482446f0b57b3f83489d946992e836f364a2220636822021-12-02 21:22:29206 days 5 hrs ago 0x85c4ae348d35784f6f28b3fface7cb1629d5126c0x06f6327f7f5e09cba31ce98c74071c786112f22d4.462 MATIC
0x687e641ad6a06339f102dacd0513482446f0b57b3f83489d946992e836f364a2220636822021-12-02 21:22:29206 days 5 hrs ago 0x85c4ae348d35784f6f28b3fface7cb1629d5126c0x0cf661907e76c4921f7df302092697799dc63b244.462 MATIC
0x687e641ad6a06339f102dacd0513482446f0b57b3f83489d946992e836f364a2220636822021-12-02 21:22:29206 days 5 hrs ago 0x85c4ae348d35784f6f28b3fface7cb1629d5126c0x6883478ad90fffbee0a69274ad44c1b46adaafb94.462 MATIC
0x12e989ba1b29b9d4dbedbd940103d81599c4f398992b8e7da2fd095f3dc4360c210979262021-11-07 17:19:59231 days 9 hrs ago 0x85c4ae348d35784f6f28b3fface7cb1629d5126c0x06f6327f7f5e09cba31ce98c74071c786112f22d1.357 MATIC
0x12e989ba1b29b9d4dbedbd940103d81599c4f398992b8e7da2fd095f3dc4360c210979262021-11-07 17:19:59231 days 9 hrs ago 0x85c4ae348d35784f6f28b3fface7cb1629d5126c0x0cf661907e76c4921f7df302092697799dc63b241.357 MATIC
0x12e989ba1b29b9d4dbedbd940103d81599c4f398992b8e7da2fd095f3dc4360c210979262021-11-07 17:19:59231 days 9 hrs ago 0x85c4ae348d35784f6f28b3fface7cb1629d5126c0x6883478ad90fffbee0a69274ad44c1b46adaafb91.357 MATIC
0x73031ed1ab6c553368b8eaea88f7c992e3c0970138cdc047566c577d2d4f556c206766932021-10-27 18:45:07242 days 8 hrs ago 0x85c4ae348d35784f6f28b3fface7cb1629d5126c0x06f6327f7f5e09cba31ce98c74071c786112f22d1.61 MATIC
0x73031ed1ab6c553368b8eaea88f7c992e3c0970138cdc047566c577d2d4f556c206766932021-10-27 18:45:07242 days 8 hrs ago 0x85c4ae348d35784f6f28b3fface7cb1629d5126c0x0cf661907e76c4921f7df302092697799dc63b241.61 MATIC
0x73031ed1ab6c553368b8eaea88f7c992e3c0970138cdc047566c577d2d4f556c206766932021-10-27 18:45:07242 days 8 hrs ago 0x85c4ae348d35784f6f28b3fface7cb1629d5126c0x6883478ad90fffbee0a69274ad44c1b46adaafb91.61 MATIC
0xd0910af461ee401d014fc16051b75709fefc25eea2d834e79b10b990a1df64f7206303362021-10-26 11:46:03243 days 15 hrs ago 0x85c4ae348d35784f6f28b3fface7cb1629d5126c0x06f6327f7f5e09cba31ce98c74071c786112f22d7.567 MATIC
0xd0910af461ee401d014fc16051b75709fefc25eea2d834e79b10b990a1df64f7206303362021-10-26 11:46:03243 days 15 hrs ago 0x85c4ae348d35784f6f28b3fface7cb1629d5126c0x0cf661907e76c4921f7df302092697799dc63b247.567 MATIC
0xd0910af461ee401d014fc16051b75709fefc25eea2d834e79b10b990a1df64f7206303362021-10-26 11:46:03243 days 15 hrs ago 0x85c4ae348d35784f6f28b3fface7cb1629d5126c0x6883478ad90fffbee0a69274ad44c1b46adaafb97.567 MATIC
0x8fcdbfb39197d5e5c40357c51f08bed8343ce29470ec0505b6fc4ff50e65930c205708312021-10-24 19:24:29245 days 7 hrs ago 0x85c4ae348d35784f6f28b3fface7cb1629d5126c0x06f6327f7f5e09cba31ce98c74071c786112f22d12.771666666666666667 MATIC
0x8fcdbfb39197d5e5c40357c51f08bed8343ce29470ec0505b6fc4ff50e65930c205708312021-10-24 19:24:29245 days 7 hrs ago 0x85c4ae348d35784f6f28b3fface7cb1629d5126c0x0cf661907e76c4921f7df302092697799dc63b2412.771666666666666667 MATIC
0x8fcdbfb39197d5e5c40357c51f08bed8343ce29470ec0505b6fc4ff50e65930c205708312021-10-24 19:24:29245 days 7 hrs ago 0x85c4ae348d35784f6f28b3fface7cb1629d5126c0x6883478ad90fffbee0a69274ad44c1b46adaafb912.771666666666666667 MATIC
0x58afba6aca47f5cd8f8608f1b86025f2c5e72e16da129b332396ffe135c3de56202107222021-10-14 13:19:58255 days 13 hrs ago 0x85c4ae348d35784f6f28b3fface7cb1629d5126c0x06f6327f7f5e09cba31ce98c74071c786112f22d4.273333333333333333 MATIC
0x58afba6aca47f5cd8f8608f1b86025f2c5e72e16da129b332396ffe135c3de56202107222021-10-14 13:19:58255 days 13 hrs ago 0x85c4ae348d35784f6f28b3fface7cb1629d5126c0x0cf661907e76c4921f7df302092697799dc63b244.273333333333333333 MATIC
0x58afba6aca47f5cd8f8608f1b86025f2c5e72e16da129b332396ffe135c3de56202107222021-10-14 13:19:58255 days 13 hrs ago 0x85c4ae348d35784f6f28b3fface7cb1629d5126c0x6883478ad90fffbee0a69274ad44c1b46adaafb94.273333333333333333 MATIC
[ Download CSV Export 
Loading
This contract may be a proxy contract. Click on More Options and select Is this a proxy? to confirm and enable the "Read as Proxy" & "Write as Proxy" tabs.

Contract Source Code Verified (Exact Match)

Contract Name:
Pseudopops

Compiler Version
v0.8.4+commit.c7e474f2

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 22 : Sudopop.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.3;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

import "./BubbleMaker.sol";
import "./BottleCaps.sol";
import "./Base64.sol";

import "hardhat/console.sol";

/// [MIT License]
/// @title Sudopop
/**
 ██▓███    ██████ ▓█████  █    ██ ▓█████▄  ▒█████   ██▓███   ▒█████   ██▓███
▓██░  ██▒▒██    ▒ ▓█   ▀  ██  ▓██▒▒██▀ ██▌▒██▒  ██▒▓██░  ██▒▒██▒  ██▒▓██░  ██▒
▓██░ ██▓▒░ ▓██▄   ▒███   ▓██  ▒██░░██   █▌▒██░  ██▒▓██░ ██▓▒▒██░  ██▒▓██░ ██▓▒
▒██▄█▓▒ ▒  ▒   ██▒▒▓█  ▄ ▓▓█  ░██░░▓█▄   ▌▒██   ██░▒██▄█▓▒ ▒▒██   ██░▒██▄█▓▒ ▒
▒██▒ ░  ░▒██████▒▒░▒████▒▒▒█████▓ ░▒████▓ ░ ████▓▒░▒██▒ ░  ░░ ████▓▒░▒██▒ ░  ░
▒▓▒░ ░  ░▒ ▒▓▒ ▒ ░░░ ▒░ ░░▒▓▒ ▒ ▒  ▒▒▓  ▒ ░ ▒░▒░▒░ ▒▓▒░ ░  ░░ ▒░▒░▒░ ▒▓▒░ ░  ░
░▒ ░     ░ ░▒  ░ ░ ░ ░  ░░░▒░ ░ ░  ░ ▒  ▒   ░ ▒ ▒░ ░▒ ░       ░ ▒ ▒░ ░▒ ░
░░       ░  ░  ░     ░    ░░░ ░ ░  ░ ░  ░ ░ ░ ░ ▒  ░░       ░ ░ ░ ▒  ░░
               ░     ░  ░   ░        ░        ░ ░               ░ ░
                                   ░
**/

contract Pseudopops is ERC721, ERC721Enumerable, Ownable {
    // using Counters for Counters.Counter;
    using SafeMath for uint256;

    // Counters.Counter private _tokenIds;
    uint256 private _currentToken = 1;

    uint256 public maxPerTx;
    uint256 public maxSupply;

    address _owner;

    address public constant burn = 0x000000000000000000000000000000000000dEaD;
    uint256 public constant NAMECHANGEPRICE = 400 ether;
    uint256 public constant SHAKEITUPPRICE = 300 ether;

    // the squad
    address public constant appsus = 0x6883478aD90FfFbEe0a69274aD44C1B46adaaFb9;
    address public constant cache = 0x0CF661907E76C4921f7dF302092697799dc63B24;
    address public constant gremblo =
        0x06F6327f7F5E09cba31cE98C74071c786112F22d;

    struct Soda {
        string name;
        uint256 poured;
        uint256 lastPoured;
        uint256 fizz;
        uint256 magicNum;
        uint256 spilled;
    }

    BottleCaps public bottleCaps;

    mapping(uint256 => Soda) public sodas;
    mapping(address => uint256) public sodaCount;
    // mapping of taken names
    mapping(string => bool) private _nameReserved;

    // events
    event SodaPoured(uint256 tokenId, uint256 fizz);
    event NameChanged(uint256 indexed tokenId, string newName);

    constructor() ERC721("PseudoPops", "SUDOPOPS") {
        _owner = msg.sender;
        maxSupply = 10_000;
        maxPerTx = 6;
    }

    function shakeItUpForNowTatllDO(uint256 tokenId) public {
        require(msg.sender == ownerOf(tokenId), "Not the owner");
        bottleCaps.burn(msg.sender, SHAKEITUPPRICE);
        sodas[tokenId].fizz = BubbleMaker.shakeItUpThatllDO(tokenId);
    }

    function pourOneOutForDaHommies(uint256 tokenId) public {
        require(msg.sender == ownerOf(tokenId), "Not the owner");
        bottleCaps.burn(msg.sender, SHAKEITUPPRICE);
        sodas[tokenId].spilled =
            sodas[tokenId].spilled +
            (block.timestamp - sodas[tokenId].lastPoured);
        sodas[tokenId].lastPoured = block.timestamp;
    }

    // tiered pricing inspired by anonymice
    // https://etherscan.io/address/0xbad6186e92002e312078b5a1dafd5ddf63d3f731#code
    function priceToMint() public view returns (uint256) {
        uint256 _totalSupply = totalSupply();
        if (_totalSupply <= 500) return 0; // free ninety-nine
        if (_totalSupply > 500 && _totalSupply < 1000) return 30000000000000000; // 0.03 ETH
        if (_totalSupply > 1000 && _totalSupply < 8900)
            return 69000000000000000; // 0.069 ETH
        if (_totalSupply > 8900 && _totalSupply < 9000)
            return 4200000000000000000; // 4.20 ETH
        // it's over ninethousand
        if (_totalSupply > 9000 && _totalSupply <= maxSupply) return 0; // free ninety-nine
        // how could you do this to us?
        revert();
    }

    // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
    function toString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        bytes memory buffer = new bytes(digits);
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        return string(buffer);
    }

    // tokenURI returns base64 encoded svg
    function tokenURI(uint256 tokenId)
        public
        view
        override(ERC721)
        returns (string memory)
    {
        Soda memory soda = sodas[tokenId];
        string memory output = BubbleMaker.makeSVG(
            soda.lastPoured,
            soda.fizz,
            soda.magicNum
        );

        string memory json = Base64.encode(
            bytes(
                string(
                    abi.encodePacked(
                        "{",
                        BubbleMaker.getTraits(
                            soda.name,
                            soda.poured,
                            soda.fizz
                        ),
                        '"image": "data:image/svg+xml;base64,',
                        Base64.encode(bytes(output)),
                        '"}'
                    )
                )
            )
        );
        output = string(
            abi.encodePacked("data:application/json;base64,", json)
        );

        return output;
    }

    // empty the money box
    function multiCoinMechanism() public payable onlyOwner {
        require(address(this).balance > 0, "no one likes your stuff");
        uint256 share = address(this).balance / 3;
        payable(appsus).transfer(share);
        payable(cache).transfer(share);
        payable(gremblo).transfer(share);
    }

    // you're gonna make it
    function pour(uint256 num) public payable {
        require(num <= maxPerTx, "you're being greedy");
        require(_currentToken.add(num) < maxSupply, "resource exhausted");
        require(priceToMint().mul(num) <= msg.value, "not enough funds");

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

            uint256[2] memory seedFizz = BubbleMaker
                .biggerAndBetterThanGemblosBYAPPSUS(_currentToken);

            sodaCount[msg.sender]++;
            sodas[_currentToken] = Soda(
                "PseudoPop",
                block.timestamp,
                block.timestamp,
                seedFizz[1],
                seedFizz[0],
                0
            );

            emit SodaPoured(_currentToken, seedFizz[1]);
            _currentToken = _currentToken.add(1);
        }

        bottleCaps.updateRewardOnMint(msg.sender, num);
    }

    function claimCaps() public {
        bottleCaps.rehydrate(msg.sender);
    }

    function isNameReserved(string memory str) public view returns (bool) {
        return _nameReserved[toLower(str)];
    }

    function toggleReserveName(string memory str, bool isReserve) internal {
        _nameReserved[toLower(str)] = isReserve;
    }

    function tokenNameByIndex(uint256 index)
        public
        view
        returns (string memory)
    {
        Soda memory soda = sodas[index];
        return soda.name;
    }

    function changeName(uint256 _tokenId, string memory _name) public {
        require(msg.sender == ownerOf(_tokenId), "Get off my lawn");
        require(isNameReserved(_name) == false, "Name already reserved");

        bottleCaps.burn(msg.sender, NAMECHANGEPRICE);
        // toggle previously owned names
        Soda memory soda = sodas[_tokenId];
        if (bytes(soda.name).length > 0) {
            toggleReserveName(soda.name, false);
        }
        toggleReserveName(_name, true);
        soda.name = _name;
        sodas[_tokenId] = soda;
        emit NameChanged(_tokenId, _name);
    }

    function toLower(string memory str) public pure returns (string memory) {
        bytes memory bStr = bytes(str);
        bytes memory bLower = new bytes(bStr.length);
        for (uint256 i = 0; i < bStr.length; i++) {
            // Uppercase character
            if ((uint8(bStr[i]) >= 65) && (uint8(bStr[i]) <= 90)) {
                bLower[i] = bytes1(uint8(bStr[i]) + 32);
            } else {
                bLower[i] = bStr[i];
            }
        }
        return string(bLower);
    }

    // required solidity implementations
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal override(ERC721, ERC721Enumerable) {
        sodas[tokenId].poured = block.timestamp;
        sodas[tokenId].lastPoured = block.timestamp;
        super._beforeTokenTransfer(from, to, tokenId);
    }

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

    function setCapToken(address _address) external onlyOwner {
        bottleCaps = BottleCaps(_address);
    }
}

File 2 of 22 : ERC721.sol
// SPDX-License-Identifier: MIT

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 {
        require(operator != _msgSender(), "ERC721: approve to caller");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_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 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 3 of 22 : ERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 4 of 22 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

File 5 of 22 : Ownable.sol
// SPDX-License-Identifier: MIT

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() {
        _setOwner(_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 {
        _setOwner(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");
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

File 6 of 22 : BubbleMaker.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.3;

library BubbleMaker {
    function getRandomHSL(uint256 uniqueRand)
        internal
        pure
        returns (string memory)
    {
        uint256 random_1 = (uniqueRand / 10);
        uint256 random_2 = (uniqueRand / 15);
        uint256 random_3 = (uniqueRand / 20);
        return
            string(
                abi.encodePacked(
                    "hsl(",
                    toString(random(0, 360, random_1)),
                    ", ",
                    toString(random(50, 100, random_2)),
                    "%, ",
                    toString(random(50, 100, random_3)),
                    "%)"
                )
            );
    }

    function getTraits(
        string memory name,
        uint256 poured,
        uint256 fizz
    ) public view returns (string memory) {
        return
            string(
                abi.encodePacked(
                    '"name": "',
                    name,
                    '",',
                    '"description": "A completely on-chain PseudoPop poured on the blockchain!",',
                    '"attributes":[',
                    traits(poured, fizz),
                    "], "
                )
            );
    }

    function traits(uint256 poured, uint256 fizz)
        internal
        view
        returns (string memory)
    {
        uint256 max = 25;
        uint256 ratio = (fizz * 100) / max;
        return
            string(
                abi.encodePacked(
                    "{",
                    '"display_type": "date",',
                    '"trait_type": "Poured on",',
                    '"value": "',
                    toString(poured),
                    '"',
                    "},",
                    "{",
                    '"display_type": "number",',
                    '"trait_type": "Days held",',
                    '"value": "',
                    toString(timeheld(poured)),
                    '"',
                    "},",
                    "{",
                    '"display_type": "boost_percentage",',
                    '"trait_type": "Fizz",',
                    '"value": "',
                    toString(ratio),
                    '"',
                    "}"
                )
            );
    }

    /*
    ,-.----.                                                          ____   
    \    /  \                                ,---,                  ,'  , `. 
    ;   :    \                   ,---,     ,---.'|   ,---.       ,-+-,.' _ | 
    |   | .\ :               ,-+-. /  |    |   | :  '   ,'\   ,-+-. ;   , || 
    .   : |: |   ,--.--.    ,--.'|'   |    |   | | /   /   | ,--.'|'   |  || 
    |   |  \ :  /       \  |   |  ,"' |  ,--.__| |.   ; ,. :|   |  ,', |  |, 
    |   : .  / .--.  .-. | |   | /  | | /   ,'   |'   | |: :|   | /  | |--'  
    ;   | |  \  \__\/: . . |   | |  | |.   '  /  |'   | .; :|   : |  | ,     
    |   | ;\  \ ," .--.; | |   | |  |/ '   ; |:  ||   :    ||   : |  |/      
    :   ' | \.'/  /  ,.  | |   | |--'  |   | '/  ' \   \  / |   | |`-'       
    :   : :-' ;  :   .'   \|   |/      |   :    :|  `----'  |   ;/           
    |   |.'   |  ,     .-./'---'        \   \  /            '---'            
    `---'      `--`---'                  `----'                              
    */
    function random(
        uint256 min,
        uint256 max,
        uint256 seed
    ) public pure returns (uint256) {
        return min + (seed % (max - min + 1));
    }

    function shakeItUpThatllDO(uint256 tokenId) public view returns (uint256) {
        uint256 jeneral = gremblosCoolRandomFunctionThatIsBerryCoolAndGood(
            tokenId
        );
        return random(0, 25, jeneral);
    }

    function gremblosCoolRandomFunctionThatIsBerryCoolAndGood(uint256 tokenID)
        public
        view
        returns (uint256)
    {
        return
            uint256(
                keccak256(
                    abi.encodePacked(block.difficulty, block.timestamp, tokenID)
                )
            );
    }

    function biggerAndBetterThanGemblosBYAPPSUS(uint256 tokenId)
        public
        view
        returns (uint256[2] memory magicArray)
    {
        uint256 jeneral = gremblosCoolRandomFunctionThatIsBerryCoolAndGood(
            tokenId
        );
        uint256 fizz = random(0, 25, jeneral);
        return [jeneral, fizz];
    }

    function timeheld(uint256 date) internal view returns (uint256) {
        return (block.timestamp - date) / 86_4000;
    }

    function getFillHeight(uint256 poured)
        internal
        view
        returns (string memory)
    {
        uint256 holdtime = (block.timestamp - poured) / 86_4000;
        if (holdtime < 10) return "400";
        if (holdtime > 250) return "50";
        return toString(400 - holdtime);
    }

    function getBg(uint256 randSeed) internal pure returns (string memory) {
        uint256 uniqueNum = randSeed / 5;

        return
            string(
                abi.encodePacked(
                    '<rect x="0" y="0" width="600px" height="600px" fill="',
                    getRandomHSL(uniqueNum),
                    '" />'
                )
            );
    }

    function getGradient(uint256 randSeed)
        internal
        pure
        returns (string memory)
    {
        uint256 random_1 = randSeed / 35;
        uint256 random_2 = randSeed / 45;
        uint256 random_3 = randSeed / 55;

        return
            string(
                abi.encodePacked(
                    '<linearGradient id="grad1" x1="0%" y1="0%" x2="0%" y2="100%">',
                    '<stop offset="0%" stop-color="',
                    getRandomHSL(random_1),
                    '" />',
                    '<stop offset="50%" stop-color="',
                    getRandomHSL(random_2),
                    '" />',
                    '<stop offset="100%" stop-color="',
                    getRandomHSL(random_3),
                    '" />',
                    "</linearGradient>"
                )
            );
    }

    function getClipPath(uint256 poured) internal view returns (string memory) {
        return
            string(
                abi.encodePacked(
                    '<clipPath id="liquid-top">',
                    '<use xlink:href="#waves" transform="translate(0,',
                    getFillHeight(poured),
                    ')"/>',
                    "</clipPath>"
                )
            );
    }

    function getTransform(uint256 poured)
        internal
        view
        returns (string memory)
    {
        return
            string(
                abi.encodePacked(
                    '<g transform="translate(0,',
                    getFillHeight(poured),
                    ')">'
                )
            );
    }

    /**
     * @dev generate waves
     * TODO: get more wavy
     * waveToTheHaters
     **/
    function getWaves(uint256 randSeed, uint256 poured)
        internal
        view
        returns (string memory)
    {
        uint256 randomNum = randSeed / 10;
        return
            string(
                abi.encodePacked(
                    '<g transform="translate(0,',
                    getFillHeight(poured),
                    ')">',
                    '<g transform="translate(0,-20)">',
                    '<path id="waves" fill="',
                    getRandomHSL(randomNum),
                    '" d="M0 67C 273,183 822,-40 1920.00,106 V 600 H 0 V 67Z">',
                    '<animate repeatCount="indefinite" fill="',
                    getRandomHSL(randomNum),
                    '" attributeName="d" dur="10s" values=" M0 77 C 473,283 822,-40 1920,116 V 600 H 0 V 67 Z; M0 77 C 473,-40 1222,283 1920,136 V 600 H 0 V 67 Z; M0 77 C 973,260 1722,-53 1920,120 V 600 H 0 V 67 Z; M0 77 C 473,283 822,-40 1920,116 V 600 H 0 V 67 Z " >',
                    "</animate>",
                    "</path>",
                    "</g>",
                    '<use xlink:href="#waves" />',
                    "</g>"
                )
            );
    }

    function getScale(uint256 randSeed) internal pure returns (string memory) {
        uint256 randonNum_1 = randSeed / 30;
        uint256 randonNum_2 = randSeed / 35;
        return
            string(
                abi.encodePacked(
                    toString(random(1, 5, randonNum_1)),
                    ".",
                    toString(random(0, 99999999, randonNum_2))
                )
            );
    }

    function getDuration(uint256 randSeed)
        internal
        pure
        returns (string memory)
    {
        uint256 randonNum_1 = randSeed / 30;
        uint256 randonNum_2 = randSeed / 35;
        return
            string(
                abi.encodePacked(
                    toString(random(1, 5, randonNum_1) + 1),
                    ".",
                    toString(random(0, 99999999, randonNum_2))
                )
            );
    }

    function getStartTime(uint256 randSeed)
        internal
        pure
        returns (string memory)
    {
        uint256 randomNum_1 = randSeed / 20;
        uint256 randomNum_2 = randSeed / 25;
        return
            string(
                abi.encodePacked(
                    toString(random(0, 2, randomNum_1)),
                    ".",
                    toString(random(0, 99999999, randomNum_2))
                )
            );
    }

    function getPathFromList(uint256 randSeed)
        internal
        pure
        returns (string memory)
    {
        uint256 randomNum = randSeed / 15;
        string[10] memory paths = [
            "m 0 600 q 52 -162 0 -300 q -87 -143 0 -300",
            "m 0 600 q 258 -162 0 -300 q -254 -136 0 -300",
            "m 0 600 q 37 -157 0 -300 q -33 -180 0 -300",
            "m 0 600 q 190 -145 0 -300 q -101 -39 0 -300",
            "m 0 600 q 431 -148 0 -300 q -327 -200 0 -300",
            "m 0 600 q -191 -169 0 -300 q 166 -136 0 -300",
            "m 0 600 q -55 -164 0 -300 q 66 -151 0 -300",
            "m 0 600 q -276 -162 0 -300 q 302 -148 0 -300",
            "m 0 600 q -43 -174 0 -300 q 42 -180 0 -300",
            "m 0 600 q -191 -232 0 -300 q 234 -102 0 -300"
        ];
        return paths[random(0, 9, randomNum)];
    }

    /**
     * set postition of bubble
     */
    function getTransformTranslateX(uint256 randSeed)
        public
        pure
        returns (string memory)
    {
        uint256 randomNum = randSeed / 10;
        return
            string(
                abi.encodePacked(
                    '<g transform="translate(',
                    toString(random(0, 600, randomNum)),
                    " ",
                    toString(0),
                    ')">'
                )
            );
    }

    function makeBubbles(uint256 num, uint256 seed)
        public
        view
        returns (string memory)
    {
        string memory out;

        uint256 randomNum = (
            gremblosCoolRandomFunctionThatIsBerryCoolAndGood(seed)
        ) / (10 * num);

        string memory bubNum = toString(num);
        string memory scale = getScale(randomNum);
        string memory duration = getDuration(randomNum);

        out = string(
            abi.encodePacked(
                '<g transform="translate(0, 0)">',
                getTransformTranslateX(randomNum),
                '<animateMotion path="',
                getPathFromList(randomNum),
                '" start="',
                getStartTime(randomNum),
                's" dur="',
                duration,
                's" repeatCount="indefinite" />',
                '<g transform="scale(',
                scale,
                ')">',
                '<path transform="translate(2 -1)" d="m-1.85-8.8c.4 0 .7-.3.7-.7v-3c0-.4-.3-.7-.7-.7c-.4 0-.7.3-.7.7v3c0 .4.3.7.7.7zm7.2 3.7c.2 0 .35-.05.5-.2l2.6-2.6c.3-.3.3-.75 0-1c-.3-.3-.75-.3-1 0l-2.6 2.6c-.3.3-.3.75 0 1c.1.1.3.2.5.2zm-16.05-.25c.15.15.35.2.5.2c.2 0 .35-.05.5-.2c.3-.3.3-.75 0-1l-2.55-2.6c-.3-.3-.75-.3-1 0c-.3.3-.3.75 0 1l2.55 2.6zm8.3 16.4c-.4 0-.7.3-.7.7v3c0 .4.3.7.7.7s.7-.3.7-.7v-3c0-.4-.3-.7-.7-.7zm-7.7-3.45-2.6 2.6c-.3.3-.3.75 0 1c.15.15.35.2.5.2c.2 0 .35-.05.5-.2l2.6-2.6c.3-.3.3-.75 0-1c-.3-.3-.75-.3-1 0zm16.55 0c-.3-.3-.75-.3-1 0c-.3.3-.3.75 0 1l2.6 2.6c.15.15.35.2.5.2c.2 0 .35-.05.5-.2c.3-.3.3-.75 0-1l-2.6-2.6zm-18.5-6.4c0-.4-.3-.7-.7-.7h-3.3c-.4 0-.7.3-.7.7c0 .4.3.7.7.7h3.25c.4 0 .75-.3.75-.7zm23.85-.75h-3.85c-.4 0-.7.3-.7.7c0 .4.3.7.7.7h3.85c.4 0 .7-.3.7-.7c0-.35-.3-.7-.7-.7z" fill="#ffffff00">',
                '<set attributeName="fill" to="#ffffff30" begin="',
                bubNum,
                '.mouseover" />',
                '<animate attributeName="fill" values="#ffffff30;#ffffff00" dur="0.25s" fill="freeze" begin="',
                bubNum,
                '.mouseover"/>',
                '<animateTransform attributeName="transform" type="scale" from="1 1" to="2 2" begin="',
                bubNum,
                '.mouseover" dur="0.25s" fill="freeze">',
                "</animateTransform>",
                "</path>",
                '<circle id="',
                bubNum,
                '" r="10" fill="#ffffff30" stroke-width="0.25px" stroke="#ffffff66" >',
                '<set attributeName="fill" to="#ffffff00" begin="',
                bubNum,
                '.mouseover" />',
                '<set attributeName="stroke" to="#ffffff00" begin="',
                bubNum,
                '.mouseover" />',
                '<set attributeName="pointer-events" to="none" begin="',
                bubNum,
                '.mouseover" />',
                "</circle>",
                "</g>",
                "</g>",
                "</g>"
            )
        );
        return out;
    }

    function makeSVG(
        uint256 poured,
        uint256 fizz,
        uint256 seed
    ) public view returns (string memory) {
        string memory start = string(
            abi.encodePacked(
                '<svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 600 600" preserveAspectRatio="xMaxYMid  slice" >',
                "<defs>",
                '<path id="waves" fill="url(#grad1)" d=" M0 67 C 273,183 822,-40 1920.00,106 V 600 H 0 V 67Z" >',
                '<animate repeatCount="indefinite" fill="url(#grad1)" attributeName="d" dur="10s" values=" M0 77 C 473,283 822,-40 1920,116 V 600 H 0 V 67 Z; M0 77 C 473,-40 1222,283 1920,136 V 600 H 0 V 67 Z; M0 77 C 973,260 1722,-53 1920,120 V 600 H 0 V 67 Z; M0 77 C 473,283 822,-40 1920,116 V 600 H 0 V 67 Z " >',
                "</animate>",
                "</path>",
                "</defs>",
                getBg(seed),
                getGradient(seed),
                getClipPath(poured),
                getWaves(seed, poured),
                '<g id="bubbleGroup" clip-path="url(#liquid-top)">'
            )
        );

        uint256 bubNum = fizz;
        if (bubNum > 0) {
            for (uint256 i = 1; i < bubNum; i++) {
                start = string(abi.encodePacked(start, makeBubbles(i, seed)));
            }
        }
        return string(abi.encodePacked(start, "</g>", "</svg>"));
    }

    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT license
        // 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);
    }
}

File 7 of 22 : BottleCaps.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.2;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";

interface ISudopop {
    function sodaCount(address _user) external view returns (uint256);
}

/*
 $$$$$$\                                
$$  __$$\                               
$$ /  \__| $$$$$$\   $$$$$$\   $$$$$$$\ 
$$ |       \____$$\ $$  __$$\ $$  _____|
$$ |       $$$$$$$ |$$ /  $$ |\$$$$$$\  
$$ |  $$\ $$  __$$ |$$ |  $$ | \____$$\ 
\$$$$$$  |\$$$$$$$ |$$$$$$$  |$$$$$$$  |
 \______/  \_______|$$  ____/ \_______/ 
                    $$ |                
                    $$ |                
                    \__|                
*/

contract BottleCaps is ERC20, ERC20Burnable {
    using SafeMath for uint256;

    ISudopop public pseudoPopContract;

    // mapping(address => uint256) public rewards;
    mapping(address => uint256) public lastUpdate;

    uint256 public constant BASE_RATE = 10 ether;
    uint256 public constant INITIAL_ISSUANCE = 400 ether;

    uint256 public constant DRY = 1634166000;

    constructor(address _pop) ERC20("BottleCaps", "CAPS") {
        pseudoPopContract = ISudopop(_pop);
    }

    event Rehydrated(address indexed, uint256 reward);

    function updateRewardOnMint(address to, uint256 num) public {
        require(
            msg.sender == address(pseudoPopContract),
            "Must be from contract"
        );
        uint256 time = min(block.timestamp, DRY);
        uint256 lastUpdated = lastUpdate[to];

        if (lastUpdated > 0) {
            uint256 fullRewards = pseudoPopContract
                .sodaCount(to)
                .mul(BASE_RATE.mul((time.sub(lastUpdated))))
                .div(86400)
                .add(num.mul(INITIAL_ISSUANCE));
            _mint(to, fullRewards);
        } else {
            uint256 rewards = num.mul(INITIAL_ISSUANCE);
            _mint(to, rewards);
        }
        lastUpdate[to] = time;
    }

    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    // Mint caps
    function rehydrate(address _to) external {
        require(msg.sender == address(pseudoPopContract));
        uint256 time = min(block.timestamp, DRY);
        uint256 lastUpdated = lastUpdate[_to];
        uint256 reward = pseudoPopContract
            .sodaCount(_to)
            .mul(BASE_RATE.mul((time.sub(lastUpdated))))
            .div(86400);
        if (reward > 0) {
            _mint(_to, reward);
            lastUpdate[_to] = time;
        }
        emit Rehydrated(_to, reward);
    }

    function getTotalClaimable(address _user) external view returns (uint256) {
        uint256 time = min(block.timestamp, DRY);
        uint256 pending = pseudoPopContract
            .sodaCount(_user)
            .mul(BASE_RATE.mul((time.sub(lastUpdate[_user]))))
            .div(86400);
        return pending;
    }

    function burn(address _from, uint256 _amount) external {
        require(msg.sender == address(pseudoPopContract));
        _burn(_from, _amount);
    }
}

File 8 of 22 : Base64.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.3;

/// [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 9 of 22 : 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 10 of 22 : IERC721.sol
// SPDX-License-Identifier: MIT

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 11 of 22 : IERC721Receiver.sol
// SPDX-License-Identifier: MIT

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 12 of 22 : IERC721Metadata.sol
// SPDX-License-Identifier: MIT

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 13 of 22 : Address.sol
// SPDX-License-Identifier: MIT

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 14 of 22 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

File 15 of 22 : Strings.sol
// SPDX-License-Identifier: MIT

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 16 of 22 : ERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

File 17 of 22 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 18 of 22 : IERC721Enumerable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC721.sol";

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

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

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

File 19 of 22 : ERC20.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC20.sol";
import "./extensions/IERC20Metadata.sol";
import "../../utils/Context.sol";

/**
 * @dev Implementation of the {IERC20} interface.
 *
 * This implementation is agnostic to the way tokens are created. This means
 * that a supply mechanism has to be added in a derived contract using {_mint}.
 * For a generic mechanism see {ERC20PresetMinterPauser}.
 *
 * TIP: For a detailed writeup see our guide
 * https://forum.zeppelin.solutions/t/how-to-implement-erc20-supply-mechanisms/226[How
 * to implement supply mechanisms].
 *
 * We have followed general OpenZeppelin Contracts guidelines: functions revert
 * instead returning `false` on failure. This behavior is nonetheless
 * conventional and does not conflict with the expectations of ERC20
 * applications.
 *
 * Additionally, an {Approval} event is emitted on calls to {transferFrom}.
 * This allows applications to reconstruct the allowance for all accounts just
 * by listening to said events. Other implementations of the EIP may not emit
 * these events, as it isn't required by the specification.
 *
 * Finally, the non-standard {decreaseAllowance} and {increaseAllowance}
 * functions have been added to mitigate the well-known issues around setting
 * allowances. See {IERC20-approve}.
 */
contract ERC20 is Context, IERC20, IERC20Metadata {
    mapping(address => uint256) private _balances;

    mapping(address => mapping(address => uint256)) private _allowances;

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;

    /**
     * @dev Sets the values for {name} and {symbol}.
     *
     * The default value of {decimals} is 18. To select a different value for
     * {decimals} you should overload it.
     *
     * All two of these values are immutable: they can only be set once during
     * construction.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @dev Returns the name of the token.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev Returns the symbol of the token, usually a shorter version of the
     * name.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev Returns the number of decimals used to get its user representation.
     * For example, if `decimals` equals `2`, a balance of `505` tokens should
     * be displayed to a user as `5.05` (`505 / 10 ** 2`).
     *
     * Tokens usually opt for a value of 18, imitating the relationship between
     * Ether and Wei. This is the value {ERC20} uses, unless this function is
     * overridden;
     *
     * NOTE: This information is only used for _display_ purposes: it in
     * no way affects any of the arithmetic of the contract, including
     * {IERC20-balanceOf} and {IERC20-transfer}.
     */
    function decimals() public view virtual override returns (uint8) {
        return 18;
    }

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

    /**
     * @dev See {IERC20-balanceOf}.
     */
    function balanceOf(address account) public view virtual override returns (uint256) {
        return _balances[account];
    }

    /**
     * @dev See {IERC20-transfer}.
     *
     * Requirements:
     *
     * - `recipient` cannot be the zero address.
     * - the caller must have a balance of at least `amount`.
     */
    function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
        _transfer(_msgSender(), recipient, amount);
        return true;
    }

    /**
     * @dev See {IERC20-allowance}.
     */
    function allowance(address owner, address spender) public view virtual override returns (uint256) {
        return _allowances[owner][spender];
    }

    /**
     * @dev See {IERC20-approve}.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function approve(address spender, uint256 amount) public virtual override returns (bool) {
        _approve(_msgSender(), spender, amount);
        return true;
    }

    /**
     * @dev See {IERC20-transferFrom}.
     *
     * Emits an {Approval} event indicating the updated allowance. This is not
     * required by the EIP. See the note at the beginning of {ERC20}.
     *
     * Requirements:
     *
     * - `sender` and `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     * - the caller must have allowance for ``sender``'s tokens of at least
     * `amount`.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) public virtual override returns (bool) {
        _transfer(sender, recipient, amount);

        uint256 currentAllowance = _allowances[sender][_msgSender()];
        require(currentAllowance >= amount, "ERC20: transfer amount exceeds allowance");
        unchecked {
            _approve(sender, _msgSender(), currentAllowance - amount);
        }

        return true;
    }

    /**
     * @dev Atomically increases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     */
    function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
        _approve(_msgSender(), spender, _allowances[_msgSender()][spender] + addedValue);
        return true;
    }

    /**
     * @dev Atomically decreases the allowance granted to `spender` by the caller.
     *
     * This is an alternative to {approve} that can be used as a mitigation for
     * problems described in {IERC20-approve}.
     *
     * Emits an {Approval} event indicating the updated allowance.
     *
     * Requirements:
     *
     * - `spender` cannot be the zero address.
     * - `spender` must have allowance for the caller of at least
     * `subtractedValue`.
     */
    function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
        uint256 currentAllowance = _allowances[_msgSender()][spender];
        require(currentAllowance >= subtractedValue, "ERC20: decreased allowance below zero");
        unchecked {
            _approve(_msgSender(), spender, currentAllowance - subtractedValue);
        }

        return true;
    }

    /**
     * @dev Moves `amount` of tokens from `sender` to `recipient`.
     *
     * This internal function is equivalent to {transfer}, and can be used to
     * e.g. implement automatic token fees, slashing mechanisms, etc.
     *
     * Emits a {Transfer} event.
     *
     * Requirements:
     *
     * - `sender` cannot be the zero address.
     * - `recipient` cannot be the zero address.
     * - `sender` must have a balance of at least `amount`.
     */
    function _transfer(
        address sender,
        address recipient,
        uint256 amount
    ) internal virtual {
        require(sender != address(0), "ERC20: transfer from the zero address");
        require(recipient != address(0), "ERC20: transfer to the zero address");

        _beforeTokenTransfer(sender, recipient, amount);

        uint256 senderBalance = _balances[sender];
        require(senderBalance >= amount, "ERC20: transfer amount exceeds balance");
        unchecked {
            _balances[sender] = senderBalance - amount;
        }
        _balances[recipient] += amount;

        emit Transfer(sender, recipient, amount);

        _afterTokenTransfer(sender, recipient, amount);
    }

    /** @dev Creates `amount` tokens and assigns them to `account`, increasing
     * the total supply.
     *
     * Emits a {Transfer} event with `from` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function _mint(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: mint to the zero address");

        _beforeTokenTransfer(address(0), account, amount);

        _totalSupply += amount;
        _balances[account] += amount;
        emit Transfer(address(0), account, amount);

        _afterTokenTransfer(address(0), account, amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, reducing the
     * total supply.
     *
     * Emits a {Transfer} event with `to` set to the zero address.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens.
     */
    function _burn(address account, uint256 amount) internal virtual {
        require(account != address(0), "ERC20: burn from the zero address");

        _beforeTokenTransfer(account, address(0), amount);

        uint256 accountBalance = _balances[account];
        require(accountBalance >= amount, "ERC20: burn amount exceeds balance");
        unchecked {
            _balances[account] = accountBalance - amount;
        }
        _totalSupply -= amount;

        emit Transfer(account, address(0), amount);

        _afterTokenTransfer(account, address(0), amount);
    }

    /**
     * @dev Sets `amount` as the allowance of `spender` over the `owner` s tokens.
     *
     * This internal function is equivalent to `approve`, and can be used to
     * e.g. set automatic allowances for certain subsystems, etc.
     *
     * Emits an {Approval} event.
     *
     * Requirements:
     *
     * - `owner` cannot be the zero address.
     * - `spender` cannot be the zero address.
     */
    function _approve(
        address owner,
        address spender,
        uint256 amount
    ) internal virtual {
        require(owner != address(0), "ERC20: approve from the zero address");
        require(spender != address(0), "ERC20: approve to the zero address");

        _allowances[owner][spender] = amount;
        emit Approval(owner, spender, amount);
    }

    /**
     * @dev Hook that is called before any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * will be transferred to `to`.
     * - when `from` is zero, `amount` tokens will be minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens 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 amount
    ) internal virtual {}

    /**
     * @dev Hook that is called after any transfer of tokens. This includes
     * minting and burning.
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * has been transferred to `to`.
     * - when `from` is zero, `amount` tokens have been minted for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens have been 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 _afterTokenTransfer(
        address from,
        address to,
        uint256 amount
    ) internal virtual {}
}

File 20 of 22 : ERC20Burnable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev Extension of {ERC20} that allows token holders to destroy both their own
 * tokens and those that they have an allowance for, in a way that can be
 * recognized off-chain (via event analysis).
 */
abstract contract ERC20Burnable is Context, ERC20 {
    /**
     * @dev Destroys `amount` tokens from the caller.
     *
     * See {ERC20-_burn}.
     */
    function burn(uint256 amount) public virtual {
        _burn(_msgSender(), amount);
    }

    /**
     * @dev Destroys `amount` tokens from `account`, deducting from the caller's
     * allowance.
     *
     * See {ERC20-_burn} and {ERC20-allowance}.
     *
     * Requirements:
     *
     * - the caller must have allowance for ``accounts``'s tokens of at least
     * `amount`.
     */
    function burnFrom(address account, uint256 amount) public virtual {
        uint256 currentAllowance = allowance(account, _msgSender());
        require(currentAllowance >= amount, "ERC20: burn amount exceeds allowance");
        unchecked {
            _approve(account, _msgSender(), currentAllowance - amount);
        }
        _burn(account, amount);
    }
}

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

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 22 of 22 : IERC20Metadata.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC20.sol";

/**
 * @dev Interface for the optional metadata functions from the ERC20 standard.
 *
 * _Available since v4.1._
 */
interface IERC20Metadata is IERC20 {
    /**
     * @dev Returns the name of the token.
     */
    function name() external view returns (string memory);

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

    /**
     * @dev Returns the decimals places of the token.
     */
    function decimals() external view returns (uint8);
}

Settings
{
  "optimizer": {
    "enabled": false,
    "runs": 200
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "abi"
      ]
    }
  },
  "libraries": {
    "contracts/BubbleMaker.sol": {
      "BubbleMaker": "0xf3523e291582e726a738bc6454ae0287752e43ec"
    }
  }
}

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"string","name":"newName","type":"string"}],"name":"NameChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"fizz","type":"uint256"}],"name":"SodaPoured","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":"NAMECHANGEPRICE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"SHAKEITUPPRICE","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":[],"name":"appsus","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"bottleCaps","outputs":[{"internalType":"contract BottleCaps","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"burn","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cache","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"},{"internalType":"string","name":"_name","type":"string"}],"name":"changeName","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"claimCaps","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":"gremblo","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"str","type":"string"}],"name":"isNameReserved","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxPerTx","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"multiCoinMechanism","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"num","type":"uint256"}],"name":"pour","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"pourOneOutForDaHommies","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"priceToMint","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":"_address","type":"address"}],"name":"setCapToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"shakeItUpForNowTatllDO","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"sodaCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"sodas","outputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"poured","type":"uint256"},{"internalType":"uint256","name":"lastPoured","type":"uint256"},{"internalType":"uint256","name":"fizz","type":"uint256"},{"internalType":"uint256","name":"magicNum","type":"uint256"},{"internalType":"uint256","name":"spilled","type":"uint256"}],"stateMutability":"view","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":"string","name":"str","type":"string"}],"name":"toLower","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenNameByIndex","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526001600b553480156200001657600080fd5b506040518060400160405280600a81526020017f50736575646f506f7073000000000000000000000000000000000000000000008152506040518060400160405280600881526020017f5355444f504f505300000000000000000000000000000000000000000000000081525081600090805190602001906200009b929190620001fd565b508060019080519060200190620000b4929190620001fd565b505050620000d7620000cb6200012f60201b60201c565b6200013760201b60201c565b33600e60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550612710600d819055506006600c8190555062000312565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8280546200020b90620002ad565b90600052602060002090601f0160209004810192826200022f57600085556200027b565b82601f106200024a57805160ff19168380011785556200027b565b828001600101855582156200027b579182015b828111156200027a5782518255916020019190600101906200025d565b5b5090506200028a91906200028e565b5090565b5b80821115620002a95760008160009055506001016200028f565b5090565b60006002820490506001821680620002c657607f821691505b60208210811415620002dd57620002dc620002e3565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b61599d80620003226000396000f3fe6080604052600436106102465760003560e01c8063715018a611610139578063b88d4fde116100b6578063e078e0b01161007a578063e078e0b0146108c4578063e736777a146108ed578063e985e9c514610916578063f2fde38b14610953578063f3c377931461097c578063f968adbe1461098657610246565b8063b88d4fde146107df578063c38b75df14610808578063c39cbef114610833578063c87b56dd1461085c578063d5abeb011461089957610246565b80639416b423116100fd5780639416b423146106f557806395d89b41146107325780639a6830e91461075d578063a22cb46514610779578063b5b7bf70146107a257610246565b8063715018a61461061d57806384a0e4d21461063457806386a2b4991461065f5780638a4cf4d2146106a15780638da5cb5b146106ca57610246565b80634207e536116101c75780634f6ccce71161018b5780634f6ccce7146104fe57806360c7d2951461053b5780636352211e146105665780636d522418146105a357806370a08231146105e057610246565b80634207e5361461042957806342842e0e1461045457806344df8e701461047d5780634727b46a146104a85780634dc1dbec146104d357610246565b806315b56d101161020e57806315b56d101461034457806318160ddd1461038157806323b872dd146103ac5780632f745c59146103d55780633778ee411461041257610246565b806301ffc9a71461024b5780630343c82c1461028857806306fdde03146102b3578063081812fc146102de578063095ea7b31461031b575b600080fd5b34801561025757600080fd5b50610272600480360381019061026d9190614177565b6109b1565b60405161027f91906148fa565b60405180910390f35b34801561029457600080fd5b5061029d6109c3565b6040516102aa919061486a565b60405180910390f35b3480156102bf57600080fd5b506102c86109db565b6040516102d59190614930565b60405180910390f35b3480156102ea57600080fd5b506103056004803603810190610300919061424b565b610a6d565b604051610312919061486a565b60405180910390f35b34801561032757600080fd5b50610342600480360381019061033d9190614112565b610af2565b005b34801561035057600080fd5b5061036b600480360381019061036691906141c9565b610c0a565b60405161037891906148fa565b60405180910390f35b34801561038d57600080fd5b50610396610c47565b6040516103a39190614d13565b60405180910390f35b3480156103b857600080fd5b506103d360048036038101906103ce919061400c565b610c54565b005b3480156103e157600080fd5b506103fc60048036038101906103f79190614112565b610cb4565b6040516104099190614d13565b60405180910390f35b34801561041e57600080fd5b50610427610d59565b005b34801561043557600080fd5b5061043e610de8565b60405161044b9190614d13565b60405180910390f35b34801561046057600080fd5b5061047b6004803603810190610476919061400c565b610df5565b005b34801561048957600080fd5b50610492610e15565b60405161049f919061486a565b60405180910390f35b3480156104b457600080fd5b506104bd610e1b565b6040516104ca919061486a565b60405180910390f35b3480156104df57600080fd5b506104e8610e33565b6040516104f59190614d13565b60405180910390f35b34801561050a57600080fd5b506105256004803603810190610520919061424b565b610ef3565b6040516105329190614d13565b60405180910390f35b34801561054757600080fd5b50610550610f8a565b60405161055d919061486a565b60405180910390f35b34801561057257600080fd5b5061058d6004803603810190610588919061424b565b610fa2565b60405161059a919061486a565b60405180910390f35b3480156105af57600080fd5b506105ca60048036038101906105c5919061424b565b611054565b6040516105d79190614930565b60405180910390f35b3480156105ec57600080fd5b5061060760048036038101906106029190613fa7565b611149565b6040516106149190614d13565b60405180910390f35b34801561062957600080fd5b50610632611201565b005b34801561064057600080fd5b50610649611289565b6040516106569190614915565b60405180910390f35b34801561066b57600080fd5b506106866004803603810190610681919061424b565b6112af565b60405161069896959493929190614990565b60405180910390f35b3480156106ad57600080fd5b506106c860048036038101906106c3919061424b565b611373565b005b3480156106d657600080fd5b506106df611525565b6040516106ec919061486a565b60405180910390f35b34801561070157600080fd5b5061071c600480360381019061071791906141c9565b61154f565b6040516107299190614930565b60405180910390f35b34801561073e57600080fd5b50610747611811565b6040516107549190614930565b60405180910390f35b6107776004803603810190610772919061424b565b6118a3565b005b34801561078557600080fd5b506107a0600480360381019061079b91906140d6565b611d16565b005b3480156107ae57600080fd5b506107c960048036038101906107c49190613fa7565b611e97565b6040516107d69190614d13565b60405180910390f35b3480156107eb57600080fd5b506108066004803603810190610801919061405b565b611eaf565b005b34801561081457600080fd5b5061081d611f11565b60405161082a9190614d13565b60405180910390f35b34801561083f57600080fd5b5061085a6004803603810190610855919061429d565b611f1e565b005b34801561086857600080fd5b50610883600480360381019061087e919061424b565b612236565b6040516108909190614930565b60405180910390f35b3480156108a557600080fd5b506108ae6124bc565b6040516108bb9190614d13565b60405180910390f35b3480156108d057600080fd5b506108eb60048036038101906108e69190613fa7565b6124c2565b005b3480156108f957600080fd5b50610914600480360381019061090f919061424b565b612582565b005b34801561092257600080fd5b5061093d60048036038101906109389190613fd0565b61270b565b60405161094a91906148fa565b60405180910390f35b34801561095f57600080fd5b5061097a60048036038101906109759190613fa7565b61279f565b005b610984612897565b005b34801561099257600080fd5b5061099b612a7b565b6040516109a89190614d13565b60405180910390f35b60006109bc82612a81565b9050919050565b7306f6327f7f5e09cba31ce98c74071c786112f22d81565b6060600080546109ea906150c2565b80601f0160208091040260200160405190810160405280929190818152602001828054610a16906150c2565b8015610a635780601f10610a3857610100808354040283529160200191610a63565b820191906000526020600020905b815481529060010190602001808311610a4657829003601f168201915b5050505050905090565b6000610a7882612afb565b610ab7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aae90614bd8565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610afd82610fa2565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b6590614c58565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b8d612b67565b73ffffffffffffffffffffffffffffffffffffffff161480610bbc5750610bbb81610bb6612b67565b61270b565b5b610bfb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bf290614b18565b60405180910390fd5b610c058383612b6f565b505050565b60006012610c178361154f565b604051610c2491906147ec565b908152602001604051809103902060009054906101000a900460ff169050919050565b6000600880549050905090565b610c65610c5f612b67565b82612c28565b610ca4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9b90614c78565b60405180910390fd5b610caf838383612d06565b505050565b6000610cbf83611149565b8210610d00576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cf7906149f8565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635328b8a0336040518263ffffffff1660e01b8152600401610db4919061486a565b600060405180830381600087803b158015610dce57600080fd5b505af1158015610de2573d6000803e3d6000fd5b50505050565b681043561a882930000081565b610e1083838360405180602001604052806000815250611eaf565b505050565b61dead81565b736883478ad90fffbee0a69274ad44c1b46adaafb981565b600080610e3e610c47565b90506101f48111610e53576000915050610ef0565b6101f481118015610e6557506103e881105b15610e7a57666a94d74f430000915050610ef0565b6103e881118015610e8c57506122c481105b15610ea15766f5232269808000915050610ef0565b6122c481118015610eb3575061232881105b15610ec957673a4965bf58a40000915050610ef0565b61232881118015610edc5750600d548111155b15610eeb576000915050610ef0565b600080fd5b90565b6000610efd610c47565b8210610f3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f3590614cb8565b60405180910390fd5b60088281548110610f78577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b730cf661907e76c4921f7df302092697799dc63b2481565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561104b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161104290614b78565b60405180910390fd5b80915050919050565b60606000601060008481526020019081526020016000206040518060c0016040529081600082018054611086906150c2565b80601f01602080910402602001604051908101604052809291908181526020018280546110b2906150c2565b80156110ff5780601f106110d4576101008083540402835291602001916110ff565b820191906000526020600020905b8154815290600101906020018083116110e257829003601f168201915b505050505081526020016001820154815260200160028201548152602001600382015481526020016004820154815260200160058201548152505090508060000151915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156111ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111b190614b58565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611209612b67565b73ffffffffffffffffffffffffffffffffffffffff16611227611525565b73ffffffffffffffffffffffffffffffffffffffff161461127d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127490614bf8565b60405180910390fd5b6112876000612f62565b565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60106020528060005260406000206000915090508060000180546112d2906150c2565b80601f01602080910402602001604051908101604052809291908181526020018280546112fe906150c2565b801561134b5780601f106113205761010080835404028352916020019161134b565b820191906000526020600020905b81548152906001019060200180831161132e57829003601f168201915b5050505050908060010154908060020154908060030154908060040154908060050154905086565b61137c81610fa2565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146113e9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113e090614b38565b60405180910390fd5b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639dc29fac33681043561a88293000006040518363ffffffff1660e01b815260040161144f9291906148d1565b600060405180830381600087803b15801561146957600080fd5b505af115801561147d573d6000803e3d6000fd5b5050505073f3523e291582e726a738bc6454ae0287752e43ec63a63ca28f826040518263ffffffff1660e01b81526004016114b89190614cf8565b60206040518083038186803b1580156114d057600080fd5b505af41580156114e4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115089190614274565b601060008381526020019081526020016000206003018190555050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060008290506000815167ffffffffffffffff811115611599577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156115cb5781602001600182028036833780820191505090505b50905060005b8251811015611806576041838281518110611615577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b60f81c60ff161015801561167e5750605a83828151811061166a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b60f81c60ff1611155b156117465760208382815181106116be577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b60f81c6116d69190614ee5565b60f81b828281518110611712577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053506117f3565b82818151811061177f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602001015160f81c60f81b8282815181106117c3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053505b80806117fe90615125565b9150506115d1565b508092505050919050565b606060018054611820906150c2565b80601f016020809104026020016040519081016040528092919081815260200182805461184c906150c2565b80156118995780601f1061186e57610100808354040283529160200191611899565b820191906000526020600020905b81548152906001019060200180831161187c57829003601f168201915b5050505050905090565b600c548111156118e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118df90614af8565b60405180910390fd5b600d5461190082600b5461302890919063ffffffff16565b10611940576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161193790614cd8565b60405180910390fd5b3461195b8261194d610e33565b61303e90919063ffffffff16565b111561199c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161199390614c98565b60405180910390fd5b60005b81811015611c83576119b333600b54613054565b600073f3523e291582e726a738bc6454ae0287752e43ec630780ac76600b546040518263ffffffff1660e01b81526004016119ee9190614cf8565b604080518083038186803b158015611a0557600080fd5b505af4158015611a19573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a3d919061414e565b9050601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815480929190611a8f90615125565b91905055506040518060c001604052806040518060400160405280600981526020017f50736575646f506f700000000000000000000000000000000000000000000000815250815260200142815260200142815260200182600160028110611b20577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020020151815260200182600060028110611b64577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200201518152602001600081525060106000600b5481526020019081526020016000206000820151816000019080519060200190611ba4929190613cc4565b506020820151816001015560408201518160020155606082015181600301556080820151816004015560a082015181600501559050507ff8138bc2c4fad0261bbe65bc27aac6bd4f14de9e0db13843b4ffade4074c82ae600b5482600160028110611c38577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020020151604051611c4b929190614d2e565b60405180910390a1611c696001600b5461302890919063ffffffff16565b600b81905550508080611c7b90615125565b91505061199f565b50600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663cc240c0133836040518363ffffffff1660e01b8152600401611ce19291906148d1565b600060405180830381600087803b158015611cfb57600080fd5b505af1158015611d0f573d6000803e3d6000fd5b5050505050565b611d1e612b67565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611d8c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d8390614ab8565b60405180910390fd5b8060056000611d99612b67565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611e46612b67565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611e8b91906148fa565b60405180910390a35050565b60116020528060005260406000206000915090505481565b611ec0611eba612b67565b83612c28565b611eff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ef690614c78565b60405180910390fd5b611f0b84848484613072565b50505050565b6815af1d78b58c40000081565b611f2782610fa2565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611f94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f8b90614a78565b60405180910390fd5b60001515611fa182610c0a565b151514611fe3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fda90614bb8565b60405180910390fd5b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639dc29fac336815af1d78b58c4000006040518363ffffffff1660e01b81526004016120499291906148d1565b600060405180830381600087803b15801561206357600080fd5b505af1158015612077573d6000803e3d6000fd5b505050506000601060008481526020019081526020016000206040518060c00160405290816000820180546120ab906150c2565b80601f01602080910402602001604051908101604052809291908181526020018280546120d7906150c2565b80156121245780601f106120f957610100808354040283529160200191612124565b820191906000526020600020905b81548152906001019060200180831161210757829003601f168201915b505050505081526020016001820154815260200160028201548152602001600382015481526020016004820154815260200160058201548152505090506000816000015151111561217f5761217e816000015160006130ce565b5b61218a8260016130ce565b818160000181905250806010600085815260200190815260200160002060008201518160000190805190602001906121c3929190613cc4565b506020820151816001015560408201518160020155606082015181600301556080820151816004015560a08201518160050155905050827f8edfa912e70e283a8ef6d6f52cd1faef9690ff989eff2f11a134e8478ba7b28b836040516122299190614930565b60405180910390a2505050565b60606000601060008481526020019081526020016000206040518060c0016040529081600082018054612268906150c2565b80601f0160208091040260200160405190810160405280929190818152602001828054612294906150c2565b80156122e15780601f106122b6576101008083540402835291602001916122e1565b820191906000526020600020905b8154815290600101906020018083116122c457829003601f168201915b50505050508152602001600182015481526020016002820154815260200160038201548152602001600482015481526020016005820154815250509050600073f3523e291582e726a738bc6454ae0287752e43ec63d78868698360400151846060015185608001516040518463ffffffff1660e01b815260040161236793929190614d57565b60006040518083038186803b15801561237f57600080fd5b505af4158015612393573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906123bc919061420a565b9050600061248d73f3523e291582e726a738bc6454ae0287752e43ec63cc797fa48560000151866020015187606001516040518463ffffffff1660e01b815260040161240a93929190614952565b60006040518083038186803b15801561242257600080fd5b505af4158015612436573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061245f919061420a565b61246884613110565b604051602001612479929190614803565b604051602081830303815290604052613110565b9050806040516020016124a09190614848565b6040516020818303038152906040529150819350505050919050565b600d5481565b6124ca612b67565b73ffffffffffffffffffffffffffffffffffffffff166124e8611525565b73ffffffffffffffffffffffffffffffffffffffff161461253e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161253590614bf8565b60405180910390fd5b80600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b61258b81610fa2565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16146125f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125ef90614b38565b60405180910390fd5b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639dc29fac33681043561a88293000006040518363ffffffff1660e01b815260040161265e9291906148d1565b600060405180830381600087803b15801561267857600080fd5b505af115801561268c573d6000803e3d6000fd5b505050506010600082815260200190815260200160002060020154426126b29190614fa7565b60106000838152602001908152602001600020600501546126d39190614e8f565b601060008381526020019081526020016000206005018190555042601060008381526020019081526020016000206002018190555050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6127a7612b67565b73ffffffffffffffffffffffffffffffffffffffff166127c5611525565b73ffffffffffffffffffffffffffffffffffffffff161461281b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161281290614bf8565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561288b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161288290614a38565b60405180910390fd5b61289481612f62565b50565b61289f612b67565b73ffffffffffffffffffffffffffffffffffffffff166128bd611525565b73ffffffffffffffffffffffffffffffffffffffff1614612913576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161290a90614bf8565b60405180910390fd5b60004711612956576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161294d90614c38565b60405180910390fd5b60006003476129659190614f1c565b9050736883478ad90fffbee0a69274ad44c1b46adaafb973ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156129c1573d6000803e3d6000fd5b50730cf661907e76c4921f7df302092697799dc63b2473ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015612a1c573d6000803e3d6000fd5b507306f6327f7f5e09cba31ce98c74071c786112f22d73ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015612a77573d6000803e3d6000fd5b5050565b600c5481565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612af45750612af3826132ce565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612be283610fa2565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612c3382612afb565b612c72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c6990614ad8565b60405180910390fd5b6000612c7d83610fa2565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612cec57508373ffffffffffffffffffffffffffffffffffffffff16612cd484610a6d565b73ffffffffffffffffffffffffffffffffffffffff16145b80612cfd5750612cfc818561270b565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612d2682610fa2565b73ffffffffffffffffffffffffffffffffffffffff1614612d7c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d7390614c18565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612dec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612de390614a98565b60405180910390fd5b612df78383836133b0565b612e02600082612b6f565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612e529190614fa7565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612ea99190614e8f565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600081836130369190614e8f565b905092915050565b6000818361304c9190614f4d565b905092915050565b61306e8282604051806020016040528060008152506133f6565b5050565b61307d848484612d06565b61308984848484613451565b6130c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130bf90614a18565b60405180910390fd5b50505050565b8060126130da8461154f565b6040516130e791906147ec565b908152602001604051809103902060006101000a81548160ff0219169083151502179055505050565b6060600082519050600081141561313957604051806020016040528060008152509150506132c9565b6000600360028361314a9190614e8f565b6131549190614f1c565b60046131609190614f4d565b905060006020826131719190614e8f565b67ffffffffffffffff8111156131b0577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156131e25781602001600182028036833780820191505090505b5090506000604051806060016040528060408152602001615928604091399050600181016020830160005b868110156132865760038101905062ffffff818a015116603f8160121c168401518060081b905060ff603f83600c1c1686015116810190508060081b905060ff603f8360061c1686015116810190508060081b905060ff603f831686015116810190508060e01b9050808452600484019350505061320d565b5060038606600181146132a057600281146132b0576132bb565b613d3d60f01b60028303526132bb565b603d60f81b60018303525b508484525050819450505050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061339957507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806133a957506133a8826135e8565b5b9050919050565b4260106000838152602001908152602001600020600101819055504260106000838152602001908152602001600020600201819055506133f1838383613652565b505050565b6134008383613766565b61340d6000848484613451565b61344c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161344390614a18565b60405180910390fd5b505050565b60006134728473ffffffffffffffffffffffffffffffffffffffff16613934565b156135db578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261349b612b67565b8786866040518563ffffffff1660e01b81526004016134bd9493929190614885565b602060405180830381600087803b1580156134d757600080fd5b505af192505050801561350857506040513d601f19601f8201168201806040525081019061350591906141a0565b60015b61358b573d8060008114613538576040519150601f19603f3d011682016040523d82523d6000602084013e61353d565b606091505b50600081511415613583576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161357a90614a18565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506135e0565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61365d838383613947565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156136a05761369b8161394c565b6136df565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146136de576136dd8382613995565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156137225761371d81613b02565b613761565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16146137605761375f8282613c45565b5b5b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156137d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137cd90614b98565b60405180910390fd5b6137df81612afb565b1561381f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161381690614a58565b60405180910390fd5b61382b600083836133b0565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461387b9190614e8f565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016139a284611149565b6139ac9190614fa7565b9050600060076000848152602001908152602001600020549050818114613a91576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050613b169190614fa7565b9050600060096000848152602001908152602001600020549050600060088381548110613b6c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020015490508060088381548110613bb4577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480613c29577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b6000613c5083611149565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b828054613cd0906150c2565b90600052602060002090601f016020900481019282613cf25760008555613d39565b82601f10613d0b57805160ff1916838001178555613d39565b82800160010185558215613d39579182015b82811115613d38578251825591602001919060010190613d1d565b5b509050613d469190613d4a565b5090565b5b80821115613d63576000816000905550600101613d4b565b5090565b6000613d7a613d7584614db3565b614d8e565b90508082856020860282011115613d9057600080fd5b60005b85811015613dc05781613da68882613f92565b845260208401935060208301925050600181019050613d93565b5050509392505050565b6000613ddd613dd884614dd9565b614d8e565b905082815260208101848484011115613df557600080fd5b613e00848285615080565b509392505050565b6000613e1b613e1684614e0a565b614d8e565b905082815260208101848484011115613e3357600080fd5b613e3e848285615080565b509392505050565b6000613e59613e5484614e0a565b614d8e565b905082815260208101848484011115613e7157600080fd5b613e7c84828561508f565b509392505050565b600081359050613e93816158cb565b92915050565b600082601f830112613eaa57600080fd5b6002613eb7848285613d67565b91505092915050565b600081359050613ecf816158e2565b92915050565b600081359050613ee4816158f9565b92915050565b600081519050613ef9816158f9565b92915050565b600082601f830112613f1057600080fd5b8135613f20848260208601613dca565b91505092915050565b600082601f830112613f3a57600080fd5b8135613f4a848260208601613e08565b91505092915050565b600082601f830112613f6457600080fd5b8151613f74848260208601613e46565b91505092915050565b600081359050613f8c81615910565b92915050565b600081519050613fa181615910565b92915050565b600060208284031215613fb957600080fd5b6000613fc784828501613e84565b91505092915050565b60008060408385031215613fe357600080fd5b6000613ff185828601613e84565b925050602061400285828601613e84565b9150509250929050565b60008060006060848603121561402157600080fd5b600061402f86828701613e84565b935050602061404086828701613e84565b925050604061405186828701613f7d565b9150509250925092565b6000806000806080858703121561407157600080fd5b600061407f87828801613e84565b945050602061409087828801613e84565b93505060406140a187828801613f7d565b925050606085013567ffffffffffffffff8111156140be57600080fd5b6140ca87828801613eff565b91505092959194509250565b600080604083850312156140e957600080fd5b60006140f785828601613e84565b925050602061410885828601613ec0565b9150509250929050565b6000806040838503121561412557600080fd5b600061413385828601613e84565b925050602061414485828601613f7d565b9150509250929050565b60006040828403121561416057600080fd5b600061416e84828501613e99565b91505092915050565b60006020828403121561418957600080fd5b600061419784828501613ed5565b91505092915050565b6000602082840312156141b257600080fd5b60006141c084828501613eea565b91505092915050565b6000602082840312156141db57600080fd5b600082013567ffffffffffffffff8111156141f557600080fd5b61420184828501613f29565b91505092915050565b60006020828403121561421c57600080fd5b600082015167ffffffffffffffff81111561423657600080fd5b61424284828501613f53565b91505092915050565b60006020828403121561425d57600080fd5b600061426b84828501613f7d565b91505092915050565b60006020828403121561428657600080fd5b600061429484828501613f92565b91505092915050565b600080604083850312156142b057600080fd5b60006142be85828601613f7d565b925050602083013567ffffffffffffffff8111156142db57600080fd5b6142e785828601613f29565b9150509250929050565b6142fa81614fdb565b82525050565b61430981614fed565b82525050565b600061431a82614e3b565b6143248185614e51565b935061433481856020860161508f565b61433d8161522a565b840191505092915050565b6143518161505c565b82525050565b600061436282614e46565b61436c8185614e62565b935061437c81856020860161508f565b6143858161522a565b840191505092915050565b600061439b82614e46565b6143a58185614e73565b93506143b581856020860161508f565b6143be8161522a565b840191505092915050565b60006143d482614e46565b6143de8185614e84565b93506143ee81856020860161508f565b80840191505092915050565b6000614407602b83614e62565b91506144128261523b565b604082019050919050565b600061442a603283614e62565b91506144358261528a565b604082019050919050565b600061444d602683614e62565b9150614458826152d9565b604082019050919050565b6000614470601c83614e62565b915061447b82615328565b602082019050919050565b6000614493600f83614e62565b915061449e82615351565b602082019050919050565b60006144b6602483614e62565b91506144c18261537a565b604082019050919050565b60006144d9601983614e62565b91506144e4826153c9565b602082019050919050565b60006144fc602c83614e62565b9150614507826153f2565b604082019050919050565b600061451f601383614e62565b915061452a82615441565b602082019050919050565b6000614542603883614e62565b915061454d8261546a565b604082019050919050565b6000614565600d83614e62565b9150614570826154b9565b602082019050919050565b6000614588602a83614e62565b9150614593826154e2565b604082019050919050565b60006145ab602983614e62565b91506145b682615531565b604082019050919050565b60006145ce602483614e84565b91506145d982615580565b602482019050919050565b60006145f1600283614e84565b91506145fc826155cf565b600282019050919050565b6000614614602083614e62565b915061461f826155f8565b602082019050919050565b6000614637601583614e62565b915061464282615621565b602082019050919050565b600061465a602c83614e62565b91506146658261564a565b604082019050919050565b600061467d602083614e62565b915061468882615699565b602082019050919050565b60006146a0602983614e62565b91506146ab826156c2565b604082019050919050565b60006146c3601783614e62565b91506146ce82615711565b602082019050919050565b60006146e6600183614e84565b91506146f18261573a565b600182019050919050565b6000614709602183614e62565b915061471482615763565b604082019050919050565b600061472c601d83614e84565b9150614737826157b2565b601d82019050919050565b600061474f603183614e62565b915061475a826157db565b604082019050919050565b6000614772601083614e62565b915061477d8261582a565b602082019050919050565b6000614795602c83614e62565b91506147a082615853565b604082019050919050565b60006147b8601283614e62565b91506147c3826158a2565b602082019050919050565b6147d781615045565b82525050565b6147e681615045565b82525050565b60006147f882846143c9565b915081905092915050565b600061480e826146d9565b915061481a82856143c9565b9150614825826145c1565b915061483182846143c9565b915061483c826145e4565b91508190509392505050565b60006148538261471f565b915061485f82846143c9565b915081905092915050565b600060208201905061487f60008301846142f1565b92915050565b600060808201905061489a60008301876142f1565b6148a760208301866142f1565b6148b460408301856147ce565b81810360608301526148c6818461430f565b905095945050505050565b60006040820190506148e660008301856142f1565b6148f360208301846147ce565b9392505050565b600060208201905061490f6000830184614300565b92915050565b600060208201905061492a6000830184614348565b92915050565b6000602082019050818103600083015261494a8184614357565b905092915050565b6000606082019050818103600083015261496c8186614390565b905061497b60208301856147dd565b61498860408301846147dd565b949350505050565b600060c08201905081810360008301526149aa8189614357565b90506149b960208301886147ce565b6149c660408301876147ce565b6149d360608301866147ce565b6149e060808301856147ce565b6149ed60a08301846147ce565b979650505050505050565b60006020820190508181036000830152614a11816143fa565b9050919050565b60006020820190508181036000830152614a318161441d565b9050919050565b60006020820190508181036000830152614a5181614440565b9050919050565b60006020820190508181036000830152614a7181614463565b9050919050565b60006020820190508181036000830152614a9181614486565b9050919050565b60006020820190508181036000830152614ab1816144a9565b9050919050565b60006020820190508181036000830152614ad1816144cc565b9050919050565b60006020820190508181036000830152614af1816144ef565b9050919050565b60006020820190508181036000830152614b1181614512565b9050919050565b60006020820190508181036000830152614b3181614535565b9050919050565b60006020820190508181036000830152614b5181614558565b9050919050565b60006020820190508181036000830152614b718161457b565b9050919050565b60006020820190508181036000830152614b918161459e565b9050919050565b60006020820190508181036000830152614bb181614607565b9050919050565b60006020820190508181036000830152614bd18161462a565b9050919050565b60006020820190508181036000830152614bf18161464d565b9050919050565b60006020820190508181036000830152614c1181614670565b9050919050565b60006020820190508181036000830152614c3181614693565b9050919050565b60006020820190508181036000830152614c51816146b6565b9050919050565b60006020820190508181036000830152614c71816146fc565b9050919050565b60006020820190508181036000830152614c9181614742565b9050919050565b60006020820190508181036000830152614cb181614765565b9050919050565b60006020820190508181036000830152614cd181614788565b9050919050565b60006020820190508181036000830152614cf1816147ab565b9050919050565b6000602082019050614d0d60008301846147dd565b92915050565b6000602082019050614d2860008301846147ce565b92915050565b6000604082019050614d4360008301856147ce565b614d5060208301846147ce565b9392505050565b6000606082019050614d6c60008301866147dd565b614d7960208301856147dd565b614d8660408301846147dd565b949350505050565b6000614d98614da9565b9050614da482826150f4565b919050565b6000604051905090565b600067ffffffffffffffff821115614dce57614dcd6151fb565b5b602082029050919050565b600067ffffffffffffffff821115614df457614df36151fb565b5b614dfd8261522a565b9050602081019050919050565b600067ffffffffffffffff821115614e2557614e246151fb565b5b614e2e8261522a565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000614e9a82615045565b9150614ea583615045565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614eda57614ed961516e565b5b828201905092915050565b6000614ef08261504f565b9150614efb8361504f565b92508260ff03821115614f1157614f1061516e565b5b828201905092915050565b6000614f2782615045565b9150614f3283615045565b925082614f4257614f4161519d565b5b828204905092915050565b6000614f5882615045565b9150614f6383615045565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614f9c57614f9b61516e565b5b828202905092915050565b6000614fb282615045565b9150614fbd83615045565b925082821015614fd057614fcf61516e565b5b828203905092915050565b6000614fe682615025565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b60006150678261506e565b9050919050565b600061507982615025565b9050919050565b82818337600083830152505050565b60005b838110156150ad578082015181840152602081019050615092565b838111156150bc576000848401525b50505050565b600060028204905060018216806150da57607f821691505b602082108114156150ee576150ed6151cc565b5b50919050565b6150fd8261522a565b810181811067ffffffffffffffff8211171561511c5761511b6151fb565b5b80604052505050565b600061513082615045565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156151635761516261516e565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f476574206f6666206d79206c61776e0000000000000000000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f796f75277265206265696e672067726565647900000000000000000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4e6f7420746865206f776e657200000000000000000000000000000000000000600082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f22696d616765223a2022646174613a696d6167652f7376672b786d6c3b62617360008201527f6536342c00000000000000000000000000000000000000000000000000000000602082015250565b7f227d000000000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4e616d6520616c72656164792072657365727665640000000000000000000000600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f6e6f206f6e65206c696b657320796f7572207374756666000000000000000000600082015250565b7f7b00000000000000000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c000000600082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f6e6f7420656e6f7567682066756e647300000000000000000000000000000000600082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f7265736f75726365206578686175737465640000000000000000000000000000600082015250565b6158d481614fdb565b81146158df57600080fd5b50565b6158eb81614fed565b81146158f657600080fd5b50565b61590281614ff9565b811461590d57600080fd5b50565b61591981615045565b811461592457600080fd5b5056fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fa2646970667358221220dda99075534b9ed72b5cce4fbd18230537898ddcb224b33d9273a3903943cb0264736f6c63430008040033

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