ETH Price: $3,960.02 (+2.24%)

Contract

0x06217A2E76604CB63451AC98401B898af038d4b2
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Token Holdings

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Claim From Stake205502252024-08-17 18:47:11120 days ago1723920431IN
0x06217A2E...af038d4b2
0 ETH0.000107431.39555009
Claim From Stake181511852023-09-16 20:53:11456 days ago1694897591IN
0x06217A2E...af038d4b2
0 ETH0.000653168.48423845
Claim From Stake168940262023-03-24 1:14:59633 days ago1679620499IN
0x06217A2E...af038d4b2
0 ETH0.0016255714.38419435
Claim From Stake167129712023-02-26 14:21:59658 days ago1677421319IN
0x06217A2E...af038d4b2
0 ETH0.0046326420.55947248
Claim From Stake165947642023-02-10 0:26:35675 days ago1675988795IN
0x06217A2E...af038d4b2
0 ETH0.0075378227.33759456
Rescue164219422023-01-16 21:08:59699 days ago1673903339IN
0x06217A2E...af038d4b2
0 ETH0.0034388428.23422281
Claim From Stake164218932023-01-16 20:59:11699 days ago1673902751IN
0x06217A2E...af038d4b2
0 ETH0.0024186728.63186474
Claim From Stake164218912023-01-16 20:58:47699 days ago1673902727IN
0x06217A2E...af038d4b2
0 ETH0.0021194525.08978549
Claim From Stake164212352023-01-16 18:46:47699 days ago1673894807IN
0x06217A2E...af038d4b2
0 ETH0.0235013924.34303047
Rescue164212302023-01-16 18:45:47699 days ago1673894747IN
0x06217A2E...af038d4b2
0 ETH0.0116430119.89487258
Rescue163570792023-01-07 19:44:47708 days ago1673120687IN
0x06217A2E...af038d4b2
0 ETH0.0067115916.93820555
Rescue163427482023-01-05 19:42:23710 days ago1672947743IN
0x06217A2E...af038d4b2
0 ETH0.0019852426.51406017
Claim From Stake163427452023-01-05 19:41:47710 days ago1672947707IN
0x06217A2E...af038d4b2
0 ETH0.0022560826.7071862
Claim From Stake163427382023-01-05 19:40:23710 days ago1672947623IN
0x06217A2E...af038d4b2
0 ETH0.004658827.71762752
Claim From Stake162986872022-12-30 16:09:47716 days ago1672416587IN
0x06217A2E...af038d4b2
0 ETH0.0007598618.91584046
Claim From Stake162986862022-12-30 16:09:35716 days ago1672416575IN
0x06217A2E...af038d4b2
0 ETH0.0330927419.48653028
Claim From Stake161354682022-12-07 21:19:11739 days ago1670447951IN
0x06217A2E...af038d4b2
0 ETH0.0033149615.91889494
Claim From Stake161075422022-12-03 23:23:11743 days ago1670109791IN
0x06217A2E...af038d4b2
0 ETH0.0057804812.11701283
Claim From Stake160206812022-11-21 20:09:35755 days ago1669061375IN
0x06217A2E...af038d4b2
0 ETH0.0033608318.84679052
Claim From Stake160151862022-11-21 1:44:47756 days ago1668995087IN
0x06217A2E...af038d4b2
0 ETH0.0110200211.84338594
Rescue159930302022-11-17 23:30:11759 days ago1668727811IN
0x06217A2E...af038d4b2
0 ETH0.0012006413.05399361
Rescue159328362022-11-09 13:41:59767 days ago1668001319IN
0x06217A2E...af038d4b2
0 ETH0.0020090321.84327032
Claim From Stake159044642022-11-05 14:38:59771 days ago1667659139IN
0x06217A2E...af038d4b2
0 ETH0.0021648213.28140866
Rescue158775282022-11-01 20:20:59775 days ago1667334059IN
0x06217A2E...af038d4b2
0 ETH0.0222407312.57501304
Claim From Stake158510842022-10-29 3:38:35778 days ago1667014715IN
0x06217A2E...af038d4b2
0 ETH0.015777089.33381808
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Block
From
To
205502252024-08-17 18:47:11120 days ago1723920431
0x06217A2E...af038d4b2
0 ETH
205502252024-08-17 18:47:11120 days ago1723920431
0x06217A2E...af038d4b2
0 ETH
205502252024-08-17 18:47:11120 days ago1723920431
0x06217A2E...af038d4b2
0 ETH
181511852023-09-16 20:53:11456 days ago1694897591
0x06217A2E...af038d4b2
0 ETH
181511852023-09-16 20:53:11456 days ago1694897591
0x06217A2E...af038d4b2
0 ETH
181511852023-09-16 20:53:11456 days ago1694897591
0x06217A2E...af038d4b2
0 ETH
168940262023-03-24 1:14:59633 days ago1679620499
0x06217A2E...af038d4b2
0 ETH
168940262023-03-24 1:14:59633 days ago1679620499
0x06217A2E...af038d4b2
0 ETH
168940262023-03-24 1:14:59633 days ago1679620499
0x06217A2E...af038d4b2
0 ETH
168940262023-03-24 1:14:59633 days ago1679620499
0x06217A2E...af038d4b2
0 ETH
167129712023-02-26 14:21:59658 days ago1677421319
0x06217A2E...af038d4b2
0 ETH
167129712023-02-26 14:21:59658 days ago1677421319
0x06217A2E...af038d4b2
0 ETH
167129712023-02-26 14:21:59658 days ago1677421319
0x06217A2E...af038d4b2
0 ETH
167129712023-02-26 14:21:59658 days ago1677421319
0x06217A2E...af038d4b2
0 ETH
167129712023-02-26 14:21:59658 days ago1677421319
0x06217A2E...af038d4b2
0 ETH
167129712023-02-26 14:21:59658 days ago1677421319
0x06217A2E...af038d4b2
0 ETH
165947642023-02-10 0:26:35675 days ago1675988795
0x06217A2E...af038d4b2
0 ETH
165947642023-02-10 0:26:35675 days ago1675988795
0x06217A2E...af038d4b2
0 ETH
165947642023-02-10 0:26:35675 days ago1675988795
0x06217A2E...af038d4b2
0 ETH
165947642023-02-10 0:26:35675 days ago1675988795
0x06217A2E...af038d4b2
0 ETH
165947642023-02-10 0:26:35675 days ago1675988795
0x06217A2E...af038d4b2
0 ETH
165947642023-02-10 0:26:35675 days ago1675988795
0x06217A2E...af038d4b2
0 ETH
165947642023-02-10 0:26:35675 days ago1675988795
0x06217A2E...af038d4b2
0 ETH
165947642023-02-10 0:26:35675 days ago1675988795
0x06217A2E...af038d4b2
0 ETH
164219422023-01-16 21:08:59699 days ago1673903339
0x06217A2E...af038d4b2
0 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
TreasureIsland

Compiler Version
v0.8.9+commit.e5eed63a

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion
File 1 of 11 : TreasureIsland.sol
// SPDX-License-Identifier: MIT LICENSE

pragma solidity ^0.8.9;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

interface IGoldHunter {
    function ownerOf(uint id) external view returns (address);
    function isPirate(uint16 id) external view returns (bool);
    function transferFrom(address from, address to, uint tokenId) external;
    function safeTransferFrom(address from, address to, uint tokenId, bytes memory _data) external;
}

interface IGGold {
    function mint(address account, uint amount) external;
}

