ETH Price: $3,428.42 (-0.21%)

Contract

0x14C067cAB13e37F7A9A2879fa56333dD7e5F4293
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim Tokens137348302021-12-03 17:21:151113 days ago1638552075IN
0x14C067cA...D7e5F4293
0 ETH0.00265512120.68748424
Claim Tokens137313892021-12-03 4:00:331113 days ago1638504033IN
0x14C067cA...D7e5F4293
0 ETH0.0018968382.47117324
Claim Tokens135273462021-10-31 22:00:171145 days ago1635717617IN
0x14C067cA...D7e5F4293
0 ETH0.00371792142.99730504
Claim Tokens134995192021-10-27 12:56:431150 days ago1635339403IN
0x14C067cA...D7e5F4293
0 ETH0.10609225119.68108211
Put Thief134995112021-10-27 12:53:581150 days ago1635339238IN
0x14C067cA...D7e5F4293
0 ETH0.00300924112.51202812
Put Customer134995102021-10-27 12:53:341150 days ago1635339214IN
0x14C067cA...D7e5F4293
0 ETH0.00329943123.61614761
Put Thief134994862021-10-27 12:49:181150 days ago1635338958IN
0x14C067cA...D7e5F4293
0 ETH0.0028465106.42713219
Put Customer134994862021-10-27 12:49:181150 days ago1635338958IN
0x14C067cA...D7e5F4293
0 ETH0.00283824106.33713219
Claim Tokens134760852021-10-23 20:51:491153 days ago1635022309IN
0x14C067cA...D7e5F4293
0 ETH0.0928684847.9048236
Claim Tokens134739282021-10-23 13:02:111154 days ago1634994131IN
0x14C067cA...D7e5F4293
0 ETH0.0883493844.97607469
Claim Tokens134721232021-10-23 6:08:211154 days ago1634969301IN
0x14C067cA...D7e5F4293
0 ETH0.0967101553.91645338
Claim Tokens134720192021-10-23 5:45:351154 days ago1634967935IN
0x14C067cA...D7e5F4293
0 ETH0.0257564453.3091936
Claim Tokens134718872021-10-23 5:15:361154 days ago1634966136IN
0x14C067cA...D7e5F4293
0 ETH0.0741401270.18691291
Claim Tokens134718352021-10-23 5:00:341154 days ago1634965234IN
0x14C067cA...D7e5F4293
0 ETH0.0587005760.69425906
Pause Game134703232021-10-22 23:19:531154 days ago1634944793IN
0x14C067cA...D7e5F4293
0 ETH0.0042679388.21518854
Set Customer Thi...134700092021-10-22 22:08:561154 days ago1634940536IN
0x14C067cA...D7e5F4293
0 ETH0.00550032159.3373677
Create Game134700092021-10-22 22:08:561154 days ago1634940536IN
0x14C067cA...D7e5F4293
0 ETH0.02704974159.3373677
Claim Tokens134472452021-10-19 8:55:471158 days ago1634633747IN
0x14C067cA...D7e5F4293
0 ETH0.0676207356.47844309
Pause Game134130192021-10-13 23:52:381163 days ago1634169158IN
0x14C067cA...D7e5F4293
0 ETH0.00527031104.16252262
Set Admin134096212021-10-13 11:01:181164 days ago1634122878IN
0x14C067cA...D7e5F4293
0 ETH0.0037073476.7295409
Create Game133998542021-10-11 22:06:001165 days ago1633989960IN
0x14C067cA...D7e5F4293
0 ETH0.02069375109.53481326
Set Contracts132189572021-09-13 18:23:191194 days ago1631557399IN
0x14C067cA...D7e5F4293
0 ETH0.0063949588.13814

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
StripperVilleGame

Compiler Version
v0.8.6+commit.11564f7e

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 20 : StripperVilleGame.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.6;

import "./Administration.sol";
import "./StripperVille.sol";
import "./Strip.sol";
import "./Assets.sol";

contract StripperVilleGame is Administration {
    
    event Claim(address indexed caller, uint tokenId, uint qty);
    event Work(uint tokenId, uint gameId);
    event BuyWorker(address indexed to, uint gameId, bool isThief);
    event WorkerAction(address indexed owner, uint gameId);
    event BuyWearable(uint stripper, uint wearable);
    
    mapping(uint => mapping (uint => uint)) private _poolStripClub;
    mapping(uint => mapping (uint => uint)) private _poolClubEarn;
    mapping(uint => mapping (uint => uint)) public poolClubPercentage;
    mapping(uint => mapping (uint => uint)) private _poolClubStrippersCount;
    mapping(uint => uint) public stripperWearable;
    mapping(uint => Worker[]) private _poolThieves;
    mapping(uint => Worker[]) private _poolCustomers;
    mapping(address => uint) private _addressWithdraw;

    Wearable[] public wearables;
    Strip public COIN;
    StripperVille public NFT;
    Game[] public games;
    uint public weeklyPrize = 250000 ether;
    uint public gamePrize = 250000 ether;
    uint public thiefPrice = 100 ether;
    uint public customerPrice = 100 ether;
    uint constant WEEK = 604800;
    
    modifier ownerOf(uint tokenId) {
        require(NFT.ownerOf(tokenId) == _msgSender(), "OWNERSHIP: Sender is not onwer");
        _;
    }
    
    modifier gameOn(uint gameId){
        require(games[gameId].paused == false && games[gameId].endDate == 0, "GAME FINISHED");
        _;
    }
    
    struct Worker {
        address owner;
        uint tokenId;
    }
    
    struct Game {
        uint prize;
        uint startDate;
        uint endDate;
        uint price;
        uint maxThieves;
        uint maxCustomers;
        uint customerMultiplier;
        bool paused;
    }
    
    struct Wearable {
        string name;
        uint price;
        uint increase;
        bool canBuy;
    }
    
    constructor(){
        wearables.push(Wearable('', 0, 0, false));
    }
    
    function giveawayWorker(uint gameId, address to, bool thief) external onlyAdmin gameOn(gameId) {
        _worker(gameId, to, thief);
    }
    
    function buyWorker(uint gameId, bool thief) external gameOn(gameId) {
        if(thief){
            require(COIN.balanceOf(_msgSender()) >= thiefPrice, "BALANCE: insuficient funds");
        } else {
             require(COIN.balanceOf(_msgSender()) >= customerPrice, "BALANCE: insuficient funds");
        }
        _worker(gameId, _msgSender(), thief);
    }
    
    function _worker(uint gameId, address to, bool thief) internal {
        (, uint index) = _getWorker(gameId,to,thief);
        require(index == 9999, "already had this worker type for this game");
        if(thief){
            require(_poolThieves[gameId].length < games[gameId].maxThieves, "MAX THIEVES REACHED");
            _poolThieves[gameId].push(Worker(to, 0));
        } else {
            require(_poolCustomers[gameId].length < games[gameId].maxCustomers, "MAX CUSTOMERS REACHED");
            _poolCustomers[gameId].push(Worker(to, 0));
        }
        emit BuyWorker(to,gameId, thief);
    }
    
    function putThief(uint gameId, uint clubId) external {
        _workerAction(gameId, clubId, true);
    }
    
    function putCustomer(uint gameId, uint stripperId) external {
        _workerAction(gameId,  stripperId, false);
    }
    
    function _workerAction(uint gameId, uint tokenId, bool thief) internal gameOn(gameId) {
        require((thief && tokenId >= 1000000) || (!thief && tokenId < 1000000), "Incompatible");
        (, uint index) = thief ?  getMyThief(gameId) : getMyCustomer(gameId);
        require(index != 9999, "NOT OWNER");
        if(thief){
            _poolThieves[gameId][index].tokenId = tokenId;
        } else {
            _poolCustomers[gameId][index].tokenId = tokenId;
        }
        emit WorkerAction(_msgSender(), gameId);
    }
    
    function getMyThief(uint gameId) public view returns (Worker memory,uint) {
        return _getWorker(gameId, _msgSender(), true);
    }
    
    function getMyCustomer(uint gameId) public view returns (Worker memory,uint) {
        return _getWorker(gameId, _msgSender(), false);
    }
    
    function _getWorker(uint gameId, address owner, bool thief) internal view returns (Worker memory,uint) {
        Worker memory worker;
        uint index = 9999;
        Worker[] memory workers = thief ? _poolThieves[gameId] : _poolCustomers[gameId];
        for(uint i=0; i< workers.length; i++){
            if(workers[i].owner == owner){
                worker = workers[i];
                index = i;
                break;
            }
        }
        return (worker, index);
    }
    
    function _getThievesByClubId(uint gameId, uint clubId) private view returns (uint) {
        Worker[] memory workers = _poolThieves[gameId];
        uint total = 0;
        for(uint i=0; i< workers.length; i++){
            if(workers[i].tokenId == clubId){
                total++;
            }
        }
        return total;
    }
    
    function wearablesCount() public view returns (uint){
        return wearables.length;
    }
    
    function addWearable(string calldata name, uint price, uint increase, bool canBuy) external onlyAdmin {
        wearables.push(Wearable(name, price, increase, canBuy));
    }
    
    function updateWearable(uint index, bool canBuy) external onlyAdmin {
        wearables[index].canBuy = canBuy;
    }
    
    function buyWearable(uint stripperId, uint wearableId) external ownerOf(stripperId) {
        Wearable memory wearable = wearables[wearableId];
        require(stripperId < 1000000, "wearable is just for strippers");
        require(COIN.balanceOf(_msgSender()) >= wearable.price, "BALANCE: insuficient funds");
        require(wearable.canBuy, "WEARABLE: cannot buy this");
        if(wearable.price > 0) {
            COIN.burnTokens(wearable.price);
        }
        stripperWearable[stripperId] = wearableId;
        emit BuyWearable(stripperId, wearableId);
    }
    
    function setGamePrize(uint newPrize) public onlyAdmin {
        gamePrize = newPrize;
    }
    
    function setWeeklyPrize(uint newPrize) public onlyAdmin {
        weeklyPrize = newPrize;
    }
    
    function setCustomerThiefPrices(uint customer, uint thief) external onlyAdmin {
        thiefPrice = thief;
        customerPrice = customer;
    }
    
    function createGame(uint price, uint maxThieves, uint maxCustomers, uint customersMultiply) external onlyAdmin {
        games.push(Game(gamePrize, block.timestamp, 0, price, maxThieves, maxCustomers, customersMultiply, false));
    }
    
    function pauseGame(uint index) public onlyAdmin {
        games[index].paused = true;
    }
    
    function getActiveGame() public view returns (uint) {
        uint active;
        for(uint i=0; i< games.length; i++){
            Game memory game = games[i];
            if(game.endDate == 0 && !game.paused){
                active = i;
                break;
            }
        }
        return active;
    }
    
    function setStripAddress(address newAddress) public onlyAdmin {
        COIN = Strip(newAddress);
    }
    
    function setStripperVilleAddress(address newAddress) public onlyAdmin {
        NFT = StripperVille(newAddress);
    }
    
    function setContracts(address coin, address nft) public onlyAdmin {
        setStripAddress(coin);
        setStripperVilleAddress(nft);
    }
    
    function nftsBalance() external view returns (uint){
        StripperVille.Asset[] memory assets = NFT.getAssetsByOwner(_msgSender());
        uint balance = 0;
        uint withdrawals = 0;
        if(assets.length == 0){
            return balance;
        }
        for(uint i = 0; i < assets.length; i++){
            balance += assets[i].earn;
            withdrawals += assets[i].withdraw;
        }
        if(withdrawals > balance){
            return 0;
        }
        return balance - withdrawals;
    }
    
    function work(uint stripperId, uint clubId, uint gameId) public ownerOf(stripperId) {
        require(_poolStripClub[gameId][stripperId] < 100000, "GAME: already set for this game");
        require(clubId >= 1000000, "CLUB: token is not a club or is not active");
        (Assets.Asset memory stripper,) = NFT.getAssetByTokenId(stripperId);
        Game memory game = games[gameId];
        require(game.endDate == 0 && !game.paused, "GAME: closed or invalid");
        require(COIN.balanceOf(_msgSender()) >= game.price, "BALANCE: insuficient funds");
        if(game.price > 0) {
            COIN.burnTokens(game.price);
        }
        uint earn = stripper.earn;
        Worker[] memory workers = _poolCustomers[gameId];
        for(uint i=0; i< workers.length; i++){
            if(workers[i].tokenId == stripperId){
                earn = earn * game.customerMultiplier;
                break;
            }
        }
        _poolStripClub[gameId][stripperId] = clubId;
        _poolClubEarn[gameId][clubId] += earn; 
        _poolClubStrippersCount[gameId][clubId]++;
        emit Work(stripperId, gameId);
    }
    
    function getClubStrippersCount(uint gameId, uint clubId) public view returns (uint) {
        Game memory game = games[gameId];
        require(game.endDate > 0, "GAME: not closed");
        return  _poolClubStrippersCount[gameId][clubId];
    }
    
    function closeGame(uint index) public onlyAdmin {
        Game storage game = games[index];
        game.endDate = block.timestamp;
        uint[] memory clubIds = getClubIds();
        for(uint i=0; i < clubIds.length; i++){
            uint one = clubIds[i];
            uint position = 1;
            uint thievesOne = _getThievesByClubId(index, one);
            uint totalOne = thievesOne > 0 ? thievesOne > 9 ? 0 : (_poolClubEarn[index][one] / 10) * (10 - thievesOne) : _poolClubEarn[index][one];
            if(totalOne > 0){
                for(uint j=0; j < clubIds.length; j++){
                    uint two = clubIds[j];
                    if(one != two){
                        uint thievesTwo = _getThievesByClubId(index, two);
                        uint totalTwo = thievesTwo > 0 ? thievesTwo > 9 ? 0 : (_poolClubEarn[index][two] / 10) * (10 - thievesTwo) : _poolClubEarn[index][two];
                        if(totalOne < totalTwo){
                            position++;
                        }
                    }
                }
            } else {
                position = 6;
            }
            if(position < 6){
                uint earn = 5;
                if(position > 2){
                    earn = earn * (6 - position);
                } else if(position == 2){
                    earn = 30;
                } else {
                    earn = 40;
                }
                poolClubPercentage[index][one] = earn;
            }
        }
    }
    
    function getClubIds() public view  returns (uint[] memory){
        uint[] memory ids = new uint[](NFT.clubsCount());
        uint j=0;
        uint initial = 1000000;
        for(uint i=0;i<ids.length;i++){
            ids[j] = i + initial;
            j++;
        }
        return ids;
    }
    
    
    function getWeeklyEarnings(uint earn, uint born) public view returns (uint) {
         return getWeeks(born) * getEarn(earn);
    }
    
    function getWeeks(uint born) public view returns (uint) {
        return ((block.timestamp - born) / WEEK) + 1;
    }
    
    function getEarn(uint value) public view returns (uint) {
        if(value > 100 ether){
            value = 100 ether;
        }
        return ((weeklyPrize / NFT.stripperSupply()) / 100) * (value / 10 ** 18);
    }
    
    function getCustomerMultiply(uint gameId, uint stripperId) public view returns(uint){
        (Worker memory worker, uint index) = getMyCustomer(gameId);
        if(index != 9999 && worker.tokenId == stripperId && games[gameId].customerMultiplier > 1){
            return games[gameId].customerMultiplier;
        }
        return 1;
    }  
    
    function getClaimableTokens(uint tokenId) public view returns (uint) {
        (Assets.Asset memory asset,) = NFT.getAssetByTokenId(tokenId);
        uint earn=0;
        if(asset.tokenType == 0){
            uint  wearableEarn = 0;
            if(stripperWearable[tokenId] > 0){
                Wearable memory wearable = wearables[stripperWearable[tokenId]];
                wearableEarn += wearable.increase;
            }
            uint totalEarn = asset.earn + wearableEarn > 100 ether ? 100 ether : asset.earn + wearableEarn;
            for(uint i=0;i<games.length;i++){
                uint baseEarn = poolClubPercentage[i][_poolStripClub[i][tokenId]];
                uint gameEarn= 0;
                if(games[i].endDate > 0 && baseEarn > 0){
                    gameEarn += (gamePrize / baseEarn) - ((gamePrize / baseEarn) / 10);
                    earn += ((gameEarn / _poolClubStrippersCount[i][_poolStripClub[i][tokenId]] / 100) * (totalEarn / 10 ** 18) * getCustomerMultiply(i, tokenId));
                }
            }
            return earn + getWeeklyEarnings(totalEarn, asset.born) - asset.withdraw;
        } else {
            for(uint i=0;i<games.length;i++){
                uint baseEarn = poolClubPercentage[i][tokenId];
                if(games[i].endDate > 0 && baseEarn > 0){
                    earn += (gamePrize / baseEarn) / 10;
                }
            }
            return earn - asset.withdraw;
        }
    }
    
    function claimTokens(uint tokenId) public ownerOf(tokenId) {
        uint balance = getClaimableTokens(tokenId);
        COIN.approveHolderTokensToGame(balance);
        COIN.transferFrom(COIN.owner(), _msgSender(), balance);
        NFT.withdrawAsset(tokenId, balance);
        emit Claim(_msgSender(), tokenId, balance);
    }

}

