Contract 0xe864df5f24c09662a611a86aa3df572860b11b60

Txn Hash Method
Block
From
To
Value [Txn Fee]
0xc03e16b3dfa32838a5de72c794c53dcdd954942a804d73276a574b41f2f18409Set Approval For...133044712024-04-03 4:32:1621 days 17 hrs ago0xa929d0396750cf4569f769b286f4b35130e55fea IN  0xe864df5f24c09662a611a86aa3df572860b11b600 CRO0.235850150
0xb4feaf7ddc182be3fe199236e63a977fd8dfaa87dd160c535a7608c937d5a262Set Approval For...131768152024-03-25 19:45:1630 days 2 hrs ago0x6e8fe8de45eb4afd85f56b8dd01e46f02f1073b3 IN  0xe864df5f24c09662a611a86aa3df572860b11b600 CRO0.1251573635 5,048.5
0xfccea5061d56c45fcb262124aab527267f22f940fe713b180a087b4c975517edSet Approval For...131444532024-03-23 17:01:0632 days 4 hrs agoCronos ID Name dealm.cro IN  0xe864df5f24c09662a611a86aa3df572860b11b600 CRO0.125194550
0xa45850d35b48f36858f6218c52b8fe832e92d66ea250a1b1833349b76d768fc4Set Approval For...123739522024-02-02 17:56:2282 days 3 hrs ago0x32fbc5ac04b96f69d7cd175f0272211165c9843a IN  0xe864df5f24c09662a611a86aa3df572860b11b600 CRO0.503955343857 10,790.641797261
0xd94191a8a859989c45fa841fe1ea87b2b051f8f1dafc5c21342f1b001975a0aaSet Approval For...118669672023-12-31 18:42:00115 days 3 hrs ago0x91742251bf055bc2b58c2fb65b7c5a6dfcec26c9 IN  0xe864df5f24c09662a611a86aa3df572860b11b600 CRO0.47170030
0x9c96922e8be6ff9e407863a32211ee7704e3324844f14b32cc91518321b8fc53Set Approval For...114807712023-12-06 15:23:21140 days 6 hrs ago0x634a5dc4cda63ea8d0699d9387cdcfffc6408b84 IN  0xe864df5f24c09662a611a86aa3df572860b11b600 CRO0.2151227207530
0x2c2ebd3934cf314d25f3f8d1669904832fb4b22510acbed7bb8a5b4b84b8dd54Safe Transfer Fr...113499072023-11-28 3:22:00148 days 18 hrs ago0x6a8190fda28a4cdbbbb78e02b575ef01247af123 IN  0xe864df5f24c09662a611a86aa3df572860b11b600 CRO0.41835775909 4,611.984865021
0x9d00b97ff96e256fdaa34f130bfb3c1acc7153566b0e3e91dca6a5f595c42482Safe Transfer Fr...113495992023-11-28 2:53:16148 days 18 hrs ago0x6a8190fda28a4cdbbbb78e02b575ef01247af123 IN  0xe864df5f24c09662a611a86aa3df572860b11b600 CRO0.45366385787 4,611.998636426
0x449c49cdfc5a1a65322f52ea2e974ae08a1c251daa768e54d53b4011f6c7fe9dSafe Transfer Fr...113488942023-11-28 1:47:22148 days 20 hrs ago0x6a8190fda28a4cdbbbb78e02b575ef01247af123 IN  0xe864df5f24c09662a611a86aa3df572860b11b600 CRO0.466635984969 4,612.030134712
0xb68a812af16ea31fdcfa576fbf65c6d1c4378373a7a002e37df48a55863a8ebfSafe Transfer Fr...113337762023-11-27 2:13:50149 days 19 hrs ago0x81ddc21b1f710bd3d950d5d8d4b70cb3e8013392 IN  0xe864df5f24c09662a611a86aa3df572860b11b600 CRO0.418478335662 4,612.703897167
0xb6bf75ba1b2f475ef09fa738473d0346f6b7f40e691c7ee619a1bf6f0309c0daSafe Transfer Fr...113337722023-11-27 2:13:28149 days 19 hrs ago0x6a8190fda28a4cdbbbb78e02b575ef01247af123 IN  0xe864df5f24c09662a611a86aa3df572860b11b600 CRO0.418478352189 4,612.70407934
0xe182f0844abf2112363054b113ad879d8a770e325c1582d4581e635adc7de592Safe Transfer Fr...113183012023-11-26 2:07:14150 days 19 hrs ago0x81ddc21b1f710bd3d950d5d8d4b70cb3e8013392 IN  0xe864df5f24c09662a611a86aa3df572860b11b600 CRO0.405623394172 4,613.393471248
0x3ad5eac5ce788629832e924b75f17b836bbfdf7a46df00307f7b042b8051c870Safe Transfer Fr...113182642023-11-26 2:03:49150 days 19 hrs ago0x92ddd574ee24dcb18eb0fb8464b017047734725f IN  0xe864df5f24c09662a611a86aa3df572860b11b600 CRO0.405623538181 4,613.395109149
0xc866897a59afb2b25fb15a3486b05052bac75cc8158db5c9a88edd8e927a1501Safe Transfer Fr...113157662023-11-25 22:10:28150 days 23 hrs ago0x81ddc21b1f710bd3d950d5d8d4b70cb3e8013392 IN  0xe864df5f24c09662a611a86aa3df572860b11b600 CRO0.405633334785 4,613.506531685
0x4f2db5fc43afe8923422623a4f146a79893e5db3c378df0972468f6fd44c6c5dSafe Transfer Fr...113157542023-11-25 22:09:21150 days 23 hrs ago0x92ddd574ee24dcb18eb0fb8464b017047734725f IN  0xe864df5f24c09662a611a86aa3df572860b11b600 CRO0.405633382626 4,613.507075811
0x7340db4eb9c3e431a1f6112bcb8a795f56bacc73ab02b02569495dbd3cb1e613Safe Transfer Fr...113156112023-11-25 21:55:57150 days 23 hrs ago0x6bbf45b1ee94a0f8c064af8ad7912edc2a255a7b IN  0xe864df5f24c09662a611a86aa3df572860b11b600 CRO0.405765826142 4,615.013433831
0xb314f400de9d80934a77f24b0f16927a058fda40a81c23aae9a9a28e626d680cSet Approval For...112559512023-11-22 0:58:33154 days 20 hrs ago0x8d6eb437a8e12e04882742063ce98d082e994ae4 IN  0xe864df5f24c09662a611a86aa3df572860b11b600 CRO0.2155888254190
0xd666e9e3a910c302925ec424915e05ee6f457c5158f4792afa05c0d665a84647Safe Transfer Fr...112201482023-11-19 17:10:49157 days 4 hrs agoCronos ID Name beanugz.cro IN  0xe864df5f24c09662a611a86aa3df572860b11b600 CRO0.467311520835 4,619.254698574
0x6c7cf5b5dc90668c2e2712b85d27744cf65007707b13de340578be6909180ee5Set Approval For...112009282023-11-18 11:14:41158 days 10 hrs ago0x6deca3094a1485a87520e6a3d905b2cfefafb006 IN  0xe864df5f24c09662a611a86aa3df572860b11b600 CRO0.2157029737390
0xae30b655172a53ffcd4e035a231f4e57be2f7d973fd5854b5d82092193338553Set Approval For...111756652023-11-16 19:52:20160 days 1 hr ago0x6a8190fda28a4cdbbbb78e02b575ef01247af123 IN  0xe864df5f24c09662a611a86aa3df572860b11b600 CRO0.215825556174 4,621.235384756
0xcbbaf68cebe746d4d0a2d1ac17f57dbf0978bd95521333f368dbe3bbeecd20abSet Approval For...111756272023-11-16 19:48:45160 days 1 hr ago0x9a6557a8c19ccda290b323831a74db864b48131e IN  0xe864df5f24c09662a611a86aa3df572860b11b600 CRO0.215825632712 4,621.237023593
0xfa7dfb999d07f793e520034a083051fb8d798ba7b55cb5223096a4b8466ca924Set Approval For...111613762023-11-15 21:34:06161 days 13 mins agoCronos ID Name npcnft.cro IN  0xe864df5f24c09662a611a86aa3df572860b11b600 CRO0.215784936060
0xa2df64fb13670160035c89b478086730173254ebb5282b2d1e43ee66856309c1Set Approval For...110350232023-11-07 16:13:17169 days 5 hrs agoCronos ID Name digitaldondada.cro IN  0xe864df5f24c09662a611a86aa3df572860b11b600 CRO0.2160422894930
0xe1feb845d3490626983b2009344e27e3a2053dffe39b32fd078dda632fd39047Safe Transfer Fr...110003182023-11-05 10:03:58171 days 11 hrs agoCronos ID Name kevla.cro IN  0xe864df5f24c09662a611a86aa3df572860b11b600 CRO0.4552360312390
0x55fffa0e0c5f862a2b72dab71ec57c35cc02c030f54a730943fd48d7a207294fTransfer From106572792023-10-14 1:09:11193 days 20 hrs agoCronos ID Name qwin1.cro IN  0xe864df5f24c09662a611a86aa3df572860b11b600 CRO0.4642844613860
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xaca0dbcd06fc2dbfe1af12929b6c9940bf396ccf63f86423e5e69b9f5bfd223b57591802022-11-27 19:21:26514 days 2 hrs ago 0xe864df5f24c09662a611a86aa3df572860b11b600x66e99e2692f317c5f29d23911e5f3fb0a8ceebd91,062 CRO
0x450b1a881d6dfd51162bba7df2d2427cdce99c5797be15a6c419cddaafb17b3f57503942022-11-27 5:23:23514 days 16 hrs ago 0xe864df5f24c09662a611a86aa3df572860b11b60 0xf7f30cdeb4b4aacd99c5403912bca5894507ca6636 CRO
0x450b1a881d6dfd51162bba7df2d2427cdce99c5797be15a6c419cddaafb17b3f57503942022-11-27 5:23:23514 days 16 hrs ago 0xe864df5f24c09662a611a86aa3df572860b11b60 0xf7f30cdeb4b4aacd99c5403912bca5894507ca66648 CRO
0x32e39eff133326b14c044716797c1112155f9a478c76b2f9bad6cadf5ce30b1857503292022-11-27 5:17:09514 days 16 hrs ago 0xe864df5f24c09662a611a86aa3df572860b11b60 0xf7f30cdeb4b4aacd99c5403912bca5894507ca6618 CRO
0x32e39eff133326b14c044716797c1112155f9a478c76b2f9bad6cadf5ce30b1857503292022-11-27 5:17:09514 days 16 hrs ago 0xe864df5f24c09662a611a86aa3df572860b11b60 0xf7f30cdeb4b4aacd99c5403912bca5894507ca66324 CRO
0xe9c4b5168f92d5fe4ebf58a8ea95614eb98e178c3c22379505476d6eb17db0f057502972022-11-27 5:14:08514 days 16 hrs ago 0xe864df5f24c09662a611a86aa3df572860b11b60 0xf7f30cdeb4b4aacd99c5403912bca5894507ca6618 CRO
0xe9c4b5168f92d5fe4ebf58a8ea95614eb98e178c3c22379505476d6eb17db0f057502972022-11-27 5:14:08514 days 16 hrs ago 0xe864df5f24c09662a611a86aa3df572860b11b60 0xf7f30cdeb4b4aacd99c5403912bca5894507ca66324 CRO
0x42cafe8cecae414b3d11eb7ea6cfedceded13e56b1ed1f56f19dff25dcd3427457502782022-11-27 5:12:16514 days 16 hrs ago 0xe864df5f24c09662a611a86aa3df572860b11b60 0xf7f30cdeb4b4aacd99c5403912bca5894507ca6690 CRO
0x42cafe8cecae414b3d11eb7ea6cfedceded13e56b1ed1f56f19dff25dcd3427457502782022-11-27 5:12:16514 days 16 hrs ago 0xe864df5f24c09662a611a86aa3df572860b11b60 0xf7f30cdeb4b4aacd99c5403912bca5894507ca661,620 CRO
0xa77458b4b68dce8ff77214079dc118e9ca84b5a207cf0b8d5adb23afd65d6be357502192022-11-27 5:06:43514 days 16 hrs ago 0xe864df5f24c09662a611a86aa3df572860b11b60 0xf7f30cdeb4b4aacd99c5403912bca5894507ca6618 CRO
0xa77458b4b68dce8ff77214079dc118e9ca84b5a207cf0b8d5adb23afd65d6be357502192022-11-27 5:06:43514 days 16 hrs ago 0xe864df5f24c09662a611a86aa3df572860b11b60 0xf7f30cdeb4b4aacd99c5403912bca5894507ca66324 CRO
0x7acf42d6daee3981f09810ed1bd30969ee3499bcb0f1b06577fc5685552ae2c857501662022-11-27 5:01:39514 days 16 hrs ago 0xe864df5f24c09662a611a86aa3df572860b11b60 0xf7f30cdeb4b4aacd99c5403912bca5894507ca6618 CRO
0x7acf42d6daee3981f09810ed1bd30969ee3499bcb0f1b06577fc5685552ae2c857501662022-11-27 5:01:39514 days 16 hrs ago 0xe864df5f24c09662a611a86aa3df572860b11b60 0xf7f30cdeb4b4aacd99c5403912bca5894507ca66324 CRO
0x271aa953a659e7515e112480f288f490f470421d843b058bd8e49903bef5bf4d57500582022-11-27 4:51:23514 days 16 hrs ago 0xe864df5f24c09662a611a86aa3df572860b11b60 0xf7f30cdeb4b4aacd99c5403912bca5894507ca6690 CRO
0x271aa953a659e7515e112480f288f490f470421d843b058bd8e49903bef5bf4d57500582022-11-27 4:51:23514 days 16 hrs ago 0xe864df5f24c09662a611a86aa3df572860b11b60 0xf7f30cdeb4b4aacd99c5403912bca5894507ca661,620 CRO
0xb772bc468001be24386fb1a670ddba8f4ef39bd5648b09a083a3d6f23d60d30257500472022-11-27 4:50:20514 days 16 hrs ago 0xe864df5f24c09662a611a86aa3df572860b11b60 0xf7f30cdeb4b4aacd99c5403912bca5894507ca6618 CRO
0xb772bc468001be24386fb1a670ddba8f4ef39bd5648b09a083a3d6f23d60d30257500472022-11-27 4:50:20514 days 16 hrs ago 0xe864df5f24c09662a611a86aa3df572860b11b60 0xf7f30cdeb4b4aacd99c5403912bca5894507ca66324 CRO
0x41ad703a4f9319a25248ed84fef5ed88c261c659fbfa47b8e29479d8645d9b3157500042022-11-27 4:46:13514 days 17 hrs ago 0xe864df5f24c09662a611a86aa3df572860b11b60 0xf7f30cdeb4b4aacd99c5403912bca5894507ca6636 CRO
0x41ad703a4f9319a25248ed84fef5ed88c261c659fbfa47b8e29479d8645d9b3157500042022-11-27 4:46:13514 days 17 hrs ago 0xe864df5f24c09662a611a86aa3df572860b11b60 0xf7f30cdeb4b4aacd99c5403912bca5894507ca66648 CRO
0x9fde2d728c17387c86b348734506248a9c96b6c23b69aa5709ecc2399525747c57499412022-11-27 4:40:16514 days 17 hrs ago 0xe864df5f24c09662a611a86aa3df572860b11b60 0xf7f30cdeb4b4aacd99c5403912bca5894507ca6618 CRO
0x9fde2d728c17387c86b348734506248a9c96b6c23b69aa5709ecc2399525747c57499412022-11-27 4:40:16514 days 17 hrs ago 0xe864df5f24c09662a611a86aa3df572860b11b60 0xf7f30cdeb4b4aacd99c5403912bca5894507ca66324 CRO
0xf52f2496ed94378380b35916de07b637f4733bd01c41da3ca377cfd3fe5cf58357498972022-11-27 4:36:03514 days 17 hrs ago 0xe864df5f24c09662a611a86aa3df572860b11b60 0xf7f30cdeb4b4aacd99c5403912bca5894507ca6618 CRO
0xf52f2496ed94378380b35916de07b637f4733bd01c41da3ca377cfd3fe5cf58357498972022-11-27 4:36:03514 days 17 hrs ago 0xe864df5f24c09662a611a86aa3df572860b11b60 0xf7f30cdeb4b4aacd99c5403912bca5894507ca66324 CRO
0xbee28dda7ad2ccf366c67614d2692467777dec053295313120ffa1999e4a360a57498272022-11-27 4:29:22514 days 17 hrs ago 0xe864df5f24c09662a611a86aa3df572860b11b60 0xf7f30cdeb4b4aacd99c5403912bca5894507ca6618 CRO
0xbee28dda7ad2ccf366c67614d2692467777dec053295313120ffa1999e4a360a57498272022-11-27 4:29:22514 days 17 hrs ago 0xe864df5f24c09662a611a86aa3df572860b11b60 0xf7f30cdeb4b4aacd99c5403912bca5894507ca66324 CRO
[ Download CSV Export 
Index Block
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
MogulProject

Compiler Version
v0.8.0+commit.c7dfd78e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 28 : NFT.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/utils/Counters.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "./SafeMathLite.sol";
import "./SafePct.sol";
import "./BaseDrop.sol";

contract MogulProject is BaseDrop {
    using Counters for Counters.Counter;
    using SafePct for uint256;
    using SafeMathLite for uint256;
    Counters.Counter public _tokenIdCounter;

    uint256 internal memberPrice = 0 ether;
    uint256 internal normalPrice = 360 ether;
    uint256 private MAX_TOKENS = 500;
    address[] whitelist;
    address private lootContract;
    string baseURI = "ipfs://Qmbo9K42ffTiPhkF6eDzNam1Jbj7uL36JZEeWP9cxyYhY9/";
    
    // Pass the artist address, and loot token address
    constructor(address _artist, address _yako) ERC721("MogulProject", "MP") 
    {
        
        artist = _artist;
        yako = _yako;
        fee  = 1000;

    }

    // Sets a new IPFS URI for metadata after deployment
    function setUri(string memory _uri) public onlyOwner {
        baseURI = _uri;
    }

    // Sets a new artist address after deployment
    function setArtist(address _artist) public onlyOwner {
        artist = _artist;
    }

    // Sets a new supply after deployment
    function setSupply(uint256 _supply) public onlyOwner {
        MAX_TOKENS = _supply;
    }

    // Adds an array/list of addresses to the WL
    function addWhiteList(address[] memory _addresses) public onlyOwner {
        uint len = _addresses.length;
        for(uint i = 0; i < len; i ++) {
            whitelist.push(_addresses[i]);
        }        
    }

    // Removes a specific address from the WL
    function removeWhiteList(address _address) internal {
        uint len = whitelist.length;
        for(uint i = 0; i < len; i ++) {
            if (whitelist[i] == _address) {
                delete whitelist[i];
                return;
            }
        }
    }

    // Checks is specific address is on the WL and returns a boolean value
    function isWhiteList(address _address) public view returns (bool) {
        uint len = whitelist.length;
        for(uint i = 0; i < len; i ++) {
            if (whitelist[i] == _address) {
                return true;
            }
        }
        return false;
    }

    // Checks if a specified address should receive a discount (FoundingMembers, Loot Holders, and whitelisters)
    function isDiscount(address _address) public view returns (bool) {
        // check if user is whitelist
        if (isWhiteList(_address)) {
            return true;
        }
        return false;
    }

    // The public mint function. Must be called along with a payment equal to at least memberPrice or normalPrice
    function mint(uint256 _count) public payable {
        uint price;
        uint limit;
        bool _isDiscount = isDiscount(msg.sender);

        if(_isDiscount){
            price = memberPrice;
            limit = 1;
        } else {
            price = normalPrice;
            limit = 20;
        }

        require(_count <= limit, "you can't mint that much");
        
        uint amountDue = price * _count;
        require(msg.value >= amountDue, "You don't have enough CRO.");
        uint amountFee = amountDue.mulDiv(fee, SCALE); 

        for(uint i = 0; i < _count; i++){
            safeMint(msg.sender);
        }
        _asyncTransfer(artist, amountDue - amountFee);
        _asyncTransfer(yako, amountFee/2);

        removeWhiteList(msg.sender);
    }
    
    // Returns URI of a specific tokenID. This function appends the token ID and .json to the base URI
    function tokenURI(uint256 _tokenId) public view virtual override returns (string memory) {
      require(_exists(_tokenId),"ERC721Metadata: URI query for nonexistent token");
      string memory _tokenURI = string(abi.encodePacked(baseURI, Strings.toString(_tokenId), ".json"));
      return _tokenURI;
    }

   function safeMint(address _to) internal {
        uint256 tokenId;
        _tokenIdCounter.increment();
        tokenId = _tokenIdCounter.current();
        require(tokenId <= MAX_TOKENS, "This mint has sold out.");
        _safeMint(_to, tokenId);
    }

    // Auto-mints a set amount of tokens to the artist on contract deployment
    function mintArtist(uint256 _amount) public onlyOwner {
        for(uint i = 0; i < _amount  ; i++){
            safeMint(artist);
        }
    }
}

File 2 of 28 : SafePct.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

/**
 * @dev Compute percentages safely without phantom overflows.
 *
 * Intermediate operations can overflow even when the result will always
 * fit into computed type. Developers usually
 * assume that overflows raise errors. `SafePct` restores this intuition by
 * reverting the transaction when such an operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 *
 * Can be combined with {SafeMath} and {SignedSafeMath} to extend it to smaller types, by performing
 * all math on `uint256` and `int256` and then downcasting.
 */

import "./SafeMathLite.sol";

library SafePct {
    using SafeMathLite for uint256;
    /**
     * Requirements:
     *
     * - intermediate operations must revert on overflow
     */
    function mulDiv(uint256 x, uint256 y, uint256 z) internal pure returns (uint256) {
        require(z > 0, "Division by zero");

        if (x == 0) return 0;
        uint256 xy = x * y;
        if (xy / x == y) { // no overflow happened - same as in SafeMath mul
            return xy / z;
        }

        //slither-disable-next-line divide-before-multiply
        uint256 a = x / z;
        uint256 b = x % z; // x = a * z + b

        //slither-disable-next-line divide-before-multiply
        uint256 c = y / z;
        uint256 d = y % z; // y = c * z + d

        return (a.mul(c).mul(z)).add(a.mul(d)).add(b.mul(c)).add(b.mul(d).div(z));
    }


}

File 3 of 28 : SafeMathLite.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
library SafeMathLite{

    /**
     * @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;
    }
}

File 4 of 28 : BaseDrop.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/token/ERC1155/ERC1155.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol";
import "@openzeppelin/contracts/security/PullPayment.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/security/Pausable.sol";
import "@openzeppelin/contracts/security/ReentrancyGuard.sol";
import "@openzeppelin/contracts/utils/Strings.sol";

abstract contract BaseDrop is ERC721, ERC721Enumerable, Ownable, PullPayment, Pausable, ReentrancyGuard {
    using Address for address payable;
   
    ERC721 public lootersContract;
    ERC721 public lootCoinContract;
    ERC721 public cdlContract;
    ERC721 public godContract;
    address public artist;
    address public yako;
    uint128 constant internal SCALE = 10000;
    uint128 internal fee;
    uint16[] internal order;

    function isMember(address _address) public view returns (bool) {
        return lootersContract.balanceOf(_address) > 0 || lootCoinContract.balanceOf(_address) > 0 || cdlContract.balanceOf(_address) > 0 || godContract.balanceOf(_address) > 0;
    }

    // Allows the artist to withdraw 
    function withdrawPayments(address payable payee) public virtual override nonReentrant{
        super.withdrawPayments(payee);
    }

    // The following functions are overrides required by Solidity.
    function _beforeTokenTransfer(address from, address to, uint256 tokenId)
        internal
        override(ERC721, ERC721Enumerable)
    {
        super._beforeTokenTransfer(from, to, tokenId);
    }

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

    // Allows the contract deployer to withdraw funds
    function withdraw() public payable onlyOwner{
        payable(msg.sender).sendValue(address(this).balance);
    }

    function pause() public onlyOwner{
        _pause();
    }

    function unpause() public onlyOwner{
        _unpause();
    }
}

File 5 of 28 : 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 6 of 28 : 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 7 of 28 : Escrow.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../../access/Ownable.sol";
import "../Address.sol";

/**
 * @title Escrow
 * @dev Base escrow contract, holds funds designated for a payee until they
 * withdraw them.
 *
 * Intended usage: This contract (and derived escrow contracts) should be a
 * standalone contract, that only interacts with the contract that instantiated
 * it. That way, it is guaranteed that all Ether will be handled according to
 * the `Escrow` rules, and there is no need to check for payable functions or
 * transfers in the inheritance tree. The contract that uses the escrow as its
 * payment method should be its owner, and provide public methods redirecting
 * to the escrow's deposit and withdraw.
 */
contract Escrow is Ownable {
    using Address for address payable;

    event Deposited(address indexed payee, uint256 weiAmount);
    event Withdrawn(address indexed payee, uint256 weiAmount);

    mapping(address => uint256) private _deposits;

    function depositsOf(address payee) public view returns (uint256) {
        return _deposits[payee];
    }

    /**
     * @dev Stores the sent amount as credit to be withdrawn.
     * @param payee The destination address of the funds.
     */
    function deposit(address payee) public payable virtual onlyOwner {
        uint256 amount = msg.value;
        _deposits[payee] += amount;
        emit Deposited(payee, amount);
    }

    /**
     * @dev Withdraw accumulated balance for a payee, forwarding all gas to the
     * recipient.
     *
     * WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities.
     * Make sure you trust the recipient, or are either following the
     * checks-effects-interactions pattern or using {ReentrancyGuard}.
     *
     * @param payee The address whose funds will be withdrawn and transferred to.
     */
    function withdraw(address payable payee) public virtual onlyOwner {
        uint256 payment = _deposits[payee];

        _deposits[payee] = 0;

        payee.sendValue(payment);

        emit Withdrawn(payee, payment);
    }
}

File 8 of 28 : 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 9 of 28 : Counters.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

File 10 of 28 : 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 11 of 28 : 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);
    }

    function _verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) private 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 12 of 28 : 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 28 : 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 14 of 28 : 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 15 of 28 : 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 16 of 28 : 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 17 of 28 : 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(to).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 18 of 28 : 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);
}