contract TreasureIsland is Ownable, IERC721Receiver {
    bool private _paused = false;

    uint16 private _randomIndex = 0;
    uint private _randomCalls = 0;
    mapping(uint => address) private _randomSource;

    struct Stake {
        uint16 tokenId;
        uint80 value;
        address owner;
    }

    event TokenStaked(address owner, uint16 tokenId, uint value);
    event GoldMinerClaimed(uint16 tokenId, uint earned, bool unstaked);
    event PirateClaimed(uint16 tokenId, uint earned, bool unstaked);

    IGoldHunter public goldHunter;
    IGGold public gold;

    mapping(uint256 => uint256) public goldMinerIndices;
    mapping(address => Stake[]) public goldMinerStake;

    mapping(uint256 => uint256) public pirateIndices;
    mapping(address => Stake[]) public pirateStake;
    address[] public pirateHolders;

    // Total staked tokens
    uint public totalGoldMinerStaked;
    uint public totalPirateStaked = 0;
    uint public unaccountedRewards = 0;

    // GoldMiner earn 10000 $GGOLD per day
    uint public constant DAILY_GOLD_RATE = 10000 ether;
    uint public constant MINIMUM_TIME_TO_EXIT = 2 days;
    uint public constant TAX_PERCENTAGE = 20;
    uint public constant MAXIMUM_GLOBAL_GOLD = 2400000000 ether;

    uint public totalGoldEarned;

    uint public lastClaimTimestamp;
    uint public pirateReward = 0;

    // emergency rescue to allow unstaking without any checks but without $GGOLD
    bool public rescueEnabled = false;

    constructor() {
        // Fill random source addresses
        _randomSource[0] = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;
        _randomSource[1] = 0x3cD751E6b0078Be393132286c442345e5DC49699;
        _randomSource[2] = 0xb5d85CBf7cB3EE0D56b3bB207D5Fc4B82f43F511;
        _randomSource[3] = 0xC098B2a3Aa256D2140208C3de6543aAEf5cd3A94;
        _randomSource[4] = 0x28C6c06298d514Db089934071355E5743bf21d60;
        _randomSource[5] = 0x2FAF487A4414Fe77e2327F0bf4AE2a264a776AD2;
        _randomSource[6] = 0x267be1C1D684F78cb4F6a176C4911b741E4Ffdc0;
    }

    function paused() public view virtual returns (bool) {
        return _paused;
    }

    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    function setGoldHunter(address _goldHunter) external onlyOwner {
        goldHunter = IGoldHunter(_goldHunter);
    }

    function setGold(address _gold) external onlyOwner {
        gold = IGGold(_gold);
    }

    function getAccountGoldMiners(address user) external view returns (Stake[] memory) {
        return goldMinerStake[user];
    }

    function getAccountPirates(address user) external view returns (Stake[] memory) {
        return pirateStake[user];
    }

    function addTokensToStake(address account, uint16[] calldata tokenIds) external {
        require(account == msg.sender || msg.sender == address(goldHunter), "You do not have a permission to do that");

        for (uint i = 0; i < tokenIds.length; i++) {
            if (msg.sender != address(goldHunter)) {
                // dont do this step if its a mint + stake
                require(goldHunter.ownerOf(tokenIds[i]) == msg.sender, "This NTF does not belong to address");
                goldHunter.transferFrom(msg.sender, address(this), tokenIds[i]);
            } else if (tokenIds[i] == 0) {
                continue; // there may be gaps in the array for stolen tokens
            }

            if (goldHunter.isPirate(tokenIds[i])) {
                _stakePirates(account, tokenIds[i]);
            } else {
                _stakeGoldMiners(account, tokenIds[i]);
            }
        }
    }

    function _stakeGoldMiners(address account, uint16 tokenId) internal whenNotPaused _updateEarnings {
        totalGoldMinerStaked += 1;

        goldMinerIndices[tokenId] = goldMinerStake[account].length;
        goldMinerStake[account].push(Stake({
            owner: account,
            tokenId: uint16(tokenId),
            value: uint80(block.timestamp)
        }));
        emit TokenStaked(account, tokenId, block.timestamp);
    }


    function _stakePirates(address account, uint16 tokenId) internal {
        totalPirateStaked += 1;

        // If account already has some pirates no need to push it to the tracker
        if (pirateStake[account].length == 0) {
            pirateHolders.push(account);
        }

        pirateIndices[tokenId] = pirateStake[account].length;
        pirateStake[account].push(Stake({
            owner: account,
            tokenId: uint16(tokenId),
            value: uint80(pirateReward)
            }));

        emit TokenStaked(account, tokenId, pirateReward);
    }


    function claimFromStake(uint16[] calldata tokenIds, bool unstake) external whenNotPaused _updateEarnings {
        uint owed = 0;
        for (uint i = 0; i < tokenIds.length; i++) {
            if (!goldHunter.isPirate(tokenIds[i])) {
                owed += _claimFromMiner(tokenIds[i], unstake);
            } else {
                owed += _claimFromPirate(tokenIds[i], unstake);
            }
        }
        if (owed == 0) return;
        gold.mint(msg.sender, owed);
    }

    function _claimFromMiner(uint16 tokenId, bool unstake) internal returns (uint owed) {
        Stake memory stake = goldMinerStake[msg.sender][goldMinerIndices[tokenId]];
        require(stake.owner == msg.sender, "This NTF does not belong to address");
        require(!(unstake && block.timestamp - stake.value < MINIMUM_TIME_TO_EXIT), "Need to wait 2 days since last claim");

        if (totalGoldEarned < MAXIMUM_GLOBAL_GOLD) {
            owed = ((block.timestamp - stake.value) * DAILY_GOLD_RATE) / 1 days;
        } else if (stake.value > lastClaimTimestamp) {
            owed = 0; // $GGOLD production stopped already
        } else {
            owed = ((lastClaimTimestamp - stake.value) * DAILY_GOLD_RATE) / 1 days; // stop earning additional $GGOLD if it's all been earned
        }
        if (unstake) {
            if (getSomeRandomNumber(tokenId, 100) <= 50) {
                _payTax(owed);
                owed = 0;
            }
            updateRandomIndex();
            totalGoldMinerStaked -= 1;

            Stake memory lastStake = goldMinerStake[msg.sender][goldMinerStake[msg.sender].length - 1];
            goldMinerStake[msg.sender][goldMinerIndices[tokenId]] = lastStake;
            goldMinerIndices[lastStake.tokenId] = goldMinerIndices[tokenId];
            goldMinerStake[msg.sender].pop();
            delete goldMinerIndices[tokenId];

            goldHunter.safeTransferFrom(address(this), msg.sender, tokenId, "");
        } else {
            _payTax((owed * TAX_PERCENTAGE) / 100); // Pay some $GGOLD to pirates!
            owed = (owed * (100 - TAX_PERCENTAGE)) / 100;
            
            uint80 timestamp = uint80(block.timestamp);

            goldMinerStake[msg.sender][goldMinerIndices[tokenId]] = Stake({
                owner: msg.sender,
                tokenId: uint16(tokenId),
                value: timestamp
            }); // reset stake
        }

        emit GoldMinerClaimed(tokenId, owed, unstake);
    }

    function _claimFromPirate(uint16 tokenId, bool unstake) internal returns (uint owed) {
        require(goldHunter.ownerOf(tokenId) == address(this), "This NTF does not belong to address");

        Stake memory stake = pirateStake[msg.sender][pirateIndices[tokenId]];

        require(stake.owner == msg.sender, "This NTF does not belong to address");
        owed = (pirateReward - stake.value);

        if (unstake) {
            totalPirateStaked -= 1; // Remove Alpha from total staked

            Stake memory lastStake = pirateStake[msg.sender][pirateStake[msg.sender].length - 1];
            pirateStake[msg.sender][pirateIndices[tokenId]] = lastStake;
            pirateIndices[lastStake.tokenId] = pirateIndices[tokenId];
            pirateStake[msg.sender].pop();
            delete pirateIndices[tokenId];
            updatePirateOwnerAddressList(msg.sender);

            goldHunter.safeTransferFrom(address(this), msg.sender, tokenId, "");
        } else {
            pirateStake[msg.sender][pirateIndices[tokenId]] = Stake({
                owner: msg.sender,
                tokenId: uint16(tokenId),
                value: uint80(pirateReward)
            }); // reset stake
        }
        emit PirateClaimed(tokenId, owed, unstake);
    }

    function updatePirateOwnerAddressList(address account) internal {
        if (pirateStake[account].length != 0) {
            return; // No need to update holders
        }

        // Update the address list of holders, account unstaked all pirates
        address lastOwner = pirateHolders[pirateHolders.length - 1];
        uint indexOfHolder = 0;
        for (uint i = 0; i < pirateHolders.length; i++) {
            if (pirateHolders[i] == account) {
                indexOfHolder = i;
                break;
            }
        }
        pirateHolders[indexOfHolder] = lastOwner;
        pirateHolders.pop();
    }

    function rescue(uint16[] calldata tokenIds) external {
        require(rescueEnabled, "Rescue disabled");
        uint16 tokenId;
        Stake memory stake;

        for (uint16 i = 0; i < tokenIds.length; i++) {
            tokenId = tokenIds[i];
            if (!goldHunter.isPirate(tokenId)) {
                stake = goldMinerStake[msg.sender][goldMinerIndices[tokenId]];

                require(stake.owner == msg.sender, "This NTF does not belong to address");

                totalGoldMinerStaked -= 1;

                Stake memory lastStake = goldMinerStake[msg.sender][goldMinerStake[msg.sender].length - 1];
                goldMinerStake[msg.sender][goldMinerIndices[tokenId]] = lastStake;
                goldMinerIndices[lastStake.tokenId] = goldMinerIndices[tokenId];
                goldMinerStake[msg.sender].pop();
                delete goldMinerIndices[tokenId];

                goldHunter.safeTransferFrom(address(this), msg.sender, tokenId, "");

                emit GoldMinerClaimed(tokenId, 0, true);
            } else {
                stake = pirateStake[msg.sender][pirateIndices[tokenId]];
        
                require(stake.owner == msg.sender, "This NTF does not belong to address");

                totalPirateStaked -= 1;
                
                    
                Stake memory lastStake = pirateStake[msg.sender][pirateStake[msg.sender].length - 1];
                pirateStake[msg.sender][pirateIndices[tokenId]] = lastStake;
                pirateIndices[lastStake.tokenId] = pirateIndices[tokenId];
                pirateStake[msg.sender].pop();
                delete pirateIndices[tokenId];
                updatePirateOwnerAddressList(msg.sender);
                
                goldHunter.safeTransferFrom(address(this), msg.sender, tokenId, "");
                
                emit PirateClaimed(tokenId, 0, true);
            }
        }
    }

    function _payTax(uint _amount) internal {
        if (totalPirateStaked == 0) {
            unaccountedRewards += _amount;
            return;
        }

        pirateReward += (_amount + unaccountedRewards) / totalPirateStaked;
        unaccountedRewards = 0;
    }


    modifier _updateEarnings() {
        if (totalGoldEarned < MAXIMUM_GLOBAL_GOLD) {
            totalGoldEarned += ((block.timestamp - lastClaimTimestamp) * totalGoldMinerStaked * DAILY_GOLD_RATE) / 1 days;
            lastClaimTimestamp = block.timestamp;
        }
        _;
    }


    function setRescueEnabled(bool _enabled) external onlyOwner {
        rescueEnabled = _enabled;
    }

    function setPaused(bool _state) external onlyOwner {
        _paused = _state;
    }


    function randomPirateOwner() external returns (address) {
        if (totalPirateStaked == 0) return address(0x0);

        uint holderIndex = getSomeRandomNumber(totalPirateStaked, pirateHolders.length);
        updateRandomIndex();

        return pirateHolders[holderIndex];
    }

    function updateRandomIndex() internal {
        _randomIndex += 1;
        _randomCalls += 1;
        if (_randomIndex > 6) _randomIndex = 0;
    }

    function getSomeRandomNumber(uint _seed, uint _limit) internal view returns (uint16) {
        uint extra = 0;
        for (uint16 i = 0; i < 7; i++) {
            extra += _randomSource[_randomIndex].balance;
        }

        uint random = uint(
            keccak256(
                abi.encodePacked(
                    _seed,
                    blockhash(block.number - 1),
                    block.coinbase,
                    block.difficulty,
                    msg.sender,
                    extra,
                    _randomCalls,
                    _randomIndex
                )
            )
        );

        return uint16(random % _limit);
    }

    function changeRandomSource(uint _id, address _address) external onlyOwner {
        _randomSource[_id] = _address;
    }

    function shuffleSeeds(uint _seed, uint _max) external onlyOwner {
        uint shuffleCount = getSomeRandomNumber(_seed, _max);
        _randomIndex = uint16(shuffleCount);
        for (uint i = 0; i < shuffleCount; i++) {
            updateRandomIndex();
        }
    }

    function onERC721Received(
        address,
        address from,
        uint,
        bytes calldata
    ) external pure override returns (bytes4) {
        require(from == address(0x0), "Cannot send tokens to this contact directly");
        return IERC721Receiver.onERC721Received.selector;
    }
}

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

pragma solidity ^0.8.0;

import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./extensions/IERC721Metadata.sol";
import "../../utils/Address.sol";
import "../../utils/Context.sol";
import "../../utils/Strings.sol";
import "../../utils/introspection/ERC165.sol";

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

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

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

        string memory baseURI = _baseURI();
        return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return "";
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        require(operator != _msgSender(), "ERC721: approve to caller");

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

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

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, "");
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(from, to, tokenId);

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

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

        emit Transfer(from, to, tokenId);
    }

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

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

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

File 3 of 11 : 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 4 of 11 : 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 5 of 11 : 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 6 of 11 : 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 7 of 11 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Contract Security Audit

Contract ABI

[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"tokenId","type":"uint16"},{"indexed":false,"internalType":"uint256","name":"earned","type":"uint256"},{"indexed":false,"internalType":"bool","name":"unstaked","type":"bool"}],"name":"GoldMinerClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint16","name":"tokenId","type":"uint16"},{"indexed":false,"internalType":"uint256","name":"earned","type":"uint256"},{"indexed":false,"internalType":"bool","name":"unstaked","type":"bool"}],"name":"PirateClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint16","name":"tokenId","type":"uint16"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"TokenStaked","type":"event"},{"inputs":[],"name":"DAILY_GOLD_RATE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAXIMUM_GLOBAL_GOLD","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MINIMUM_TIME_TO_EXIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"TAX_PERCENTAGE","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"},{"internalType":"uint16[]","name":"tokenIds","type":"uint16[]"}],"name":"addTokensToStake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_id","type":"uint256"},{"internalType":"address","name":"_address","type":"address"}],"name":"changeRandomSource","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"tokenIds","type":"uint16[]"},{"internalType":"bool","name":"unstake","type":"bool"}],"name":"claimFromStake","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getAccountGoldMiners","outputs":[{"components":[{"internalType":"uint16","name":"tokenId","type":"uint16"},{"internalType":"uint80","name":"value","type":"uint80"},{"internalType":"address","name":"owner","type":"address"}],"internalType":"struct TreasureIsland.Stake[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"}],"name":"getAccountPirates","outputs":[{"components":[{"internalType":"uint16","name":"tokenId","type":"uint16"},{"internalType":"uint80","name":"value","type":"uint80"},{"internalType":"address","name":"owner","type":"address"}],"internalType":"struct TreasureIsland.Stake[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"gold","outputs":[{"internalType":"contract IGGold","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"goldHunter","outputs":[{"internalType":"contract IGoldHunter","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"goldMinerIndices","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"goldMinerStake","outputs":[{"internalType":"uint16","name":"tokenId","type":"uint16"},{"internalType":"uint80","name":"value","type":"uint80"},{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"lastClaimTimestamp","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"pirateHolders","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"pirateIndices","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pirateReward","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"uint256","name":"","type":"uint256"}],"name":"pirateStake","outputs":[{"internalType":"uint16","name":"tokenId","type":"uint16"},{"internalType":"uint80","name":"value","type":"uint80"},{"internalType":"address","name":"owner","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"randomPirateOwner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"tokenIds","type":"uint16[]"}],"name":"rescue","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"rescueEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_gold","type":"address"}],"name":"setGold","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_goldHunter","type":"address"}],"name":"setGoldHunter","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_state","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_enabled","type":"bool"}],"name":"setRescueEnabled","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_seed","type":"uint256"},{"internalType":"uint256","name":"_max","type":"uint256"}],"name":"shuffleSeeds","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"totalGoldEarned","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalGoldMinerStaked","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalPirateStaked","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":[],"name":"unaccountedRewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"}]