File 2 of 20 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

File 3 of 20 : 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 4 of 20 : 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 5 of 20 : 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 6 of 20 : 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 7 of 20 : 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 8 of 20 : 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 9 of 20 : 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 10 of 20 : 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 11 of 20 : 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 12 of 20 : 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 13 of 20 : 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 14 of 20 : 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 15 of 20 : Administration.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.6;
import "@openzeppelin/contracts/access/Ownable.sol";

contract Administration is Ownable {
    
    event SetAdmin(address indexed admin, bool active);
    
    mapping (address => bool) private admins;
    
    modifier onlyAdmin(){
        require(admins[_msgSender()] || owner() == _msgSender(), "Admin: caller is not an admin");
        _;
    }
    
    function setAdmin(address admin, bool active) external onlyOwner {
        admins[admin] = active;
        emit SetAdmin(admin, active);
    }
    
}

File 16 of 20 : Assets.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.6;

import "./Administration.sol";
import "./NFTEvents.sol";
import "./interface/IStrip.sol";

contract Assets is Administration, NFTEvents {
    
    uint public strippersCount = 0;
    uint public clubsCount = 0;
    uint public namePriceStripper = 200 ether;
    uint public stripperSupply = 3000;
    uint8 public STRIPPER = 0;
    uint8 public CLUB = 1;
    
    IStrip public COIN;
    
    struct Asset {
        uint id;
        uint tokenType;
        uint earn;
        uint withdraw;
        uint born;
        string name;
        bool active;
    }
    
    Asset[] public assets;
    
    function setCoinAddress(address addr) public onlyAdmin {
        COIN = IStrip(addr);
    }
    
    function getAssetByTokenId(uint tokenId) public view returns(Asset memory, uint idx) {
        uint i = 0;
        Asset memory asset;
        while(i < assets.length){
            if(assets[i].id == tokenId){
                asset = assets[i];
                return(assets[i],i);
            }
            i++;
        }
        revert("tokenId not found");
    }
    
    function setNamePriceStripper(uint newPrice) external onlyAdmin {
        namePriceStripper = newPrice;
    }
    
    function adminSetAssetName(uint tokenId, string calldata name) external onlyAdmin {
        (,uint idx) = getAssetByTokenId(tokenId);
        assets[idx].name = name;
        emit NewAssetName(_msgSender(), tokenId, name);
    }
    
    function setStripperSupply(uint supply) external onlyAdmin {
        stripperSupply = supply;
        emit NewTotalSupply(_msgSender(), supply);
    }
    
    function totalSupply() external view returns (uint) {
        return stripperSupply + clubsCount;
    }
    
    function withdraw() external onlyOwner {
        payable(_msgSender()).transfer(address(this).balance);
    }
    
}

File 17 of 20 : NFTEvents.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.6;

contract NFTEvents {
    event NewTotalSupply(address indexed caller, uint newSupply);
    event NewStripperPrice(address indexed caller, uint newPrice);
    event NewMaxMint(address indexed caller, uint newMaxMint);
    event MintStripper(address indexed buyer, uint qty);
    event MintClub(address indexed caller, string clubName);
    event CloseClub(address indexed caller, uint tokenId);
    event ReopenClub(address indexed caller, uint tokenId);
    event NewAssetName(address indexed caller, uint indexed tokenId, string newName);
    event Giveaway(address indexed from, address indexed to, uint qty);
}

File 18 of 20 : Strip.sol
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.6;

import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "./Administration.sol";

contract Strip is ERC20, Administration {

    uint256 private _initialTokens = 500000000 ether;
    address public game;
    
    constructor() ERC20("STRIP", "STRIP") {
        
    }
    
    function setGameAddress(address game_) external onlyAdmin {
        game = game_;
    }
    
    function buy(uint price) external onlyAdmin {
        _burn(tx.origin, price);
    }
    
    function initialMint() external onlyAdmin {
        require(totalSupply() == 0, "ERROR: Assets found");
        _mint(owner(), _initialTokens);
    }

    function mintTokens(uint amount) public onlyAdmin {
        _mint(owner(), amount);
    }
    
    function burnTokens(uint amount) external onlyAdmin {
        _burn(tx.origin, amount);
    }
    
    function approveOwnerTokensToGame() external onlyAdmin {
        _approve(owner(), game, _initialTokens);
    }
    
    function approveHolderTokensToGame(uint amount) external {
       _approve(tx.origin, game, amount);
    }

    function withdraw() external onlyOwner {
        payable(_msgSender()).transfer(address(this).balance);
    }
}

File 19 of 20 : StripperVille.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.6;

import "./Assets.sol";
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";

contract StripperVille is Assets, ERC721 {
    
    uint public stripperPrice = 0.095 ether;
    uint private _maxMint = 0;
    string public baseTokenURI = 'https://strippervillebackend.herokuapp.com/';
    
    constructor() ERC721("StripperVille", "SpV") {}
    
    modifier isMine(uint tokenId){
        require(_msgSender() == ownerOf(tokenId), "OWNERSHIP: sender is not the owner");
        _;
    }
    
    modifier canMint(uint qty){
        require((qty + strippersCount) <= stripperSupply, "SUPPLY: qty exceeds total suply");
        _;
    }
    
    function setStripperPrice(uint newPrice) external onlyAdmin {
        stripperPrice = newPrice;
        emit NewStripperPrice(_msgSender(), newPrice);
    }
    
    function setMaxMint(uint newMaxMint) external onlyAdmin {
        _maxMint = newMaxMint;
        emit NewMaxMint(_msgSender(), newMaxMint);
    }
    
    function buyStripper(uint qty) external payable canMint(qty) {
        require((msg.value == stripperPrice * qty),"BUY: wrong value");
        require((qty <= _maxMint), "MINT LIMIT: cannot mint more than allowed");
        for(uint i=0; i < qty; i++) {
            _mintTo(_msgSender());
        }
        emit MintStripper(_msgSender(), qty);
    }
    
    function giveaway(address to, uint qty) external onlyOwner canMint(qty) {
        for(uint i=0; i < qty; i++) {
            _mintTo(to);
        }
        emit Giveaway(_msgSender(), to, qty);
    }
    
    function _mintTo(address to) internal {
        require(strippersCount < stripperSupply, "SUPPLY: qty exceeds total suply");
        uint rand = uint(keccak256(abi.encodePacked(block.difficulty, block.timestamp, msg.sender, assets.length)));
        uint earn = ((rand % 31) + 70)  * (10 ** 18);
        uint tokenId = strippersCount + 1;
        assets.push(Asset(tokenId, STRIPPER, earn, 0, block.timestamp, "", true));
        _safeMint(to, tokenId);
        strippersCount++;
    }
    
    function createClub(string calldata clubName) external onlyAdmin {
        uint tokenId = clubsCount + 1000000;
        assets.push(Asset(tokenId, CLUB, 0, 0, block.timestamp, clubName, true));
        _safeMint(owner(), tokenId);
        clubsCount++;
        emit MintClub(_msgSender(), clubName);
    }
    
    function closeClub(uint tokenId) external onlyAdmin {
        require(ownerOf(tokenId) == owner(), "Ownership: Cannot close this club");
        (Asset memory asset, uint i) = getAssetByTokenId(tokenId);
        require(asset.tokenType == CLUB, "CLUB: asset is not a club");
        assets[i].active = false;
        emit CloseClub(_msgSender(), tokenId);
    }
    
    function reopenClub(uint tokenId) external onlyAdmin {
        (Asset memory asset, uint i) = getAssetByTokenId(tokenId);
        require(asset.tokenType == CLUB, "CLUB: asset is not a club");
        assets[i].active = true;
        emit ReopenClub(_msgSender(), tokenId);
    }
    
    function setStripperName(uint tokenId, string calldata name) external isMine(tokenId) {
        (Asset memory asset, uint i) = getAssetByTokenId(tokenId);
        require(asset.tokenType == STRIPPER, "ASSET: Asset is not a stripper");
        require(COIN.balanceOf(_msgSender()) >= namePriceStripper, "COIN: Insuficient funds");
        COIN.buy(namePriceStripper);
        assets[i].name = name;
        emit NewAssetName(_msgSender(), tokenId, name);
    }
    
    function withdrawAsset(uint tokenId, uint amount) external onlyAdmin {
        require(tx.origin == ownerOf(tokenId),  "OWNERSHIP: sender is not the owner");
        (, uint i) = getAssetByTokenId(tokenId);
        assets[i].withdraw += amount;
    }
    
    function getAssetsByOwner(address owner) public view returns (Asset[] memory) {
        uint balance = balanceOf(owner);
        Asset[] memory assets_ = new Asset[](balance);
        uint j = 0;
        for(uint i = 0; i < assets.length; i++){
            if(ownerOf(assets[i].id) == owner){
                assets_[j] = assets[i];
                j++;
                if(balance == j){
                 break;
                }
            }
            i++;
        }
        return assets_;
    }
    
    function setBaseTokenURI(string calldata uri) external onlyOwner {
        baseTokenURI = uri;
    }

    function _baseURI() internal override view returns (string memory) {
        return baseTokenURI;
    }
    
}

File 20 of 20 : IStrip.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.6;