File 19 of 28 : 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 20 of 28 : 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 guidelines: functions revert instead
 * of 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 21 of 28 : IERC1155MetadataURI.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../IERC1155.sol";

/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155MetadataURI is IERC1155 {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}

File 22 of 28 : IERC1155Receiver.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
        @dev Handles the receipt of a single ERC1155 token type. This function is
        called at the end of a `safeTransferFrom` after the balance has been updated.
        To accept the transfer, this must return
        `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
        (i.e. 0xf23a6e61, or its own function selector).
        @param operator The address which initiated the transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param id The ID of the token being transferred
        @param value The amount of tokens being transferred
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
    */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
        @dev Handles the receipt of a multiple ERC1155 token types. This function
        is called at the end of a `safeBatchTransferFrom` after the balances have
        been updated. To accept the transfer(s), this must return
        `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
        (i.e. 0xbc197c81, or its own function selector).
        @param operator The address which initiated the batch transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param ids An array containing ids of each token being transferred (order and length must match values array)
        @param values An array containing amounts of each token being transferred (order and length must match ids array)
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
    */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}

File 23 of 28 : IERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}

File 24 of 28 : ERC1155.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC1155.sol";
import "./IERC1155Receiver.sol";
import "./extensions/IERC1155MetadataURI.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155
 * Originally based on code by Enjin: https://github.com/enjin/erc-1155
 *
 * _Available since v3.1._
 */
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using Address for address;

    // Mapping from token ID to account balances
    mapping(uint256 => mapping(address => uint256)) private _balances;

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

    // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json
    string private _uri;

    /**
     * @dev See {_setURI}.
     */
    constructor(string memory uri_) {
        _setURI(uri_);
    }

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

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the same URI for *all* token types. It relies
     * on the token type ID substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * Clients calling this function must replace the `\{id\}` substring with the
     * actual token type ID.
     */
    function uri(uint256) public view virtual override returns (string memory) {
        return _uri;
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        require(account != address(0), "ERC1155: balance query for the zero address");
        return _balances[id][account];
    }

    /**
     * @dev See {IERC1155-balanceOfBatch}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] memory accounts, uint256[] memory ids)
        public
        view
        virtual
        override
        returns (uint256[] memory)
    {
        require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for (uint256 i = 0; i < accounts.length; ++i) {
            batchBalances[i] = balanceOf(accounts[i], ids[i]);
        }

        return batchBalances;
    }

    /**
     * @dev See {IERC1155-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(_msgSender() != operator, "ERC1155: setting approval status for self");

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

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

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );
        _safeTransferFrom(from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: transfer caller is not owner nor approved"
        );
        _safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data);

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }
        _balances[id][to] += amount;

        emit TransferSingle(operator, from, to, id, amount);

        _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
            _balances[id][to] += amount;
        }

        emit TransferBatch(operator, from, to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);
    }

    /**
     * @dev Sets a new URI for all token types, by relying on the token type ID
     * substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * By this mechanism, any occurrence of the `\{id\}` substring in either the
     * URI or any of the amounts in the JSON file at said URI will be replaced by
     * clients with the token type ID.
     *
     * For example, the `https://token-cdn-domain/\{id\}.json` URI would be
     * interpreted by clients as
     * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`
     * for token type ID 0x4cce0.
     *
     * See {uri}.
     *
     * Because these URIs cannot be meaningfully represented by the {URI} event,
     * this function emits no events.
     */
    function _setURI(string memory newuri) internal virtual {
        _uri = newuri;
    }

    /**
     * @dev Creates `amount` tokens of token type `id`, and assigns them to `account`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - If `account` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address account,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(account != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), account, _asSingletonArray(id), _asSingletonArray(amount), data);

        _balances[id][account] += amount;
        emit TransferSingle(operator, address(0), account, id, amount);

        _doSafeTransferAcceptanceCheck(operator, address(0), account, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; i++) {
            _balances[ids[i]][to] += amounts[i];
        }

        emit TransferBatch(operator, address(0), to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);
    }

    /**
     * @dev Destroys `amount` tokens of token type `id` from `account`
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     * - `account` must have at least `amount` tokens of token type `id`.
     */
    function _burn(
        address account,
        uint256 id,
        uint256 amount
    ) internal virtual {
        require(account != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, account, address(0), _asSingletonArray(id), _asSingletonArray(amount), "");

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

        emit TransferSingle(operator, account, address(0), id, amount);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     */
    function _burnBatch(
        address account,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual {
        require(account != address(0), "ERC1155: burn from the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, account, address(0), ids, amounts, "");

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

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

        emit TransferBatch(operator, account, address(0), ids, amounts);
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `id` and `amount` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver(to).onERC1155Received.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver(to).onERC1155BatchReceived.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](1);
        array[0] = element;

        return array;
    }
}

File 25 of 28 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

File 26 of 28 : PullPayment.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "../utils/escrow/Escrow.sol";

/**
 * @dev Simple implementation of a
 * https://consensys.github.io/smart-contract-best-practices/recommendations/#favor-pull-over-push-for-external-calls[pull-payment]
 * strategy, where the paying contract doesn't interact directly with the
 * receiver account, which must withdraw its payments itself.
 *
 * Pull-payments are often considered the best practice when it comes to sending
 * Ether, security-wise. It prevents recipients from blocking execution, and
 * eliminates reentrancy concerns.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 *
 * To use, derive from the `PullPayment` contract, and use {_asyncTransfer}
 * instead of Solidity's `transfer` function. Payees can query their due
 * payments with {payments}, and retrieve them with {withdrawPayments}.
 */
abstract contract PullPayment {
    Escrow private immutable _escrow;

    constructor() {
        _escrow = new Escrow();
    }

    /**
     * @dev Withdraw accumulated payments, forwarding all gas to the recipient.
     *
     * Note that _any_ account can call this function, not just the `payee`.
     * This means that contracts unaware of the `PullPayment` protocol can still
     * receive funds this way, by having a separate account call
     * {withdrawPayments}.
     *
     * WARNING: Forwarding all gas opens the door to reentrancy vulnerabilities.
     * Make sure you trust the recipient, or are either following the
     * checks-effects-interactions pattern or using {ReentrancyGuard}.
     *
     * @param payee Whose payments will be withdrawn.
     */
    function withdrawPayments(address payable payee) public virtual {
        _escrow.withdraw(payee);
    }

    /**
     * @dev Returns the payments owed to an address.
     * @param dest The creditor's address.
     */
    function payments(address dest) public view returns (uint256) {
        return _escrow.depositsOf(dest);
    }

    /**
     * @dev Called by the payer to store the sent amount as credit to be pulled.
     * Funds sent in this way are stored in an intermediate {Escrow} contract, so
     * there is no danger of them being spent before withdrawal.
     *
     * @param dest The destination address of the funds.
     * @param amount The amount to transfer.
     */
    function _asyncTransfer(address dest, uint256 amount) internal virtual {
        _escrow.deposit{value: amount}(dest);
    }
}

File 27 of 28 : Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 28 of 28 : 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);
    }
}

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