608060405260008060146101000a81548160ff02191690831515021790555060008060156101000a81548161ffff021916908361ffff16021790555060006001556000600b556000600c556000600f556000601060006101000a81548160ff0219169083151502179055503480156200007757600080fd5b50620000986200008c6200036e60201b60201c565b6200037660201b60201c565b73c02aaa39b223fe8d0a0e5c4f27ead9083c756cc26002600080815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550733cd751e6b0078be393132286c442345e5dc49699600260006001815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073b5d85cbf7cb3ee0d56b3bb207d5fc4b82f43f511600260006002815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073c098b2a3aa256d2140208c3de6543aaef5cd3a94600260006003815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055507328c6c06298d514db089934071355e5743bf21d60600260006004815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550732faf487a4414fe77e2327f0bf4ae2a264a776ad2600260006005815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555073267be1c1d684f78cb4f6a176c4911b741e4ffdc0600260006006815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506200043a565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b615734806200044a6000396000f3fe608060405234801561001057600080fd5b50600436106102115760003560e01c8063715018a611610125578063c66f88ff116100ad578063e13379dd1161007c578063e13379dd146105f6578063e21f4cbe14610614578063f15e2ae714610630578063f2fde38b14610662578063fbec6f211461067e57610211565b8063c66f88ff1461056e578063c7780bf01461058a578063cba52aef146105ba578063daef5fd7146105d857610211565b80638da5cb5b116100f45780638da5cb5b146104c85780638e038f6a146104e657806392b2422914610518578063ac28dbf114610534578063c0c472c01461055057610211565b8063715018a61461045457806372827bf71461045e578063765310081461048e5780637876ab0c146104aa57610211565b806335901544116101a85780634e96d94b116101775780634e96d94b146103c0578063552a8db3146103de5780635c975abb146103fa578063607af397146104185780636a3b30a51461043657610211565b8063359015441461033657806339db714f146103545780634cabaab8146103725780634e34b91b1461039057610211565b806316c38b3c116101e457806316c38b3c146102b05780631fdaba11146102cc57806321c8da9a146102ea5780632d83355e1461030657610211565b806303ba819d146102165780630520b7081461024657806313c43d7a14610262578063150b7a0214610280575b600080fd5b610230600480360381019061022b919061443d565b61069c565b60405161023d91906145ac565b60405180910390f35b610260600480360381019061025b919061443d565b6107e4565b005b61026a6108a4565b60405161027791906145e7565b60405180910390f35b61029a60048036038101906102959190614693565b6108aa565b6040516102a79190614756565b60405180910390f35b6102ca60048036038101906102c591906147a9565b61092d565b005b6102d46109c6565b6040516102e19190614835565b60405180910390f35b61030460048036038101906102ff91906148a6565b6109ec565b005b610320600480360381019061031b91906148f3565b61177d565b60405161032d919061492f565b60405180910390f35b61033e6117bc565b60405161034b91906145e7565b60405180910390f35b61035c6117c3565b6040516103699190614959565b60405180910390f35b61037a6117d6565b604051610387919061492f565b60405180910390f35b6103aa60048036038101906103a5919061443d565b611852565b6040516103b791906145ac565b60405180910390f35b6103c861199a565b6040516103d591906145e7565b60405180910390f35b6103f860048036038101906103f3919061443d565b6119a0565b005b610402611a60565b60405161040f9190614959565b60405180910390f35b610420611a76565b60405161042d91906145e7565b60405180910390f35b61043e611a7c565b60405161044b91906145e7565b60405180910390f35b61045c611a82565b005b610478600480360381019061047391906148f3565b611b0a565b60405161048591906145e7565b60405180910390f35b6104a860048036038101906104a391906147a9565b611b22565b005b6104b2611bbb565b6040516104bf91906145e7565b60405180910390f35b6104d0611bc0565b6040516104dd919061492f565b60405180910390f35b61050060048036038101906104fb9190614974565b611be9565b60405161050f939291906149d2565b60405180910390f35b610532600480360381019061052d9190614a09565b611c70565b005b61054e60048036038101906105499190614a49565b611d47565b005b610558611e19565b60405161056591906145e7565b60405180910390f35b61058860048036038101906105839190614a89565b611e1f565b005b6105a4600480360381019061059f91906148f3565b6120fb565b6040516105b191906145e7565b60405180910390f35b6105c2612113565b6040516105cf91906145e7565b60405180910390f35b6105e0612123565b6040516105ed91906145e7565b60405180910390f35b6105fe612131565b60405161060b91906145e7565b60405180910390f35b61062e60048036038101906106299190614ae9565b612137565b005b61064a60048036038101906106459190614974565b6125ef565b604051610659939291906149d2565b60405180910390f35b61067c6004803603810190610677919061443d565b612676565b005b61068661276e565b6040516106939190614b6a565b60405180910390f35b6060600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b828210156107d9578382906000526020600020016040518060600160405290816000820160009054906101000a900461ffff1661ffff1661ffff1681526020016000820160029054906101000a900469ffffffffffffffffffff1669ffffffffffffffffffff1669ffffffffffffffffffff16815260200160008201600c9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525050815260200190600101906106fd565b505050509050919050565b6107ec612794565b73ffffffffffffffffffffffffffffffffffffffff1661080a611bc0565b73ffffffffffffffffffffffffffffffffffffffff1614610860576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161085790614be2565b60405180910390fd5b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600b5481565b60008073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161461091a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161091190614c74565b60405180910390fd5b63150b7a0260e01b905095945050505050565b610935612794565b73ffffffffffffffffffffffffffffffffffffffff16610953611bc0565b73ffffffffffffffffffffffffffffffffffffffff16146109a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109a090614be2565b60405180910390fd5b80600060146101000a81548160ff02191690831515021790555050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b601060009054906101000a900460ff16610a3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3290614ce0565b60405180910390fd5b6000610a4561438e565b60005b848490508161ffff1610156117765784848261ffff16818110610a6e57610a6d614d00565b5b9050602002016020810190610a839190614d5b565b9250600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632c12395b846040518263ffffffff1660e01b8152600401610ae09190614d88565b60206040518083038186803b158015610af857600080fd5b505afa158015610b0c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b309190614db8565b61114957600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600560008561ffff1681526020019081526020016000205481548110610b9c57610b9b614d00565b5b906000526020600020016040518060600160405290816000820160009054906101000a900461ffff1661ffff1661ffff1681526020016000820160029054906101000a900469ffffffffffffffffffff1669ffffffffffffffffffff1669ffffffffffffffffffff16815260200160008201600c9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152505091503373ffffffffffffffffffffffffffffffffffffffff16826040015173ffffffffffffffffffffffffffffffffffffffff1614610cd3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cca90614e57565b60405180910390fd5b6001600a6000828254610ce69190614ea6565b925050819055506000600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050610d7d9190614ea6565b81548110610d8e57610d8d614d00565b5b906000526020600020016040518060600160405290816000820160009054906101000a900461ffff1661ffff1661ffff1681526020016000820160029054906101000a900469ffffffffffffffffffff1669ffffffffffffffffffff1669ffffffffffffffffffff16815260200160008201600c9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525050905080600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600560008761ffff1681526020019081526020016000205481548110610ebc57610ebb614d00565b5b9060005260206000200160008201518160000160006101000a81548161ffff021916908361ffff16021790555060208201518160000160026101000a81548169ffffffffffffffffffff021916908369ffffffffffffffffffff160217905550604082015181600001600c6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550905050600560008561ffff1681526020019081526020016000205460056000836000015161ffff16815260200190815260200160002081905550600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805480610fec57610feb614eda565b5b60019003818190600052602060002001600080820160006101000a81549061ffff02191690556000820160026101000a81549069ffffffffffffffffffff021916905560008201600c6101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905550509055600560008561ffff16815260200190815260200160002060009055600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b88d4fde3033876040518463ffffffff1660e01b81526004016110d493929190614f71565b600060405180830381600087803b1580156110ee57600080fd5b505af1158015611102573d6000803e3d6000fd5b505050507f52badf25eedd81953c35ef0626ed964cd022c56f5e795676440517b9844d61c1846000600160405161113b93929190614ff6565b60405180910390a150611763565b600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600760008561ffff16815260200190815260200160002054815481106111b1576111b0614d00565b5b906000526020600020016040518060600160405290816000820160009054906101000a900461ffff1661ffff1661ffff1681526020016000820160029054906101000a900469ffffffffffffffffffff1669ffffffffffffffffffff1669ffffffffffffffffffff16815260200160008201600c9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152505091503373ffffffffffffffffffffffffffffffffffffffff16826040015173ffffffffffffffffffffffffffffffffffffffff16146112e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112df90614e57565b60405180910390fd5b6001600b60008282546112fb9190614ea6565b925050819055506000600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490506113929190614ea6565b815481106113a3576113a2614d00565b5b906000526020600020016040518060600160405290816000820160009054906101000a900461ffff1661ffff1661ffff1681526020016000820160029054906101000a900469ffffffffffffffffffff1669ffffffffffffffffffff1669ffffffffffffffffffff16815260200160008201600c9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525050905080600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600760008761ffff16815260200190815260200160002054815481106114d1576114d0614d00565b5b9060005260206000200160008201518160000160006101000a81548161ffff021916908361ffff16021790555060208201518160000160026101000a81548169ffffffffffffffffffff021916908369ffffffffffffffffffff160217905550604082015181600001600c6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550905050600760008561ffff1681526020019081526020016000205460076000836000015161ffff16815260200190815260200160002081905550600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080548061160157611600614eda565b5b60019003818190600052602060002001600080820160006101000a81549061ffff02191690556000820160026101000a81549069ffffffffffffffffffff021916905560008201600c6101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905550509055600760008561ffff168152602001908152602001600020600090556116933361279c565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b88d4fde3033876040518463ffffffff1660e01b81526004016116f293929190614f71565b600060405180830381600087803b15801561170c57600080fd5b505af1158015611720573d6000803e3d6000fd5b505050507fa71974935662012c9b6ee2c300cf91babc58742dad5bfa6b95f011186d3812ae846000600160405161175993929190614ff6565b60405180910390a1505b808061176e9061502d565b915050610a48565b5050505050565b6009818154811061178d57600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6202a30081565b601060009054906101000a900460ff1681565b600080600b5414156117eb576000905061184f565b60006117fe600b54600980549050612988565b61ffff16905061180c612a8f565b600981815481106118205761181f614d00565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169150505b90565b6060600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b8282101561198f578382906000526020600020016040518060600160405290816000820160009054906101000a900461ffff1661ffff1661ffff1681526020016000820160029054906101000a900469ffffffffffffffffffff1669ffffffffffffffffffff1669ffffffffffffffffffff16815260200160008201600c9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525050815260200190600101906118b3565b505050509050919050565b600f5481565b6119a8612794565b73ffffffffffffffffffffffffffffffffffffffff166119c6611bc0565b73ffffffffffffffffffffffffffffffffffffffff1614611a1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a1390614be2565b60405180910390fd5b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008060149054906101000a900460ff16905090565b600e5481565b600d5481565b611a8a612794565b73ffffffffffffffffffffffffffffffffffffffff16611aa8611bc0565b73ffffffffffffffffffffffffffffffffffffffff1614611afe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611af590614be2565b60405180910390fd5b611b086000612b1f565b565b60076020528060005260406000206000915090505481565b611b2a612794565b73ffffffffffffffffffffffffffffffffffffffff16611b48611bc0565b73ffffffffffffffffffffffffffffffffffffffff1614611b9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b9590614be2565b60405180910390fd5b80601060006101000a81548160ff02191690831515021790555050565b601481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60086020528160005260406000208181548110611c0557600080fd5b90600052602060002001600091509150508060000160009054906101000a900461ffff16908060000160029054906101000a900469ffffffffffffffffffff169080600001600c9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905083565b611c78612794565b73ffffffffffffffffffffffffffffffffffffffff16611c96611bc0565b73ffffffffffffffffffffffffffffffffffffffff1614611cec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ce390614be2565b60405180910390fd5b6000611cf88383612988565b61ffff16905080600060156101000a81548161ffff021916908361ffff16021790555060005b81811015611d4157611d2e612a8f565b8080611d3990615058565b915050611d1e565b50505050565b611d4f612794565b73ffffffffffffffffffffffffffffffffffffffff16611d6d611bc0565b73ffffffffffffffffffffffffffffffffffffffff1614611dc3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dba90614be2565b60405180910390fd5b806002600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b600c5481565b611e27611a60565b15611e67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5e906150ed565b60405180910390fd5b6b07c13bc4b2c133c560000000600d541015611edb576201518069021e19e0c9bab2400000600a54600e5442611e9d9190614ea6565b611ea7919061510d565b611eb1919061510d565b611ebb9190615196565b600d6000828254611ecc91906151c7565b9250508190555042600e819055505b6000805b8484905081101561205557600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632c12395b868684818110611f3b57611f3a614d00565b5b9050602002016020810190611f509190614d5b565b6040518263ffffffff1660e01b8152600401611f6c9190614d88565b60206040518083038186803b158015611f8457600080fd5b505afa158015611f98573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fbc9190614db8565b61200357611ff1858583818110611fd657611fd5614d00565b5b9050602002016020810190611feb9190614d5b565b84612be3565b82611ffc91906151c7565b9150612042565b61203485858381811061201957612018614d00565b5b905060200201602081019061202e9190614d5b565b84613506565b8261203f91906151c7565b91505b808061204d90615058565b915050611edf565b50600081141561206557506120f6565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1933836040518363ffffffff1660e01b81526004016120c292919061521d565b600060405180830381600087803b1580156120dc57600080fd5b505af11580156120f0573d6000803e3d6000fd5b50505050505b505050565b60056020528060005260406000206000915090505481565b6b07c13bc4b2c133c56000000081565b69021e19e0c9bab240000081565b600a5481565b3373ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614806121be5750600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6121fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121f4906152b8565b60405180910390fd5b60005b828290508110156125e957600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461245c573373ffffffffffffffffffffffffffffffffffffffff16600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e8585858181106122c8576122c7614d00565b5b90506020020160208101906122dd9190614d5b565b6040518263ffffffff1660e01b81526004016122f991906152d8565b60206040518083038186803b15801561231157600080fd5b505afa158015612325573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123499190615308565b73ffffffffffffffffffffffffffffffffffffffff161461239f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161239690614e57565b60405180910390fd5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd33308686868181106123f2576123f1614d00565b5b90506020020160208101906124079190614d5b565b6040518463ffffffff1660e01b815260040161242593929190615335565b600060405180830381600087803b15801561243f57600080fd5b505af1158015612453573d6000803e3d6000fd5b50505050612496565b600083838381811061247157612470614d00565b5b90506020020160208101906124869190614d5b565b61ffff161415612495576125d6565b5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632c12395b8484848181106124e7576124e6614d00565b5b90506020020160208101906124fc9190614d5b565b6040518263ffffffff1660e01b81526004016125189190614d88565b60206040518083038186803b15801561253057600080fd5b505afa158015612544573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125689190614db8565b156125a35761259e8484848481811061258457612583614d00565b5b90506020020160208101906125999190614d5b565b613dc1565b6125d5565b6125d4848484848181106125ba576125b9614d00565b5b90506020020160208101906125cf9190614d5b565b61406f565b5b5b80806125e190615058565b915050612200565b50505050565b6006602052816000526040600020818154811061260b57600080fd5b90600052602060002001600091509150508060000160009054906101000a900461ffff16908060000160029054906101000a900469ffffffffffffffffffff169080600001600c9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905083565b61267e612794565b73ffffffffffffffffffffffffffffffffffffffff1661269c611bc0565b73ffffffffffffffffffffffffffffffffffffffff16146126f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126e990614be2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612762576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612759906153de565b60405180910390fd5b61276b81612b1f565b50565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600033905090565b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050146127eb57612985565b6000600960016009805490506128019190614ea6565b8154811061281257612811614d00565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506000805b6009805490508110156128dd578373ffffffffffffffffffffffffffffffffffffffff166009828154811061287b5761287a614d00565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156128ca578091506128dd565b80806128d590615058565b915050612843565b5081600982815481106128f3576128f2614d00565b5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600980548061294d5761294c614eda565b5b6001900381819060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055905550505b50565b6000806000905060005b60078161ffff161015612a1d57600260008060159054906101000a900461ffff1661ffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163182612a0891906151c7565b91508080612a159061502d565b915050612992565b50600084600143612a2e9190614ea6565b4041443386600154600060159054906101000a900461ffff16604051602001612a5e989796959493929190615503565b6040516020818303038152906040528051906020012060001c90508381612a859190615595565b9250505092915050565b6001600060158282829054906101000a900461ffff16612aaf91906155c6565b92506101000a81548161ffff021916908361ffff1602179055506001806000828254612adb91906151c7565b925050819055506006600060159054906101000a900461ffff1661ffff161115612b1d5760008060156101000a81548161ffff021916908361ffff1602179055505b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600560008661ffff1681526020019081526020016000205481548110612c4e57612c4d614d00565b5b906000526020600020016040518060600160405290816000820160009054906101000a900461ffff1661ffff1661ffff1681526020016000820160029054906101000a900469ffffffffffffffffffff1669ffffffffffffffffffff1669ffffffffffffffffffff16815260200160008201600c9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152505090503373ffffffffffffffffffffffffffffffffffffffff16816040015173ffffffffffffffffffffffffffffffffffffffff1614612d85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d7c90614e57565b60405180910390fd5b828015612daf57506202a300816020015169ffffffffffffffffffff1642612dad9190614ea6565b105b15612def576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612de690615670565b60405180910390fd5b6b07c13bc4b2c133c560000000600d541015612e4b576201518069021e19e0c9bab2400000826020015169ffffffffffffffffffff1642612e309190614ea6565b612e3a919061510d565b612e449190615196565b9150612eb3565b600e54816020015169ffffffffffffffffffff161115612e6e5760009150612eb2565b6201518069021e19e0c9bab2400000826020015169ffffffffffffffffffff16600e54612e9b9190614ea6565b612ea5919061510d565b612eaf9190615196565b91505b5b8215613322576032612eca8561ffff166064612988565b61ffff1611612ee157612edc82614326565b600091505b612ee9612a8f565b6001600a6000828254612efc9190614ea6565b925050819055506000600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050612f939190614ea6565b81548110612fa457612fa3614d00565b5b906000526020600020016040518060600160405290816000820160009054906101000a900461ffff1661ffff1661ffff1681526020016000820160029054906101000a900469ffffffffffffffffffff1669ffffffffffffffffffff1669ffffffffffffffffffff16815260200160008201600c9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525050905080600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600560008861ffff16815260200190815260200160002054815481106130d2576130d1614d00565b5b9060005260206000200160008201518160000160006101000a81548161ffff021916908361ffff16021790555060208201518160000160026101000a81548169ffffffffffffffffffff021916908369ffffffffffffffffffff160217905550604082015181600001600c6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550905050600560008661ffff1681526020019081526020016000205460056000836000015161ffff16815260200190815260200160002081905550600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080548061320257613201614eda565b5b60019003818190600052602060002001600080820160006101000a81549061ffff02191690556000820160026101000a81549069ffffffffffffffffffff021916905560008201600c6101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905550509055600560008661ffff16815260200190815260200160002060009055600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b88d4fde3033886040518463ffffffff1660e01b81526004016132ea93929190614f71565b600060405180830381600087803b15801561330457600080fd5b505af1158015613318573d6000803e3d6000fd5b50505050506134c4565b6133436064601484613334919061510d565b61333e9190615196565b614326565b6064601460646133539190614ea6565b8361335e919061510d565b6133689190615196565b9150600042905060405180606001604052808661ffff1681526020018269ffffffffffffffffffff1681526020013373ffffffffffffffffffffffffffffffffffffffff16815250600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600560008861ffff168152602001908152602001600020548154811061341857613417614d00565b5b9060005260206000200160008201518160000160006101000a81548161ffff021916908361ffff16021790555060208201518160000160026101000a81548169ffffffffffffffffffff021916908369ffffffffffffffffffff160217905550604082015181600001600c6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550905050505b7f52badf25eedd81953c35ef0626ed964cd022c56f5e795676440517b9844d61c18483856040516134f793929190615690565b60405180910390a15092915050565b60003073ffffffffffffffffffffffffffffffffffffffff16600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e856040518263ffffffff1660e01b815260040161357a91906152d8565b60206040518083038186803b15801561359257600080fd5b505afa1580156135a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135ca9190615308565b73ffffffffffffffffffffffffffffffffffffffff1614613620576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161361790614e57565b60405180910390fd5b6000600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600760008661ffff168152602001908152602001600020548154811061368a57613689614d00565b5b906000526020600020016040518060600160405290816000820160009054906101000a900461ffff1661ffff1661ffff1681526020016000820160029054906101000a900469ffffffffffffffffffff1669ffffffffffffffffffff1669ffffffffffffffffffff16815260200160008201600c9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152505090503373ffffffffffffffffffffffffffffffffffffffff16816040015173ffffffffffffffffffffffffffffffffffffffff16146137c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137b890614e57565b60405180910390fd5b806020015169ffffffffffffffffffff16600f546137df9190614ea6565b91508215613c29576001600b60008282546137fa9190614ea6565b925050819055506000600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490506138919190614ea6565b815481106138a2576138a1614d00565b5b906000526020600020016040518060600160405290816000820160009054906101000a900461ffff1661ffff1661ffff1681526020016000820160029054906101000a900469ffffffffffffffffffff1669ffffffffffffffffffff1669ffffffffffffffffffff16815260200160008201600c9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525050905080600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600760008861ffff16815260200190815260200160002054815481106139d0576139cf614d00565b5b9060005260206000200160008201518160000160006101000a81548161ffff021916908361ffff16021790555060208201518160000160026101000a81548169ffffffffffffffffffff021916908369ffffffffffffffffffff160217905550604082015181600001600c6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550905050600760008661ffff1681526020019081526020016000205460076000836000015161ffff16815260200190815260200160002081905550600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805480613b0057613aff614eda565b5b60019003818190600052602060002001600080820160006101000a81549061ffff02191690556000820160026101000a81549069ffffffffffffffffffff021916905560008201600c6101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905550509055600760008661ffff16815260200190815260200160002060009055613b923361279c565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b88d4fde3033886040518463ffffffff1660e01b8152600401613bf193929190614f71565b600060405180830381600087803b158015613c0b57600080fd5b505af1158015613c1f573d6000803e3d6000fd5b5050505050613d7f565b60405180606001604052808561ffff168152602001600f5469ffffffffffffffffffff1681526020013373ffffffffffffffffffffffffffffffffffffffff16815250600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600760008761ffff1681526020019081526020016000205481548110613cd457613cd3614d00565b5b9060005260206000200160008201518160000160006101000a81548161ffff021916908361ffff16021790555060208201518160000160026101000a81548169ffffffffffffffffffff021916908369ffffffffffffffffffff160217905550604082015181600001600c6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055509050505b7fa71974935662012c9b6ee2c300cf91babc58742dad5bfa6b95f011186d3812ae848385604051613db293929190615690565b60405180910390a15092915050565b6001600b6000828254613dd491906151c7565b925050819055506000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490501415613e8a576009829080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050600760008361ffff16815260200190815260200160002081905550600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060405180606001604052808361ffff168152602001600f5469ffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff168152509080600181540180825580915050600190039060005260206000200160009091909190915060008201518160000160006101000a81548161ffff021916908361ffff16021790555060208201518160000160026101000a81548169ffffffffffffffffffff021916908369ffffffffffffffffffff160217905550604082015181600001600c6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050507fb63b627c974e2e49662cbe7483456424812c95b6048065861b08af2eff4726b78282600f54604051614063939291906156c7565b60405180910390a15050565b614077611a60565b156140b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016140ae906150ed565b60405180910390fd5b6b07c13bc4b2c133c560000000600d54101561412b576201518069021e19e0c9bab2400000600a54600e54426140ed9190614ea6565b6140f7919061510d565b614101919061510d565b61410b9190615196565b600d600082825461411c91906151c7565b9250508190555042600e819055505b6001600a600082825461413e91906151c7565b92505081905550600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050600560008361ffff16815260200190815260200160002081905550600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060405180606001604052808361ffff1681526020014269ffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff168152509080600181540180825580915050600190039060005260206000200160009091909190915060008201518160000160006101000a81548161ffff021916908361ffff16021790555060208201518160000160026101000a81548169ffffffffffffffffffff021916908369ffffffffffffffffffff160217905550604082015181600001600c6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050507fb63b627c974e2e49662cbe7483456424812c95b6048065861b08af2eff4726b782824260405161431a939291906156c7565b60405180910390a15050565b6000600b54141561434f5780600c600082825461434391906151c7565b9250508190555061438b565b600b54600c548261436091906151c7565b61436a9190615196565b600f600082825461437b91906151c7565b925050819055506000600c819055505b50565b6040518060600160405280600061ffff168152602001600069ffffffffffffffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff1681525090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061440a826143df565b9050919050565b61441a816143ff565b811461442557600080fd5b50565b60008135905061443781614411565b92915050565b600060208284031215614453576144526143d5565b5b600061446184828501614428565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600061ffff82169050919050565b6144ad81614496565b82525050565b600069ffffffffffffffffffff82169050919050565b6144d2816144b3565b82525050565b6144e1816143ff565b82525050565b6060820160008201516144fd60008501826144a4565b50602082015161451060208501826144c9565b50604082015161452360408501826144d8565b50505050565b600061453583836144e7565b60608301905092915050565b6000602082019050919050565b60006145598261446a565b6145638185614475565b935061456e83614486565b8060005b8381101561459f5781516145868882614529565b975061459183614541565b925050600181019050614572565b5085935050505092915050565b600060208201905081810360008301526145c6818461454e565b905092915050565b6000819050919050565b6145e1816145ce565b82525050565b60006020820190506145fc60008301846145d8565b92915050565b61460b816145ce565b811461461657600080fd5b50565b60008135905061462881614602565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126146535761465261462e565b5b8235905067ffffffffffffffff8111156146705761466f614633565b5b60208301915083600182028301111561468c5761468b614638565b5b9250929050565b6000806000806000608086880312156146af576146ae6143d5565b5b60006146bd88828901614428565b95505060206146ce88828901614428565b94505060406146df88828901614619565b935050606086013567ffffffffffffffff811115614700576146ff6143da565b5b61470c8882890161463d565b92509250509295509295909350565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6147508161471b565b82525050565b600060208201905061476b6000830184614747565b92915050565b60008115159050919050565b61478681614771565b811461479157600080fd5b50565b6000813590506147a38161477d565b92915050565b6000602082840312156147bf576147be6143d5565b5b60006147cd84828501614794565b91505092915050565b6000819050919050565b60006147fb6147f66147f1846143df565b6147d6565b6143df565b9050919050565b600061480d826147e0565b9050919050565b600061481f82614802565b9050919050565b61482f81614814565b82525050565b600060208201905061484a6000830184614826565b92915050565b60008083601f8401126148665761486561462e565b5b8235905067ffffffffffffffff81111561488357614882614633565b5b60208301915083602082028301111561489f5761489e614638565b5b9250929050565b600080602083850312156148bd576148bc6143d5565b5b600083013567ffffffffffffffff8111156148db576148da6143da565b5b6148e785828601614850565b92509250509250929050565b600060208284031215614909576149086143d5565b5b600061491784828501614619565b91505092915050565b614929816143ff565b82525050565b60006020820190506149446000830184614920565b92915050565b61495381614771565b82525050565b600060208201905061496e600083018461494a565b92915050565b6000806040838503121561498b5761498a6143d5565b5b600061499985828601614428565b92505060206149aa85828601614619565b9150509250929050565b6149bd81614496565b82525050565b6149cc816144b3565b82525050565b60006060820190506149e760008301866149b4565b6149f460208301856149c3565b614a016040830184614920565b949350505050565b60008060408385031215614a2057614a1f6143d5565b5b6000614a2e85828601614619565b9250506020614a3f85828601614619565b9150509250929050565b60008060408385031215614a6057614a5f6143d5565b5b6000614a6e85828601614619565b9250506020614a7f85828601614428565b9150509250929050565b600080600060408486031215614aa257614aa16143d5565b5b600084013567ffffffffffffffff811115614ac057614abf6143da565b5b614acc86828701614850565b93509350506020614adf86828701614794565b9150509250925092565b600080600060408486031215614b0257614b016143d5565b5b6000614b1086828701614428565b935050602084013567ffffffffffffffff811115614b3157614b306143da565b5b614b3d86828701614850565b92509250509250925092565b6000614b5482614802565b9050919050565b614b6481614b49565b82525050565b6000602082019050614b7f6000830184614b5b565b92915050565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614bcc602083614b85565b9150614bd782614b96565b602082019050919050565b60006020820190508181036000830152614bfb81614bbf565b9050919050565b7f43616e6e6f742073656e6420746f6b656e7320746f207468697320636f6e746160008201527f6374206469726563746c79000000000000000000000000000000000000000000602082015250565b6000614c5e602b83614b85565b9150614c6982614c02565b604082019050919050565b60006020820190508181036000830152614c8d81614c51565b9050919050565b7f5265736375652064697361626c65640000000000000000000000000000000000600082015250565b6000614cca600f83614b85565b9150614cd582614c94565b602082019050919050565b60006020820190508181036000830152614cf981614cbd565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b614d3881614496565b8114614d4357600080fd5b50565b600081359050614d5581614d2f565b92915050565b600060208284031215614d7157614d706143d5565b5b6000614d7f84828501614d46565b91505092915050565b6000602082019050614d9d60008301846149b4565b92915050565b600081519050614db28161477d565b92915050565b600060208284031215614dce57614dcd6143d5565b5b6000614ddc84828501614da3565b91505092915050565b7f54686973204e544620646f6573206e6f742062656c6f6e6720746f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000614e41602383614b85565b9150614e4c82614de5565b604082019050919050565b60006020820190508181036000830152614e7081614e34565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614eb1826145ce565b9150614ebc836145ce565b925082821015614ecf57614ece614e77565b5b828203905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6000614f24614f1f614f1a84614496565b6147d6565b6145ce565b9050919050565b614f3481614f09565b82525050565b600082825260208201905092915050565b50565b6000614f5b600083614f3a565b9150614f6682614f4b565b600082019050919050565b6000608082019050614f866000830186614920565b614f936020830185614920565b614fa06040830184614f2b565b8181036060830152614fb181614f4e565b9050949350505050565b6000819050919050565b6000614fe0614fdb614fd684614fbb565b6147d6565b6145ce565b9050919050565b614ff081614fc5565b82525050565b600060608201905061500b60008301866149b4565b6150186020830185614fe7565b615025604083018461494a565b949350505050565b600061503882614496565b915061ffff82141561504d5761504c614e77565b5b600182019050919050565b6000615063826145ce565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561509657615095614e77565b5b600182019050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b60006150d7601083614b85565b91506150e2826150a1565b602082019050919050565b60006020820190508181036000830152615106816150ca565b9050919050565b6000615118826145ce565b9150615123836145ce565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561515c5761515b614e77565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006151a1826145ce565b91506151ac836145ce565b9250826151bc576151bb615167565b5b828204905092915050565b60006151d2826145ce565b91506151dd836145ce565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561521257615211614e77565b5b828201905092915050565b60006040820190506152326000830185614920565b61523f60208301846145d8565b9392505050565b7f596f7520646f206e6f7420686176652061207065726d697373696f6e20746f2060008201527f646f207468617400000000000000000000000000000000000000000000000000602082015250565b60006152a2602783614b85565b91506152ad82615246565b604082019050919050565b600060208201905081810360008301526152d181615295565b9050919050565b60006020820190506152ed6000830184614f2b565b92915050565b60008151905061530281614411565b92915050565b60006020828403121561531e5761531d6143d5565b5b600061532c848285016152f3565b91505092915050565b600060608201905061534a6000830186614920565b6153576020830185614920565b6153646040830184614f2b565b949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006153c8602683614b85565b91506153d38261536c565b604082019050919050565b600060208201905081810360008301526153f7816153bb565b9050919050565b6000819050919050565b615419615414826145ce565b6153fe565b82525050565b6000819050919050565b6000819050919050565b61544461543f8261541f565b615429565b82525050565b6000615455826143df565b9050919050565b60008160601b9050919050565b60006154748261545c565b9050919050565b600061548682615469565b9050919050565b61549e6154998261544a565b61547b565b82525050565b60006154af82615469565b9050919050565b6154c76154c2826143ff565b6154a4565b82525050565b60008160f01b9050919050565b60006154e5826154cd565b9050919050565b6154fd6154f882614496565b6154da565b82525050565b600061550f828b615408565b60208201915061551f828a615433565b60208201915061552f828961548d565b60148201915061553f8288615408565b60208201915061554f82876154b6565b60148201915061555f8286615408565b60208201915061556f8285615408565b60208201915061557f82846154ec565b6002820191508190509998505050505050505050565b60006155a0826145ce565b91506155ab836145ce565b9250826155bb576155ba615167565b5b828206905092915050565b60006155d182614496565b91506155dc83614496565b92508261ffff038211156155f3576155f2614e77565b5b828201905092915050565b7f4e65656420746f2077616974203220646179732073696e6365206c617374206360008201527f6c61696d00000000000000000000000000000000000000000000000000000000602082015250565b600061565a602483614b85565b9150615665826155fe565b604082019050919050565b600060208201905081810360008301526156898161564d565b9050919050565b60006060820190506156a560008301866149b4565b6156b260208301856145d8565b6156bf604083018461494a565b949350505050565b60006060820190506156dc6000830186614920565b6156e960208301856149b4565b6156f660408301846145d8565b94935050505056fea26469706673582212206617eedaaaeb79dc7c7cfc4adfcb4a916e3686bda9d6585c69a9620bca10835164736f6c63430008090033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106102115760003560e01c8063715018a611610125578063c66f88ff116100ad578063e13379dd1161007c578063e13379dd146105f6578063e21f4cbe14610614578063f15e2ae714610630578063f2fde38b14610662578063fbec6f211461067e57610211565b8063c66f88ff1461056e578063c7780bf01461058a578063cba52aef146105ba578063daef5fd7146105d857610211565b80638da5cb5b116100f45780638da5cb5b146104c85780638e038f6a146104e657806392b2422914610518578063ac28dbf114610534578063c0c472c01461055057610211565b8063715018a61461045457806372827bf71461045e578063765310081461048e5780637876ab0c146104aa57610211565b806335901544116101a85780634e96d94b116101775780634e96d94b146103c0578063552a8db3146103de5780635c975abb146103fa578063607af397146104185780636a3b30a51461043657610211565b8063359015441461033657806339db714f146103545780634cabaab8146103725780634e34b91b1461039057610211565b806316c38b3c116101e457806316c38b3c146102b05780631fdaba11146102cc57806321c8da9a146102ea5780632d83355e1461030657610211565b806303ba819d146102165780630520b7081461024657806313c43d7a14610262578063150b7a0214610280575b600080fd5b610230600480360381019061022b919061443d565b61069c565b60405161023d91906145ac565b60405180910390f35b610260600480360381019061025b919061443d565b6107e4565b005b61026a6108a4565b60405161027791906145e7565b60405180910390f35b61029a60048036038101906102959190614693565b6108aa565b6040516102a79190614756565b60405180910390f35b6102ca60048036038101906102c591906147a9565b61092d565b005b6102d46109c6565b6040516102e19190614835565b60405180910390f35b61030460048036038101906102ff91906148a6565b6109ec565b005b610320600480360381019061031b91906148f3565b61177d565b60405161032d919061492f565b60405180910390f35b61033e6117bc565b60405161034b91906145e7565b60405180910390f35b61035c6117c3565b6040516103699190614959565b60405180910390f35b61037a6117d6565b604051610387919061492f565b60405180910390f35b6103aa60048036038101906103a5919061443d565b611852565b6040516103b791906145ac565b60405180910390f35b6103c861199a565b6040516103d591906145e7565b60405180910390f35b6103f860048036038101906103f3919061443d565b6119a0565b005b610402611a60565b60405161040f9190614959565b60405180910390f35b610420611a76565b60405161042d91906145e7565b60405180910390f35b61043e611a7c565b60405161044b91906145e7565b60405180910390f35b61045c611a82565b005b610478600480360381019061047391906148f3565b611b0a565b60405161048591906145e7565b60405180910390f35b6104a860048036038101906104a391906147a9565b611b22565b005b6104b2611bbb565b6040516104bf91906145e7565b60405180910390f35b6104d0611bc0565b6040516104dd919061492f565b60405180910390f35b61050060048036038101906104fb9190614974565b611be9565b60405161050f939291906149d2565b60405180910390f35b610532600480360381019061052d9190614a09565b611c70565b005b61054e60048036038101906105499190614a49565b611d47565b005b610558611e19565b60405161056591906145e7565b60405180910390f35b61058860048036038101906105839190614a89565b611e1f565b005b6105a4600480360381019061059f91906148f3565b6120fb565b6040516105b191906145e7565b60405180910390f35b6105c2612113565b6040516105cf91906145e7565b60405180910390f35b6105e0612123565b6040516105ed91906145e7565b60405180910390f35b6105fe612131565b60405161060b91906145e7565b60405180910390f35b61062e60048036038101906106299190614ae9565b612137565b005b61064a60048036038101906106459190614974565b6125ef565b604051610659939291906149d2565b60405180910390f35b61067c6004803603810190610677919061443d565b612676565b005b61068661276e565b6040516106939190614b6a565b60405180910390f35b6060600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b828210156107d9578382906000526020600020016040518060600160405290816000820160009054906101000a900461ffff1661ffff1661ffff1681526020016000820160029054906101000a900469ffffffffffffffffffff1669ffffffffffffffffffff1669ffffffffffffffffffff16815260200160008201600c9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525050815260200190600101906106fd565b505050509050919050565b6107ec612794565b73ffffffffffffffffffffffffffffffffffffffff1661080a611bc0565b73ffffffffffffffffffffffffffffffffffffffff1614610860576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161085790614be2565b60405180910390fd5b80600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600b5481565b60008073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161461091a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161091190614c74565b60405180910390fd5b63150b7a0260e01b905095945050505050565b610935612794565b73ffffffffffffffffffffffffffffffffffffffff16610953611bc0565b73ffffffffffffffffffffffffffffffffffffffff16146109a9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109a090614be2565b60405180910390fd5b80600060146101000a81548160ff02191690831515021790555050565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b601060009054906101000a900460ff16610a3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3290614ce0565b60405180910390fd5b6000610a4561438e565b60005b848490508161ffff1610156117765784848261ffff16818110610a6e57610a6d614d00565b5b9050602002016020810190610a839190614d5b565b9250600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632c12395b846040518263ffffffff1660e01b8152600401610ae09190614d88565b60206040518083038186803b158015610af857600080fd5b505afa158015610b0c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b309190614db8565b61114957600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600560008561ffff1681526020019081526020016000205481548110610b9c57610b9b614d00565b5b906000526020600020016040518060600160405290816000820160009054906101000a900461ffff1661ffff1661ffff1681526020016000820160029054906101000a900469ffffffffffffffffffff1669ffffffffffffffffffff1669ffffffffffffffffffff16815260200160008201600c9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152505091503373ffffffffffffffffffffffffffffffffffffffff16826040015173ffffffffffffffffffffffffffffffffffffffff1614610cd3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cca90614e57565b60405180910390fd5b6001600a6000828254610ce69190614ea6565b925050819055506000600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050610d7d9190614ea6565b81548110610d8e57610d8d614d00565b5b906000526020600020016040518060600160405290816000820160009054906101000a900461ffff1661ffff1661ffff1681526020016000820160029054906101000a900469ffffffffffffffffffff1669ffffffffffffffffffff1669ffffffffffffffffffff16815260200160008201600c9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525050905080600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600560008761ffff1681526020019081526020016000205481548110610ebc57610ebb614d00565b5b9060005260206000200160008201518160000160006101000a81548161ffff021916908361ffff16021790555060208201518160000160026101000a81548169ffffffffffffffffffff021916908369ffffffffffffffffffff160217905550604082015181600001600c6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550905050600560008561ffff1681526020019081526020016000205460056000836000015161ffff16815260200190815260200160002081905550600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805480610fec57610feb614eda565b5b60019003818190600052602060002001600080820160006101000a81549061ffff02191690556000820160026101000a81549069ffffffffffffffffffff021916905560008201600c6101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905550509055600560008561ffff16815260200190815260200160002060009055600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b88d4fde3033876040518463ffffffff1660e01b81526004016110d493929190614f71565b600060405180830381600087803b1580156110ee57600080fd5b505af1158015611102573d6000803e3d6000fd5b505050507f52badf25eedd81953c35ef0626ed964cd022c56f5e795676440517b9844d61c1846000600160405161113b93929190614ff6565b60405180910390a150611763565b600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600760008561ffff16815260200190815260200160002054815481106111b1576111b0614d00565b5b906000526020600020016040518060600160405290816000820160009054906101000a900461ffff1661ffff1661ffff1681526020016000820160029054906101000a900469ffffffffffffffffffff1669ffffffffffffffffffff1669ffffffffffffffffffff16815260200160008201600c9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152505091503373ffffffffffffffffffffffffffffffffffffffff16826040015173ffffffffffffffffffffffffffffffffffffffff16146112e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112df90614e57565b60405180910390fd5b6001600b60008282546112fb9190614ea6565b925050819055506000600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490506113929190614ea6565b815481106113a3576113a2614d00565b5b906000526020600020016040518060600160405290816000820160009054906101000a900461ffff1661ffff1661ffff1681526020016000820160029054906101000a900469ffffffffffffffffffff1669ffffffffffffffffffff1669ffffffffffffffffffff16815260200160008201600c9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525050905080600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600760008761ffff16815260200190815260200160002054815481106114d1576114d0614d00565b5b9060005260206000200160008201518160000160006101000a81548161ffff021916908361ffff16021790555060208201518160000160026101000a81548169ffffffffffffffffffff021916908369ffffffffffffffffffff160217905550604082015181600001600c6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550905050600760008561ffff1681526020019081526020016000205460076000836000015161ffff16815260200190815260200160002081905550600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080548061160157611600614eda565b5b60019003818190600052602060002001600080820160006101000a81549061ffff02191690556000820160026101000a81549069ffffffffffffffffffff021916905560008201600c6101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905550509055600760008561ffff168152602001908152602001600020600090556116933361279c565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b88d4fde3033876040518463ffffffff1660e01b81526004016116f293929190614f71565b600060405180830381600087803b15801561170c57600080fd5b505af1158015611720573d6000803e3d6000fd5b505050507fa71974935662012c9b6ee2c300cf91babc58742dad5bfa6b95f011186d3812ae846000600160405161175993929190614ff6565b60405180910390a1505b808061176e9061502d565b915050610a48565b5050505050565b6009818154811061178d57600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6202a30081565b601060009054906101000a900460ff1681565b600080600b5414156117eb576000905061184f565b60006117fe600b54600980549050612988565b61ffff16905061180c612a8f565b600981815481106118205761181f614d00565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169150505b90565b6060600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805480602002602001604051908101604052809291908181526020016000905b8282101561198f578382906000526020600020016040518060600160405290816000820160009054906101000a900461ffff1661ffff1661ffff1681526020016000820160029054906101000a900469ffffffffffffffffffff1669ffffffffffffffffffff1669ffffffffffffffffffff16815260200160008201600c9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525050815260200190600101906118b3565b505050509050919050565b600f5481565b6119a8612794565b73ffffffffffffffffffffffffffffffffffffffff166119c6611bc0565b73ffffffffffffffffffffffffffffffffffffffff1614611a1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a1390614be2565b60405180910390fd5b80600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60008060149054906101000a900460ff16905090565b600e5481565b600d5481565b611a8a612794565b73ffffffffffffffffffffffffffffffffffffffff16611aa8611bc0565b73ffffffffffffffffffffffffffffffffffffffff1614611afe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611af590614be2565b60405180910390fd5b611b086000612b1f565b565b60076020528060005260406000206000915090505481565b611b2a612794565b73ffffffffffffffffffffffffffffffffffffffff16611b48611bc0565b73ffffffffffffffffffffffffffffffffffffffff1614611b9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b9590614be2565b60405180910390fd5b80601060006101000a81548160ff02191690831515021790555050565b601481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60086020528160005260406000208181548110611c0557600080fd5b90600052602060002001600091509150508060000160009054906101000a900461ffff16908060000160029054906101000a900469ffffffffffffffffffff169080600001600c9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905083565b611c78612794565b73ffffffffffffffffffffffffffffffffffffffff16611c96611bc0565b73ffffffffffffffffffffffffffffffffffffffff1614611cec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ce390614be2565b60405180910390fd5b6000611cf88383612988565b61ffff16905080600060156101000a81548161ffff021916908361ffff16021790555060005b81811015611d4157611d2e612a8f565b8080611d3990615058565b915050611d1e565b50505050565b611d4f612794565b73ffffffffffffffffffffffffffffffffffffffff16611d6d611bc0565b73ffffffffffffffffffffffffffffffffffffffff1614611dc3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dba90614be2565b60405180910390fd5b806002600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b600c5481565b611e27611a60565b15611e67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e5e906150ed565b60405180910390fd5b6b07c13bc4b2c133c560000000600d541015611edb576201518069021e19e0c9bab2400000600a54600e5442611e9d9190614ea6565b611ea7919061510d565b611eb1919061510d565b611ebb9190615196565b600d6000828254611ecc91906151c7565b9250508190555042600e819055505b6000805b8484905081101561205557600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632c12395b868684818110611f3b57611f3a614d00565b5b9050602002016020810190611f509190614d5b565b6040518263ffffffff1660e01b8152600401611f6c9190614d88565b60206040518083038186803b158015611f8457600080fd5b505afa158015611f98573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fbc9190614db8565b61200357611ff1858583818110611fd657611fd5614d00565b5b9050602002016020810190611feb9190614d5b565b84612be3565b82611ffc91906151c7565b9150612042565b61203485858381811061201957612018614d00565b5b905060200201602081019061202e9190614d5b565b84613506565b8261203f91906151c7565b91505b808061204d90615058565b915050611edf565b50600081141561206557506120f6565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1933836040518363ffffffff1660e01b81526004016120c292919061521d565b600060405180830381600087803b1580156120dc57600080fd5b505af11580156120f0573d6000803e3d6000fd5b50505050505b505050565b60056020528060005260406000206000915090505481565b6b07c13bc4b2c133c56000000081565b69021e19e0c9bab240000081565b600a5481565b3373ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614806121be5750600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b6121fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121f4906152b8565b60405180910390fd5b60005b828290508110156125e957600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff161461245c573373ffffffffffffffffffffffffffffffffffffffff16600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e8585858181106122c8576122c7614d00565b5b90506020020160208101906122dd9190614d5b565b6040518263ffffffff1660e01b81526004016122f991906152d8565b60206040518083038186803b15801561231157600080fd5b505afa158015612325573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123499190615308565b73ffffffffffffffffffffffffffffffffffffffff161461239f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161239690614e57565b60405180910390fd5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166323b872dd33308686868181106123f2576123f1614d00565b5b90506020020160208101906124079190614d5b565b6040518463ffffffff1660e01b815260040161242593929190615335565b600060405180830381600087803b15801561243f57600080fd5b505af1158015612453573d6000803e3d6000fd5b50505050612496565b600083838381811061247157612470614d00565b5b90506020020160208101906124869190614d5b565b61ffff161415612495576125d6565b5b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16632c12395b8484848181106124e7576124e6614d00565b5b90506020020160208101906124fc9190614d5b565b6040518263ffffffff1660e01b81526004016125189190614d88565b60206040518083038186803b15801561253057600080fd5b505afa158015612544573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125689190614db8565b156125a35761259e8484848481811061258457612583614d00565b5b90506020020160208101906125999190614d5b565b613dc1565b6125d5565b6125d4848484848181106125ba576125b9614d00565b5b90506020020160208101906125cf9190614d5b565b61406f565b5b5b80806125e190615058565b915050612200565b50505050565b6006602052816000526040600020818154811061260b57600080fd5b90600052602060002001600091509150508060000160009054906101000a900461ffff16908060000160029054906101000a900469ffffffffffffffffffff169080600001600c9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905083565b61267e612794565b73ffffffffffffffffffffffffffffffffffffffff1661269c611bc0565b73ffffffffffffffffffffffffffffffffffffffff16146126f2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126e990614be2565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612762576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612759906153de565b60405180910390fd5b61276b81612b1f565b50565b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600033905090565b6000600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050146127eb57612985565b6000600960016009805490506128019190614ea6565b8154811061281257612811614d00565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506000805b6009805490508110156128dd578373ffffffffffffffffffffffffffffffffffffffff166009828154811061287b5761287a614d00565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156128ca578091506128dd565b80806128d590615058565b915050612843565b5081600982815481106128f3576128f2614d00565b5b9060005260206000200160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600980548061294d5761294c614eda565b5b6001900381819060005260206000200160006101000a81549073ffffffffffffffffffffffffffffffffffffffff0219169055905550505b50565b6000806000905060005b60078161ffff161015612a1d57600260008060159054906101000a900461ffff1661ffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163182612a0891906151c7565b91508080612a159061502d565b915050612992565b50600084600143612a2e9190614ea6565b4041443386600154600060159054906101000a900461ffff16604051602001612a5e989796959493929190615503565b6040516020818303038152906040528051906020012060001c90508381612a859190615595565b9250505092915050565b6001600060158282829054906101000a900461ffff16612aaf91906155c6565b92506101000a81548161ffff021916908361ffff1602179055506001806000828254612adb91906151c7565b925050819055506006600060159054906101000a900461ffff1661ffff161115612b1d5760008060156101000a81548161ffff021916908361ffff1602179055505b565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b600080600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600560008661ffff1681526020019081526020016000205481548110612c4e57612c4d614d00565b5b906000526020600020016040518060600160405290816000820160009054906101000a900461ffff1661ffff1661ffff1681526020016000820160029054906101000a900469ffffffffffffffffffff1669ffffffffffffffffffff1669ffffffffffffffffffff16815260200160008201600c9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152505090503373ffffffffffffffffffffffffffffffffffffffff16816040015173ffffffffffffffffffffffffffffffffffffffff1614612d85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d7c90614e57565b60405180910390fd5b828015612daf57506202a300816020015169ffffffffffffffffffff1642612dad9190614ea6565b105b15612def576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612de690615670565b60405180910390fd5b6b07c13bc4b2c133c560000000600d541015612e4b576201518069021e19e0c9bab2400000826020015169ffffffffffffffffffff1642612e309190614ea6565b612e3a919061510d565b612e449190615196565b9150612eb3565b600e54816020015169ffffffffffffffffffff161115612e6e5760009150612eb2565b6201518069021e19e0c9bab2400000826020015169ffffffffffffffffffff16600e54612e9b9190614ea6565b612ea5919061510d565b612eaf9190615196565b91505b5b8215613322576032612eca8561ffff166064612988565b61ffff1611612ee157612edc82614326565b600091505b612ee9612a8f565b6001600a6000828254612efc9190614ea6565b925050819055506000600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050612f939190614ea6565b81548110612fa457612fa3614d00565b5b906000526020600020016040518060600160405290816000820160009054906101000a900461ffff1661ffff1661ffff1681526020016000820160029054906101000a900469ffffffffffffffffffff1669ffffffffffffffffffff1669ffffffffffffffffffff16815260200160008201600c9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525050905080600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600560008861ffff16815260200190815260200160002054815481106130d2576130d1614d00565b5b9060005260206000200160008201518160000160006101000a81548161ffff021916908361ffff16021790555060208201518160000160026101000a81548169ffffffffffffffffffff021916908369ffffffffffffffffffff160217905550604082015181600001600c6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550905050600560008661ffff1681526020019081526020016000205460056000836000015161ffff16815260200190815260200160002081905550600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080548061320257613201614eda565b5b60019003818190600052602060002001600080820160006101000a81549061ffff02191690556000820160026101000a81549069ffffffffffffffffffff021916905560008201600c6101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905550509055600560008661ffff16815260200190815260200160002060009055600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b88d4fde3033886040518463ffffffff1660e01b81526004016132ea93929190614f71565b600060405180830381600087803b15801561330457600080fd5b505af1158015613318573d6000803e3d6000fd5b50505050506134c4565b6133436064601484613334919061510d565b61333e9190615196565b614326565b6064601460646133539190614ea6565b8361335e919061510d565b6133689190615196565b9150600042905060405180606001604052808661ffff1681526020018269ffffffffffffffffffff1681526020013373ffffffffffffffffffffffffffffffffffffffff16815250600660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600560008861ffff168152602001908152602001600020548154811061341857613417614d00565b5b9060005260206000200160008201518160000160006101000a81548161ffff021916908361ffff16021790555060208201518160000160026101000a81548169ffffffffffffffffffff021916908369ffffffffffffffffffff160217905550604082015181600001600c6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550905050505b7f52badf25eedd81953c35ef0626ed964cd022c56f5e795676440517b9844d61c18483856040516134f793929190615690565b60405180910390a15092915050565b60003073ffffffffffffffffffffffffffffffffffffffff16600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e856040518263ffffffff1660e01b815260040161357a91906152d8565b60206040518083038186803b15801561359257600080fd5b505afa1580156135a6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906135ca9190615308565b73ffffffffffffffffffffffffffffffffffffffff1614613620576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161361790614e57565b60405180910390fd5b6000600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600760008661ffff168152602001908152602001600020548154811061368a57613689614d00565b5b906000526020600020016040518060600160405290816000820160009054906101000a900461ffff1661ffff1661ffff1681526020016000820160029054906101000a900469ffffffffffffffffffff1669ffffffffffffffffffff1669ffffffffffffffffffff16815260200160008201600c9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152505090503373ffffffffffffffffffffffffffffffffffffffff16816040015173ffffffffffffffffffffffffffffffffffffffff16146137c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137b890614e57565b60405180910390fd5b806020015169ffffffffffffffffffff16600f546137df9190614ea6565b91508215613c29576001600b60008282546137fa9190614ea6565b925050819055506000600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206001600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490506138919190614ea6565b815481106138a2576138a1614d00565b5b906000526020600020016040518060600160405290816000820160009054906101000a900461ffff1661ffff1661ffff1681526020016000820160029054906101000a900469ffffffffffffffffffff1669ffffffffffffffffffff1669ffffffffffffffffffff16815260200160008201600c9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525050905080600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600760008861ffff16815260200190815260200160002054815481106139d0576139cf614d00565b5b9060005260206000200160008201518160000160006101000a81548161ffff021916908361ffff16021790555060208201518160000160026101000a81548169ffffffffffffffffffff021916908369ffffffffffffffffffff160217905550604082015181600001600c6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550905050600760008661ffff1681526020019081526020016000205460076000836000015161ffff16815260200190815260200160002081905550600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805480613b0057613aff614eda565b5b60019003818190600052602060002001600080820160006101000a81549061ffff02191690556000820160026101000a81549069ffffffffffffffffffff021916905560008201600c6101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905550509055600760008661ffff16815260200190815260200160002060009055613b923361279c565b600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663b88d4fde3033886040518463ffffffff1660e01b8152600401613bf193929190614f71565b600060405180830381600087803b158015613c0b57600080fd5b505af1158015613c1f573d6000803e3d6000fd5b5050505050613d7f565b60405180606001604052808561ffff168152602001600f5469ffffffffffffffffffff1681526020013373ffffffffffffffffffffffffffffffffffffffff16815250600860003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600760008761ffff1681526020019081526020016000205481548110613cd457613cd3614d00565b5b9060005260206000200160008201518160000160006101000a81548161ffff021916908361ffff16021790555060208201518160000160026101000a81548169ffffffffffffffffffff021916908369ffffffffffffffffffff160217905550604082015181600001600c6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055509050505b7fa71974935662012c9b6ee2c300cf91babc58742dad5bfa6b95f011186d3812ae848385604051613db293929190615690565b60405180910390a15092915050565b6001600b6000828254613dd491906151c7565b925050819055506000600860008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020805490501415613e8a576009829080600181540180825580915050600190039060005260206000200160009091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505b600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050600760008361ffff16815260200190815260200160002081905550600860008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060405180606001604052808361ffff168152602001600f5469ffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff168152509080600181540180825580915050600190039060005260206000200160009091909190915060008201518160000160006101000a81548161ffff021916908361ffff16021790555060208201518160000160026101000a81548169ffffffffffffffffffff021916908369ffffffffffffffffffff160217905550604082015181600001600c6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050507fb63b627c974e2e49662cbe7483456424812c95b6048065861b08af2eff4726b78282600f54604051614063939291906156c7565b60405180910390a15050565b614077611a60565b156140b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016140ae906150ed565b60405180910390fd5b6b07c13bc4b2c133c560000000600d54101561412b576201518069021e19e0c9bab2400000600a54600e54426140ed9190614ea6565b6140f7919061510d565b614101919061510d565b61410b9190615196565b600d600082825461411c91906151c7565b9250508190555042600e819055505b6001600a600082825461413e91906151c7565b92505081905550600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002080549050600560008361ffff16815260200190815260200160002081905550600660008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060405180606001604052808361ffff1681526020014269ffffffffffffffffffff1681526020018473ffffffffffffffffffffffffffffffffffffffff168152509080600181540180825580915050600190039060005260206000200160009091909190915060008201518160000160006101000a81548161ffff021916908361ffff16021790555060208201518160000160026101000a81548169ffffffffffffffffffff021916908369ffffffffffffffffffff160217905550604082015181600001600c6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050507fb63b627c974e2e49662cbe7483456424812c95b6048065861b08af2eff4726b782824260405161431a939291906156c7565b60405180910390a15050565b6000600b54141561434f5780600c600082825461434391906151c7565b9250508190555061438b565b600b54600c548261436091906151c7565b61436a9190615196565b600f600082825461437b91906151c7565b925050819055506000600c819055505b50565b6040518060600160405280600061ffff168152602001600069ffffffffffffffffffff168152602001600073ffffffffffffffffffffffffffffffffffffffff1681525090565b600080fd5b600080fd5b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061440a826143df565b9050919050565b61441a816143ff565b811461442557600080fd5b50565b60008135905061443781614411565b92915050565b600060208284031215614453576144526143d5565b5b600061446184828501614428565b91505092915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b600061ffff82169050919050565b6144ad81614496565b82525050565b600069ffffffffffffffffffff82169050919050565b6144d2816144b3565b82525050565b6144e1816143ff565b82525050565b6060820160008201516144fd60008501826144a4565b50602082015161451060208501826144c9565b50604082015161452360408501826144d8565b50505050565b600061453583836144e7565b60608301905092915050565b6000602082019050919050565b60006145598261446a565b6145638185614475565b935061456e83614486565b8060005b8381101561459f5781516145868882614529565b975061459183614541565b925050600181019050614572565b5085935050505092915050565b600060208201905081810360008301526145c6818461454e565b905092915050565b6000819050919050565b6145e1816145ce565b82525050565b60006020820190506145fc60008301846145d8565b92915050565b61460b816145ce565b811461461657600080fd5b50565b60008135905061462881614602565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f8401126146535761465261462e565b5b8235905067ffffffffffffffff8111156146705761466f614633565b5b60208301915083600182028301111561468c5761468b614638565b5b9250929050565b6000806000806000608086880312156146af576146ae6143d5565b5b60006146bd88828901614428565b95505060206146ce88828901614428565b94505060406146df88828901614619565b935050606086013567ffffffffffffffff811115614700576146ff6143da565b5b61470c8882890161463d565b92509250509295509295909350565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6147508161471b565b82525050565b600060208201905061476b6000830184614747565b92915050565b60008115159050919050565b61478681614771565b811461479157600080fd5b50565b6000813590506147a38161477d565b92915050565b6000602082840312156147bf576147be6143d5565b5b60006147cd84828501614794565b91505092915050565b6000819050919050565b60006147fb6147f66147f1846143df565b6147d6565b6143df565b9050919050565b600061480d826147e0565b9050919050565b600061481f82614802565b9050919050565b61482f81614814565b82525050565b600060208201905061484a6000830184614826565b92915050565b60008083601f8401126148665761486561462e565b5b8235905067ffffffffffffffff81111561488357614882614633565b5b60208301915083602082028301111561489f5761489e614638565b5b9250929050565b600080602083850312156148bd576148bc6143d5565b5b600083013567ffffffffffffffff8111156148db576148da6143da565b5b6148e785828601614850565b92509250509250929050565b600060208284031215614909576149086143d5565b5b600061491784828501614619565b91505092915050565b614929816143ff565b82525050565b60006020820190506149446000830184614920565b92915050565b61495381614771565b82525050565b600060208201905061496e600083018461494a565b92915050565b6000806040838503121561498b5761498a6143d5565b5b600061499985828601614428565b92505060206149aa85828601614619565b9150509250929050565b6149bd81614496565b82525050565b6149cc816144b3565b82525050565b60006060820190506149e760008301866149b4565b6149f460208301856149c3565b614a016040830184614920565b949350505050565b60008060408385031215614a2057614a1f6143d5565b5b6000614a2e85828601614619565b9250506020614a3f85828601614619565b9150509250929050565b60008060408385031215614a6057614a5f6143d5565b5b6000614a6e85828601614619565b9250506020614a7f85828601614428565b9150509250929050565b600080600060408486031215614aa257614aa16143d5565b5b600084013567ffffffffffffffff811115614ac057614abf6143da565b5b614acc86828701614850565b93509350506020614adf86828701614794565b9150509250925092565b600080600060408486031215614b0257614b016143d5565b5b6000614b1086828701614428565b935050602084013567ffffffffffffffff811115614b3157614b306143da565b5b614b3d86828701614850565b92509250509250925092565b6000614b5482614802565b9050919050565b614b6481614b49565b82525050565b6000602082019050614b7f6000830184614b5b565b92915050565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614bcc602083614b85565b9150614bd782614b96565b602082019050919050565b60006020820190508181036000830152614bfb81614bbf565b9050919050565b7f43616e6e6f742073656e6420746f6b656e7320746f207468697320636f6e746160008201527f6374206469726563746c79000000000000000000000000000000000000000000602082015250565b6000614c5e602b83614b85565b9150614c6982614c02565b604082019050919050565b60006020820190508181036000830152614c8d81614c51565b9050919050565b7f5265736375652064697361626c65640000000000000000000000000000000000600082015250565b6000614cca600f83614b85565b9150614cd582614c94565b602082019050919050565b60006020820190508181036000830152614cf981614cbd565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b614d3881614496565b8114614d4357600080fd5b50565b600081359050614d5581614d2f565b92915050565b600060208284031215614d7157614d706143d5565b5b6000614d7f84828501614d46565b91505092915050565b6000602082019050614d9d60008301846149b4565b92915050565b600081519050614db28161477d565b92915050565b600060208284031215614dce57614dcd6143d5565b5b6000614ddc84828501614da3565b91505092915050565b7f54686973204e544620646f6573206e6f742062656c6f6e6720746f206164647260008201527f6573730000000000000000000000000000000000000000000000000000000000602082015250565b6000614e41602383614b85565b9150614e4c82614de5565b604082019050919050565b60006020820190508181036000830152614e7081614e34565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614eb1826145ce565b9150614ebc836145ce565b925082821015614ecf57614ece614e77565b5b828203905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b6000614f24614f1f614f1a84614496565b6147d6565b6145ce565b9050919050565b614f3481614f09565b82525050565b600082825260208201905092915050565b50565b6000614f5b600083614f3a565b9150614f6682614f4b565b600082019050919050565b6000608082019050614f866000830186614920565b614f936020830185614920565b614fa06040830184614f2b565b8181036060830152614fb181614f4e565b9050949350505050565b6000819050919050565b6000614fe0614fdb614fd684614fbb565b6147d6565b6145ce565b9050919050565b614ff081614fc5565b82525050565b600060608201905061500b60008301866149b4565b6150186020830185614fe7565b615025604083018461494a565b949350505050565b600061503882614496565b915061ffff82141561504d5761504c614e77565b5b600182019050919050565b6000615063826145ce565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561509657615095614e77565b5b600182019050919050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b60006150d7601083614b85565b91506150e2826150a1565b602082019050919050565b60006020820190508181036000830152615106816150ca565b9050919050565b6000615118826145ce565b9150615123836145ce565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561515c5761515b614e77565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b60006151a1826145ce565b91506151ac836145ce565b9250826151bc576151bb615167565b5b828204905092915050565b60006151d2826145ce565b91506151dd836145ce565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561521257615211614e77565b5b828201905092915050565b60006040820190506152326000830185614920565b61523f60208301846145d8565b9392505050565b7f596f7520646f206e6f7420686176652061207065726d697373696f6e20746f2060008201527f646f207468617400000000000000000000000000000000000000000000000000602082015250565b60006152a2602783614b85565b91506152ad82615246565b604082019050919050565b600060208201905081810360008301526152d181615295565b9050919050565b60006020820190506152ed6000830184614f2b565b92915050565b60008151905061530281614411565b92915050565b60006020828403121561531e5761531d6143d5565b5b600061532c848285016152f3565b91505092915050565b600060608201905061534a6000830186614920565b6153576020830185614920565b6153646040830184614f2b565b949350505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006153c8602683614b85565b91506153d38261536c565b604082019050919050565b600060208201905081810360008301526153f7816153bb565b9050919050565b6000819050919050565b615419615414826145ce565b6153fe565b82525050565b6000819050919050565b6000819050919050565b61544461543f8261541f565b615429565b82525050565b6000615455826143df565b9050919050565b60008160601b9050919050565b60006154748261545c565b9050919050565b600061548682615469565b9050919050565b61549e6154998261544a565b61547b565b82525050565b60006154af82615469565b9050919050565b6154c76154c2826143ff565b6154a4565b82525050565b60008160f01b9050919050565b60006154e5826154cd565b9050919050565b6154fd6154f882614496565b6154da565b82525050565b600061550f828b615408565b60208201915061551f828a615433565b60208201915061552f828961548d565b60148201915061553f8288615408565b60208201915061554f82876154b6565b60148201915061555f8286615408565b60208201915061556f8285615408565b60208201915061557f82846154ec565b6002820191508190509998505050505050505050565b60006155a0826145ce565b91506155ab836145ce565b9250826155bb576155ba615167565b5b828206905092915050565b60006155d182614496565b91506155dc83614496565b92508261ffff038211156155f3576155f2614e77565b5b828201905092915050565b7f4e65656420746f2077616974203220646179732073696e6365206c617374206360008201527f6c61696d00000000000000000000000000000000000000000000000000000000602082015250565b600061565a602483614b85565b9150615665826155fe565b604082019050919050565b600060208201905081810360008301526156898161564d565b9050919050565b60006060820190506156a560008301866149b4565b6156b260208301856145d8565b6156bf604083018461494a565b949350505050565b60006060820190506156dc6000830186614920565b6156e960208301856149b4565b6156f660408301846145d8565b94935050505056fea26469706673582212206617eedaaaeb79dc7c7cfc4adfcb4a916e3686bda9d6585c69a9620bca10835164736f6c63430008090033

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.