interface IStrip {
    function balanceOf(address account) external view returns (uint256);
    function buy(uint price) external;
    function decimals() external view returns (uint);
}

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"stripper","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"wearable","type":"uint256"}],"name":"BuyWearable","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"gameId","type":"uint256"},{"indexed":false,"internalType":"bool","name":"isThief","type":"bool"}],"name":"BuyWorker","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"caller","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"qty","type":"uint256"}],"name":"Claim","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"admin","type":"address"},{"indexed":false,"internalType":"bool","name":"active","type":"bool"}],"name":"SetAdmin","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"gameId","type":"uint256"}],"name":"Work","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"gameId","type":"uint256"}],"name":"WorkerAction","type":"event"},{"inputs":[],"name":"COIN","outputs":[{"internalType":"contract Strip","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"NFT","outputs":[{"internalType":"contract StripperVille","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"increase","type":"uint256"},{"internalType":"bool","name":"canBuy","type":"bool"}],"name":"addWearable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"stripperId","type":"uint256"},{"internalType":"uint256","name":"wearableId","type":"uint256"}],"name":"buyWearable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"gameId","type":"uint256"},{"internalType":"bool","name":"thief","type":"bool"}],"name":"buyWorker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"claimTokens","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"closeGame","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"maxThieves","type":"uint256"},{"internalType":"uint256","name":"maxCustomers","type":"uint256"},{"internalType":"uint256","name":"customersMultiply","type":"uint256"}],"name":"createGame","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"customerPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gamePrize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"games","outputs":[{"internalType":"uint256","name":"prize","type":"uint256"},{"internalType":"uint256","name":"startDate","type":"uint256"},{"internalType":"uint256","name":"endDate","type":"uint256"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"maxThieves","type":"uint256"},{"internalType":"uint256","name":"maxCustomers","type":"uint256"},{"internalType":"uint256","name":"customerMultiplier","type":"uint256"},{"internalType":"bool","name":"paused","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getActiveGame","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getClaimableTokens","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getClubIds","outputs":[{"internalType":"uint256[]","name":"","type":"uint256[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"gameId","type":"uint256"},{"internalType":"uint256","name":"clubId","type":"uint256"}],"name":"getClubStrippersCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"gameId","type":"uint256"},{"internalType":"uint256","name":"stripperId","type":"uint256"}],"name":"getCustomerMultiply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"getEarn","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"gameId","type":"uint256"}],"name":"getMyCustomer","outputs":[{"components":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"internalType":"struct StripperVilleGame.Worker","name":"","type":"tuple"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"gameId","type":"uint256"}],"name":"getMyThief","outputs":[{"components":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"internalType":"struct StripperVilleGame.Worker","name":"","type":"tuple"},{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"earn","type":"uint256"},{"internalType":"uint256","name":"born","type":"uint256"}],"name":"getWeeklyEarnings","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"born","type":"uint256"}],"name":"getWeeks","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"gameId","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"bool","name":"thief","type":"bool"}],"name":"giveawayWorker","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"nftsBalance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"pauseGame","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"poolClubPercentage","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"gameId","type":"uint256"},{"internalType":"uint256","name":"stripperId","type":"uint256"}],"name":"putCustomer","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"gameId","type":"uint256"},{"internalType":"uint256","name":"clubId","type":"uint256"}],"name":"putThief","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"admin","type":"address"},{"internalType":"bool","name":"active","type":"bool"}],"name":"setAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"coin","type":"address"},{"internalType":"address","name":"nft","type":"address"}],"name":"setContracts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"customer","type":"uint256"},{"internalType":"uint256","name":"thief","type":"uint256"}],"name":"setCustomerThiefPrices","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrize","type":"uint256"}],"name":"setGamePrize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddress","type":"address"}],"name":"setStripAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newAddress","type":"address"}],"name":"setStripperVilleAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"newPrize","type":"uint256"}],"name":"setWeeklyPrize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"stripperWearable","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"thiefPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"bool","name":"canBuy","type":"bool"}],"name":"updateWearable","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"wearables","outputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"uint256","name":"price","type":"uint256"},{"internalType":"uint256","name":"increase","type":"uint256"},{"internalType":"bool","name":"canBuy","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"wearablesCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"weeklyPrize","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"stripperId","type":"uint256"},{"internalType":"uint256","name":"clubId","type":"uint256"},{"internalType":"uint256","name":"gameId","type":"uint256"}],"name":"work","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526934f086f3b33b68400000600e556934f086f3b33b68400000600f5568056bc75e2d6310000060105568056bc75e2d631000006011553480156200004757600080fd5b50620000686200005c6200012360201b60201c565b6200012b60201b60201c565b600a604051806080016040528060405180602001604052806000815250815260200160008152602001600081526020016000151581525090806001815401808255809150506001900390600052602060002090600402016000909190919091506000820151816000019080519060200190620000e6929190620001ef565b50602082015181600101556040820151816002015560608201518160030160006101000a81548160ff021916908315150217905550505062000304565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b828054620001fd906200029f565b90600052602060002090601f0160209004810192826200022157600085556200026d565b82601f106200023c57805160ff19168380011785556200026d565b828001600101855582156200026d579182015b828111156200026c5782518255916020019190600101906200024f565b5b5090506200027c919062000280565b5090565b5b808211156200029b57600081600090555060010162000281565b5090565b60006002820490506001821680620002b857607f821691505b60208210811415620002cf57620002ce620002d5565b5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b615ca180620003146000396000f3fe608060405234801561001057600080fd5b50600436106102745760003560e01c8063715018a611610151578063bdaae1e7116100c3578063d8b4164711610087578063d8b416471461079b578063dd78b7ad146107b9578063df0c6482146107d5578063e4f40e63146107f3578063ef3b684214610811578063f2fde38b1461082d57610274565b8063bdaae1e7146106fb578063c306259714610717578063c4aa082114610733578063cb5ae9fd14610763578063d8952a491461077f57610274565b8063957b5fb411610115578063957b5fb4146106245780639c38400414610642578063a54a72b714610672578063b29f351d14610690578063b416cfd7146106ac578063bd8c267e146106df57610274565b8063715018a61461057d5780637c0b8de2146105875780637d0d244a146105a55780638284da54146105d65780638da5cb5b1461060657610274565b8063371f4b55116101ea5780634b0bddd2116101ae5780634b0bddd21461049857806352761b74146104b457806363f12002146104e557806365390d161461050157806366e9179d1461051d5780636a579b571461054d57610274565b8063371f4b55146104085780633a35cd77146104265780633ca3a5231461044257806346e04a2f1461045e57806349213c591461047a57610274565b8063219d7d421161023c578063219d7d4214610336578063251b260914610352578063257a0c391461036e5780632d6ef3101461039e5780632f50fdff146103ba57806331182970146103ea57610274565b8063117a5b901461027957806311820e67146102b057806311c5070c146102e05780631214e31e146102fc5780631f86ab4414610318575b600080fd5b610293600480360381019061028e9190614ab6565b610849565b6040516102a79897969594939291906153fe565b60405180910390f35b6102ca60048036038101906102c59190614ba3565b6108ae565b6040516102d79190615391565b60405180910390f35b6102fa60048036038101906102f59190614ba3565b610947565b005b61031660048036038101906103119190614ab6565b610dd0565b005b610320610ee8565b60405161032d9190615391565b60405180910390f35b610350600480360381019061034b9190614ab6565b610eee565b005b61036c60048036038101906103679190614ba3565b610fcf565b005b61038860048036038101906103839190614ab6565b610fdf565b6040516103959190615391565b60405180910390f35b6103b860048036038101906103b39190614ab6565b6114a6565b005b6103d460048036038101906103cf9190614ba3565b61182c565b6040516103e19190615391565b60405180910390f35b6103f2611852565b6040516103ff9190615391565b60405180910390f35b6104106119c7565b60405161041d9190615391565b60405180910390f35b610440600480360381019061043b9190614be3565b6119cd565b005b61045c60048036038101906104579190614b63565b6120e4565b005b61047860048036038101906104739190614ab6565b6121fc565b005b6104826125f9565b60405161048f9190615089565b60405180910390f35b6104b260048036038101906104ad919061491c565b612752565b005b6104ce60048036038101906104c99190614ab6565b612877565b6040516104dc929190615368565b60405180910390f35b6104ff60048036038101906104fa9190614b10565b61289d565b005b61051b60048036038101906105169190614ab6565b612a30565b005b61053760048036038101906105329190614ba3565b612b11565b6040516105449190615391565b60405180910390f35b61056760048036038101906105629190614ba3565b612b36565b6040516105749190615391565b60405180910390f35b610585612c3f565b005b61058f612cc7565b60405161059c91906150e1565b60405180910390f35b6105bf60048036038101906105ba9190614ab6565b612ced565b6040516105cd929190615368565b60405180910390f35b6105f060048036038101906105eb9190614ab6565b612d13565b6040516105fd9190615391565b60405180910390f35b61060e612d42565b60405161061b9190615037565b60405180910390f35b61062c612d6b565b6040516106399190615391565b60405180910390f35b61065c60048036038101906106579190614ab6565b612e51565b6040516106699190615391565b60405180910390f35b61067a612f4f565b60405161068791906150c6565b60405180910390f35b6106aa60048036038101906106a59190614ba3565b612f75565b005b6106c660048036038101906106c19190614ab6565b612f85565b6040516106d694939291906150fc565b60405180910390f35b6106f960048036038101906106f49190614ba3565b61305a565b005b61071560048036038101906107109190614c36565b613143565b005b610731600480360381019061072c9190614882565b6132f3565b005b61074d60048036038101906107489190614ab6565b61340e565b60405161075a9190615391565b60405180910390f35b61077d60048036038101906107789190614b63565b613426565b005b610799600480360381019061079491906148dc565b6136e0565b005b6107a36137cd565b6040516107b09190615391565b60405180910390f35b6107d360048036038101906107ce91906149d2565b6137da565b005b6107dd61399d565b6040516107ea9190615391565b60405180910390f35b6107fb6139a3565b6040516108089190615391565b60405180910390f35b61082b60048036038101906108269190614882565b6139a9565b005b61084760048036038101906108429190614882565b613ac4565b005b600d818154811061085957600080fd5b90600052602060002090600802016000915090508060000154908060010154908060020154908060030154908060040154908060050154908060060154908060070160009054906101000a900460ff16905088565b60008060006108bc85612ced565b9150915061270f81141580156108d55750838260200151145b801561090657506001600d86815481106108f2576108f1615864565b5b906000526020600020906008020160060154115b1561093a57600d858154811061091f5761091e615864565b5b90600052602060002090600802016006015492505050610941565b6001925050505b92915050565b81610950613bbc565b73ffffffffffffffffffffffffffffffffffffffff16600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b81526004016109c19190615391565b60206040518083038186803b1580156109d957600080fd5b505afa1580156109ed573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a1191906148af565b73ffffffffffffffffffffffffffffffffffffffff1614610a67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a5e90615328565b60405180910390fd5b6000600a8381548110610a7d57610a7c615864565b5b9060005260206000209060040201604051806080016040529081600082018054610aa69061572b565b80601f0160208091040260200160405190810160405280929190818152602001828054610ad29061572b565b8015610b1f5780601f10610af457610100808354040283529160200191610b1f565b820191906000526020600020905b815481529060010190602001808311610b0257829003601f168201915b5050505050815260200160018201548152602001600282015481526020016003820160009054906101000a900460ff1615151515815250509050620f42408410610b9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b95906152c8565b60405180910390fd5b8060200151600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231610be9613bbc565b6040518263ffffffff1660e01b8152600401610c059190615037565b60206040518083038186803b158015610c1d57600080fd5b505afa158015610c31573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c559190614ae3565b1015610c96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8d90615228565b60405180910390fd5b8060600151610cda576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cd190615148565b60405180910390fd5b600081602001511115610d7957600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636d1b229d82602001516040518263ffffffff1660e01b8152600401610d469190615391565b600060405180830381600087803b158015610d6057600080fd5b505af1158015610d74573d6000803e3d6000fd5b505050505b8260066000868152602001908152602001600020819055507fcc385b6142ca156396a3b02e7501380bb5b18fc128f2b2229a6d45dec31161968484604051610dc29291906153d5565b60405180910390a150505050565b60016000610ddc613bbc565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680610e685750610e32613bbc565b73ffffffffffffffffffffffffffffffffffffffff16610e50612d42565b73ffffffffffffffffffffffffffffffffffffffff16145b610ea7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e9e906152e8565b60405180910390fd5b6001600d8281548110610ebd57610ebc615864565b5b906000526020600020906008020160070160006101000a81548160ff02191690831515021790555050565b600f5481565b60016000610efa613bbc565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680610f865750610f50613bbc565b73ffffffffffffffffffffffffffffffffffffffff16610f6e612d42565b73ffffffffffffffffffffffffffffffffffffffff16145b610fc5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fbc906152e8565b60405180910390fd5b80600e8190555050565b610fdb82826000613bc4565b5050565b600080600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639606d584846040518263ffffffff1660e01b815260040161103d9190615391565b60006040518083038186803b15801561105557600080fd5b505afa158015611069573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906110929190614a5a565b509050600080826020015114156113dc57600080600660008781526020019081526020016000205411156111d9576000600a6006600088815260200190815260200160002054815481106110e9576110e8615864565b5b90600052602060002090600402016040518060800160405290816000820180546111129061572b565b80601f016020809104026020016040519081016040528092919081815260200182805461113e9061572b565b801561118b5780601f106111605761010080835404028352916020019161118b565b820191906000526020600020905b81548152906001019060200180831161116e57829003601f168201915b5050505050815260200160018201548152602001600282015481526020016003820160009054906101000a900460ff16151515158152505090508060400151826111d59190615553565b9150505b600068056bc75e2d631000008285604001516111f59190615553565b1161120f5781846040015161120a9190615553565b61121a565b68056bc75e2d631000005b905060005b600d805490508110156113a85760006004600083815260200190815260200160002060006002600085815260200190815260200160002060008b8152602001908152602001600020548152602001908152602001600020549050600080600d84815481106112905761128f615864565b5b9060005260206000209060080201600201541180156112af5750600082115b1561139357600a82600f546112c491906155a9565b6112ce91906155a9565b82600f546112dc91906155a9565b6112e69190615634565b816112f19190615553565b90506112fd838a6108ae565b670de0b6b3a76400008561131191906155a9565b60646005600087815260200190815260200160002060006002600089815260200190815260200160002060008f8152602001908152602001600020548152602001908152602001600020548461136791906155a9565b61137191906155a9565b61137b91906155da565b61138591906155da565b866113909190615553565b95505b505080806113a09061578e565b91505061121f565b5083606001516113bc82866080015161182c565b846113c79190615553565b6113d19190615634565b9450505050506114a1565b60005b600d8054905081101561148b5760006004600083815260200190815260200160002060008781526020019081526020016000205490506000600d838154811061142b5761142a615864565b5b90600052602060002090600802016002015411801561144a5750600081115b1561147757600a81600f5461145f91906155a9565b61146991906155a9565b836114749190615553565b92505b5080806114839061578e565b9150506113df565b5081606001518161149c9190615634565b925050505b919050565b600160006114b2613bbc565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168061153e5750611508613bbc565b73ffffffffffffffffffffffffffffffffffffffff16611526612d42565b73ffffffffffffffffffffffffffffffffffffffff16145b61157d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611574906152e8565b60405180910390fd5b6000600d828154811061159357611592615864565b5b9060005260206000209060080201905042816002018190555060006115b66125f9565b905060005b81518110156118265760008282815181106115d9576115d8615864565b5b6020026020010151905060006001905060006115f58784613e1a565b9050600080821161162a5760036000898152602001908152602001600020600085815260200190815260200160002054611683565b6009821161167f5781600a61163f9190615634565b600a600360008b815260200190815260200160002060008781526020019081526020016000205461167091906155a9565b61167a91906155da565b611682565b60005b5b905060008111156117905760005b865181101561178a5760008782815181106116af576116ae615864565b5b602002602001015190508086146117765760006116cc8b83613e1a565b9050600080821161170157600360008d815260200190815260200160002060008481526020019081526020016000205461175a565b600982116117565781600a6117169190615634565b600a600360008f815260200190815260200160002060008681526020019081526020016000205461174791906155a9565b61175191906155da565b611759565b60005b5b90508085101561177357868061176f9061578e565b9750505b50505b5080806117829061578e565b915050611691565b50611795565b600692505b600683101561180f5760006005905060028411156117cc578360066117ba9190615634565b816117c591906155da565b90506117e4565b60028414156117de57601e90506117e3565b602890505b5b80600460008b8152602001908152602001600020600087815260200190815260200160002081905550505b50505050808061181e9061578e565b9150506115bb565b50505050565b600061183783612e51565b61184083612d13565b61184a91906155da565b905092915050565b600080600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663276f093461189b613bbc565b6040518263ffffffff1660e01b81526004016118b79190615037565b60006040518083038186803b1580156118cf57600080fd5b505afa1580156118e3573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061190c919061495c565b9050600080600083511415611926578193505050506119c4565b60005b835181101561199d5783818151811061194557611944615864565b5b6020026020010151604001518361195c9190615553565b925083818151811061197157611970615864565b5b602002602001015160600151826119889190615553565b915080806119959061578e565b915050611929565b50818111156119b257600093505050506119c4565b80826119be9190615634565b93505050505b90565b600e5481565b826119d6613bbc565b73ffffffffffffffffffffffffffffffffffffffff16600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b8152600401611a479190615391565b60206040518083038186803b158015611a5f57600080fd5b505afa158015611a73573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a9791906148af565b73ffffffffffffffffffffffffffffffffffffffff1614611aed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae490615328565b60405180910390fd5b620186a06002600084815260200190815260200160002060008681526020019081526020016000205410611b56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b4d90615348565b60405180910390fd5b620f4240831015611b9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b9390615188565b60405180910390fd5b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639606d584866040518263ffffffff1660e01b8152600401611bf99190615391565b60006040518083038186803b158015611c1157600080fd5b505afa158015611c25573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611c4e9190614a5a565b5090506000600d8481548110611c6757611c66615864565b5b906000526020600020906008020160405180610100016040529081600082015481526020016001820154815260200160028201548152602001600382015481526020016004820154815260200160058201548152602001600682015481526020016007820160009054906101000a900460ff161515151581525050905060008160400151148015611cfa57508060e00151155b611d39576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d30906151e8565b60405180910390fd5b8060600151600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231611d84613bbc565b6040518263ffffffff1660e01b8152600401611da09190615037565b60206040518083038186803b158015611db857600080fd5b505afa158015611dcc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611df09190614ae3565b1015611e31576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2890615228565b60405180910390fd5b600081606001511115611ed057600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636d1b229d82606001516040518263ffffffff1660e01b8152600401611e9d9190615391565b600060405180830381600087803b158015611eb757600080fd5b505af1158015611ecb573d6000803e3d6000fd5b505050505b600082604001519050600060086000878152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b82821015611fa057838290600052602060002090600202016040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160018201548152505081526020019060010190611f0e565b50505050905060005b81518110156120025788828281518110611fc657611fc5615864565b5b6020026020010151602001511415611fef578360c0015183611fe891906155da565b9250612002565b8080611ffa9061578e565b915050611fa9565b50866002600088815260200190815260200160002060008a8152602001908152602001600020819055508160036000888152602001908152602001600020600089815260200190815260200160002060008282546120609190615553565b92505081905550600560008781526020019081526020016000206000888152602001908152602001600020600081548092919061209c9061578e565b91905055507f73c4ef442856bea52a6b34a83f35484ee65828010254ec27766c5a8c13db6c8488876040516120d29291906153d5565b60405180910390a15050505050505050565b600160006120f0613bbc565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168061217c5750612146613bbc565b73ffffffffffffffffffffffffffffffffffffffff16612164612d42565b73ffffffffffffffffffffffffffffffffffffffff16145b6121bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121b2906152e8565b60405180910390fd5b80600a83815481106121d0576121cf615864565b5b906000526020600020906004020160030160006101000a81548160ff0219169083151502179055505050565b80612205613bbc565b73ffffffffffffffffffffffffffffffffffffffff16600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b81526004016122769190615391565b60206040518083038186803b15801561228e57600080fd5b505afa1580156122a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122c691906148af565b73ffffffffffffffffffffffffffffffffffffffff161461231c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161231390615328565b60405180910390fd5b600061232783610fdf565b9050600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663151e6299826040518263ffffffff1660e01b81526004016123849190615391565b600060405180830381600087803b15801561239e57600080fd5b505af11580156123b2573d6000803e3d6000fd5b50505050600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561245c57600080fd5b505afa158015612470573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061249491906148af565b61249c613bbc565b846040518463ffffffff1660e01b81526004016124bb93929190615052565b602060405180830381600087803b1580156124d557600080fd5b505af11580156124e9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061250d91906149a5565b50600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663fcc8cd7c84836040518363ffffffff1660e01b815260040161256b9291906153d5565b600060405180830381600087803b15801561258557600080fd5b505af1158015612599573d6000803e3d6000fd5b505050506125a5613bbc565b73ffffffffffffffffffffffffffffffffffffffff167f34fcbac0073d7c3d388e51312faf357774904998eeb8fca628b9e6f65ee1cbf784836040516125ec9291906153d5565b60405180910390a2505050565b60606000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ac43a3c86040518163ffffffff1660e01b815260040160206040518083038186803b15801561266557600080fd5b505afa158015612679573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061269d9190614ae3565b67ffffffffffffffff8111156126b6576126b5615893565b5b6040519080825280602002602001820160405280156126e45781602001602082028036833780820191505090505b509050600080620f4240905060005b83518110156127485781816127089190615553565b84848151811061271b5761271a615864565b5b60200260200101818152505082806127329061578e565b93505080806127409061578e565b9150506126f3565b5082935050505090565b61275a613bbc565b73ffffffffffffffffffffffffffffffffffffffff16612778612d42565b73ffffffffffffffffffffffffffffffffffffffff16146127ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127c5906152a8565b60405180910390fd5b80600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f55a5194bc0174fcaf12b2978bef43911466bf63b34db8d1dd1a0d5dcd5c41bea8260405161286b91906150ab565b60405180910390a25050565b61287f6144df565b60006128948361288d613bbc565b6001613f49565b91509150915091565b600160006128a9613bbc565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168061293557506128ff613bbc565b73ffffffffffffffffffffffffffffffffffffffff1661291d612d42565b73ffffffffffffffffffffffffffffffffffffffff16145b612974576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161296b906152e8565b60405180910390fd5b8260001515600d828154811061298d5761298c615864565b5b906000526020600020906008020160070160009054906101000a900460ff1615151480156129e057506000600d82815481106129cc576129cb615864565b5b906000526020600020906008020160020154145b612a1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a1690615288565b60405180910390fd5b612a2a8484846140f5565b50505050565b60016000612a3c613bbc565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680612ac85750612a92613bbc565b73ffffffffffffffffffffffffffffffffffffffff16612ab0612d42565b73ffffffffffffffffffffffffffffffffffffffff16145b612b07576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612afe906152e8565b60405180910390fd5b80600f8190555050565b6004602052816000526040600020602052806000526040600020600091509150505481565b600080600d8481548110612b4d57612b4c615864565b5b906000526020600020906008020160405180610100016040529081600082015481526020016001820154815260200160028201548152602001600382015481526020016004820154815260200160058201548152602001600682015481526020016007820160009054906101000a900460ff16151515158152505090506000816040015111612c11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c08906151a8565b60405180910390fd5b6005600085815260200190815260200160002060008481526020019081526020016000205491505092915050565b612c47613bbc565b73ffffffffffffffffffffffffffffffffffffffff16612c65612d42565b73ffffffffffffffffffffffffffffffffffffffff1614612cbb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cb2906152a8565b60405180910390fd5b612cc5600061441b565b565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b612cf56144df565b6000612d0a83612d03613bbc565b6000613f49565b91509150915091565b6000600162093a808342612d279190615634565b612d3191906155a9565b612d3b9190615553565b9050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60008060005b600d80549050811015612e49576000600d8281548110612d9457612d93615864565b5b906000526020600020906008020160405180610100016040529081600082015481526020016001820154815260200160028201548152602001600382015481526020016004820154815260200160058201548152602001600682015481526020016007820160009054906101000a900460ff161515151581525050905060008160400151148015612e2757508060e00151155b15612e355781925050612e49565b508080612e419061578e565b915050612d71565b508091505090565b600068056bc75e2d63100000821115612e715768056bc75e2d6310000091505b670de0b6b3a764000082612e8591906155a9565b6064600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663cee065856040518163ffffffff1660e01b815260040160206040518083038186803b158015612eef57600080fd5b505afa158015612f03573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f279190614ae3565b600e54612f3491906155a9565b612f3e91906155a9565b612f4891906155da565b9050919050565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b612f8182826001613bc4565b5050565b600a8181548110612f9557600080fd5b9060005260206000209060040201600091509050806000018054612fb89061572b565b80601f0160208091040260200160405190810160405280929190818152602001828054612fe49061572b565b80156130315780601f1061300657610100808354040283529160200191613031565b820191906000526020600020905b81548152906001019060200180831161301457829003601f168201915b5050505050908060010154908060020154908060030160009054906101000a900460ff16905084565b60016000613066613bbc565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16806130f257506130bc613bbc565b73ffffffffffffffffffffffffffffffffffffffff166130da612d42565b73ffffffffffffffffffffffffffffffffffffffff16145b613131576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613128906152e8565b60405180910390fd5b80601081905550816011819055505050565b6001600061314f613bbc565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16806131db57506131a5613bbc565b73ffffffffffffffffffffffffffffffffffffffff166131c3612d42565b73ffffffffffffffffffffffffffffffffffffffff16145b61321a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613211906152e8565b60405180910390fd5b600d604051806101000160405280600f54815260200142815260200160008152602001868152602001858152602001848152602001838152602001600015158152509080600181540180825580915050600190039060005260206000209060080201600090919091909150600082015181600001556020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015560c0820151816006015560e08201518160070160006101000a81548160ff021916908315150217905550505050505050565b600160006132ff613bbc565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168061338b5750613355613bbc565b73ffffffffffffffffffffffffffffffffffffffff16613373612d42565b73ffffffffffffffffffffffffffffffffffffffff16145b6133ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133c1906152e8565b60405180910390fd5b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60066020528060005260406000206000915090505481565b8160001515600d828154811061343f5761343e615864565b5b906000526020600020906008020160070160009054906101000a900460ff16151514801561349257506000600d828154811061347e5761347d615864565b5b906000526020600020906008020160020154145b6134d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134c890615288565b60405180910390fd5b81156135d257601054600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231613520613bbc565b6040518263ffffffff1660e01b815260040161353c9190615037565b60206040518083038186803b15801561355457600080fd5b505afa158015613568573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061358c9190614ae3565b10156135cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135c490615228565b60405180910390fd5b6136c9565b601154600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a0823161361b613bbc565b6040518263ffffffff1660e01b81526004016136379190615037565b60206040518083038186803b15801561364f57600080fd5b505afa158015613663573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136879190614ae3565b10156136c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136bf90615228565b60405180910390fd5b5b6136db836136d5613bbc565b846140f5565b505050565b600160006136ec613bbc565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16806137785750613742613bbc565b73ffffffffffffffffffffffffffffffffffffffff16613760612d42565b73ffffffffffffffffffffffffffffffffffffffff16145b6137b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137ae906152e8565b60405180910390fd5b6137c0826132f3565b6137c9816139a9565b5050565b6000600a80549050905090565b600160006137e6613bbc565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680613872575061383c613bbc565b73ffffffffffffffffffffffffffffffffffffffff1661385a612d42565b73ffffffffffffffffffffffffffffffffffffffff16145b6138b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138a8906152e8565b60405180910390fd5b600a604051806080016040528087878080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505081526020018581526020018481526020018315158152509080600181540180825580915050600190039060005260206000209060040201600090919091909150600082015181600001908051906020019061395f92919061450f565b50602082015181600101556040820151816002015560608201518160030160006101000a81548160ff02191690831515021790555050505050505050565b60105481565b60115481565b600160006139b5613bbc565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680613a415750613a0b613bbc565b73ffffffffffffffffffffffffffffffffffffffff16613a29612d42565b73ffffffffffffffffffffffffffffffffffffffff16145b613a80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a77906152e8565b60405180910390fd5b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b613acc613bbc565b73ffffffffffffffffffffffffffffffffffffffff16613aea612d42565b73ffffffffffffffffffffffffffffffffffffffff1614613b40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b37906152a8565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415613bb0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613ba7906151c8565b60405180910390fd5b613bb98161441b565b50565b600033905090565b8260001515600d8281548110613bdd57613bdc615864565b5b906000526020600020906008020160070160009054906101000a900460ff161515148015613c3057506000600d8281548110613c1c57613c1b615864565b5b906000526020600020906008020160020154145b613c6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613c6690615288565b60405180910390fd5b818015613c7f5750620f42408310155b80613c96575081158015613c955750620f424083105b5b613cd5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613ccc90615208565b60405180910390fd5b600082613cea57613ce585612ced565b613cf4565b613cf385612877565b5b91505061270f811415613d3c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613d3390615308565b60405180910390fd5b8215613d825783600760008781526020019081526020016000208281548110613d6857613d67615864565b5b906000526020600020906002020160010181905550613dbe565b83600860008781526020019081526020016000208281548110613da857613da7615864565b5b9060005260206000209060020201600101819055505b613dc6613bbc565b73ffffffffffffffffffffffffffffffffffffffff167fb736eefc355721a7c55e7e39a07d67a8f72a7e95efaba9a53e4bdd249a74cdce86604051613e0b9190615391565b60405180910390a25050505050565b60008060076000858152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b82821015613ee257838290600052602060002090600202016040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160018201548152505081526020019060010190613e50565b5050505090506000805b8251811015613f3d5784838281518110613f0957613f08615864565b5b6020026020010151602001511415613f2a578180613f269061578e565b9250505b8080613f359061578e565b915050613eec565b50809250505092915050565b613f516144df565b6000613f5b6144df565b600061270f9050600085613f815760086000898152602001908152602001600020613f95565b600760008981526020019081526020016000205b805480602002602001604051908101604052809291908181526020016000905b8282101561404757838290600052602060002090600202016040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160018201548152505081526020019060010190613fb5565b50505050905060005b81518110156140e3578773ffffffffffffffffffffffffffffffffffffffff1682828151811061408357614082615864565b5b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff1614156140d0578181815181106140be576140bd615864565b5b602002602001015193508092506140e3565b80806140db9061578e565b915050614050565b50828294509450505050935093915050565b6000614102848484613f49565b91505061270f8114614149576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161414090615248565b60405180910390fd5b811561428c57600d848154811061416357614162615864565b5b9060005260206000209060080201600401546007600086815260200190815260200160002080549050106141cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016141c390615168565b60405180910390fd5b6007600085815260200190815260200160002060405180604001604052808573ffffffffffffffffffffffffffffffffffffffff1681526020016000815250908060018154018082558091505060019003906000526020600020906002020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151816001015550506143c5565b600d84815481106142a05761429f615864565b5b906000526020600020906008020160050154600860008681526020019081526020016000208054905010614309576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161430090615268565b60405180910390fd5b6008600085815260200190815260200160002060405180604001604052808573ffffffffffffffffffffffffffffffffffffffff1681526020016000815250908060018154018082558091505060019003906000526020600020906002020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151816001015550505b8273ffffffffffffffffffffffffffffffffffffffff167fa7640a4e91956083852426fc5d8267a25b27ba5228ebc5355433f7b09f0c4da4858460405161440d9291906153ac565b60405180910390a250505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600081525090565b82805461451b9061572b565b90600052602060002090601f01602090048101928261453d5760008555614584565b82601f1061455657805160ff1916838001178555614584565b82800160010185558215614584579182015b82811115614583578251825591602001919060010190614568565b5b5090506145919190614595565b5090565b5b808211156145ae576000816000905550600101614596565b5090565b60006145c56145c0846154a1565b61547c565b905080838252602082019050828560208602820111156145e8576145e76158d6565b5b60005b8581101561463657815167ffffffffffffffff81111561460e5761460d6158c7565b5b80860161461b8982614788565b855260208501945060208401935050506001810190506145eb565b5050509392505050565b600061465361464e846154cd565b61547c565b90508281526020810184848401111561466f5761466e6158db565b5b61467a8482856156f8565b509392505050565b60008135905061469181615c26565b92915050565b6000815190506146a681615c26565b92915050565b600082601f8301126146c1576146c06158c7565b5b81516146d18482602086016145b2565b91505092915050565b6000813590506146e981615c3d565b92915050565b6000815190506146fe81615c3d565b92915050565b60008083601f84011261471a576147196158c7565b5b8235905067ffffffffffffffff811115614737576147366158c2565b5b602083019150836001820283011115614753576147526158d6565b5b9250929050565b600082601f83011261476f5761476e6158c7565b5b815161477f848260208601614640565b91505092915050565b600060e0828403121561479e5761479d6158cc565b5b6147a860e061547c565b905060006147b88482850161486d565b60008301525060206147cc8482850161486d565b60208301525060406147e08482850161486d565b60408301525060606147f48482850161486d565b60608301525060806148088482850161486d565b60808301525060a082015167ffffffffffffffff81111561482c5761482b6158d1565b5b6148388482850161475a565b60a08301525060c061484c848285016146ef565b60c08301525092915050565b60008135905061486781615c54565b92915050565b60008151905061487c81615c54565b92915050565b600060208284031215614898576148976158e5565b5b60006148a684828501614682565b91505092915050565b6000602082840312156148c5576148c46158e5565b5b60006148d384828501614697565b91505092915050565b600080604083850312156148f3576148f26158e5565b5b600061490185828601614682565b925050602061491285828601614682565b9150509250929050565b60008060408385031215614933576149326158e5565b5b600061494185828601614682565b9250506020614952858286016146da565b9150509250929050565b600060208284031215614972576149716158e5565b5b600082015167ffffffffffffffff8111156149905761498f6158e0565b5b61499c848285016146ac565b91505092915050565b6000602082840312156149bb576149ba6158e5565b5b60006149c9848285016146ef565b91505092915050565b6000806000806000608086880312156149ee576149ed6158e5565b5b600086013567ffffffffffffffff811115614a0c57614a0b6158e0565b5b614a1888828901614704565b95509550506020614a2b88828901614858565b9350506040614a3c88828901614858565b9250506060614a4d888289016146da565b9150509295509295909350565b60008060408385031215614a7157614a706158e5565b5b600083015167ffffffffffffffff811115614a8f57614a8e6158e0565b5b614a9b85828601614788565b9250506020614aac8582860161486d565b9150509250929050565b600060208284031215614acc57614acb6158e5565b5b6000614ada84828501614858565b91505092915050565b600060208284031215614af957614af86158e5565b5b6000614b078482850161486d565b91505092915050565b600080600060608486031215614b2957614b286158e5565b5b6000614b3786828701614858565b9350506020614b4886828701614682565b9250506040614b59868287016146da565b9150509250925092565b60008060408385031215614b7a57614b796158e5565b5b6000614b8885828601614858565b9250506020614b99858286016146da565b9150509250929050565b60008060408385031215614bba57614bb96158e5565b5b6000614bc885828601614858565b9250506020614bd985828601614858565b9150509250929050565b600080600060608486031215614bfc57614bfb6158e5565b5b6000614c0a86828701614858565b9350506020614c1b86828701614858565b9250506040614c2c86828701614858565b9150509250925092565b60008060008060808587031215614c5057614c4f6158e5565b5b6000614c5e87828801614858565b9450506020614c6f87828801614858565b9350506040614c8087828801614858565b9250506060614c9187828801614858565b91505092959194509250565b6000614ca98383615019565b60208301905092915050565b614cbe81615668565b82525050565b614ccd81615668565b82525050565b6000614cde8261550e565b614ce88185615531565b9350614cf3836154fe565b8060005b83811015614d24578151614d0b8882614c9d565b9750614d1683615524565b925050600181019050614cf7565b5085935050505092915050565b614d3a8161567a565b82525050565b614d49816156b0565b82525050565b614d58816156d4565b82525050565b6000614d6982615519565b614d738185615542565b9350614d838185602086016156f8565b614d8c816158ea565b840191505092915050565b6000614da4601983615542565b9150614daf826158fb565b602082019050919050565b6000614dc7601383615542565b9150614dd282615924565b602082019050919050565b6000614dea602a83615542565b9150614df58261594d565b604082019050919050565b6000614e0d601083615542565b9150614e188261599c565b602082019050919050565b6000614e30602683615542565b9150614e3b826159c5565b604082019050919050565b6000614e53601783615542565b9150614e5e82615a14565b602082019050919050565b6000614e76600c83615542565b9150614e8182615a3d565b602082019050919050565b6000614e99601a83615542565b9150614ea482615a66565b602082019050919050565b6000614ebc602a83615542565b9150614ec782615a8f565b604082019050919050565b6000614edf601583615542565b9150614eea82615ade565b602082019050919050565b6000614f02600d83615542565b9150614f0d82615b07565b602082019050919050565b6000614f25602083615542565b9150614f3082615b30565b602082019050919050565b6000614f48601e83615542565b9150614f5382615b59565b602082019050919050565b6000614f6b601d83615542565b9150614f7682615b82565b602082019050919050565b6000614f8e600983615542565b9150614f9982615bab565b602082019050919050565b6000614fb1601e83615542565b9150614fbc82615bd4565b602082019050919050565b6000614fd4601f83615542565b9150614fdf82615bfd565b602082019050919050565b6040820160008201516150006000850182614cb5565b5060208201516150136020850182615019565b50505050565b615022816156a6565b82525050565b615031816156a6565b82525050565b600060208201905061504c6000830184614cc4565b92915050565b60006060820190506150676000830186614cc4565b6150746020830185614cc4565b6150816040830184615028565b949350505050565b600060208201905081810360008301526150a38184614cd3565b905092915050565b60006020820190506150c06000830184614d31565b92915050565b60006020820190506150db6000830184614d40565b92915050565b60006020820190506150f66000830184614d4f565b92915050565b600060808201905081810360008301526151168187614d5e565b90506151256020830186615028565b6151326040830185615028565b61513f6060830184614d31565b95945050505050565b6000602082019050818103600083015261516181614d97565b9050919050565b6000602082019050818103600083015261518181614dba565b9050919050565b600060208201905081810360008301526151a181614ddd565b9050919050565b600060208201905081810360008301526151c181614e00565b9050919050565b600060208201905081810360008301526151e181614e23565b9050919050565b6000602082019050818103600083015261520181614e46565b9050919050565b6000602082019050818103600083015261522181614e69565b9050919050565b6000602082019050818103600083015261524181614e8c565b9050919050565b6000602082019050818103600083015261526181614eaf565b9050919050565b6000602082019050818103600083015261528181614ed2565b9050919050565b600060208201905081810360008301526152a181614ef5565b9050919050565b600060208201905081810360008301526152c181614f18565b9050919050565b600060208201905081810360008301526152e181614f3b565b9050919050565b6000602082019050818103600083015261530181614f5e565b9050919050565b6000602082019050818103600083015261532181614f81565b9050919050565b6000602082019050818103600083015261534181614fa4565b9050919050565b6000602082019050818103600083015261536181614fc7565b9050919050565b600060608201905061537d6000830185614fea565b61538a6040830184615028565b9392505050565b60006020820190506153a66000830184615028565b92915050565b60006040820190506153c16000830185615028565b6153ce6020830184614d31565b9392505050565b60006040820190506153ea6000830185615028565b6153f76020830184615028565b9392505050565b600061010082019050615414600083018b615028565b615421602083018a615028565b61542e6040830189615028565b61543b6060830188615028565b6154486080830187615028565b61545560a0830186615028565b61546260c0830185615028565b61546f60e0830184614d31565b9998505050505050505050565b6000615486615497565b9050615492828261575d565b919050565b6000604051905090565b600067ffffffffffffffff8211156154bc576154bb615893565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156154e8576154e7615893565b5b6154f1826158ea565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600061555e826156a6565b9150615569836156a6565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561559e5761559d6157d7565b5b828201905092915050565b60006155b4826156a6565b91506155bf836156a6565b9250826155cf576155ce615806565b5b828204905092915050565b60006155e5826156a6565b91506155f0836156a6565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615615629576156286157d7565b5b828202905092915050565b600061563f826156a6565b915061564a836156a6565b92508282101561565d5761565c6157d7565b5b828203905092915050565b600061567382615686565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006156bb826156c2565b9050919050565b60006156cd82615686565b9050919050565b60006156df826156e6565b9050919050565b60006156f182615686565b9050919050565b60005b838110156157165780820151818401526020810190506156fb565b83811115615725576000848401525b50505050565b6000600282049050600182168061574357607f821691505b6020821081141561575757615756615835565b5b50919050565b615766826158ea565b810181811067ffffffffffffffff8211171561578557615784615893565b5b80604052505050565b6000615799826156a6565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156157cc576157cb6157d7565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f5745415241424c453a2063616e6e6f7420627579207468697300000000000000600082015250565b7f4d41582054484945564553205245414348454400000000000000000000000000600082015250565b7f434c55423a20746f6b656e206973206e6f74206120636c7562206f722069732060008201527f6e6f742061637469766500000000000000000000000000000000000000000000602082015250565b7f47414d453a206e6f7420636c6f73656400000000000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f47414d453a20636c6f736564206f7220696e76616c6964000000000000000000600082015250565b7f496e636f6d70617469626c650000000000000000000000000000000000000000600082015250565b7f42414c414e43453a20696e737566696369656e742066756e6473000000000000600082015250565b7f616c726561647920686164207468697320776f726b6572207479706520666f7260008201527f20746869732067616d6500000000000000000000000000000000000000000000602082015250565b7f4d415820435553544f4d45525320524541434845440000000000000000000000600082015250565b7f47414d452046494e495348454400000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f7765617261626c65206973206a75737420666f72207374726970706572730000600082015250565b7f41646d696e3a2063616c6c6572206973206e6f7420616e2061646d696e000000600082015250565b7f4e4f54204f574e45520000000000000000000000000000000000000000000000600082015250565b7f4f574e4552534849503a2053656e646572206973206e6f74206f6e7765720000600082015250565b7f47414d453a20616c72656164792073657420666f7220746869732067616d6500600082015250565b615c2f81615668565b8114615c3a57600080fd5b50565b615c468161567a565b8114615c5157600080fd5b50565b615c5d816156a6565b8114615c6857600080fd5b5056fea26469706673582212203f783033220136b92930f9a2c3dc2e97b4eace5882406380231481434f5e590a64736f6c63430008060033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102745760003560e01c8063715018a611610151578063bdaae1e7116100c3578063d8b4164711610087578063d8b416471461079b578063dd78b7ad146107b9578063df0c6482146107d5578063e4f40e63146107f3578063ef3b684214610811578063f2fde38b1461082d57610274565b8063bdaae1e7146106fb578063c306259714610717578063c4aa082114610733578063cb5ae9fd14610763578063d8952a491461077f57610274565b8063957b5fb411610115578063957b5fb4146106245780639c38400414610642578063a54a72b714610672578063b29f351d14610690578063b416cfd7146106ac578063bd8c267e146106df57610274565b8063715018a61461057d5780637c0b8de2146105875780637d0d244a146105a55780638284da54146105d65780638da5cb5b1461060657610274565b8063371f4b55116101ea5780634b0bddd2116101ae5780634b0bddd21461049857806352761b74146104b457806363f12002146104e557806365390d161461050157806366e9179d1461051d5780636a579b571461054d57610274565b8063371f4b55146104085780633a35cd77146104265780633ca3a5231461044257806346e04a2f1461045e57806349213c591461047a57610274565b8063219d7d421161023c578063219d7d4214610336578063251b260914610352578063257a0c391461036e5780632d6ef3101461039e5780632f50fdff146103ba57806331182970146103ea57610274565b8063117a5b901461027957806311820e67146102b057806311c5070c146102e05780631214e31e146102fc5780631f86ab4414610318575b600080fd5b610293600480360381019061028e9190614ab6565b610849565b6040516102a79897969594939291906153fe565b60405180910390f35b6102ca60048036038101906102c59190614ba3565b6108ae565b6040516102d79190615391565b60405180910390f35b6102fa60048036038101906102f59190614ba3565b610947565b005b61031660048036038101906103119190614ab6565b610dd0565b005b610320610ee8565b60405161032d9190615391565b60405180910390f35b610350600480360381019061034b9190614ab6565b610eee565b005b61036c60048036038101906103679190614ba3565b610fcf565b005b61038860048036038101906103839190614ab6565b610fdf565b6040516103959190615391565b60405180910390f35b6103b860048036038101906103b39190614ab6565b6114a6565b005b6103d460048036038101906103cf9190614ba3565b61182c565b6040516103e19190615391565b60405180910390f35b6103f2611852565b6040516103ff9190615391565b60405180910390f35b6104106119c7565b60405161041d9190615391565b60405180910390f35b610440600480360381019061043b9190614be3565b6119cd565b005b61045c60048036038101906104579190614b63565b6120e4565b005b61047860048036038101906104739190614ab6565b6121fc565b005b6104826125f9565b60405161048f9190615089565b60405180910390f35b6104b260048036038101906104ad919061491c565b612752565b005b6104ce60048036038101906104c99190614ab6565b612877565b6040516104dc929190615368565b60405180910390f35b6104ff60048036038101906104fa9190614b10565b61289d565b005b61051b60048036038101906105169190614ab6565b612a30565b005b61053760048036038101906105329190614ba3565b612b11565b6040516105449190615391565b60405180910390f35b61056760048036038101906105629190614ba3565b612b36565b6040516105749190615391565b60405180910390f35b610585612c3f565b005b61058f612cc7565b60405161059c91906150e1565b60405180910390f35b6105bf60048036038101906105ba9190614ab6565b612ced565b6040516105cd929190615368565b60405180910390f35b6105f060048036038101906105eb9190614ab6565b612d13565b6040516105fd9190615391565b60405180910390f35b61060e612d42565b60405161061b9190615037565b60405180910390f35b61062c612d6b565b6040516106399190615391565b60405180910390f35b61065c60048036038101906106579190614ab6565b612e51565b6040516106699190615391565b60405180910390f35b61067a612f4f565b60405161068791906150c6565b60405180910390f35b6106aa60048036038101906106a59190614ba3565b612f75565b005b6106c660048036038101906106c19190614ab6565b612f85565b6040516106d694939291906150fc565b60405180910390f35b6106f960048036038101906106f49190614ba3565b61305a565b005b61071560048036038101906107109190614c36565b613143565b005b610731600480360381019061072c9190614882565b6132f3565b005b61074d60048036038101906107489190614ab6565b61340e565b60405161075a9190615391565b60405180910390f35b61077d60048036038101906107789190614b63565b613426565b005b610799600480360381019061079491906148dc565b6136e0565b005b6107a36137cd565b6040516107b09190615391565b60405180910390f35b6107d360048036038101906107ce91906149d2565b6137da565b005b6107dd61399d565b6040516107ea9190615391565b60405180910390f35b6107fb6139a3565b6040516108089190615391565b60405180910390f35b61082b60048036038101906108269190614882565b6139a9565b005b61084760048036038101906108429190614882565b613ac4565b005b600d818154811061085957600080fd5b90600052602060002090600802016000915090508060000154908060010154908060020154908060030154908060040154908060050154908060060154908060070160009054906101000a900460ff16905088565b60008060006108bc85612ced565b9150915061270f81141580156108d55750838260200151145b801561090657506001600d86815481106108f2576108f1615864565b5b906000526020600020906008020160060154115b1561093a57600d858154811061091f5761091e615864565b5b90600052602060002090600802016006015492505050610941565b6001925050505b92915050565b81610950613bbc565b73ffffffffffffffffffffffffffffffffffffffff16600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b81526004016109c19190615391565b60206040518083038186803b1580156109d957600080fd5b505afa1580156109ed573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610a1191906148af565b73ffffffffffffffffffffffffffffffffffffffff1614610a67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a5e90615328565b60405180910390fd5b6000600a8381548110610a7d57610a7c615864565b5b9060005260206000209060040201604051806080016040529081600082018054610aa69061572b565b80601f0160208091040260200160405190810160405280929190818152602001828054610ad29061572b565b8015610b1f5780601f10610af457610100808354040283529160200191610b1f565b820191906000526020600020905b815481529060010190602001808311610b0257829003601f168201915b5050505050815260200160018201548152602001600282015481526020016003820160009054906101000a900460ff1615151515815250509050620f42408410610b9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b95906152c8565b60405180910390fd5b8060200151600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231610be9613bbc565b6040518263ffffffff1660e01b8152600401610c059190615037565b60206040518083038186803b158015610c1d57600080fd5b505afa158015610c31573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c559190614ae3565b1015610c96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8d90615228565b60405180910390fd5b8060600151610cda576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cd190615148565b60405180910390fd5b600081602001511115610d7957600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636d1b229d82602001516040518263ffffffff1660e01b8152600401610d469190615391565b600060405180830381600087803b158015610d6057600080fd5b505af1158015610d74573d6000803e3d6000fd5b505050505b8260066000868152602001908152602001600020819055507fcc385b6142ca156396a3b02e7501380bb5b18fc128f2b2229a6d45dec31161968484604051610dc29291906153d5565b60405180910390a150505050565b60016000610ddc613bbc565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680610e685750610e32613bbc565b73ffffffffffffffffffffffffffffffffffffffff16610e50612d42565b73ffffffffffffffffffffffffffffffffffffffff16145b610ea7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e9e906152e8565b60405180910390fd5b6001600d8281548110610ebd57610ebc615864565b5b906000526020600020906008020160070160006101000a81548160ff02191690831515021790555050565b600f5481565b60016000610efa613bbc565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680610f865750610f50613bbc565b73ffffffffffffffffffffffffffffffffffffffff16610f6e612d42565b73ffffffffffffffffffffffffffffffffffffffff16145b610fc5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fbc906152e8565b60405180910390fd5b80600e8190555050565b610fdb82826000613bc4565b5050565b600080600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639606d584846040518263ffffffff1660e01b815260040161103d9190615391565b60006040518083038186803b15801561105557600080fd5b505afa158015611069573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906110929190614a5a565b509050600080826020015114156113dc57600080600660008781526020019081526020016000205411156111d9576000600a6006600088815260200190815260200160002054815481106110e9576110e8615864565b5b90600052602060002090600402016040518060800160405290816000820180546111129061572b565b80601f016020809104026020016040519081016040528092919081815260200182805461113e9061572b565b801561118b5780601f106111605761010080835404028352916020019161118b565b820191906000526020600020905b81548152906001019060200180831161116e57829003601f168201915b5050505050815260200160018201548152602001600282015481526020016003820160009054906101000a900460ff16151515158152505090508060400151826111d59190615553565b9150505b600068056bc75e2d631000008285604001516111f59190615553565b1161120f5781846040015161120a9190615553565b61121a565b68056bc75e2d631000005b905060005b600d805490508110156113a85760006004600083815260200190815260200160002060006002600085815260200190815260200160002060008b8152602001908152602001600020548152602001908152602001600020549050600080600d84815481106112905761128f615864565b5b9060005260206000209060080201600201541180156112af5750600082115b1561139357600a82600f546112c491906155a9565b6112ce91906155a9565b82600f546112dc91906155a9565b6112e69190615634565b816112f19190615553565b90506112fd838a6108ae565b670de0b6b3a76400008561131191906155a9565b60646005600087815260200190815260200160002060006002600089815260200190815260200160002060008f8152602001908152602001600020548152602001908152602001600020548461136791906155a9565b61137191906155a9565b61137b91906155da565b61138591906155da565b866113909190615553565b95505b505080806113a09061578e565b91505061121f565b5083606001516113bc82866080015161182c565b846113c79190615553565b6113d19190615634565b9450505050506114a1565b60005b600d8054905081101561148b5760006004600083815260200190815260200160002060008781526020019081526020016000205490506000600d838154811061142b5761142a615864565b5b90600052602060002090600802016002015411801561144a5750600081115b1561147757600a81600f5461145f91906155a9565b61146991906155a9565b836114749190615553565b92505b5080806114839061578e565b9150506113df565b5081606001518161149c9190615634565b925050505b919050565b600160006114b2613bbc565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168061153e5750611508613bbc565b73ffffffffffffffffffffffffffffffffffffffff16611526612d42565b73ffffffffffffffffffffffffffffffffffffffff16145b61157d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611574906152e8565b60405180910390fd5b6000600d828154811061159357611592615864565b5b9060005260206000209060080201905042816002018190555060006115b66125f9565b905060005b81518110156118265760008282815181106115d9576115d8615864565b5b6020026020010151905060006001905060006115f58784613e1a565b9050600080821161162a5760036000898152602001908152602001600020600085815260200190815260200160002054611683565b6009821161167f5781600a61163f9190615634565b600a600360008b815260200190815260200160002060008781526020019081526020016000205461167091906155a9565b61167a91906155da565b611682565b60005b5b905060008111156117905760005b865181101561178a5760008782815181106116af576116ae615864565b5b602002602001015190508086146117765760006116cc8b83613e1a565b9050600080821161170157600360008d815260200190815260200160002060008481526020019081526020016000205461175a565b600982116117565781600a6117169190615634565b600a600360008f815260200190815260200160002060008681526020019081526020016000205461174791906155a9565b61175191906155da565b611759565b60005b5b90508085101561177357868061176f9061578e565b9750505b50505b5080806117829061578e565b915050611691565b50611795565b600692505b600683101561180f5760006005905060028411156117cc578360066117ba9190615634565b816117c591906155da565b90506117e4565b60028414156117de57601e90506117e3565b602890505b5b80600460008b8152602001908152602001600020600087815260200190815260200160002081905550505b50505050808061181e9061578e565b9150506115bb565b50505050565b600061183783612e51565b61184083612d13565b61184a91906155da565b905092915050565b600080600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663276f093461189b613bbc565b6040518263ffffffff1660e01b81526004016118b79190615037565b60006040518083038186803b1580156118cf57600080fd5b505afa1580156118e3573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061190c919061495c565b9050600080600083511415611926578193505050506119c4565b60005b835181101561199d5783818151811061194557611944615864565b5b6020026020010151604001518361195c9190615553565b925083818151811061197157611970615864565b5b602002602001015160600151826119889190615553565b915080806119959061578e565b915050611929565b50818111156119b257600093505050506119c4565b80826119be9190615634565b93505050505b90565b600e5481565b826119d6613bbc565b73ffffffffffffffffffffffffffffffffffffffff16600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b8152600401611a479190615391565b60206040518083038186803b158015611a5f57600080fd5b505afa158015611a73573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a9791906148af565b73ffffffffffffffffffffffffffffffffffffffff1614611aed576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae490615328565b60405180910390fd5b620186a06002600084815260200190815260200160002060008681526020019081526020016000205410611b56576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b4d90615348565b60405180910390fd5b620f4240831015611b9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b9390615188565b60405180910390fd5b6000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639606d584866040518263ffffffff1660e01b8152600401611bf99190615391565b60006040518083038186803b158015611c1157600080fd5b505afa158015611c25573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f82011682018060405250810190611c4e9190614a5a565b5090506000600d8481548110611c6757611c66615864565b5b906000526020600020906008020160405180610100016040529081600082015481526020016001820154815260200160028201548152602001600382015481526020016004820154815260200160058201548152602001600682015481526020016007820160009054906101000a900460ff161515151581525050905060008160400151148015611cfa57508060e00151155b611d39576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d30906151e8565b60405180910390fd5b8060600151600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231611d84613bbc565b6040518263ffffffff1660e01b8152600401611da09190615037565b60206040518083038186803b158015611db857600080fd5b505afa158015611dcc573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611df09190614ae3565b1015611e31576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2890615228565b60405180910390fd5b600081606001511115611ed057600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636d1b229d82606001516040518263ffffffff1660e01b8152600401611e9d9190615391565b600060405180830381600087803b158015611eb757600080fd5b505af1158015611ecb573d6000803e3d6000fd5b505050505b600082604001519050600060086000878152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b82821015611fa057838290600052602060002090600202016040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160018201548152505081526020019060010190611f0e565b50505050905060005b81518110156120025788828281518110611fc657611fc5615864565b5b6020026020010151602001511415611fef578360c0015183611fe891906155da565b9250612002565b8080611ffa9061578e565b915050611fa9565b50866002600088815260200190815260200160002060008a8152602001908152602001600020819055508160036000888152602001908152602001600020600089815260200190815260200160002060008282546120609190615553565b92505081905550600560008781526020019081526020016000206000888152602001908152602001600020600081548092919061209c9061578e565b91905055507f73c4ef442856bea52a6b34a83f35484ee65828010254ec27766c5a8c13db6c8488876040516120d29291906153d5565b60405180910390a15050505050505050565b600160006120f0613bbc565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168061217c5750612146613bbc565b73ffffffffffffffffffffffffffffffffffffffff16612164612d42565b73ffffffffffffffffffffffffffffffffffffffff16145b6121bb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121b2906152e8565b60405180910390fd5b80600a83815481106121d0576121cf615864565b5b906000526020600020906004020160030160006101000a81548160ff0219169083151502179055505050565b80612205613bbc565b73ffffffffffffffffffffffffffffffffffffffff16600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b81526004016122769190615391565b60206040518083038186803b15801561228e57600080fd5b505afa1580156122a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122c691906148af565b73ffffffffffffffffffffffffffffffffffffffff161461231c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161231390615328565b60405180910390fd5b600061232783610fdf565b9050600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663151e6299826040518263ffffffff1660e01b81526004016123849190615391565b600060405180830381600087803b15801561239e57600080fd5b505af11580156123b2573d6000803e3d6000fd5b50505050600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561245c57600080fd5b505afa158015612470573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061249491906148af565b61249c613bbc565b846040518463ffffffff1660e01b81526004016124bb93929190615052565b602060405180830381600087803b1580156124d557600080fd5b505af11580156124e9573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061250d91906149a5565b50600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663fcc8cd7c84836040518363ffffffff1660e01b815260040161256b9291906153d5565b600060405180830381600087803b15801561258557600080fd5b505af1158015612599573d6000803e3d6000fd5b505050506125a5613bbc565b73ffffffffffffffffffffffffffffffffffffffff167f34fcbac0073d7c3d388e51312faf357774904998eeb8fca628b9e6f65ee1cbf784836040516125ec9291906153d5565b60405180910390a2505050565b60606000600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663ac43a3c86040518163ffffffff1660e01b815260040160206040518083038186803b15801561266557600080fd5b505afa158015612679573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061269d9190614ae3565b67ffffffffffffffff8111156126b6576126b5615893565b5b6040519080825280602002602001820160405280156126e45781602001602082028036833780820191505090505b509050600080620f4240905060005b83518110156127485781816127089190615553565b84848151811061271b5761271a615864565b5b60200260200101818152505082806127329061578e565b93505080806127409061578e565b9150506126f3565b5082935050505090565b61275a613bbc565b73ffffffffffffffffffffffffffffffffffffffff16612778612d42565b73ffffffffffffffffffffffffffffffffffffffff16146127ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127c5906152a8565b60405180910390fd5b80600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff167f55a5194bc0174fcaf12b2978bef43911466bf63b34db8d1dd1a0d5dcd5c41bea8260405161286b91906150ab565b60405180910390a25050565b61287f6144df565b60006128948361288d613bbc565b6001613f49565b91509150915091565b600160006128a9613bbc565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168061293557506128ff613bbc565b73ffffffffffffffffffffffffffffffffffffffff1661291d612d42565b73ffffffffffffffffffffffffffffffffffffffff16145b612974576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161296b906152e8565b60405180910390fd5b8260001515600d828154811061298d5761298c615864565b5b906000526020600020906008020160070160009054906101000a900460ff1615151480156129e057506000600d82815481106129cc576129cb615864565b5b906000526020600020906008020160020154145b612a1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a1690615288565b60405180910390fd5b612a2a8484846140f5565b50505050565b60016000612a3c613bbc565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680612ac85750612a92613bbc565b73ffffffffffffffffffffffffffffffffffffffff16612ab0612d42565b73ffffffffffffffffffffffffffffffffffffffff16145b612b07576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612afe906152e8565b60405180910390fd5b80600f8190555050565b6004602052816000526040600020602052806000526040600020600091509150505481565b600080600d8481548110612b4d57612b4c615864565b5b906000526020600020906008020160405180610100016040529081600082015481526020016001820154815260200160028201548152602001600382015481526020016004820154815260200160058201548152602001600682015481526020016007820160009054906101000a900460ff16151515158152505090506000816040015111612c11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c08906151a8565b60405180910390fd5b6005600085815260200190815260200160002060008481526020019081526020016000205491505092915050565b612c47613bbc565b73ffffffffffffffffffffffffffffffffffffffff16612c65612d42565b73ffffffffffffffffffffffffffffffffffffffff1614612cbb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cb2906152a8565b60405180910390fd5b612cc5600061441b565b565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b612cf56144df565b6000612d0a83612d03613bbc565b6000613f49565b91509150915091565b6000600162093a808342612d279190615634565b612d3191906155a9565b612d3b9190615553565b9050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60008060005b600d80549050811015612e49576000600d8281548110612d9457612d93615864565b5b906000526020600020906008020160405180610100016040529081600082015481526020016001820154815260200160028201548152602001600382015481526020016004820154815260200160058201548152602001600682015481526020016007820160009054906101000a900460ff161515151581525050905060008160400151148015612e2757508060e00151155b15612e355781925050612e49565b508080612e419061578e565b915050612d71565b508091505090565b600068056bc75e2d63100000821115612e715768056bc75e2d6310000091505b670de0b6b3a764000082612e8591906155a9565b6064600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663cee065856040518163ffffffff1660e01b815260040160206040518083038186803b158015612eef57600080fd5b505afa158015612f03573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f279190614ae3565b600e54612f3491906155a9565b612f3e91906155a9565b612f4891906155da565b9050919050565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b612f8182826001613bc4565b5050565b600a8181548110612f9557600080fd5b9060005260206000209060040201600091509050806000018054612fb89061572b565b80601f0160208091040260200160405190810160405280929190818152602001828054612fe49061572b565b80156130315780601f1061300657610100808354040283529160200191613031565b820191906000526020600020905b81548152906001019060200180831161301457829003601f168201915b5050505050908060010154908060020154908060030160009054906101000a900460ff16905084565b60016000613066613bbc565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16806130f257506130bc613bbc565b73ffffffffffffffffffffffffffffffffffffffff166130da612d42565b73ffffffffffffffffffffffffffffffffffffffff16145b613131576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613128906152e8565b60405180910390fd5b80601081905550816011819055505050565b6001600061314f613bbc565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16806131db57506131a5613bbc565b73ffffffffffffffffffffffffffffffffffffffff166131c3612d42565b73ffffffffffffffffffffffffffffffffffffffff16145b61321a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613211906152e8565b60405180910390fd5b600d604051806101000160405280600f54815260200142815260200160008152602001868152602001858152602001848152602001838152602001600015158152509080600181540180825580915050600190039060005260206000209060080201600090919091909150600082015181600001556020820151816001015560408201518160020155606082015181600301556080820151816004015560a0820151816005015560c0820151816006015560e08201518160070160006101000a81548160ff021916908315150217905550505050505050565b600160006132ff613bbc565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff168061338b5750613355613bbc565b73ffffffffffffffffffffffffffffffffffffffff16613373612d42565b73ffffffffffffffffffffffffffffffffffffffff16145b6133ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133c1906152e8565b60405180910390fd5b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60066020528060005260406000206000915090505481565b8160001515600d828154811061343f5761343e615864565b5b906000526020600020906008020160070160009054906101000a900460ff16151514801561349257506000600d828154811061347e5761347d615864565b5b906000526020600020906008020160020154145b6134d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134c890615288565b60405180910390fd5b81156135d257601054600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231613520613bbc565b6040518263ffffffff1660e01b815260040161353c9190615037565b60206040518083038186803b15801561355457600080fd5b505afa158015613568573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061358c9190614ae3565b10156135cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135c490615228565b60405180910390fd5b6136c9565b601154600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a0823161361b613bbc565b6040518263ffffffff1660e01b81526004016136379190615037565b60206040518083038186803b15801561364f57600080fd5b505afa158015613663573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906136879190614ae3565b10156136c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136bf90615228565b60405180910390fd5b5b6136db836136d5613bbc565b846140f5565b505050565b600160006136ec613bbc565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16806137785750613742613bbc565b73ffffffffffffffffffffffffffffffffffffffff16613760612d42565b73ffffffffffffffffffffffffffffffffffffffff16145b6137b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137ae906152e8565b60405180910390fd5b6137c0826132f3565b6137c9816139a9565b5050565b6000600a80549050905090565b600160006137e6613bbc565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680613872575061383c613bbc565b73ffffffffffffffffffffffffffffffffffffffff1661385a612d42565b73ffffffffffffffffffffffffffffffffffffffff16145b6138b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138a8906152e8565b60405180910390fd5b600a604051806080016040528087878080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505081526020018581526020018481526020018315158152509080600181540180825580915050600190039060005260206000209060040201600090919091909150600082015181600001908051906020019061395f92919061450f565b50602082015181600101556040820151816002015560608201518160030160006101000a81548160ff02191690831515021790555050505050505050565b60105481565b60115481565b600160006139b5613bbc565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1680613a415750613a0b613bbc565b73ffffffffffffffffffffffffffffffffffffffff16613a29612d42565b73ffffffffffffffffffffffffffffffffffffffff16145b613a80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a77906152e8565b60405180910390fd5b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b613acc613bbc565b73ffffffffffffffffffffffffffffffffffffffff16613aea612d42565b73ffffffffffffffffffffffffffffffffffffffff1614613b40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b37906152a8565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415613bb0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613ba7906151c8565b60405180910390fd5b613bb98161441b565b50565b600033905090565b8260001515600d8281548110613bdd57613bdc615864565b5b906000526020600020906008020160070160009054906101000a900460ff161515148015613c3057506000600d8281548110613c1c57613c1b615864565b5b906000526020600020906008020160020154145b613c6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613c6690615288565b60405180910390fd5b818015613c7f5750620f42408310155b80613c96575081158015613c955750620f424083105b5b613cd5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613ccc90615208565b60405180910390fd5b600082613cea57613ce585612ced565b613cf4565b613cf385612877565b5b91505061270f811415613d3c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613d3390615308565b60405180910390fd5b8215613d825783600760008781526020019081526020016000208281548110613d6857613d67615864565b5b906000526020600020906002020160010181905550613dbe565b83600860008781526020019081526020016000208281548110613da857613da7615864565b5b9060005260206000209060020201600101819055505b613dc6613bbc565b73ffffffffffffffffffffffffffffffffffffffff167fb736eefc355721a7c55e7e39a07d67a8f72a7e95efaba9a53e4bdd249a74cdce86604051613e0b9190615391565b60405180910390a25050505050565b60008060076000858152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b82821015613ee257838290600052602060002090600202016040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160018201548152505081526020019060010190613e50565b5050505090506000805b8251811015613f3d5784838281518110613f0957613f08615864565b5b6020026020010151602001511415613f2a578180613f269061578e565b9250505b8080613f359061578e565b915050613eec565b50809250505092915050565b613f516144df565b6000613f5b6144df565b600061270f9050600085613f815760086000898152602001908152602001600020613f95565b600760008981526020019081526020016000205b805480602002602001604051908101604052809291908181526020016000905b8282101561404757838290600052602060002090600202016040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200160018201548152505081526020019060010190613fb5565b50505050905060005b81518110156140e3578773ffffffffffffffffffffffffffffffffffffffff1682828151811061408357614082615864565b5b60200260200101516000015173ffffffffffffffffffffffffffffffffffffffff1614156140d0578181815181106140be576140bd615864565b5b602002602001015193508092506140e3565b80806140db9061578e565b915050614050565b50828294509450505050935093915050565b6000614102848484613f49565b91505061270f8114614149576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161414090615248565b60405180910390fd5b811561428c57600d848154811061416357614162615864565b5b9060005260206000209060080201600401546007600086815260200190815260200160002080549050106141cc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016141c390615168565b60405180910390fd5b6007600085815260200190815260200160002060405180604001604052808573ffffffffffffffffffffffffffffffffffffffff1681526020016000815250908060018154018082558091505060019003906000526020600020906002020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151816001015550506143c5565b600d84815481106142a05761429f615864565b5b906000526020600020906008020160050154600860008681526020019081526020016000208054905010614309576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161430090615268565b60405180910390fd5b6008600085815260200190815260200160002060405180604001604052808573ffffffffffffffffffffffffffffffffffffffff1681526020016000815250908060018154018082558091505060019003906000526020600020906002020160009091909190915060008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506020820151816001015550505b8273ffffffffffffffffffffffffffffffffffffffff167fa7640a4e91956083852426fc5d8267a25b27ba5228ebc5355433f7b09f0c4da4858460405161440d9291906153ac565b60405180910390a250505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600081525090565b82805461451b9061572b565b90600052602060002090601f01602090048101928261453d5760008555614584565b82601f1061455657805160ff1916838001178555614584565b82800160010185558215614584579182015b82811115614583578251825591602001919060010190614568565b5b5090506145919190614595565b5090565b5b808211156145ae576000816000905550600101614596565b5090565b60006145c56145c0846154a1565b61547c565b905080838252602082019050828560208602820111156145e8576145e76158d6565b5b60005b8581101561463657815167ffffffffffffffff81111561460e5761460d6158c7565b5b80860161461b8982614788565b855260208501945060208401935050506001810190506145eb565b5050509392505050565b600061465361464e846154cd565b61547c565b90508281526020810184848401111561466f5761466e6158db565b5b61467a8482856156f8565b509392505050565b60008135905061469181615c26565b92915050565b6000815190506146a681615c26565b92915050565b600082601f8301126146c1576146c06158c7565b5b81516146d18482602086016145b2565b91505092915050565b6000813590506146e981615c3d565b92915050565b6000815190506146fe81615c3d565b92915050565b60008083601f84011261471a576147196158c7565b5b8235905067ffffffffffffffff811115614737576147366158c2565b5b602083019150836001820283011115614753576147526158d6565b5b9250929050565b600082601f83011261476f5761476e6158c7565b5b815161477f848260208601614640565b91505092915050565b600060e0828403121561479e5761479d6158cc565b5b6147a860e061547c565b905060006147b88482850161486d565b60008301525060206147cc8482850161486d565b60208301525060406147e08482850161486d565b60408301525060606147f48482850161486d565b60608301525060806148088482850161486d565b60808301525060a082015167ffffffffffffffff81111561482c5761482b6158d1565b5b6148388482850161475a565b60a08301525060c061484c848285016146ef565b60c08301525092915050565b60008135905061486781615c54565b92915050565b60008151905061487c81615c54565b92915050565b600060208284031215614898576148976158e5565b5b60006148a684828501614682565b91505092915050565b6000602082840312156148c5576148c46158e5565b5b60006148d384828501614697565b91505092915050565b600080604083850312156148f3576148f26158e5565b5b600061490185828601614682565b925050602061491285828601614682565b9150509250929050565b60008060408385031215614933576149326158e5565b5b600061494185828601614682565b9250506020614952858286016146da565b9150509250929050565b600060208284031215614972576149716158e5565b5b600082015167ffffffffffffffff8111156149905761498f6158e0565b5b61499c848285016146ac565b91505092915050565b6000602082840312156149bb576149ba6158e5565b5b60006149c9848285016146ef565b91505092915050565b6000806000806000608086880312156149ee576149ed6158e5565b5b600086013567ffffffffffffffff811115614a0c57614a0b6158e0565b5b614a1888828901614704565b95509550506020614a2b88828901614858565b9350506040614a3c88828901614858565b9250506060614a4d888289016146da565b9150509295509295909350565b60008060408385031215614a7157614a706158e5565b5b600083015167ffffffffffffffff811115614a8f57614a8e6158e0565b5b614a9b85828601614788565b9250506020614aac8582860161486d565b9150509250929050565b600060208284031215614acc57614acb6158e5565b5b6000614ada84828501614858565b91505092915050565b600060208284031215614af957614af86158e5565b5b6000614b078482850161486d565b91505092915050565b600080600060608486031215614b2957614b286158e5565b5b6000614b3786828701614858565b9350506020614b4886828701614682565b9250506040614b59868287016146da565b9150509250925092565b60008060408385031215614b7a57614b796158e5565b5b6000614b8885828601614858565b9250506020614b99858286016146da565b9150509250929050565b60008060408385031215614bba57614bb96158e5565b5b6000614bc885828601614858565b9250506020614bd985828601614858565b9150509250929050565b600080600060608486031215614bfc57614bfb6158e5565b5b6000614c0a86828701614858565b9350506020614c1b86828701614858565b9250506040614c2c86828701614858565b9150509250925092565b60008060008060808587031215614c5057614c4f6158e5565b5b6000614c5e87828801614858565b9450506020614c6f87828801614858565b9350506040614c8087828801614858565b9250506060614c9187828801614858565b91505092959194509250565b6000614ca98383615019565b60208301905092915050565b614cbe81615668565b82525050565b614ccd81615668565b82525050565b6000614cde8261550e565b614ce88185615531565b9350614cf3836154fe565b8060005b83811015614d24578151614d0b8882614c9d565b9750614d1683615524565b925050600181019050614cf7565b5085935050505092915050565b614d3a8161567a565b82525050565b614d49816156b0565b82525050565b614d58816156d4565b82525050565b6000614d6982615519565b614d738185615542565b9350614d838185602086016156f8565b614d8c816158ea565b840191505092915050565b6000614da4601983615542565b9150614daf826158fb565b602082019050919050565b6000614dc7601383615542565b9150614dd282615924565b602082019050919050565b6000614dea602a83615542565b9150614df58261594d565b604082019050919050565b6000614e0d601083615542565b9150614e188261599c565b602082019050919050565b6000614e30602683615542565b9150614e3b826159c5565b604082019050919050565b6000614e53601783615542565b9150614e5e82615a14565b602082019050919050565b6000614e76600c83615542565b9150614e8182615a3d565b602082019050919050565b6000614e99601a83615542565b9150614ea482615a66565b602082019050919050565b6000614ebc602a83615542565b9150614ec782615a8f565b604082019050919050565b6000614edf601583615542565b9150614eea82615ade565b602082019050919050565b6000614f02600d83615542565b9150614f0d82615b07565b602082019050919050565b6000614f25602083615542565b9150614f3082615b30565b602082019050919050565b6000614f48601e83615542565b9150614f5382615b59565b602082019050919050565b6000614f6b601d83615542565b9150614f7682615b82565b602082019050919050565b6000614f8e600983615542565b9150614f9982615bab565b602082019050919050565b6000614fb1601e83615542565b9150614fbc82615bd4565b602082019050919050565b6000614fd4601f83615542565b9150614fdf82615bfd565b602082019050919050565b6040820160008201516150006000850182614cb5565b5060208201516150136020850182615019565b50505050565b615022816156a6565b82525050565b615031816156a6565b82525050565b600060208201905061504c6000830184614cc4565b92915050565b60006060820190506150676000830186614cc4565b6150746020830185614cc4565b6150816040830184615028565b949350505050565b600060208201905081810360008301526150a38184614cd3565b905092915050565b60006020820190506150c06000830184614d31565b92915050565b60006020820190506150db6000830184614d40565b92915050565b60006020820190506150f66000830184614d4f565b92915050565b600060808201905081810360008301526151168187614d5e565b90506151256020830186615028565b6151326040830185615028565b61513f6060830184614d31565b95945050505050565b6000602082019050818103600083015261516181614d97565b9050919050565b6000602082019050818103600083015261518181614dba565b9050919050565b600060208201905081810360008301526151a181614ddd565b9050919050565b600060208201905081810360008301526151c181614e00565b9050919050565b600060208201905081810360008301526151e181614e23565b9050919050565b6000602082019050818103600083015261520181614e46565b9050919050565b6000602082019050818103600083015261522181614e69565b9050919050565b6000602082019050818103600083015261524181614e8c565b9050919050565b6000602082019050818103600083015261526181614eaf565b9050919050565b6000602082019050818103600083015261528181614ed2565b9050919050565b600060208201905081810360008301526152a181614ef5565b9050919050565b600060208201905081810360008301526152c181614f18565b9050919050565b600060208201905081810360008301526152e181614f3b565b9050919050565b6000602082019050818103600083015261530181614f5e565b9050919050565b6000602082019050818103600083015261532181614f81565b9050919050565b6000602082019050818103600083015261534181614fa4565b9050919050565b6000602082019050818103600083015261536181614fc7565b9050919050565b600060608201905061537d6000830185614fea565b61538a6040830184615028565b9392505050565b60006020820190506153a66000830184615028565b92915050565b60006040820190506153c16000830185615028565b6153ce6020830184614d31565b9392505050565b60006040820190506153ea6000830185615028565b6153f76020830184615028565b9392505050565b600061010082019050615414600083018b615028565b615421602083018a615028565b61542e6040830189615028565b61543b6060830188615028565b6154486080830187615028565b61545560a0830186615028565b61546260c0830185615028565b61546f60e0830184614d31565b9998505050505050505050565b6000615486615497565b9050615492828261575d565b919050565b6000604051905090565b600067ffffffffffffffff8211156154bc576154bb615893565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156154e8576154e7615893565b5b6154f1826158ea565b9050602081019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600061555e826156a6565b9150615569836156a6565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561559e5761559d6157d7565b5b828201905092915050565b60006155b4826156a6565b91506155bf836156a6565b9250826155cf576155ce615806565b5b828204905092915050565b60006155e5826156a6565b91506155f0836156a6565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615615629576156286157d7565b5b828202905092915050565b600061563f826156a6565b915061564a836156a6565b92508282101561565d5761565c6157d7565b5b828203905092915050565b600061567382615686565b9050919050565b60008115159050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006156bb826156c2565b9050919050565b60006156cd82615686565b9050919050565b60006156df826156e6565b9050919050565b60006156f182615686565b9050919050565b60005b838110156157165780820151818401526020810190506156fb565b83811115615725576000848401525b50505050565b6000600282049050600182168061574357607f821691505b6020821081141561575757615756615835565b5b50919050565b615766826158ea565b810181811067ffffffffffffffff8211171561578557615784615893565b5b80604052505050565b6000615799826156a6565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156157cc576157cb6157d7565b5b600182019050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f5745415241424c453a2063616e6e6f7420627579207468697300000000000000600082015250565b7f4d41582054484945564553205245414348454400000000000000000000000000600082015250565b7f434c55423a20746f6b656e206973206e6f74206120636c7562206f722069732060008201527f6e6f742061637469766500000000000000000000000000000000000000000000602082015250565b7f47414d453a206e6f7420636c6f73656400000000000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f47414d453a20636c6f736564206f7220696e76616c6964000000000000000000600082015250565b7f496e636f6d70617469626c650000000000000000000000000000000000000000600082015250565b7f42414c414e43453a20696e737566696369656e742066756e6473000000000000600082015250565b7f616c726561647920686164207468697320776f726b6572207479706520666f7260008201527f20746869732067616d6500000000000000000000000000000000000000000000602082015250565b7f4d415820435553544f4d45525320524541434845440000000000000000000000600082015250565b7f47414d452046494e495348454400000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f7765617261626c65206973206a75737420666f72207374726970706572730000600082015250565b7f41646d696e3a2063616c6c6572206973206e6f7420616e2061646d696e000000600082015250565b7f4e4f54204f574e45520000000000000000000000000000000000000000000000600082015250565b7f4f574e4552534849503a2053656e646572206973206e6f74206f6e7765720000600082015250565b7f47414d453a20616c72656164792073657420666f7220746869732067616d6500600082015250565b615c2f81615668565b8114615c3a57600080fd5b50565b615c468161567a565b8114615c5157600080fd5b50565b615c5d816156a6565b8114615c6857600080fd5b5056fea26469706673582212203f783033220136b92930f9a2c3dc2e97b4eace5882406380231481434f5e590a64736f6c63430008060033

Block Transaction Difficulty Gas Used Reward
View All Blocks Produced

Block Uncle Number Difficulty Gas Used Reward
View All Uncles
Loading...
Loading
Loading...
Loading

Validator Index Block Amount
View All Withdrawals

Transaction Hash Block Value Eth2 PubKey Valid
View All Deposits
Loading...
Loading
[ Download: CSV Export  ]

A contract address hosts a smart contract, which is a set of code stored on the blockchain that runs when predetermined conditions are met. Learn more about addresses in our Knowledge Base.