Contract ABI

[{"inputs":[{"internalType":"address","name":"_artist","type":"address"},{"internalType":"address","name":"_yako","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","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"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[],"name":"_tokenIdCounter","outputs":[{"internalType":"uint256","name":"_value","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address[]","name":"_addresses","type":"address[]"}],"name":"addWhiteList","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"artist","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":"cdlContract","outputs":[{"internalType":"contract ERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"godContract","outputs":[{"internalType":"contract ERC721","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":"address","name":"_address","type":"address"}],"name":"isDiscount","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"isMember","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_address","type":"address"}],"name":"isWhiteList","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lootCoinContract","outputs":[{"internalType":"contract ERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lootersContract","outputs":[{"internalType":"contract ERC721","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_count","type":"uint256"}],"name":"mint","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"mintArtist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"dest","type":"address"}],"name":"payments","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":"_artist","type":"address"}],"name":"setArtist","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_supply","type":"uint256"}],"name":"setSupply","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"_uri","type":"string"}],"name":"setUri","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"withdraw","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address payable","name":"payee","type":"address"}],"name":"withdrawPayments","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"yako","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60a0604052600060155568138400eca364a000006016556101f46017556040518060600160405280603681526020016200663360369139601a90805190602001906200004d92919062000359565b503480156200005b57600080fd5b50604051620066693803806200666983398181016040528101906200008191906200042e565b6040518060400160405280600c81526020017f4d6f67756c50726f6a65637400000000000000000000000000000000000000008152506040518060400160405280600281526020017f4d5000000000000000000000000000000000000000000000000000000000000081525081600090805190602001906200010592919062000359565b5080600190805190602001906200011e92919062000359565b50505062000141620001356200028b60201b60201c565b6200029360201b60201c565b6040516200014f90620003ea565b604051809103906000f0801580156200016c573d6000803e3d6000fd5b5073ffffffffffffffffffffffffffffffffffffffff1660808173ffffffffffffffffffffffffffffffffffffffff1660601b815250506000600a60146101000a81548160ff0219169083151502179055506001600b8190555081601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080601160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506103e8601260006101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550505062000522565b600033905090565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8280546200036790620004a3565b90600052602060002090601f0160209004810192826200038b5760008555620003d7565b82601f10620003a657805160ff1916838001178555620003d7565b82800160010185558215620003d7579182015b82811115620003d6578251825591602001919060010190620003b9565b5b509050620003e69190620003f8565b5090565b610ccd806200596683390190565b5b8082111562000413576000816000905550600101620003f9565b5090565b600081519050620004288162000508565b92915050565b600080604083850312156200044257600080fd5b6000620004528582860162000417565b9250506020620004658582860162000417565b9150509250929050565b60006200047c8262000483565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006002820490506001821680620004bc57607f821691505b60208210811415620004d357620004d2620004d9565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b62000513816200046f565b81146200051f57600080fd5b50565b60805160601c6154176200054f60003960008181611e6d015281816126620152612bd901526154176000f3fe6080604052600436106102465760003560e01c806370a0823111610139578063a22cb465116100b6578063c8b723d11161007a578063c8b723d11461084e578063d4c9753314610879578063e2982c21146108a2578063e985e9c5146108df578063f2fde38b1461091c578063f99031a71461094557610246565b8063a22cb46514610745578063a230c5241461076e578063a526c5d9146107ab578063b88d4fde146107e8578063c87b56dd1461081157610246565b80638da5cb5b116100fd5780638da5cb5b1461067f57806395d89b41146106aa578063975b07e3146106d55780639b642de114610700578063a0712d681461072957610246565b806370a08231146105be578063715018a6146105fb57806383209481146106125780638456cb591461063d57806384c4bd4b1461065457610246565b80633b4c4b25116101c75780634f6ccce71161018b5780634f6ccce7146104c75780635c975abb146105045780635e1045ec1461052f578063632bbab4146105585780636352211e1461058157610246565b80633b4c4b25146104295780633ccfd60b146104525780633f4ba83a1461045c57806342842e0e1461047357806343bc16121461049c57610246565b806318160ddd1161020e57806318160ddd1461034457806323b872dd1461036f5780632f745c59146103985780632f983b01146103d557806331b3eb941461040057610246565b806301ffc9a71461024b57806306fdde0314610288578063081812fc146102b3578063095ea7b3146102f05780630b269ea514610319575b600080fd5b34801561025757600080fd5b50610272600480360381019061026d9190613e95565b610982565b60405161027f9190614b01565b60405180910390f35b34801561029457600080fd5b5061029d610994565b6040516102aa9190614b37565b60405180910390f35b3480156102bf57600080fd5b506102da60048036038101906102d59190613f28565b610a26565b6040516102e79190614a7f565b60405180910390f35b3480156102fc57600080fd5b5061031760048036038101906103129190613e18565b610aab565b005b34801561032557600080fd5b5061032e610bc3565b60405161033b9190614b1c565b60405180910390f35b34801561035057600080fd5b50610359610be9565b6040516103669190614eb9565b60405180910390f35b34801561037b57600080fd5b5061039660048036038101906103919190613d12565b610bf6565b005b3480156103a457600080fd5b506103bf60048036038101906103ba9190613e18565b610c56565b6040516103cc9190614eb9565b60405180910390f35b3480156103e157600080fd5b506103ea610cfb565b6040516103f79190614b1c565b60405180910390f35b34801561040c57600080fd5b5061042760048036038101906104229190613cad565b610d21565b005b34801561043557600080fd5b50610450600480360381019061044b9190613f28565b610d83565b005b61045a610e09565b005b34801561046857600080fd5b50610471610eb0565b005b34801561047f57600080fd5b5061049a60048036038101906104959190613d12565b610f36565b005b3480156104a857600080fd5b506104b1610f56565b6040516104be9190614a7f565b60405180910390f35b3480156104d357600080fd5b506104ee60048036038101906104e99190613f28565b610f7c565b6040516104fb9190614eb9565b60405180910390f35b34801561051057600080fd5b50610519611013565b6040516105269190614b01565b60405180910390f35b34801561053b57600080fd5b5061055660048036038101906105519190613e54565b61102a565b005b34801561056457600080fd5b5061057f600480360381019061057a9190613f28565b611172565b005b34801561058d57600080fd5b506105a860048036038101906105a39190613f28565b61123b565b6040516105b59190614a7f565b60405180910390f35b3480156105ca57600080fd5b506105e560048036038101906105e09190613c84565b6112ed565b6040516105f29190614eb9565b60405180910390f35b34801561060757600080fd5b506106106113a5565b005b34801561061e57600080fd5b5061062761142d565b6040516106349190614b1c565b60405180910390f35b34801561064957600080fd5b50610652611453565b005b34801561066057600080fd5b506106696114d9565b6040516106769190614eb9565b60405180910390f35b34801561068b57600080fd5b506106946114e5565b6040516106a19190614a7f565b60405180910390f35b3480156106b657600080fd5b506106bf61150f565b6040516106cc9190614b37565b60405180910390f35b3480156106e157600080fd5b506106ea6115a1565b6040516106f79190614a7f565b60405180910390f35b34801561070c57600080fd5b5061072760048036038101906107229190613ee7565b6115c7565b005b610743600480360381019061073e9190613f28565b61165d565b005b34801561075157600080fd5b5061076c60048036038101906107679190613ddc565b611826565b005b34801561077a57600080fd5b5061079560048036038101906107909190613c84565b6119a7565b6040516107a29190614b01565b60405180910390f35b3480156107b757600080fd5b506107d260048036038101906107cd9190613c84565b611c7c565b6040516107df9190614b01565b60405180910390f35b3480156107f457600080fd5b5061080f600480360381019061080a9190613d61565b611c9f565b005b34801561081d57600080fd5b5061083860048036038101906108339190613f28565b611d01565b6040516108459190614b37565b60405180910390f35b34801561085a57600080fd5b50610863611d83565b6040516108709190614b1c565b60405180910390f35b34801561088557600080fd5b506108a0600480360381019061089b9190613c84565b611da9565b005b3480156108ae57600080fd5b506108c960048036038101906108c49190613c84565b611e69565b6040516108d69190614eb9565b60405180910390f35b3480156108eb57600080fd5b5061090660048036038101906109019190613cd6565b611f1b565b6040516109139190614b01565b60405180910390f35b34801561092857600080fd5b50610943600480360381019061093e9190613c84565b611faf565b005b34801561095157600080fd5b5061096c60048036038101906109679190613c84565b6120a7565b6040516109799190614b01565b60405180910390f35b600061098d8261217f565b9050919050565b6060600080546109a3906151f5565b80601f01602080910402602001604051908101604052809291908181526020018280546109cf906151f5565b8015610a1c5780601f106109f157610100808354040283529160200191610a1c565b820191906000526020600020905b8154815290600101906020018083116109ff57829003601f168201915b5050505050905090565b6000610a31826121f9565b610a70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a6790614d59565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ab68261123b565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b1e90614e19565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b46612265565b73ffffffffffffffffffffffffffffffffffffffff161480610b755750610b7481610b6f612265565b611f1b565b5b610bb4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bab90614cb9565b60405180910390fd5b610bbe838361226d565b505050565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600880549050905090565b610c07610c01612265565b82612326565b610c46576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3d90614e39565b60405180910390fd5b610c51838383612404565b505050565b6000610c61836112ed565b8210610ca2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9990614b79565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6002600b541415610d67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5e90614e99565b60405180910390fd5b6002600b81905550610d7881612660565b6001600b8190555050565b610d8b612265565b73ffffffffffffffffffffffffffffffffffffffff16610da96114e5565b73ffffffffffffffffffffffffffffffffffffffff1614610dff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df690614db9565b60405180910390fd5b8060178190555050565b610e11612265565b73ffffffffffffffffffffffffffffffffffffffff16610e2f6114e5565b73ffffffffffffffffffffffffffffffffffffffff1614610e85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7c90614db9565b60405180910390fd5b610eae473373ffffffffffffffffffffffffffffffffffffffff166126ee90919063ffffffff16565b565b610eb8612265565b73ffffffffffffffffffffffffffffffffffffffff16610ed66114e5565b73ffffffffffffffffffffffffffffffffffffffff1614610f2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f2390614db9565b60405180910390fd5b610f346127e2565b565b610f5183838360405180602001604052806000815250611c9f565b505050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610f86610be9565b8210610fc7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fbe90614e59565b60405180910390fd5b60088281548110611001577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b6000600a60149054906101000a900460ff16905090565b611032612265565b73ffffffffffffffffffffffffffffffffffffffff166110506114e5565b73ffffffffffffffffffffffffffffffffffffffff16146110a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109d90614db9565b60405180910390fd5b60008151905060005b8181101561116d5760188382815181106110f2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808061116590615227565b9150506110af565b505050565b61117a612265565b73ffffffffffffffffffffffffffffffffffffffff166111986114e5565b73ffffffffffffffffffffffffffffffffffffffff16146111ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111e590614db9565b60405180910390fd5b60005b8181101561123757611224601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612884565b808061122f90615227565b9150506111f1565b5050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156112e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112db90614cf9565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561135e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135590614cd9565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6113ad612265565b73ffffffffffffffffffffffffffffffffffffffff166113cb6114e5565b73ffffffffffffffffffffffffffffffffffffffff1614611421576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141890614db9565b60405180910390fd5b61142b60006128ef565b565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61145b612265565b73ffffffffffffffffffffffffffffffffffffffff166114796114e5565b73ffffffffffffffffffffffffffffffffffffffff16146114cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114c690614db9565b60405180910390fd5b6114d76129b5565b565b60148060000154905081565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606001805461151e906151f5565b80601f016020809104026020016040519081016040528092919081815260200182805461154a906151f5565b80156115975780601f1061156c57610100808354040283529160200191611597565b820191906000526020600020905b81548152906001019060200180831161157a57829003601f168201915b5050505050905090565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6115cf612265565b73ffffffffffffffffffffffffffffffffffffffff166115ed6114e5565b73ffffffffffffffffffffffffffffffffffffffff1614611643576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161163a90614db9565b60405180910390fd5b80601a90805190602001906116599291906139e8565b5050565b600080600061166b33611c7c565b905080156116815760155492506001915061168b565b6016549250601491505b818411156116ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116c590614d79565b60405180910390fd5b600084846116dc919061507b565b905080341015611721576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161171890614e79565b60405180910390fd5b600061177c601260009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166127106fffffffffffffffffffffffffffffffff1684612a589092919063ffffffff16565b905060005b868110156117a55761179233612884565b808061179d90615227565b915050611781565b506117dd601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682846117d891906150d5565b612bd7565b611815601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600283611810919061504a565b612bd7565b61181e33612c67565b505050505050565b61182e612265565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561189c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189390614c19565b60405180910390fd5b80600560006118a9612265565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611956612265565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161199b9190614b01565b60405180910390a35050565b600080600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b8152600401611a059190614a7f565b60206040518083038186803b158015611a1d57600080fd5b505afa158015611a31573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a559190613f51565b1180611b0b57506000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b8152600401611ab99190614a7f565b60206040518083038186803b158015611ad157600080fd5b505afa158015611ae5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b099190613f51565b115b80611bc057506000600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b8152600401611b6e9190614a7f565b60206040518083038186803b158015611b8657600080fd5b505afa158015611b9a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bbe9190613f51565b115b80611c7557506000600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b8152600401611c239190614a7f565b60206040518083038186803b158015611c3b57600080fd5b505afa158015611c4f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c739190613f51565b115b9050919050565b6000611c87826120a7565b15611c955760019050611c9a565b600090505b919050565b611cb0611caa612265565b83612326565b611cef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ce690614e39565b60405180910390fd5b611cfb84848484612d9b565b50505050565b6060611d0c826121f9565b611d4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4290614df9565b60405180910390fd5b6000601a611d5884612df7565b604051602001611d69929190614a3b565b604051602081830303815290604052905080915050919050565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611db1612265565b73ffffffffffffffffffffffffffffffffffffffff16611dcf6114e5565b73ffffffffffffffffffffffffffffffffffffffff1614611e25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e1c90614db9565b60405180910390fd5b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60007f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663e3a9db1a836040518263ffffffff1660e01b8152600401611ec49190614a7f565b60206040518083038186803b158015611edc57600080fd5b505afa158015611ef0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f149190613f51565b9050919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611fb7612265565b73ffffffffffffffffffffffffffffffffffffffff16611fd56114e5565b73ffffffffffffffffffffffffffffffffffffffff161461202b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161202290614db9565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561209b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209290614bb9565b60405180910390fd5b6120a4816128ef565b50565b600080601880549050905060005b81811015612173578373ffffffffffffffffffffffffffffffffffffffff166018828154811061210e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156121605760019250505061217a565b808061216b90615227565b9150506120b5565b5060009150505b919050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806121f257506121f182612fa4565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166122e08361123b565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612331826121f9565b612370576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161236790614c79565b60405180910390fd5b600061237b8361123b565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806123ea57508373ffffffffffffffffffffffffffffffffffffffff166123d284610a26565b73ffffffffffffffffffffffffffffffffffffffff16145b806123fb57506123fa8185611f1b565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166124248261123b565b73ffffffffffffffffffffffffffffffffffffffff161461247a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161247190614dd9565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156124ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124e190614bf9565b60405180910390fd5b6124f5838383613086565b61250060008261226d565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461255091906150d5565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546125a79190614ff4565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff166351cff8d9826040518263ffffffff1660e01b81526004016126b99190614a9a565b600060405180830381600087803b1580156126d357600080fd5b505af11580156126e7573d6000803e3d6000fd5b5050505050565b80471015612731576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161272890614c59565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405161275790614a6a565b60006040518083038185875af1925050503d8060008114612794576040519150601f19603f3d011682016040523d82523d6000602084013e612799565b606091505b50509050806127dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127d490614c39565b60405180910390fd5b505050565b6127ea611013565b612829576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161282090614b59565b60405180910390fd5b6000600a60146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61286d612265565b60405161287a9190614a7f565b60405180910390a1565b60006128906014613096565b61289a60146130ac565b90506017548111156128e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128d890614d39565b60405180910390fd5b6128eb82826130ba565b5050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6129bd611013565b156129fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129f490614c99565b60405180910390fd5b6001600a60146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612a41612265565b604051612a4e9190614a7f565b60405180910390a1565b6000808211612a9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a9390614d99565b60405180910390fd5b6000841415612aae5760009050612bd0565b60008385612abc919061507b565b9050838582612acb919061504a565b1415612ae5578281612add919061504a565b915050612bd0565b60008386612af3919061504a565b905060008487612b039190615270565b905060008587612b13919061504a565b905060008688612b239190615270565b9050612bc8612b4d88612b3f84876130d890919063ffffffff16565b6130ee90919063ffffffff16565b612bba612b6385876130d890919063ffffffff16565b612bac612b79868a6130d890919063ffffffff16565b612b9e8d612b908a8d6130d890919063ffffffff16565b6130d890919063ffffffff16565b61310490919063ffffffff16565b61310490919063ffffffff16565b61310490919063ffffffff16565b955050505050505b9392505050565b7f000000000000000000000000000000000000000000000000000000000000000073ffffffffffffffffffffffffffffffffffffffff1663f340fa0182846040518363ffffffff1660e01b8152600401612c319190614a7f565b6000604051808303818588803b158015612c4a57600080fd5b505af1158015612c5e573d6000803e3d6000fd5b50505050505050565b6000601880549050905060005b81811015612d95578273ffffffffffffffffffffffffffffffffffffffff1660188281548110612ccd577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415612d825760188181548110612d4e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690555050612d98565b8080612d8d90615227565b915050612c74565b50505b50565b612da6848484612404565b612db28484848461311a565b612df1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612de890614b99565b60405180910390fd5b50505050565b60606000821415612e3f576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612f9f565b600082905060005b60008214612e71578080612e5a90615227565b915050600a82612e6a919061504a565b9150612e47565b60008167ffffffffffffffff811115612eb3577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612ee55781602001600182028036833780820191505090505b5090505b60008514612f9857600182612efe91906150d5565b9150600a85612f0d9190615270565b6030612f199190614ff4565b60f81b818381518110612f55577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612f91919061504a565b9450612ee9565b8093505050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061306f57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061307f575061307e826132b1565b5b9050919050565b61309183838361331b565b505050565b6001816000016000828254019250508190555050565b600081600001549050919050565b6130d482826040518060200160405280600081525061342f565b5050565b600081836130e6919061507b565b905092915050565b600081836130fc919061504a565b905092915050565b600081836131129190614ff4565b905092915050565b600061313b8473ffffffffffffffffffffffffffffffffffffffff1661348a565b156132a4578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613164612265565b8786866040518563ffffffff1660e01b81526004016131869493929190614ab5565b602060405180830381600087803b1580156131a057600080fd5b505af19250505080156131d157506040513d601f19601f820116820180604052508101906131ce9190613ebe565b60015b613254573d8060008114613201576040519150601f19603f3d011682016040523d82523d6000602084013e613206565b606091505b5060008151141561324c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161324390614b99565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506132a9565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61332683838361349d565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561336957613364816134a2565b6133a8565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146133a7576133a683826134eb565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156133eb576133e681613658565b61342a565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461342957613428828261379b565b5b5b505050565b613439838361381a565b613446600084848461311a565b613485576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161347c90614b99565b60405180910390fd5b505050565b600080823b905060008111915050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016134f8846112ed565b61350291906150d5565b90506000600760008481526020019081526020016000205490508181146135e7576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b6000600160088054905061366c91906150d5565b90506000600960008481526020019081526020016000205490506000600883815481106136c2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050806008838154811061370a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001819055508160096000838152602001908152602001600020819055506009600085815260200190815260200160002060009055600880548061377f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006137a6836112ed565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561388a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161388190614d19565b60405180910390fd5b613893816121f9565b156138d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138ca90614bd9565b60405180910390fd5b6138df60008383613086565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461392f9190614ff4565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b8280546139f4906151f5565b90600052602060002090601f016020900481019282613a165760008555613a5d565b82601f10613a2f57805160ff1916838001178555613a5d565b82800160010185558215613a5d579182015b82811115613a5c578251825591602001919060010190613a41565b5b509050613a6a9190613a6e565b5090565b5b80821115613a87576000816000905550600101613a6f565b5090565b6000613a9e613a9984614f05565b614ed4565b90508083825260208201905082856020860282011115613abd57600080fd5b60005b85811015613aed5781613ad38882613b73565b845260208401935060208301925050600181019050613ac0565b5050509392505050565b6000613b0a613b0584614f31565b614ed4565b905082815260208101848484011115613b2257600080fd5b613b2d8482856151b3565b509392505050565b6000613b48613b4384614f61565b614ed4565b905082815260208101848484011115613b6057600080fd5b613b6b8482856151b3565b509392505050565b600081359050613b828161536e565b92915050565b600081359050613b9781615385565b92915050565b600082601f830112613bae57600080fd5b8135613bbe848260208601613a8b565b91505092915050565b600081359050613bd68161539c565b92915050565b600081359050613beb816153b3565b92915050565b600081519050613c00816153b3565b92915050565b600082601f830112613c1757600080fd5b8135613c27848260208601613af7565b91505092915050565b600082601f830112613c4157600080fd5b8135613c51848260208601613b35565b91505092915050565b600081359050613c69816153ca565b92915050565b600081519050613c7e816153ca565b92915050565b600060208284031215613c9657600080fd5b6000613ca484828501613b73565b91505092915050565b600060208284031215613cbf57600080fd5b6000613ccd84828501613b88565b91505092915050565b60008060408385031215613ce957600080fd5b6000613cf785828601613b73565b9250506020613d0885828601613b73565b9150509250929050565b600080600060608486031215613d2757600080fd5b6000613d3586828701613b73565b9350506020613d4686828701613b73565b9250506040613d5786828701613c5a565b9150509250925092565b60008060008060808587031215613d7757600080fd5b6000613d8587828801613b73565b9450506020613d9687828801613b73565b9350506040613da787828801613c5a565b925050606085013567ffffffffffffffff811115613dc457600080fd5b613dd087828801613c06565b91505092959194509250565b60008060408385031215613def57600080fd5b6000613dfd85828601613b73565b9250506020613e0e85828601613bc7565b9150509250929050565b60008060408385031215613e2b57600080fd5b6000613e3985828601613b73565b9250506020613e4a85828601613c5a565b9150509250929050565b600060208284031215613e6657600080fd5b600082013567ffffffffffffffff811115613e8057600080fd5b613e8c84828501613b9d565b91505092915050565b600060208284031215613ea757600080fd5b6000613eb584828501613bdc565b91505092915050565b600060208284031215613ed057600080fd5b6000613ede84828501613bf1565b91505092915050565b600060208284031215613ef957600080fd5b600082013567ffffffffffffffff811115613f1357600080fd5b613f1f84828501613c30565b91505092915050565b600060208284031215613f3a57600080fd5b6000613f4884828501613c5a565b91505092915050565b600060208284031215613f6357600080fd5b6000613f7184828501613c6f565b91505092915050565b613f838161511b565b82525050565b613f9281615109565b82525050565b613fa18161512d565b82525050565b6000613fb282614fa6565b613fbc8185614fbc565b9350613fcc8185602086016151c2565b613fd58161535d565b840191505092915050565b613fe98161518f565b82525050565b6000613ffa82614fb1565b6140048185614fd8565b93506140148185602086016151c2565b61401d8161535d565b840191505092915050565b600061403382614fb1565b61403d8185614fe9565b935061404d8185602086016151c2565b80840191505092915050565b60008154614066816151f5565b6140708186614fe9565b9450600182166000811461408b576001811461409c576140cf565b60ff198316865281860193506140cf565b6140a585614f91565b60005b838110156140c7578154818901526001820191506020810190506140a8565b838801955050505b50505092915050565b60006140e5601483614fd8565b91507f5061757361626c653a206e6f74207061757365640000000000000000000000006000830152602082019050919050565b6000614125602b83614fd8565b91507f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008301527f74206f6620626f756e64730000000000000000000000000000000000000000006020830152604082019050919050565b600061418b603283614fd8565b91507f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008301527f63656976657220696d706c656d656e74657200000000000000000000000000006020830152604082019050919050565b60006141f1602683614fd8565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614257601c83614fd8565b91507f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006000830152602082019050919050565b6000614297602483614fd8565b91507f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006142fd601983614fd8565b91507f4552433732313a20617070726f766520746f2063616c6c6572000000000000006000830152602082019050919050565b600061433d603a83614fd8565b91507f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008301527f6563697069656e74206d617920686176652072657665727465640000000000006020830152604082019050919050565b60006143a3601d83614fd8565b91507f416464726573733a20696e73756666696369656e742062616c616e63650000006000830152602082019050919050565b60006143e3602c83614fd8565b91507f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000614449601083614fd8565b91507f5061757361626c653a20706175736564000000000000000000000000000000006000830152602082019050919050565b6000614489603883614fd8565b91507f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008301527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006020830152604082019050919050565b60006144ef602a83614fd8565b91507f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008301527f726f2061646472657373000000000000000000000000000000000000000000006020830152604082019050919050565b6000614555602983614fd8565b91507f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008301527f656e7420746f6b656e00000000000000000000000000000000000000000000006020830152604082019050919050565b60006145bb602083614fd8565b91507f4552433732313a206d696e7420746f20746865207a65726f20616464726573736000830152602082019050919050565b60006145fb601783614fd8565b91507f54686973206d696e742068617320736f6c64206f75742e0000000000000000006000830152602082019050919050565b600061463b602c83614fd8565b91507f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b60006146a1600583614fe9565b91507f2e6a736f6e0000000000000000000000000000000000000000000000000000006000830152600582019050919050565b60006146e1601883614fd8565b91507f796f752063616e2774206d696e742074686174206d75636800000000000000006000830152602082019050919050565b6000614721601083614fd8565b91507f4469766973696f6e206279207a65726f000000000000000000000000000000006000830152602082019050919050565b6000614761602083614fd8565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b60006147a1602983614fd8565b91507f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008301527f73206e6f74206f776e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000614807602f83614fd8565b91507f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008301527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006020830152604082019050919050565b600061486d602183614fd8565b91507f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008301527f72000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006148d3600083614fcd565b9150600082019050919050565b60006148ed603183614fd8565b91507f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008301527f776e6572206e6f7220617070726f7665640000000000000000000000000000006020830152604082019050919050565b6000614953602c83614fd8565b91507f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008301527f7574206f6620626f756e647300000000000000000000000000000000000000006020830152604082019050919050565b60006149b9601a83614fd8565b91507f596f7520646f6e2774206861766520656e6f7567682043524f2e0000000000006000830152602082019050919050565b60006149f9601f83614fd8565b91507f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006000830152602082019050919050565b614a3581615185565b82525050565b6000614a478285614059565b9150614a538284614028565b9150614a5e82614694565b91508190509392505050565b6000614a75826148c6565b9150819050919050565b6000602082019050614a946000830184613f89565b92915050565b6000602082019050614aaf6000830184613f7a565b92915050565b6000608082019050614aca6000830187613f89565b614ad76020830186613f89565b614ae46040830185614a2c565b8181036060830152614af68184613fa7565b905095945050505050565b6000602082019050614b166000830184613f98565b92915050565b6000602082019050614b316000830184613fe0565b92915050565b60006020820190508181036000830152614b518184613fef565b905092915050565b60006020820190508181036000830152614b72816140d8565b9050919050565b60006020820190508181036000830152614b9281614118565b9050919050565b60006020820190508181036000830152614bb28161417e565b9050919050565b60006020820190508181036000830152614bd2816141e4565b9050919050565b60006020820190508181036000830152614bf28161424a565b9050919050565b60006020820190508181036000830152614c128161428a565b9050919050565b60006020820190508181036000830152614c32816142f0565b9050919050565b60006020820190508181036000830152614c5281614330565b9050919050565b60006020820190508181036000830152614c7281614396565b9050919050565b60006020820190508181036000830152614c92816143d6565b9050919050565b60006020820190508181036000830152614cb28161443c565b9050919050565b60006020820190508181036000830152614cd28161447c565b9050919050565b60006020820190508181036000830152614cf2816144e2565b9050919050565b60006020820190508181036000830152614d1281614548565b9050919050565b60006020820190508181036000830152614d32816145ae565b9050919050565b60006020820190508181036000830152614d52816145ee565b9050919050565b60006020820190508181036000830152614d728161462e565b9050919050565b60006020820190508181036000830152614d92816146d4565b9050919050565b60006020820190508181036000830152614db281614714565b9050919050565b60006020820190508181036000830152614dd281614754565b9050919050565b60006020820190508181036000830152614df281614794565b9050919050565b60006020820190508181036000830152614e12816147fa565b9050919050565b60006020820190508181036000830152614e3281614860565b9050919050565b60006020820190508181036000830152614e52816148e0565b9050919050565b60006020820190508181036000830152614e7281614946565b9050919050565b60006020820190508181036000830152614e92816149ac565b9050919050565b60006020820190508181036000830152614eb2816149ec565b9050919050565b6000602082019050614ece6000830184614a2c565b92915050565b6000604051905081810181811067ffffffffffffffff82111715614efb57614efa61532e565b5b8060405250919050565b600067ffffffffffffffff821115614f2057614f1f61532e565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614f4c57614f4b61532e565b5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff821115614f7c57614f7b61532e565b5b601f19601f8301169050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614fff82615185565b915061500a83615185565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561503f5761503e6152a1565b5b828201905092915050565b600061505582615185565b915061506083615185565b9250826150705761506f6152d0565b5b828204905092915050565b600061508682615185565b915061509183615185565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156150ca576150c96152a1565b5b828202905092915050565b60006150e082615185565b91506150eb83615185565b9250828210156150fe576150fd6152a1565b5b828203905092915050565b600061511482615165565b9050919050565b600061512682615165565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061519a826151a1565b9050919050565b60006151ac82615165565b9050919050565b82818337600083830152505050565b60005b838110156151e05780820151818401526020810190506151c5565b838111156151ef576000848401525b50505050565b6000600282049050600182168061520d57607f821691505b60208210811415615221576152206152ff565b5b50919050565b600061523282615185565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415615265576152646152a1565b5b600182019050919050565b600061527b82615185565b915061528683615185565b925082615296576152956152d0565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b61537781615109565b811461538257600080fd5b50565b61538e8161511b565b811461539957600080fd5b50565b6153a58161512d565b81146153b057600080fd5b50565b6153bc81615139565b81146153c757600080fd5b50565b6153d381615185565b81146153de57600080fd5b5056fea2646970667358221220c5b57ce79e8e58335964088317d11dd6b2ee24cffabbfb89fff78f380d6f6ebc64736f6c63430008000033608060405234801561001057600080fd5b5061002d61002261003260201b60201c565b61003a60201b60201c565b6100fe565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b610bc08061010d6000396000f3fe6080604052600436106100555760003560e01c806351cff8d91461005a578063715018a6146100835780638da5cb5b1461009a578063e3a9db1a146100c5578063f2fde38b14610102578063f340fa011461012b575b600080fd5b34801561006657600080fd5b50610081600480360381019061007c91906107f5565b610147565b005b34801561008f57600080fd5b506100986102c7565b005b3480156100a657600080fd5b506100af61034f565b6040516100bc91906109b7565b60405180910390f35b3480156100d157600080fd5b506100ec60048036038101906100e791906107cc565b610378565b6040516100f99190610a52565b60405180910390f35b34801561010e57600080fd5b50610129600480360381019061012491906107cc565b6103c1565b005b610145600480360381019061014091906107cc565b6104b9565b005b61014f6105e2565b73ffffffffffffffffffffffffffffffffffffffff1661016d61034f565b73ffffffffffffffffffffffffffffffffffffffff16146101c3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016101ba90610a32565b60405180910390fd5b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506000600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550610275818373ffffffffffffffffffffffffffffffffffffffff166105ea90919063ffffffff16565b8173ffffffffffffffffffffffffffffffffffffffff167f7084f5476618d8e60b11ef0d7d3f06914655adb8793e28ff7f018d4c76d505d5826040516102bb9190610a52565b60405180910390a25050565b6102cf6105e2565b73ffffffffffffffffffffffffffffffffffffffff166102ed61034f565b73ffffffffffffffffffffffffffffffffffffffff1614610343576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161033a90610a32565b60405180910390fd5b61034d60006106de565b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000600160008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6103c96105e2565b73ffffffffffffffffffffffffffffffffffffffff166103e761034f565b73ffffffffffffffffffffffffffffffffffffffff161461043d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161043490610a32565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156104ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104a4906109d2565b60405180910390fd5b6104b6816106de565b50565b6104c16105e2565b73ffffffffffffffffffffffffffffffffffffffff166104df61034f565b73ffffffffffffffffffffffffffffffffffffffff1614610535576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161052c90610a32565b60405180910390fd5b600034905080600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546105899190610a89565b925050819055508173ffffffffffffffffffffffffffffffffffffffff167f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c4826040516105d69190610a52565b60405180910390a25050565b600033905090565b8047101561062d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161062490610a12565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff1682604051610653906109a2565b60006040518083038185875af1925050503d8060008114610690576040519150601f19603f3d011682016040523d82523d6000602084013e610695565b606091505b50509050806106d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016106d0906109f2565b60405180910390fd5b505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000813590506107b181610b5c565b92915050565b6000813590506107c681610b73565b92915050565b6000602082840312156107de57600080fd5b60006107ec848285016107a2565b91505092915050565b60006020828403121561080757600080fd5b6000610815848285016107b7565b91505092915050565b61082781610adf565b82525050565b600061083a602683610a78565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006108a0603a83610a78565b91507f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008301527f6563697069656e74206d617920686176652072657665727465640000000000006020830152604082019050919050565b6000610906601d83610a78565b91507f416464726573733a20696e73756666696369656e742062616c616e63650000006000830152602082019050919050565b6000610946602083610a78565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000610986600083610a6d565b9150600082019050919050565b61099c81610b23565b82525050565b60006109ad82610979565b9150819050919050565b60006020820190506109cc600083018461081e565b92915050565b600060208201905081810360008301526109eb8161082d565b9050919050565b60006020820190508181036000830152610a0b81610893565b9050919050565b60006020820190508181036000830152610a2b816108f9565b9050919050565b60006020820190508181036000830152610a4b81610939565b9050919050565b6000602082019050610a676000830184610993565b92915050565b600081905092915050565b600082825260208201905092915050565b6000610a9482610b23565b9150610a9f83610b23565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115610ad457610ad3610b2d565b5b828201905092915050565b6000610aea82610b03565b9050919050565b6000610afc82610b03565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b610b6581610adf565b8114610b7057600080fd5b50565b610b7c81610af1565b8114610b8757600080fd5b5056fea2646970667358221220f6650f6c6d37cef9100c6a131b99783c8ca212e1a885708b9234aed27b48fc9364736f6c63430008000033697066733a2f2f516d626f394b34326666546950686b463665447a4e616d314a626a37754c33364a5a4565575039637879596859392f000000000000000000000000d356de7f62e89ee5887d3fd9ee0206b0733a55ab000000000000000000000000ed8f960d1b0e664cbd2cbeb0e2648abfdb90ce29

Deployed Bytecode

0x6080604052600436106102465760003560e01c806370a0823111610139578063a22cb465116100b6578063c8b723d11161007a578063c8b723d11461084e578063d4c9753314610879578063e2982c21146108a2578063e985e9c5146108df578063f2fde38b1461091c578063f99031a71461094557610246565b8063a22cb46514610745578063a230c5241461076e578063a526c5d9146107ab578063b88d4fde146107e8578063c87b56dd1461081157610246565b80638da5cb5b116100fd5780638da5cb5b1461067f57806395d89b41146106aa578063975b07e3146106d55780639b642de114610700578063a0712d681461072957610246565b806370a08231146105be578063715018a6146105fb57806383209481146106125780638456cb591461063d57806384c4bd4b1461065457610246565b80633b4c4b25116101c75780634f6ccce71161018b5780634f6ccce7146104c75780635c975abb146105045780635e1045ec1461052f578063632bbab4146105585780636352211e1461058157610246565b80633b4c4b25146104295780633ccfd60b146104525780633f4ba83a1461045c57806342842e0e1461047357806343bc16121461049c57610246565b806318160ddd1161020e57806318160ddd1461034457806323b872dd1461036f5780632f745c59146103985780632f983b01146103d557806331b3eb941461040057610246565b806301ffc9a71461024b57806306fdde0314610288578063081812fc146102b3578063095ea7b3146102f05780630b269ea514610319575b600080fd5b34801561025757600080fd5b50610272600480360381019061026d9190613e95565b610982565b60405161027f9190614b01565b60405180910390f35b34801561029457600080fd5b5061029d610994565b6040516102aa9190614b37565b60405180910390f35b3480156102bf57600080fd5b506102da60048036038101906102d59190613f28565b610a26565b6040516102e79190614a7f565b60405180910390f35b3480156102fc57600080fd5b5061031760048036038101906103129190613e18565b610aab565b005b34801561032557600080fd5b5061032e610bc3565b60405161033b9190614b1c565b60405180910390f35b34801561035057600080fd5b50610359610be9565b6040516103669190614eb9565b60405180910390f35b34801561037b57600080fd5b5061039660048036038101906103919190613d12565b610bf6565b005b3480156103a457600080fd5b506103bf60048036038101906103ba9190613e18565b610c56565b6040516103cc9190614eb9565b60405180910390f35b3480156103e157600080fd5b506103ea610cfb565b6040516103f79190614b1c565b60405180910390f35b34801561040c57600080fd5b5061042760048036038101906104229190613cad565b610d21565b005b34801561043557600080fd5b50610450600480360381019061044b9190613f28565b610d83565b005b61045a610e09565b005b34801561046857600080fd5b50610471610eb0565b005b34801561047f57600080fd5b5061049a60048036038101906104959190613d12565b610f36565b005b3480156104a857600080fd5b506104b1610f56565b6040516104be9190614a7f565b60405180910390f35b3480156104d357600080fd5b506104ee60048036038101906104e99190613f28565b610f7c565b6040516104fb9190614eb9565b60405180910390f35b34801561051057600080fd5b50610519611013565b6040516105269190614b01565b60405180910390f35b34801561053b57600080fd5b5061055660048036038101906105519190613e54565b61102a565b005b34801561056457600080fd5b5061057f600480360381019061057a9190613f28565b611172565b005b34801561058d57600080fd5b506105a860048036038101906105a39190613f28565b61123b565b6040516105b59190614a7f565b60405180910390f35b3480156105ca57600080fd5b506105e560048036038101906105e09190613c84565b6112ed565b6040516105f29190614eb9565b60405180910390f35b34801561060757600080fd5b506106106113a5565b005b34801561061e57600080fd5b5061062761142d565b6040516106349190614b1c565b60405180910390f35b34801561064957600080fd5b50610652611453565b005b34801561066057600080fd5b506106696114d9565b6040516106769190614eb9565b60405180910390f35b34801561068b57600080fd5b506106946114e5565b6040516106a19190614a7f565b60405180910390f35b3480156106b657600080fd5b506106bf61150f565b6040516106cc9190614b37565b60405180910390f35b3480156106e157600080fd5b506106ea6115a1565b6040516106f79190614a7f565b60405180910390f35b34801561070c57600080fd5b5061072760048036038101906107229190613ee7565b6115c7565b005b610743600480360381019061073e9190613f28565b61165d565b005b34801561075157600080fd5b5061076c60048036038101906107679190613ddc565b611826565b005b34801561077a57600080fd5b5061079560048036038101906107909190613c84565b6119a7565b6040516107a29190614b01565b60405180910390f35b3480156107b757600080fd5b506107d260048036038101906107cd9190613c84565b611c7c565b6040516107df9190614b01565b60405180910390f35b3480156107f457600080fd5b5061080f600480360381019061080a9190613d61565b611c9f565b005b34801561081d57600080fd5b5061083860048036038101906108339190613f28565b611d01565b6040516108459190614b37565b60405180910390f35b34801561085a57600080fd5b50610863611d83565b6040516108709190614b1c565b60405180910390f35b34801561088557600080fd5b506108a0600480360381019061089b9190613c84565b611da9565b005b3480156108ae57600080fd5b506108c960048036038101906108c49190613c84565b611e69565b6040516108d69190614eb9565b60405180910390f35b3480156108eb57600080fd5b5061090660048036038101906109019190613cd6565b611f1b565b6040516109139190614b01565b60405180910390f35b34801561092857600080fd5b50610943600480360381019061093e9190613c84565b611faf565b005b34801561095157600080fd5b5061096c60048036038101906109679190613c84565b6120a7565b6040516109799190614b01565b60405180910390f35b600061098d8261217f565b9050919050565b6060600080546109a3906151f5565b80601f01602080910402602001604051908101604052809291908181526020018280546109cf906151f5565b8015610a1c5780601f106109f157610100808354040283529160200191610a1c565b820191906000526020600020905b8154815290600101906020018083116109ff57829003601f168201915b5050505050905090565b6000610a31826121f9565b610a70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a6790614d59565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ab68261123b565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610b27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b1e90614e19565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b46612265565b73ffffffffffffffffffffffffffffffffffffffff161480610b755750610b7481610b6f612265565b611f1b565b5b610bb4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bab90614cb9565b60405180910390fd5b610bbe838361226d565b505050565b600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600880549050905090565b610c07610c01612265565b82612326565b610c46576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3d90614e39565b60405180910390fd5b610c51838383612404565b505050565b6000610c61836112ed565b8210610ca2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9990614b79565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6002600b541415610d67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d5e90614e99565b60405180910390fd5b6002600b81905550610d7881612660565b6001600b8190555050565b610d8b612265565b73ffffffffffffffffffffffffffffffffffffffff16610da96114e5565b73ffffffffffffffffffffffffffffffffffffffff1614610dff576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610df690614db9565b60405180910390fd5b8060178190555050565b610e11612265565b73ffffffffffffffffffffffffffffffffffffffff16610e2f6114e5565b73ffffffffffffffffffffffffffffffffffffffff1614610e85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e7c90614db9565b60405180910390fd5b610eae473373ffffffffffffffffffffffffffffffffffffffff166126ee90919063ffffffff16565b565b610eb8612265565b73ffffffffffffffffffffffffffffffffffffffff16610ed66114e5565b73ffffffffffffffffffffffffffffffffffffffff1614610f2c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f2390614db9565b60405180910390fd5b610f346127e2565b565b610f5183838360405180602001604052806000815250611c9f565b505050565b601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000610f86610be9565b8210610fc7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fbe90614e59565b60405180910390fd5b60088281548110611001577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050919050565b6000600a60149054906101000a900460ff16905090565b611032612265565b73ffffffffffffffffffffffffffffffffffffffff166110506114e5565b73ffffffffffffffffffffffffffffffffffffffff16146110a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161109d90614db9565b60405180910390fd5b60008151905060005b8181101561116d5760188382815181106110f2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808061116590615227565b9150506110af565b505050565b61117a612265565b73ffffffffffffffffffffffffffffffffffffffff166111986114e5565b73ffffffffffffffffffffffffffffffffffffffff16146111ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111e590614db9565b60405180910390fd5b60005b8181101561123757611224601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16612884565b808061122f90615227565b9150506111f1565b5050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156112e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112db90614cf9565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561135e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161135590614cd9565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6113ad612265565b73ffffffffffffffffffffffffffffffffffffffff166113cb6114e5565b73ffffffffffffffffffffffffffffffffffffffff1614611421576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161141890614db9565b60405180910390fd5b61142b60006128ef565b565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b61145b612265565b73ffffffffffffffffffffffffffffffffffffffff166114796114e5565b73ffffffffffffffffffffffffffffffffffffffff16146114cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114c690614db9565b60405180910390fd5b6114d76129b5565b565b60148060000154905081565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606001805461151e906151f5565b80601f016020809104026020016040519081016040528092919081815260200182805461154a906151f5565b80156115975780601f1061156c57610100808354040283529160200191611597565b820191906000526020600020905b81548152906001019060200180831161157a57829003601f168201915b5050505050905090565b601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6115cf612265565b73ffffffffffffffffffffffffffffffffffffffff166115ed6114e5565b73ffffffffffffffffffffffffffffffffffffffff1614611643576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161163a90614db9565b60405180910390fd5b80601a90805190602001906116599291906139e8565b5050565b600080600061166b33611c7c565b905080156116815760155492506001915061168b565b6016549250601491505b818411156116ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116c590614d79565b60405180910390fd5b600084846116dc919061507b565b905080341015611721576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161171890614e79565b60405180910390fd5b600061177c601260009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff166127106fffffffffffffffffffffffffffffffff1684612a589092919063ffffffff16565b905060005b868110156117a55761179233612884565b808061179d90615227565b915050611781565b506117dd601060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1682846117d891906150d5565b612bd7565b611815601160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16600283611810919061504a565b612bd7565b61181e33612c67565b505050505050565b61182e612265565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561189c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161189390614c19565b60405180910390fd5b80600560006118a9612265565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611956612265565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161199b9190614b01565b60405180910390a35050565b600080600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b8152600401611a059190614a7f565b60206040518083038186803b158015611a1d57600080fd5b505afa158015611a31573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a559190613f51565b1180611b0b57506000600d60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b8152600401611ab99190614a7f565b60206040518083038186803b158015611ad157600080fd5b505afa158015611ae5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b099190613f51565b115b80611bc057506000600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b8152600401611b6e9190614a7f565b60206040518083038186803b158015611b8657600080fd5b505afa158015611b9a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bbe9190613f51565b115b80611c7557506000600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b8152600401611c239190614a7f565b60206040518083038186803b158015611c3b57600080fd5b505afa158015611c4f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c739190613f51565b115b9050919050565b6000611c87826120a7565b15611c955760019050611c9a565b600090505b919050565b611cb0611caa612265565b83612326565b611cef576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ce690614e39565b60405180910390fd5b611cfb84848484612d9b565b50505050565b6060611d0c826121f9565b611d4b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4290614df9565b60405180910390fd5b6000601a611d5884612df7565b604051602001611d69929190614a3b565b604051602081830303815290604052905080915050919050565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611db1612265565b73ffffffffffffffffffffffffffffffffffffffff16611dcf6114e5565b73ffffffffffffffffffffffffffffffffffffffff1614611e25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e1c90614db9565b60405180910390fd5b80601060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60007f000000000000000000000000f7f30cdeb4b4aacd99c5403912bca5894507ca6673ffffffffffffffffffffffffffffffffffffffff1663e3a9db1a836040518263ffffffff1660e01b8152600401611ec49190614a7f565b60206040518083038186803b158015611edc57600080fd5b505afa158015611ef0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f149190613f51565b9050919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611fb7612265565b73ffffffffffffffffffffffffffffffffffffffff16611fd56114e5565b73ffffffffffffffffffffffffffffffffffffffff161461202b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161202290614db9565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561209b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161209290614bb9565b60405180910390fd5b6120a4816128ef565b50565b600080601880549050905060005b81811015612173578373ffffffffffffffffffffffffffffffffffffffff166018828154811061210e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156121605760019250505061217a565b808061216b90615227565b9150506120b5565b5060009150505b919050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806121f257506121f182612fa4565b5b9050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166122e08361123b565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612331826121f9565b612370576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161236790614c79565b60405180910390fd5b600061237b8361123b565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806123ea57508373ffffffffffffffffffffffffffffffffffffffff166123d284610a26565b73ffffffffffffffffffffffffffffffffffffffff16145b806123fb57506123fa8185611f1b565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166124248261123b565b73ffffffffffffffffffffffffffffffffffffffff161461247a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161247190614dd9565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156124ea576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124e190614bf9565b60405180910390fd5b6124f5838383613086565b61250060008261226d565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461255091906150d5565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546125a79190614ff4565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b7f000000000000000000000000f7f30cdeb4b4aacd99c5403912bca5894507ca6673ffffffffffffffffffffffffffffffffffffffff166351cff8d9826040518263ffffffff1660e01b81526004016126b99190614a9a565b600060405180830381600087803b1580156126d357600080fd5b505af11580156126e7573d6000803e3d6000fd5b5050505050565b80471015612731576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161272890614c59565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff168260405161275790614a6a565b60006040518083038185875af1925050503d8060008114612794576040519150601f19603f3d011682016040523d82523d6000602084013e612799565b606091505b50509050806127dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127d490614c39565b60405180910390fd5b505050565b6127ea611013565b612829576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161282090614b59565b60405180910390fd5b6000600a60146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61286d612265565b60405161287a9190614a7f565b60405180910390a1565b60006128906014613096565b61289a60146130ac565b90506017548111156128e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128d890614d39565b60405180910390fd5b6128eb82826130ba565b5050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6129bd611013565b156129fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129f490614c99565b60405180910390fd5b6001600a60146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612a41612265565b604051612a4e9190614a7f565b60405180910390a1565b6000808211612a9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a9390614d99565b60405180910390fd5b6000841415612aae5760009050612bd0565b60008385612abc919061507b565b9050838582612acb919061504a565b1415612ae5578281612add919061504a565b915050612bd0565b60008386612af3919061504a565b905060008487612b039190615270565b905060008587612b13919061504a565b905060008688612b239190615270565b9050612bc8612b4d88612b3f84876130d890919063ffffffff16565b6130ee90919063ffffffff16565b612bba612b6385876130d890919063ffffffff16565b612bac612b79868a6130d890919063ffffffff16565b612b9e8d612b908a8d6130d890919063ffffffff16565b6130d890919063ffffffff16565b61310490919063ffffffff16565b61310490919063ffffffff16565b61310490919063ffffffff16565b955050505050505b9392505050565b7f000000000000000000000000f7f30cdeb4b4aacd99c5403912bca5894507ca6673ffffffffffffffffffffffffffffffffffffffff1663f340fa0182846040518363ffffffff1660e01b8152600401612c319190614a7f565b6000604051808303818588803b158015612c4a57600080fd5b505af1158015612c5e573d6000803e3d6000fd5b50505050505050565b6000601880549050905060005b81811015612d95578273ffffffffffffffffffffffffffffffffffffffff1660188281548110612ccd577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415612d825760188181548110612d4e577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b9060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690555050612d98565b8080612d8d90615227565b915050612c74565b50505b50565b612da6848484612404565b612db28484848461311a565b612df1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612de890614b99565b60405180910390fd5b50505050565b60606000821415612e3f576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612f9f565b600082905060005b60008214612e71578080612e5a90615227565b915050600a82612e6a919061504a565b9150612e47565b60008167ffffffffffffffff811115612eb3577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612ee55781602001600182028036833780820191505090505b5090505b60008514612f9857600182612efe91906150d5565b9150600a85612f0d9190615270565b6030612f199190614ff4565b60f81b818381518110612f55577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612f91919061504a565b9450612ee9565b8093505050505b919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061306f57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b8061307f575061307e826132b1565b5b9050919050565b61309183838361331b565b505050565b6001816000016000828254019250508190555050565b600081600001549050919050565b6130d482826040518060200160405280600081525061342f565b5050565b600081836130e6919061507b565b905092915050565b600081836130fc919061504a565b905092915050565b600081836131129190614ff4565b905092915050565b600061313b8473ffffffffffffffffffffffffffffffffffffffff1661348a565b156132a4578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613164612265565b8786866040518563ffffffff1660e01b81526004016131869493929190614ab5565b602060405180830381600087803b1580156131a057600080fd5b505af19250505080156131d157506040513d601f19601f820116820180604052508101906131ce9190613ebe565b60015b613254573d8060008114613201576040519150601f19603f3d011682016040523d82523d6000602084013e613206565b606091505b5060008151141561324c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161324390614b99565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149150506132a9565b600190505b949350505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61332683838361349d565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561336957613364816134a2565b6133a8565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146133a7576133a683826134eb565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156133eb576133e681613658565b61342a565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461342957613428828261379b565b5b5b505050565b613439838361381a565b613446600084848461311a565b613485576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161347c90614b99565b60405180910390fd5b505050565b600080823b905060008111915050919050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b600060016134f8846112ed565b61350291906150d5565b90506000600760008481526020019081526020016000205490508181146135e7576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b6000600160088054905061366c91906150d5565b90506000600960008481526020019081526020016000205490506000600883815481106136c2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001549050806008838154811061370a577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b90600052602060002001819055508160096000838152602001908152602001600020819055506009600085815260200190815260200160002060009055600880548061377f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6001900381819060005260206000200160009055905550505050565b60006137a6836112ed565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561388a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161388190614d19565b60405180910390fd5b613893816121f9565b156138d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138ca90614bd9565b60405180910390fd5b6138df60008383613086565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461392f9190614ff4565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b8280546139f4906151f5565b90600052602060002090601f016020900481019282613a165760008555613a5d565b82601f10613a2f57805160ff1916838001178555613a5d565b82800160010185558215613a5d579182015b82811115613a5c578251825591602001919060010190613a41565b5b509050613a6a9190613a6e565b5090565b5b80821115613a87576000816000905550600101613a6f565b5090565b6000613a9e613a9984614f05565b614ed4565b90508083825260208201905082856020860282011115613abd57600080fd5b60005b85811015613aed5781613ad38882613b73565b845260208401935060208301925050600181019050613ac0565b5050509392505050565b6000613b0a613b0584614f31565b614ed4565b905082815260208101848484011115613b2257600080fd5b613b2d8482856151b3565b509392505050565b6000613b48613b4384614f61565b614ed4565b905082815260208101848484011115613b6057600080fd5b613b6b8482856151b3565b509392505050565b600081359050613b828161536e565b92915050565b600081359050613b9781615385565b92915050565b600082601f830112613bae57600080fd5b8135613bbe848260208601613a8b565b91505092915050565b600081359050613bd68161539c565b92915050565b600081359050613beb816153b3565b92915050565b600081519050613c00816153b3565b92915050565b600082601f830112613c1757600080fd5b8135613c27848260208601613af7565b91505092915050565b600082601f830112613c4157600080fd5b8135613c51848260208601613b35565b91505092915050565b600081359050613c69816153ca565b92915050565b600081519050613c7e816153ca565b92915050565b600060208284031215613c9657600080fd5b6000613ca484828501613b73565b91505092915050565b600060208284031215613cbf57600080fd5b6000613ccd84828501613b88565b91505092915050565b60008060408385031215613ce957600080fd5b6000613cf785828601613b73565b9250506020613d0885828601613b73565b9150509250929050565b600080600060608486031215613d2757600080fd5b6000613d3586828701613b73565b9350506020613d4686828701613b73565b9250506040613d5786828701613c5a565b9150509250925092565b60008060008060808587031215613d7757600080fd5b6000613d8587828801613b73565b9450506020613d9687828801613b73565b9350506040613da787828801613c5a565b925050606085013567ffffffffffffffff811115613dc457600080fd5b613dd087828801613c06565b91505092959194509250565b60008060408385031215613def57600080fd5b6000613dfd85828601613b73565b9250506020613e0e85828601613bc7565b9150509250929050565b60008060408385031215613e2b57600080fd5b6000613e3985828601613b73565b9250506020613e4a85828601613c5a565b9150509250929050565b600060208284031215613e6657600080fd5b600082013567ffffffffffffffff811115613e8057600080fd5b613e8c84828501613b9d565b91505092915050565b600060208284031215613ea757600080fd5b6000613eb584828501613bdc565b91505092915050565b600060208284031215613ed057600080fd5b6000613ede84828501613bf1565b91505092915050565b600060208284031215613ef957600080fd5b600082013567ffffffffffffffff811115613f1357600080fd5b613f1f84828501613c30565b91505092915050565b600060208284031215613f3a57600080fd5b6000613f4884828501613c5a565b91505092915050565b600060208284031215613f6357600080fd5b6000613f7184828501613c6f565b91505092915050565b613f838161511b565b82525050565b613f9281615109565b82525050565b613fa18161512d565b82525050565b6000613fb282614fa6565b613fbc8185614fbc565b9350613fcc8185602086016151c2565b613fd58161535d565b840191505092915050565b613fe98161518f565b82525050565b6000613ffa82614fb1565b6140048185614fd8565b93506140148185602086016151c2565b61401d8161535d565b840191505092915050565b600061403382614fb1565b61403d8185614fe9565b935061404d8185602086016151c2565b80840191505092915050565b60008154614066816151f5565b6140708186614fe9565b9450600182166000811461408b576001811461409c576140cf565b60ff198316865281860193506140cf565b6140a585614f91565b60005b838110156140c7578154818901526001820191506020810190506140a8565b838801955050505b50505092915050565b60006140e5601483614fd8565b91507f5061757361626c653a206e6f74207061757365640000000000000000000000006000830152602082019050919050565b6000614125602b83614fd8565b91507f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008301527f74206f6620626f756e64730000000000000000000000000000000000000000006020830152604082019050919050565b600061418b603283614fd8565b91507f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008301527f63656976657220696d706c656d656e74657200000000000000000000000000006020830152604082019050919050565b60006141f1602683614fd8565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614257601c83614fd8565b91507f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006000830152602082019050919050565b6000614297602483614fd8565b91507f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006142fd601983614fd8565b91507f4552433732313a20617070726f766520746f2063616c6c6572000000000000006000830152602082019050919050565b600061433d603a83614fd8565b91507f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008301527f6563697069656e74206d617920686176652072657665727465640000000000006020830152604082019050919050565b60006143a3601d83614fd8565b91507f416464726573733a20696e73756666696369656e742062616c616e63650000006000830152602082019050919050565b60006143e3602c83614fd8565b91507f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000614449601083614fd8565b91507f5061757361626c653a20706175736564000000000000000000000000000000006000830152602082019050919050565b6000614489603883614fd8565b91507f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008301527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006020830152604082019050919050565b60006144ef602a83614fd8565b91507f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008301527f726f2061646472657373000000000000000000000000000000000000000000006020830152604082019050919050565b6000614555602983614fd8565b91507f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008301527f656e7420746f6b656e00000000000000000000000000000000000000000000006020830152604082019050919050565b60006145bb602083614fd8565b91507f4552433732313a206d696e7420746f20746865207a65726f20616464726573736000830152602082019050919050565b60006145fb601783614fd8565b91507f54686973206d696e742068617320736f6c64206f75742e0000000000000000006000830152602082019050919050565b600061463b602c83614fd8565b91507f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b60006146a1600583614fe9565b91507f2e6a736f6e0000000000000000000000000000000000000000000000000000006000830152600582019050919050565b60006146e1601883614fd8565b91507f796f752063616e2774206d696e742074686174206d75636800000000000000006000830152602082019050919050565b6000614721601083614fd8565b91507f4469766973696f6e206279207a65726f000000000000000000000000000000006000830152602082019050919050565b6000614761602083614fd8565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b60006147a1602983614fd8565b91507f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008301527f73206e6f74206f776e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000614807602f83614fd8565b91507f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008301527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006020830152604082019050919050565b600061486d602183614fd8565b91507f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008301527f72000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006148d3600083614fcd565b9150600082019050919050565b60006148ed603183614fd8565b91507f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008301527f776e6572206e6f7220617070726f7665640000000000000000000000000000006020830152604082019050919050565b6000614953602c83614fd8565b91507f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008301527f7574206f6620626f756e647300000000000000000000000000000000000000006020830152604082019050919050565b60006149b9601a83614fd8565b91507f596f7520646f6e2774206861766520656e6f7567682043524f2e0000000000006000830152602082019050919050565b60006149f9601f83614fd8565b91507f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006000830152602082019050919050565b614a3581615185565b82525050565b6000614a478285614059565b9150614a538284614028565b9150614a5e82614694565b91508190509392505050565b6000614a75826148c6565b9150819050919050565b6000602082019050614a946000830184613f89565b92915050565b6000602082019050614aaf6000830184613f7a565b92915050565b6000608082019050614aca6000830187613f89565b614ad76020830186613f89565b614ae46040830185614a2c565b8181036060830152614af68184613fa7565b905095945050505050565b6000602082019050614b166000830184613f98565b92915050565b6000602082019050614b316000830184613fe0565b92915050565b60006020820190508181036000830152614b518184613fef565b905092915050565b60006020820190508181036000830152614b72816140d8565b9050919050565b60006020820190508181036000830152614b9281614118565b9050919050565b60006020820190508181036000830152614bb28161417e565b9050919050565b60006020820190508181036000830152614bd2816141e4565b9050919050565b60006020820190508181036000830152614bf28161424a565b9050919050565b60006020820190508181036000830152614c128161428a565b9050919050565b60006020820190508181036000830152614c32816142f0565b9050919050565b60006020820190508181036000830152614c5281614330565b9050919050565b60006020820190508181036000830152614c7281614396565b9050919050565b60006020820190508181036000830152614c92816143d6565b9050919050565b60006020820190508181036000830152614cb28161443c565b9050919050565b60006020820190508181036000830152614cd28161447c565b9050919050565b60006020820190508181036000830152614cf2816144e2565b9050919050565b60006020820190508181036000830152614d1281614548565b9050919050565b60006020820190508181036000830152614d32816145ae565b9050919050565b60006020820190508181036000830152614d52816145ee565b9050919050565b60006020820190508181036000830152614d728161462e565b9050919050565b60006020820190508181036000830152614d92816146d4565b9050919050565b60006020820190508181036000830152614db281614714565b9050919050565b60006020820190508181036000830152614dd281614754565b9050919050565b60006020820190508181036000830152614df281614794565b9050919050565b60006020820190508181036000830152614e12816147fa565b9050919050565b60006020820190508181036000830152614e3281614860565b9050919050565b60006020820190508181036000830152614e52816148e0565b9050919050565b60006020820190508181036000830152614e7281614946565b9050919050565b60006020820190508181036000830152614e92816149ac565b9050919050565b60006020820190508181036000830152614eb2816149ec565b9050919050565b6000602082019050614ece6000830184614a2c565b92915050565b6000604051905081810181811067ffffffffffffffff82111715614efb57614efa61532e565b5b8060405250919050565b600067ffffffffffffffff821115614f2057614f1f61532e565b5b602082029050602081019050919050565b600067ffffffffffffffff821115614f4c57614f4b61532e565b5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff821115614f7c57614f7b61532e565b5b601f19601f8301169050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614fff82615185565b915061500a83615185565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561503f5761503e6152a1565b5b828201905092915050565b600061505582615185565b915061506083615185565b9250826150705761506f6152d0565b5b828204905092915050565b600061508682615185565b915061509183615185565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156150ca576150c96152a1565b5b828202905092915050565b60006150e082615185565b91506150eb83615185565b9250828210156150fe576150fd6152a1565b5b828203905092915050565b600061511482615165565b9050919050565b600061512682615165565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061519a826151a1565b9050919050565b60006151ac82615165565b9050919050565b82818337600083830152505050565b60005b838110156151e05780820151818401526020810190506151c5565b838111156151ef576000848401525b50505050565b6000600282049050600182168061520d57607f821691505b60208210811415615221576152206152ff565b5b50919050565b600061523282615185565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415615265576152646152a1565b5b600182019050919050565b600061527b82615185565b915061528683615185565b925082615296576152956152d0565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b61537781615109565b811461538257600080fd5b50565b61538e8161511b565b811461539957600080fd5b50565b6153a58161512d565b81146153b057600080fd5b50565b6153bc81615139565b81146153c757600080fd5b50565b6153d381615185565b81146153de57600080fd5b5056fea2646970667358221220c5b57ce79e8e58335964088317d11dd6b2ee24cffabbfb89fff78f380d6f6ebc64736f6c63430008000033

Constructor Arguments (ABI-Encoded and is the last bytes of the Contract Creation Code above)

000000000000000000000000d356de7f62e89ee5887d3fd9ee0206b0733a55ab000000000000000000000000ed8f960d1b0e664cbd2cbeb0e2648abfdb90ce29

-----Decoded View---------------
Arg [0] : _artist (address): 0xd356de7f62e89ee5887d3fd9ee0206b0733a55ab
Arg [1] : _yako (address): 0xed8f960d1b0e664cbd2cbeb0e2648abfdb90ce29

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000d356de7f62e89ee5887d3fd9ee0206b0733a55ab
Arg [1] : 000000000000000000000000ed8f960d1b0e664cbd2cbeb0e2648abfdb90ce29


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.