AVAX Price: $21.92 (+1.36%)
Gas: 1.3 nAVAX
 

Overview

AVAX Balance

Avalanche C-Chain LogoAvalanche C-Chain LogoAvalanche C-Chain Logo0 AVAX

AVAX Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Upgrade124531312022-03-23 0:49:561127 days ago1647996596IN
0xd4dCe5aE...DCE97D040
0 AVAX0.0015925852.91856678
Upgrade111288872022-02-19 16:01:321158 days ago1645286492IN
0xd4dCe5aE...DCE97D040
0 AVAX0.0020301766.45185843
Upgrade111080202022-02-19 4:23:071159 days ago1645244587IN
0xd4dCe5aE...DCE97D040
0 AVAX0.0008097126.50375319
Upgrade111080102022-02-19 4:22:481159 days ago1645244568IN
0xd4dCe5aE...DCE97D040
0 AVAX0.000809626.5
Upgrade110634252022-02-18 3:16:251160 days ago1645154185IN
0xd4dCe5aE...DCE97D040
0 AVAX0.0007975126.5
Upgrade110199202022-02-17 2:31:121161 days ago1645065072IN
0xd4dCe5aE...DCE97D040
0 AVAX0.0008017526.64077764
Upgrade110198442022-02-17 2:28:361161 days ago1645064916IN
0xd4dCe5aE...DCE97D040
0 AVAX0.0008082126.58679833
Upgrade110076702022-02-16 19:30:511161 days ago1645039851IN
0xd4dCe5aE...DCE97D040
0 AVAX0.0021594270.68258775
Upgrade110075432022-02-16 19:26:281161 days ago1645039588IN
0xd4dCe5aE...DCE97D040
0 AVAX0.0021589371.37683322
Upgrade110074522022-02-16 19:23:171161 days ago1645039397IN
0xd4dCe5aE...DCE97D040
0 AVAX0.0021917672.46227672
Upgrade110074322022-02-16 19:22:351161 days ago1645039355IN
0xd4dCe5aE...DCE97D040
0 AVAX0.0020469668.01664013
Upgrade110073942022-02-16 19:21:131161 days ago1645039273IN
0xd4dCe5aE...DCE97D040
0 AVAX0.0021792772.04945622
Upgrade110047362022-02-16 17:49:001161 days ago1645033740IN
0xd4dCe5aE...DCE97D040
0 AVAX0.0013122543.16769793
Upgrade110027262022-02-16 16:39:511161 days ago1645029591IN
0xd4dCe5aE...DCE97D040
0 AVAX0.0008994329.58773774
Upgrade110024442022-02-16 16:30:141161 days ago1645029014IN
0xd4dCe5aE...DCE97D040
0 AVAX0.0011072336.60636214
Upgrade110016742022-02-16 16:04:051161 days ago1645027445IN
0xd4dCe5aE...DCE97D040
0 AVAX0.0010568834.76718095
Upgrade110010262022-02-16 15:42:261161 days ago1645026146IN
0xd4dCe5aE...DCE97D040
0 AVAX0.0010028433.32268211
Upgrade110009872022-02-16 15:41:101161 days ago1645026070IN
0xd4dCe5aE...DCE97D040
0 AVAX0.0009236830.69231154
Upgrade109998552022-02-16 15:02:481162 days ago1645023768IN
0xd4dCe5aE...DCE97D040
0 AVAX0.0011279637.48015528
Upgrade109914172022-02-16 10:15:231162 days ago1645006523IN
0xd4dCe5aE...DCE97D040
0 AVAX0.00080426.7155389
Upgrade109889222022-02-16 8:50:131162 days ago1645001413IN
0xd4dCe5aE...DCE97D040
0 AVAX0.0007975126.5
Upgrade109888512022-02-16 8:47:491162 days ago1645001269IN
0xd4dCe5aE...DCE97D040
0 AVAX0.0008300627.03535955
Upgrade109888292022-02-16 8:47:081162 days ago1645001228IN
0xd4dCe5aE...DCE97D040
0 AVAX0.0008136226.5
Upgrade109881092022-02-16 8:22:441162 days ago1644999764IN
0xd4dCe5aE...DCE97D040
0 AVAX0.0007975126.5
Upgrade109880982022-02-16 8:22:211162 days ago1644999741IN
0xd4dCe5aE...DCE97D040
0 AVAX0.0007975126.5
View all transactions

Parent Transaction Hash Block From To
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ThiefUpgrading

Compiler Version
v0.8.10+commit.fc410830

Optimization Enabled:
No with 200 runs

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

pragma solidity ^0.8.0;

import "../Ownable.sol";
import "../ITraits.sol";
import "../ILOOT.sol";
import "../IPoliceAndThief.sol";
import "../IERC721.sol";
import "../IBank.sol";
import "../Pauseable.sol";

contract ThiefUpgrading is Ownable, Pauseable {
    event ThiefUpgraded(address owner, uint256 id, uint256 newLevel);
    event TimeReset(uint256 id);

    ITraits traits;
    IPoliceAndThief game;
    IBank bank;
    ILOOT loot;
    ILOOT bribe;

    modifier nonReentrant() {
        require(!_reentrant, "No reentrancy");
        _reentrant = true;
        _;
        _reentrant = false;
    }

    bool private _reentrant = false;

    mapping(uint256 => uint8) public levelOf;
    mapping(uint256 => uint256) public lastUpgradedAt;

    uint256[] public requiredLoot = [
    500 ether, 2000 ether, 4500 ether, 8000 ether, 12500 ether, 12500 ether, 12500 ether, 12500 ether, 12500 ether, 50000,
    12500 ether, 12500 ether, 15000 ether, 15000 ether, 15000 ether, 15000 ether, 15000 ether, 15000 ether, 180500,
    15000 ether, 15000 ether, 15000 ether, 15000 ether, 15000 ether, 15000 ether, 15000 ether, 15000 ether, 15000 ether, 420500,
    15000 ether, 15000 ether, 15000 ether, 15000 ether, 20000 ether, 21000 ether, 22000 ether, 23000 ether, 24000 ether, 25000 ether, 800000,
    26000 ether, 27000 ether, 28000 ether, 29000 ether, 30000 ether
    ];

    uint256[] public requiredBribe = [
    0.10 ether, 0.20 ether, 0.30 ether, 0.40 ether, 0.50 ether, 0.60 ether, 0.70 ether, 0.80 ether, 0.90 ether, 1.00 ether, 1.10 ether, 1.20 ether, 1.30 ether,
    1.40 ether, 1.50 ether, 1.60 ether, 1.70 ether, 1.80 ether, 1.90 ether, 2.00 ether, 2.10 ether, 2.20 ether, 2.30 ether, 2.40 ether, 2.50 ether, 2.60 ether,
    2.70 ether, 2.80 ether, 2.90 ether, 3.00 ether, 3.10 ether, 3.20 ether, 3.30 ether, 3.40 ether, 3.50 ether, 3.60 ether, 3.70 ether, 3.80 ether, 3.90 ether,
    4.00 ether, 4.10 ether, 4.20 ether, 4.30 ether, 4.40 ether, 4.50 ether, 4.60 ether, 4.70 ether, 4.80 ether, 4.90 ether, 5.00 ether, 5.10 ether
    ];

    function changeRequiredLoot(uint256 index, uint256 newValue) public onlyOwner {
        requiredLoot[index] = newValue;
    }

    function changeRequiredBribe(uint256 index, uint256 newValue) public onlyOwner {
        requiredBribe[index] = newValue;
    }

    function upgrade(uint16[] calldata tokenIds) public nonReentrant {
        require(!paused() || msg.sender == owner(), "Paused");
        require(tokenIds.length > 0, "Need more than one token");
        address sender = msg.sender;

        bank.claimForUser(tokenIds, msg.sender);

        uint256 senderBalance = loot.balanceOf(sender);
        uint256 requiredBalance = 0;
        for (uint256 i = 0; i < tokenIds.length; i++) {
            IPoliceAndThief.ThiefPolice memory t = game.getTokenTraits(uint256(tokenIds[i]));
            uint256 _id = uint256(tokenIds[i]);
            require(t.isThief, "Only thieves can be upgraded");

            address owner = game.ownerOf(_id);
            if (owner == address(bank)) {
                owner = bank.realOwnerOf(_id);
            }

            require(ownerOf(_id) == sender, "You are not owner");


            uint8 level = levelOf[_id];
            require(level < 50, "Reached latest level");
            require(block.timestamp - lastUpgradedAt[_id] > level * 3600, "Still need time before upgrading");

            requiredBalance += requiredLoot[level];
            levelOf[_id] += 1;
            lastUpgradedAt[_id] = block.timestamp;

            emit ThiefUpgraded(sender, tokenIds[i], level + 1);
        }

        require(senderBalance >= requiredBalance, "Insufficient LOOT balance");

        loot.burn(sender, requiredBalance);
    }

    function ownerOf(uint256 tokenId) public view returns (address owner) {
        owner = IERC721(address(game)).ownerOf(tokenId);

        if (owner == address(bank)) {
            owner = bank.realOwnerOf(tokenId);
        }

        return owner;
    }

    function setContracts(IBank _bank, IPoliceAndThief _game, ITraits _traits, ILOOT _loot, ILOOT _bribe) public onlyOwner {
        traits = _traits;
        bank = _bank;
        loot = _loot;
        game = _game;
        bribe = _bribe;
    }

    function getTraitsAndLevel(uint256 tokenId) public view returns (IPoliceAndThief.ThiefPolice memory _t, uint8 level) {
        _t = game.getTokenTraits(tokenId);

        if (_t.isThief) {
            level = levelOf[tokenId];
        }

        return (_t, level);
    }

    function setPaused(bool _paused) external onlyOwner {
        if (_paused) _pause();
        else _unpause();
    }

    function resetTime(uint256[] memory _ids) public {
        uint256 requiredBalance = 0;
        for (uint256 i = 0; i < _ids.length; i++) {
            uint256 level = levelOf[_ids[i]];
            if (level == 0) continue;
            requiredBalance += requiredBribe[level - 1];

            lastUpgradedAt[_ids[i]] = 0;

            emit TimeReset(_ids[i]);
        }
        if (requiredBalance > 0) {
            bribe.burn(msg.sender, requiredBalance);
        }
    }
}

File 2 of 10 : Pauseable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./Context.sol";

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

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

    bool private _paused;

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

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

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

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

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

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

File 3 of 10 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./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 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 10 : ITraits.sol
// SPDX-License-Identifier: MIT LICENSE

pragma solidity ^0.8.0;

interface ITraits {
    function tokenURI(uint256 tokenId) external view returns (string memory);
    function selectTrait(uint16 seed, uint8 traitType) external view returns(uint8);
    function drawSVG(uint256 tokenId) external view returns (string memory);
    function traitData(uint8, uint8) external view returns (string memory, string memory);
    function traitCountForType(uint8) external view returns (uint8);
}

File 5 of 10 : IPoliceAndThief.sol
// SPDX-License-Identifier: MIT LICENSE

pragma solidity ^0.8.0;


interface IPoliceAndThief {

    // struct to store each token's traits
    struct ThiefPolice {
        bool isThief;
        uint8 uniform;
        uint8 hair;
        uint8 eyes;
        uint8 facialHair;
        uint8 headgear;
        uint8 neckGear;
        uint8 accessory;
        uint8 alphaIndex;
    }

    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    function getPaidTokens() external view returns (uint256);
    function getTokenTraits(uint256 tokenId) external view returns (ThiefPolice memory);
    function ownerOf(uint256 tokenId) external view returns (address owner);
}

File 6 of 10 : ILOOT.sol
// SPDX-License-Identifier: MIT LICENSE

pragma solidity ^0.8.0;

interface ILOOT  {
    function burn(address from, uint256 amount) external;
    function mint(address to, uint256 amount) external;
    function balanceOf(address account) external view returns(uint256);
    function transfer(address recipient, uint256 amount) external returns (bool);
}

File 7 of 10 : IERC721.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./IERC165.sol";

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}

File 8 of 10 : IERC165.sol
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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

File 9 of 10 : IBank.sol
// SPDX-License-Identifier: MIT LICENSE

pragma solidity ^0.8.0;

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

    function claimForUser(uint16[] calldata tokenIds, address _tokenOwner) external;

    function addManyToBankAndPack(address account, uint16[] calldata tokenIds) external;
    function randomPoliceOwner(uint256 seed) external view returns (address);
    function bank(uint256) external view returns(uint16, uint80, address);
    function totalLootEarned() external view returns(uint256);
    function lastClaimTimestamp() external view returns(uint256);
    function setOldTokenInfo(uint256, bool, address, uint256) external;
    function setOldBankStats(uint256, uint256) external;

    function pack(uint256, uint256) external view returns(Stake memory);
    function packIndices(uint256) external view returns(uint256);
    function realOwnerOf(uint256) external view returns(address);

}

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

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

Contract Security Audit

Contract ABI

API
[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"owner","type":"address"},{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newLevel","type":"uint256"}],"name":"ThiefUpgraded","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"id","type":"uint256"}],"name":"TimeReset","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"changeRequiredBribe","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"},{"internalType":"uint256","name":"newValue","type":"uint256"}],"name":"changeRequiredLoot","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getTraitsAndLevel","outputs":[{"components":[{"internalType":"bool","name":"isThief","type":"bool"},{"internalType":"uint8","name":"uniform","type":"uint8"},{"internalType":"uint8","name":"hair","type":"uint8"},{"internalType":"uint8","name":"eyes","type":"uint8"},{"internalType":"uint8","name":"facialHair","type":"uint8"},{"internalType":"uint8","name":"headgear","type":"uint8"},{"internalType":"uint8","name":"neckGear","type":"uint8"},{"internalType":"uint8","name":"accessory","type":"uint8"},{"internalType":"uint8","name":"alphaIndex","type":"uint8"}],"internalType":"struct IPoliceAndThief.ThiefPolice","name":"_t","type":"tuple"},{"internalType":"uint8","name":"level","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"lastUpgradedAt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"levelOf","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"owner","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":"requiredBribe","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"requiredLoot","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256[]","name":"_ids","type":"uint256[]"}],"name":"resetTime","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IBank","name":"_bank","type":"address"},{"internalType":"contract IPoliceAndThief","name":"_game","type":"address"},{"internalType":"contract ITraits","name":"_traits","type":"address"},{"internalType":"contract ILOOT","name":"_loot","type":"address"},{"internalType":"contract ILOOT","name":"_bribe","type":"address"}],"name":"setContracts","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bool","name":"_paused","type":"bool"}],"name":"setPaused","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16[]","name":"tokenIds","type":"uint16[]"}],"name":"upgrade","outputs":[],"stateMutability":"nonpayable","type":"function"}]

60806040526000600560146101000a81548160ff021916908315150217905550604051806105a00160405280681b1ae4d6e2ef50000069ffffffffffffffffffff168152602001686c6b935b8bbd40000069ffffffffffffffffffff16815260200168f3f20b8dfa69d0000069ffffffffffffffffffff1681526020016901b1ae4d6e2ef500000069ffffffffffffffffffff1681526020016902a5a058fc295ed0000069ffffffffffffffffffff1681526020016902a5a058fc295ed0000069ffffffffffffffffffff1681526020016902a5a058fc295ed0000069ffffffffffffffffffff1681526020016902a5a058fc295ed0000069ffffffffffffffffffff1681526020016902a5a058fc295ed0000069ffffffffffffffffffff16815260200161c35069ffffffffffffffffffff1681526020016902a5a058fc295ed0000069ffffffffffffffffffff1681526020016902a5a058fc295ed0000069ffffffffffffffffffff16815260200169032d26d12e980b60000069ffffffffffffffffffff16815260200169032d26d12e980b60000069ffffffffffffffffffff16815260200169032d26d12e980b60000069ffffffffffffffffffff16815260200169032d26d12e980b60000069ffffffffffffffffffff16815260200169032d26d12e980b60000069ffffffffffffffffffff16815260200169032d26d12e980b60000069ffffffffffffffffffff1681526020016202c11469ffffffffffffffffffff16815260200169032d26d12e980b60000069ffffffffffffffffffff16815260200169032d26d12e980b60000069ffffffffffffffffffff16815260200169032d26d12e980b60000069ffffffffffffffffffff16815260200169032d26d12e980b60000069ffffffffffffffffffff16815260200169032d26d12e980b60000069ffffffffffffffffffff16815260200169032d26d12e980b60000069ffffffffffffffffffff16815260200169032d26d12e980b60000069ffffffffffffffffffff16815260200169032d26d12e980b60000069ffffffffffffffffffff16815260200169032d26d12e980b60000069ffffffffffffffffffff16815260200162066a9469ffffffffffffffffffff16815260200169032d26d12e980b60000069ffffffffffffffffffff16815260200169032d26d12e980b60000069ffffffffffffffffffff16815260200169032d26d12e980b60000069ffffffffffffffffffff16815260200169032d26d12e980b60000069ffffffffffffffffffff16815260200169043c33c193756480000069ffffffffffffffffffff168152602001690472698b413b4320000069ffffffffffffffffffff1681526020016904a89f54ef0121c0000069ffffffffffffffffffff1681526020016904ded51e9cc70060000069ffffffffffffffffffff1681526020016905150ae84a8cdf00000069ffffffffffffffffffff16815260200169054b40b1f852bda0000069ffffffffffffffffffff168152602001620c350069ffffffffffffffffffff168152602001690581767ba6189c40000069ffffffffffffffffffff1681526020016905b7ac4553de7ae0000069ffffffffffffffffffff1681526020016905ede20f01a45980000069ffffffffffffffffffff16815260200169062417d8af6a3820000069ffffffffffffffffffff16815260200169065a4da25d3016c0000069ffffffffffffffffffff16815250600890602d6200050792919062000b08565b5060405180610660016040528067016345785d8a000067ffffffffffffffff1681526020016702c68af0bb14000067ffffffffffffffff168152602001670429d069189e000067ffffffffffffffff16815260200167058d15e17628000067ffffffffffffffff1681526020016706f05b59d3b2000067ffffffffffffffff168152602001670853a0d2313c000067ffffffffffffffff1681526020016709b6e64a8ec6000067ffffffffffffffff168152602001670b1a2bc2ec50000067ffffffffffffffff168152602001670c7d713b49da000067ffffffffffffffff168152602001670de0b6b3a764000067ffffffffffffffff168152602001670f43fc2c04ee000067ffffffffffffffff1681526020016710a741a46278000067ffffffffffffffff16815260200167120a871cc002000067ffffffffffffffff16815260200167136dcc951d8c000067ffffffffffffffff1681526020016714d1120d7b16000067ffffffffffffffff1681526020016716345785d8a0000067ffffffffffffffff1681526020016717979cfe362a000067ffffffffffffffff1681526020016718fae27693b4000067ffffffffffffffff168152602001671a5e27eef13e000067ffffffffffffffff168152602001671bc16d674ec8000067ffffffffffffffff168152602001671d24b2dfac52000067ffffffffffffffff168152602001671e87f85809dc000067ffffffffffffffff168152602001671feb3dd06766000067ffffffffffffffff16815260200167214e8348c4f0000067ffffffffffffffff1681526020016722b1c8c1227a000067ffffffffffffffff1681526020016724150e398004000067ffffffffffffffff16815260200167257853b1dd8e000067ffffffffffffffff1681526020016726db992a3b18000067ffffffffffffffff16815260200167283edea298a2000067ffffffffffffffff1681526020016729a2241af62c000067ffffffffffffffff168152602001672b05699353b6000067ffffffffffffffff168152602001672c68af0bb140000067ffffffffffffffff168152602001672dcbf4840eca000067ffffffffffffffff168152602001672f2f39fc6c54000067ffffffffffffffff1681526020016730927f74c9de000067ffffffffffffffff1681526020016731f5c4ed2768000067ffffffffffffffff1681526020016733590a6584f2000067ffffffffffffffff1681526020016734bc4fdde27c000067ffffffffffffffff16815260200167361f95564006000067ffffffffffffffff168152602001673782dace9d90000067ffffffffffffffff1681526020016738e62046fb1a000067ffffffffffffffff168152602001673a4965bf58a4000067ffffffffffffffff168152602001673bacab37b62e000067ffffffffffffffff168152602001673d0ff0b013b8000067ffffffffffffffff168152602001673e7336287142000067ffffffffffffffff168152602001673fd67ba0cecc000067ffffffffffffffff168152602001674139c1192c56000067ffffffffffffffff16815260200167429d069189e0000067ffffffffffffffff1681526020016744004c09e76a000067ffffffffffffffff168152602001674563918244f4000067ffffffffffffffff1681526020016746c6d6faa27e000067ffffffffffffffff168152506009906033620009ec92919062000b68565b50348015620009fa57600080fd5b5062000a1b62000a0f62000a3c60201b60201c565b62000a4460201b60201c565b6001600060146101000a81548160ff02191690831515021790555062000be5565b600033905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b82805482825590600052602060002090810192821562000b55579160200282015b8281111562000b54578251829069ffffffffffffffffffff1690559160200191906001019062000b29565b5b50905062000b64919062000bc6565b5090565b82805482825590600052602060002090810192821562000bb3579160200282015b8281111562000bb2578251829067ffffffffffffffff1690559160200191906001019062000b89565b5b50905062000bc2919062000bc6565b5090565b5b8082111562000be157600081600090555060010162000bc7565b5090565b612a1c8062000bf56000396000f3fe608060405234801561001057600080fd5b50600436106100f55760003560e01c80637182e74911610097578063f2fde38b11610066578063f2fde38b14610297578063f63bf8bd146102b3578063fc90ff42146102cf578063fe8ff146146102eb576100f5565b80637182e749146101e85780638da5cb5b146102195780639cc932ed14610237578063e0b05c2614610267576100f5565b8063425ff80a116100d3578063425ff80a1461014e5780635c975abb1461016a5780636352211e146101885780636d5e3032146101b8576100f5565b806316c38b3c146100fa57806332774484146101165780633d36d3dd14610132575b600080fd5b610114600480360381019061010f919061182e565b61031b565b005b610130600480360381019061012b9190611891565b6103b6565b005b61014c60048036038101906101479190611891565b610459565b005b61016860048036038101906101639190611a2a565b6104fc565b005b6101726106c9565b60405161017f9190611a82565b60405180910390f35b6101a2600480360381019061019d9190611a9d565b6106df565b6040516101af9190611b0b565b60405180910390f35b6101d260048036038101906101cd9190611a9d565b610879565b6040516101df9190611b42565b60405180910390f35b61020260048036038101906101fd9190611a9d565b610899565b604051610210929190611c32565b60405180910390f35b610221610975565b60405161022e9190611b0b565b60405180910390f35b610251600480360381019061024c9190611a9d565b61099e565b60405161025e9190611c6c565b60405180910390f35b610281600480360381019061027c9190611a9d565b6109c2565b60405161028e9190611c6c565b60405180910390f35b6102b160048036038101906102ac9190611cb3565b6109e6565b005b6102cd60048036038101906102c89190611dd8565b610ade565b005b6102e960048036038101906102e49190611eae565b610ca6565b005b61030560048036038101906103009190611a9d565b611554565b6040516103129190611c6c565b60405180910390f35b61032361156c565b73ffffffffffffffffffffffffffffffffffffffff16610341610975565b73ffffffffffffffffffffffffffffffffffffffff1614610397576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161038e90611f58565b60405180910390fd5b80156103aa576103a5611574565b6103b3565b6103b2611617565b5b50565b6103be61156c565b73ffffffffffffffffffffffffffffffffffffffff166103dc610975565b73ffffffffffffffffffffffffffffffffffffffff1614610432576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042990611f58565b60405180910390fd5b806008838154811061044757610446611f78565b5b90600052602060002001819055505050565b61046161156c565b73ffffffffffffffffffffffffffffffffffffffff1661047f610975565b73ffffffffffffffffffffffffffffffffffffffff16146104d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104cc90611f58565b60405180910390fd5b80600983815481106104ea576104e9611f78565b5b90600052602060002001819055505050565b6000805b825181101561062b5760006006600085848151811061052257610521611f78565b5b6020026020010151815260200190815260200160002060009054906101000a900460ff1660ff169050600081141561055a5750610618565b60096001826105699190611fd6565b8154811061057a57610579611f78565b5b906000526020600020015483610590919061200a565b92506000600760008685815181106105ab576105aa611f78565b5b60200260200101518152602001908152602001600020819055507f4a6058847da607184eb1b1606d985157dc3015668a19fcfe92a521dfc6afe8bd8483815181106105f9576105f8611f78565b5b602002602001015160405161060e9190611c6c565b60405180910390a1505b808061062390612060565b915050610500565b5060008111156106c557600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639dc29fac33836040518363ffffffff1660e01b81526004016106929291906120a9565b600060405180830381600087803b1580156106ac57600080fd5b505af11580156106c0573d6000803e3d6000fd5b505050505b5050565b60008060149054906101000a900460ff16905090565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b815260040161073c9190611c6c565b602060405180830381865afa158015610759573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061077d91906120e7565b9050600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561087457600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166394edf9d4836040518263ffffffff1660e01b81526004016108309190611c6c565b602060405180830381865afa15801561084d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061087191906120e7565b90505b919050565b60066020528060005260406000206000915054906101000a900460ff1681565b6108a161177c565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166394e56847846040518263ffffffff1660e01b81526004016108fe9190611c6c565b61012060405180830381865afa15801561091c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610940919061223a565b9150816000015115610970576006600084815260200190815260200160002060009054906101000a900460ff1690505b915091565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600981815481106109ae57600080fd5b906000526020600020016000915090505481565b600881815481106109d257600080fd5b906000526020600020016000915090505481565b6109ee61156c565b73ffffffffffffffffffffffffffffffffffffffff16610a0c610975565b73ffffffffffffffffffffffffffffffffffffffff1614610a62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a5990611f58565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610ad2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ac9906122da565b60405180910390fd5b610adb816116b8565b50565b610ae661156c565b73ffffffffffffffffffffffffffffffffffffffff16610b04610975565b73ffffffffffffffffffffffffffffffffffffffff1614610b5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5190611f58565b60405180910390fd5b82600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050505050565b600560149054906101000a900460ff1615610cf6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ced90612346565b60405180910390fd5b6001600560146101000a81548160ff021916908315150217905550610d196106c9565b1580610d575750610d28610975565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b610d96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d8d906123b2565b60405180910390fd5b60008282905011610ddc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dd39061241e565b60405180910390fd5b6000339050600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639b05e6b28484336040518463ffffffff1660e01b8152600401610e409392919061253b565b600060405180830381600087803b158015610e5a57600080fd5b505af1158015610e6e573d6000803e3d6000fd5b505050506000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231836040518263ffffffff1660e01b8152600401610ecf9190611b0b565b602060405180830381865afa158015610eec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f109190612582565b90506000805b8585905081101561145f576000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166394e56847888885818110610f7457610f73611f78565b5b9050602002016020810190610f8991906125af565b61ffff166040518263ffffffff1660e01b8152600401610fa99190611c6c565b61012060405180830381865afa158015610fc7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610feb919061223a565b9050600087878481811061100257611001611f78565b5b905060200201602081019061101791906125af565b61ffff1690508160000151611061576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105890612628565b60405180910390fd5b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b81526004016110be9190611c6c565b602060405180830381865afa1580156110db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ff91906120e7565b9050600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156111f657600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166394edf9d4836040518263ffffffff1660e01b81526004016111b29190611c6c565b602060405180830381865afa1580156111cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111f391906120e7565b90505b8673ffffffffffffffffffffffffffffffffffffffff16611216836106df565b73ffffffffffffffffffffffffffffffffffffffff161461126c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161126390612694565b60405180910390fd5b60006006600084815260200190815260200160002060009054906101000a900460ff16905060328160ff16106112d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ce90612700565b60405180910390fd5b610e108160ff166112e89190612720565b61ffff1660076000858152602001908152602001600020544261130b9190611fd6565b1161134b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611342906127a8565b60405180910390fd5b60088160ff168154811061136257611361611f78565b5b906000526020600020015486611378919061200a565b955060016006600085815260200190815260200160002060008282829054906101000a900460ff166113aa91906127c8565b92506101000a81548160ff021916908360ff1602179055504260076000858152602001908152602001600020819055507f68d3fd0f3015f12d97f22156177c14064aebc5c19c2cd9889a14116de89642e9888b8b8881811061140f5761140e611f78565b5b905060200201602081019061142491906125af565b60018461143191906127c8565b6040516114409392919061286b565b60405180910390a150505050808061145790612060565b915050610f16565b50808210156114a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161149a906128ee565b60405180910390fd5b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639dc29fac84836040518363ffffffff1660e01b81526004016115009291906120a9565b600060405180830381600087803b15801561151a57600080fd5b505af115801561152e573d6000803e3d6000fd5b505050505050506000600560146101000a81548160ff0219169083151502179055505050565b60076020528060005260406000206000915090505481565b600033905090565b61157c6106c9565b156115bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115b39061295a565b60405180910390fd5b6001600060146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861160061156c565b60405161160d9190611b0b565b60405180910390a1565b61161f6106c9565b61165e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611655906129c6565b60405180910390fd5b60008060146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6116a161156c565b6040516116ae9190611b0b565b60405180910390a1565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b604051806101200160405280600015158152602001600060ff168152602001600060ff168152602001600060ff168152602001600060ff168152602001600060ff168152602001600060ff168152602001600060ff168152602001600060ff1681525090565b6000604051905090565b600080fd5b600080fd5b60008115159050919050565b61180b816117f6565b811461181657600080fd5b50565b60008135905061182881611802565b92915050565b600060208284031215611844576118436117ec565b5b600061185284828501611819565b91505092915050565b6000819050919050565b61186e8161185b565b811461187957600080fd5b50565b60008135905061188b81611865565b92915050565b600080604083850312156118a8576118a76117ec565b5b60006118b68582860161187c565b92505060206118c78582860161187c565b9150509250929050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61191f826118d6565b810181811067ffffffffffffffff8211171561193e5761193d6118e7565b5b80604052505050565b60006119516117e2565b905061195d8282611916565b919050565b600067ffffffffffffffff82111561197d5761197c6118e7565b5b602082029050602081019050919050565b600080fd5b60006119a66119a184611962565b611947565b905080838252602082019050602084028301858111156119c9576119c861198e565b5b835b818110156119f257806119de888261187c565b8452602084019350506020810190506119cb565b5050509392505050565b600082601f830112611a1157611a106118d1565b5b8135611a21848260208601611993565b91505092915050565b600060208284031215611a4057611a3f6117ec565b5b600082013567ffffffffffffffff811115611a5e57611a5d6117f1565b5b611a6a848285016119fc565b91505092915050565b611a7c816117f6565b82525050565b6000602082019050611a976000830184611a73565b92915050565b600060208284031215611ab357611ab26117ec565b5b6000611ac18482850161187c565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611af582611aca565b9050919050565b611b0581611aea565b82525050565b6000602082019050611b206000830184611afc565b92915050565b600060ff82169050919050565b611b3c81611b26565b82525050565b6000602082019050611b576000830184611b33565b92915050565b611b66816117f6565b82525050565b611b7581611b26565b82525050565b61012082016000820151611b926000850182611b5d565b506020820151611ba56020850182611b6c565b506040820151611bb86040850182611b6c565b506060820151611bcb6060850182611b6c565b506080820151611bde6080850182611b6c565b5060a0820151611bf160a0850182611b6c565b5060c0820151611c0460c0850182611b6c565b5060e0820151611c1760e0850182611b6c565b50610100820151611c2c610100850182611b6c565b50505050565b600061014082019050611c486000830185611b7b565b611c56610120830184611b33565b9392505050565b611c668161185b565b82525050565b6000602082019050611c816000830184611c5d565b92915050565b611c9081611aea565b8114611c9b57600080fd5b50565b600081359050611cad81611c87565b92915050565b600060208284031215611cc957611cc86117ec565b5b6000611cd784828501611c9e565b91505092915050565b6000611ceb82611aea565b9050919050565b611cfb81611ce0565b8114611d0657600080fd5b50565b600081359050611d1881611cf2565b92915050565b6000611d2982611aea565b9050919050565b611d3981611d1e565b8114611d4457600080fd5b50565b600081359050611d5681611d30565b92915050565b6000611d6782611aea565b9050919050565b611d7781611d5c565b8114611d8257600080fd5b50565b600081359050611d9481611d6e565b92915050565b6000611da582611aea565b9050919050565b611db581611d9a565b8114611dc057600080fd5b50565b600081359050611dd281611dac565b92915050565b600080600080600060a08688031215611df457611df36117ec565b5b6000611e0288828901611d09565b9550506020611e1388828901611d47565b9450506040611e2488828901611d85565b9350506060611e3588828901611dc3565b9250506080611e4688828901611dc3565b9150509295509295909350565b600080fd5b60008083601f840112611e6e57611e6d6118d1565b5b8235905067ffffffffffffffff811115611e8b57611e8a611e53565b5b602083019150836020820283011115611ea757611ea661198e565b5b9250929050565b60008060208385031215611ec557611ec46117ec565b5b600083013567ffffffffffffffff811115611ee357611ee26117f1565b5b611eef85828601611e58565b92509250509250929050565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000611f42602083611efb565b9150611f4d82611f0c565b602082019050919050565b60006020820190508181036000830152611f7181611f35565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611fe18261185b565b9150611fec8361185b565b925082821015611fff57611ffe611fa7565b5b828203905092915050565b60006120158261185b565b91506120208361185b565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561205557612054611fa7565b5b828201905092915050565b600061206b8261185b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561209e5761209d611fa7565b5b600182019050919050565b60006040820190506120be6000830185611afc565b6120cb6020830184611c5d565b9392505050565b6000815190506120e181611c87565b92915050565b6000602082840312156120fd576120fc6117ec565b5b600061210b848285016120d2565b91505092915050565b600080fd5b60008151905061212881611802565b92915050565b61213781611b26565b811461214257600080fd5b50565b6000815190506121548161212e565b92915050565b6000610120828403121561217157612170612114565b5b61217c610120611947565b9050600061218c84828501612119565b60008301525060206121a084828501612145565b60208301525060406121b484828501612145565b60408301525060606121c884828501612145565b60608301525060806121dc84828501612145565b60808301525060a06121f084828501612145565b60a08301525060c061220484828501612145565b60c08301525060e061221884828501612145565b60e08301525061010061222d84828501612145565b6101008301525092915050565b60006101208284031215612251576122506117ec565b5b600061225f8482850161215a565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006122c4602683611efb565b91506122cf82612268565b604082019050919050565b600060208201905081810360008301526122f3816122b7565b9050919050565b7f4e6f207265656e7472616e637900000000000000000000000000000000000000600082015250565b6000612330600d83611efb565b915061233b826122fa565b602082019050919050565b6000602082019050818103600083015261235f81612323565b9050919050565b7f5061757365640000000000000000000000000000000000000000000000000000600082015250565b600061239c600683611efb565b91506123a782612366565b602082019050919050565b600060208201905081810360008301526123cb8161238f565b9050919050565b7f4e656564206d6f7265207468616e206f6e6520746f6b656e0000000000000000600082015250565b6000612408601883611efb565b9150612413826123d2565b602082019050919050565b60006020820190508181036000830152612437816123fb565b9050919050565b600082825260208201905092915050565b6000819050919050565b600061ffff82169050919050565b61247081612459565b82525050565b60006124828383612467565b60208301905092915050565b61249781612459565b81146124a257600080fd5b50565b6000813590506124b48161248e565b92915050565b60006124c960208401846124a5565b905092915050565b6000602082019050919050565b60006124ea838561243e565b93506124f58261244f565b8060005b8581101561252e5761250b82846124ba565b6125158882612476565b9750612520836124d1565b9250506001810190506124f9565b5085925050509392505050565b600060408201905081810360008301526125568185876124de565b90506125656020830184611afc565b949350505050565b60008151905061257c81611865565b92915050565b600060208284031215612598576125976117ec565b5b60006125a68482850161256d565b91505092915050565b6000602082840312156125c5576125c46117ec565b5b60006125d3848285016124a5565b91505092915050565b7f4f6e6c7920746869657665732063616e20626520757067726164656400000000600082015250565b6000612612601c83611efb565b915061261d826125dc565b602082019050919050565b6000602082019050818103600083015261264181612605565b9050919050565b7f596f7520617265206e6f74206f776e6572000000000000000000000000000000600082015250565b600061267e601183611efb565b915061268982612648565b602082019050919050565b600060208201905081810360008301526126ad81612671565b9050919050565b7f52656163686564206c6174657374206c6576656c000000000000000000000000600082015250565b60006126ea601483611efb565b91506126f5826126b4565b602082019050919050565b60006020820190508181036000830152612719816126dd565b9050919050565b600061272b82612459565b915061273683612459565b92508161ffff048311821515161561275157612750611fa7565b5b828202905092915050565b7f5374696c6c206e6565642074696d65206265666f726520757067726164696e67600082015250565b6000612792602083611efb565b915061279d8261275c565b602082019050919050565b600060208201905081810360008301526127c181612785565b9050919050565b60006127d382611b26565b91506127de83611b26565b92508260ff038211156127f4576127f3611fa7565b5b828201905092915050565b6000819050919050565b600061282461281f61281a84612459565b6127ff565b61185b565b9050919050565b61283481612809565b82525050565b600061285561285061284b84611b26565b6127ff565b61185b565b9050919050565b6128658161283a565b82525050565b60006060820190506128806000830186611afc565b61288d602083018561282b565b61289a604083018461285c565b949350505050565b7f496e73756666696369656e74204c4f4f542062616c616e636500000000000000600082015250565b60006128d8601983611efb565b91506128e3826128a2565b602082019050919050565b60006020820190508181036000830152612907816128cb565b9050919050565b7f506175736561626c653a20706175736564000000000000000000000000000000600082015250565b6000612944601183611efb565b915061294f8261290e565b602082019050919050565b6000602082019050818103600083015261297381612937565b9050919050565b7f506175736561626c653a206e6f74207061757365640000000000000000000000600082015250565b60006129b0601583611efb565b91506129bb8261297a565b602082019050919050565b600060208201905081810360008301526129df816129a3565b905091905056fea264697066735822122075c15b842cb4b701764acab0a049ad42199da8e8ddfa395f0b884ba6fa9707d664736f6c634300080a0033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106100f55760003560e01c80637182e74911610097578063f2fde38b11610066578063f2fde38b14610297578063f63bf8bd146102b3578063fc90ff42146102cf578063fe8ff146146102eb576100f5565b80637182e749146101e85780638da5cb5b146102195780639cc932ed14610237578063e0b05c2614610267576100f5565b8063425ff80a116100d3578063425ff80a1461014e5780635c975abb1461016a5780636352211e146101885780636d5e3032146101b8576100f5565b806316c38b3c146100fa57806332774484146101165780633d36d3dd14610132575b600080fd5b610114600480360381019061010f919061182e565b61031b565b005b610130600480360381019061012b9190611891565b6103b6565b005b61014c60048036038101906101479190611891565b610459565b005b61016860048036038101906101639190611a2a565b6104fc565b005b6101726106c9565b60405161017f9190611a82565b60405180910390f35b6101a2600480360381019061019d9190611a9d565b6106df565b6040516101af9190611b0b565b60405180910390f35b6101d260048036038101906101cd9190611a9d565b610879565b6040516101df9190611b42565b60405180910390f35b61020260048036038101906101fd9190611a9d565b610899565b604051610210929190611c32565b60405180910390f35b610221610975565b60405161022e9190611b0b565b60405180910390f35b610251600480360381019061024c9190611a9d565b61099e565b60405161025e9190611c6c565b60405180910390f35b610281600480360381019061027c9190611a9d565b6109c2565b60405161028e9190611c6c565b60405180910390f35b6102b160048036038101906102ac9190611cb3565b6109e6565b005b6102cd60048036038101906102c89190611dd8565b610ade565b005b6102e960048036038101906102e49190611eae565b610ca6565b005b61030560048036038101906103009190611a9d565b611554565b6040516103129190611c6c565b60405180910390f35b61032361156c565b73ffffffffffffffffffffffffffffffffffffffff16610341610975565b73ffffffffffffffffffffffffffffffffffffffff1614610397576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161038e90611f58565b60405180910390fd5b80156103aa576103a5611574565b6103b3565b6103b2611617565b5b50565b6103be61156c565b73ffffffffffffffffffffffffffffffffffffffff166103dc610975565b73ffffffffffffffffffffffffffffffffffffffff1614610432576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161042990611f58565b60405180910390fd5b806008838154811061044757610446611f78565b5b90600052602060002001819055505050565b61046161156c565b73ffffffffffffffffffffffffffffffffffffffff1661047f610975565b73ffffffffffffffffffffffffffffffffffffffff16146104d5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016104cc90611f58565b60405180910390fd5b80600983815481106104ea576104e9611f78565b5b90600052602060002001819055505050565b6000805b825181101561062b5760006006600085848151811061052257610521611f78565b5b6020026020010151815260200190815260200160002060009054906101000a900460ff1660ff169050600081141561055a5750610618565b60096001826105699190611fd6565b8154811061057a57610579611f78565b5b906000526020600020015483610590919061200a565b92506000600760008685815181106105ab576105aa611f78565b5b60200260200101518152602001908152602001600020819055507f4a6058847da607184eb1b1606d985157dc3015668a19fcfe92a521dfc6afe8bd8483815181106105f9576105f8611f78565b5b602002602001015160405161060e9190611c6c565b60405180910390a1505b808061062390612060565b915050610500565b5060008111156106c557600560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639dc29fac33836040518363ffffffff1660e01b81526004016106929291906120a9565b600060405180830381600087803b1580156106ac57600080fd5b505af11580156106c0573d6000803e3d6000fd5b505050505b5050565b60008060149054906101000a900460ff16905090565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b815260040161073c9190611c6c565b602060405180830381865afa158015610759573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061077d91906120e7565b9050600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561087457600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166394edf9d4836040518263ffffffff1660e01b81526004016108309190611c6c565b602060405180830381865afa15801561084d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061087191906120e7565b90505b919050565b60066020528060005260406000206000915054906101000a900460ff1681565b6108a161177c565b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166394e56847846040518263ffffffff1660e01b81526004016108fe9190611c6c565b61012060405180830381865afa15801561091c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610940919061223a565b9150816000015115610970576006600084815260200190815260200160002060009054906101000a900460ff1690505b915091565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600981815481106109ae57600080fd5b906000526020600020016000915090505481565b600881815481106109d257600080fd5b906000526020600020016000915090505481565b6109ee61156c565b73ffffffffffffffffffffffffffffffffffffffff16610a0c610975565b73ffffffffffffffffffffffffffffffffffffffff1614610a62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a5990611f58565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610ad2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ac9906122da565b60405180910390fd5b610adb816116b8565b50565b610ae661156c565b73ffffffffffffffffffffffffffffffffffffffff16610b04610975565b73ffffffffffffffffffffffffffffffffffffffff1614610b5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5190611f58565b60405180910390fd5b82600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084600360006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600460006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555083600260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555080600560006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050505050565b600560149054906101000a900460ff1615610cf6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ced90612346565b60405180910390fd5b6001600560146101000a81548160ff021916908315150217905550610d196106c9565b1580610d575750610d28610975565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b610d96576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d8d906123b2565b60405180910390fd5b60008282905011610ddc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dd39061241e565b60405180910390fd5b6000339050600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639b05e6b28484336040518463ffffffff1660e01b8152600401610e409392919061253b565b600060405180830381600087803b158015610e5a57600080fd5b505af1158015610e6e573d6000803e3d6000fd5b505050506000600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231836040518263ffffffff1660e01b8152600401610ecf9190611b0b565b602060405180830381865afa158015610eec573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f109190612582565b90506000805b8585905081101561145f576000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166394e56847888885818110610f7457610f73611f78565b5b9050602002016020810190610f8991906125af565b61ffff166040518263ffffffff1660e01b8152600401610fa99190611c6c565b61012060405180830381865afa158015610fc7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610feb919061223a565b9050600087878481811061100257611001611f78565b5b905060200201602081019061101791906125af565b61ffff1690508160000151611061576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161105890612628565b60405180910390fd5b6000600260009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16636352211e836040518263ffffffff1660e01b81526004016110be9190611c6c565b602060405180830381865afa1580156110db573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110ff91906120e7565b9050600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156111f657600360009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166394edf9d4836040518263ffffffff1660e01b81526004016111b29190611c6c565b602060405180830381865afa1580156111cf573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111f391906120e7565b90505b8673ffffffffffffffffffffffffffffffffffffffff16611216836106df565b73ffffffffffffffffffffffffffffffffffffffff161461126c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161126390612694565b60405180910390fd5b60006006600084815260200190815260200160002060009054906101000a900460ff16905060328160ff16106112d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ce90612700565b60405180910390fd5b610e108160ff166112e89190612720565b61ffff1660076000858152602001908152602001600020544261130b9190611fd6565b1161134b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611342906127a8565b60405180910390fd5b60088160ff168154811061136257611361611f78565b5b906000526020600020015486611378919061200a565b955060016006600085815260200190815260200160002060008282829054906101000a900460ff166113aa91906127c8565b92506101000a81548160ff021916908360ff1602179055504260076000858152602001908152602001600020819055507f68d3fd0f3015f12d97f22156177c14064aebc5c19c2cd9889a14116de89642e9888b8b8881811061140f5761140e611f78565b5b905060200201602081019061142491906125af565b60018461143191906127c8565b6040516114409392919061286b565b60405180910390a150505050808061145790612060565b915050610f16565b50808210156114a3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161149a906128ee565b60405180910390fd5b600460009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639dc29fac84836040518363ffffffff1660e01b81526004016115009291906120a9565b600060405180830381600087803b15801561151a57600080fd5b505af115801561152e573d6000803e3d6000fd5b505050505050506000600560146101000a81548160ff0219169083151502179055505050565b60076020528060005260406000206000915090505481565b600033905090565b61157c6106c9565b156115bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115b39061295a565b60405180910390fd5b6001600060146101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861160061156c565b60405161160d9190611b0b565b60405180910390a1565b61161f6106c9565b61165e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611655906129c6565b60405180910390fd5b60008060146101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6116a161156c565b6040516116ae9190611b0b565b60405180910390a1565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b604051806101200160405280600015158152602001600060ff168152602001600060ff168152602001600060ff168152602001600060ff168152602001600060ff168152602001600060ff168152602001600060ff168152602001600060ff1681525090565b6000604051905090565b600080fd5b600080fd5b60008115159050919050565b61180b816117f6565b811461181657600080fd5b50565b60008135905061182881611802565b92915050565b600060208284031215611844576118436117ec565b5b600061185284828501611819565b91505092915050565b6000819050919050565b61186e8161185b565b811461187957600080fd5b50565b60008135905061188b81611865565b92915050565b600080604083850312156118a8576118a76117ec565b5b60006118b68582860161187c565b92505060206118c78582860161187c565b9150509250929050565b600080fd5b6000601f19601f8301169050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61191f826118d6565b810181811067ffffffffffffffff8211171561193e5761193d6118e7565b5b80604052505050565b60006119516117e2565b905061195d8282611916565b919050565b600067ffffffffffffffff82111561197d5761197c6118e7565b5b602082029050602081019050919050565b600080fd5b60006119a66119a184611962565b611947565b905080838252602082019050602084028301858111156119c9576119c861198e565b5b835b818110156119f257806119de888261187c565b8452602084019350506020810190506119cb565b5050509392505050565b600082601f830112611a1157611a106118d1565b5b8135611a21848260208601611993565b91505092915050565b600060208284031215611a4057611a3f6117ec565b5b600082013567ffffffffffffffff811115611a5e57611a5d6117f1565b5b611a6a848285016119fc565b91505092915050565b611a7c816117f6565b82525050565b6000602082019050611a976000830184611a73565b92915050565b600060208284031215611ab357611ab26117ec565b5b6000611ac18482850161187c565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000611af582611aca565b9050919050565b611b0581611aea565b82525050565b6000602082019050611b206000830184611afc565b92915050565b600060ff82169050919050565b611b3c81611b26565b82525050565b6000602082019050611b576000830184611b33565b92915050565b611b66816117f6565b82525050565b611b7581611b26565b82525050565b61012082016000820151611b926000850182611b5d565b506020820151611ba56020850182611b6c565b506040820151611bb86040850182611b6c565b506060820151611bcb6060850182611b6c565b506080820151611bde6080850182611b6c565b5060a0820151611bf160a0850182611b6c565b5060c0820151611c0460c0850182611b6c565b5060e0820151611c1760e0850182611b6c565b50610100820151611c2c610100850182611b6c565b50505050565b600061014082019050611c486000830185611b7b565b611c56610120830184611b33565b9392505050565b611c668161185b565b82525050565b6000602082019050611c816000830184611c5d565b92915050565b611c9081611aea565b8114611c9b57600080fd5b50565b600081359050611cad81611c87565b92915050565b600060208284031215611cc957611cc86117ec565b5b6000611cd784828501611c9e565b91505092915050565b6000611ceb82611aea565b9050919050565b611cfb81611ce0565b8114611d0657600080fd5b50565b600081359050611d1881611cf2565b92915050565b6000611d2982611aea565b9050919050565b611d3981611d1e565b8114611d4457600080fd5b50565b600081359050611d5681611d30565b92915050565b6000611d6782611aea565b9050919050565b611d7781611d5c565b8114611d8257600080fd5b50565b600081359050611d9481611d6e565b92915050565b6000611da582611aea565b9050919050565b611db581611d9a565b8114611dc057600080fd5b50565b600081359050611dd281611dac565b92915050565b600080600080600060a08688031215611df457611df36117ec565b5b6000611e0288828901611d09565b9550506020611e1388828901611d47565b9450506040611e2488828901611d85565b9350506060611e3588828901611dc3565b9250506080611e4688828901611dc3565b9150509295509295909350565b600080fd5b60008083601f840112611e6e57611e6d6118d1565b5b8235905067ffffffffffffffff811115611e8b57611e8a611e53565b5b602083019150836020820283011115611ea757611ea661198e565b5b9250929050565b60008060208385031215611ec557611ec46117ec565b5b600083013567ffffffffffffffff811115611ee357611ee26117f1565b5b611eef85828601611e58565b92509250509250929050565b600082825260208201905092915050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000611f42602083611efb565b9150611f4d82611f0c565b602082019050919050565b60006020820190508181036000830152611f7181611f35565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000611fe18261185b565b9150611fec8361185b565b925082821015611fff57611ffe611fa7565b5b828203905092915050565b60006120158261185b565b91506120208361185b565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561205557612054611fa7565b5b828201905092915050565b600061206b8261185b565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561209e5761209d611fa7565b5b600182019050919050565b60006040820190506120be6000830185611afc565b6120cb6020830184611c5d565b9392505050565b6000815190506120e181611c87565b92915050565b6000602082840312156120fd576120fc6117ec565b5b600061210b848285016120d2565b91505092915050565b600080fd5b60008151905061212881611802565b92915050565b61213781611b26565b811461214257600080fd5b50565b6000815190506121548161212e565b92915050565b6000610120828403121561217157612170612114565b5b61217c610120611947565b9050600061218c84828501612119565b60008301525060206121a084828501612145565b60208301525060406121b484828501612145565b60408301525060606121c884828501612145565b60608301525060806121dc84828501612145565b60808301525060a06121f084828501612145565b60a08301525060c061220484828501612145565b60c08301525060e061221884828501612145565b60e08301525061010061222d84828501612145565b6101008301525092915050565b60006101208284031215612251576122506117ec565b5b600061225f8482850161215a565b91505092915050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006122c4602683611efb565b91506122cf82612268565b604082019050919050565b600060208201905081810360008301526122f3816122b7565b9050919050565b7f4e6f207265656e7472616e637900000000000000000000000000000000000000600082015250565b6000612330600d83611efb565b915061233b826122fa565b602082019050919050565b6000602082019050818103600083015261235f81612323565b9050919050565b7f5061757365640000000000000000000000000000000000000000000000000000600082015250565b600061239c600683611efb565b91506123a782612366565b602082019050919050565b600060208201905081810360008301526123cb8161238f565b9050919050565b7f4e656564206d6f7265207468616e206f6e6520746f6b656e0000000000000000600082015250565b6000612408601883611efb565b9150612413826123d2565b602082019050919050565b60006020820190508181036000830152612437816123fb565b9050919050565b600082825260208201905092915050565b6000819050919050565b600061ffff82169050919050565b61247081612459565b82525050565b60006124828383612467565b60208301905092915050565b61249781612459565b81146124a257600080fd5b50565b6000813590506124b48161248e565b92915050565b60006124c960208401846124a5565b905092915050565b6000602082019050919050565b60006124ea838561243e565b93506124f58261244f565b8060005b8581101561252e5761250b82846124ba565b6125158882612476565b9750612520836124d1565b9250506001810190506124f9565b5085925050509392505050565b600060408201905081810360008301526125568185876124de565b90506125656020830184611afc565b949350505050565b60008151905061257c81611865565b92915050565b600060208284031215612598576125976117ec565b5b60006125a68482850161256d565b91505092915050565b6000602082840312156125c5576125c46117ec565b5b60006125d3848285016124a5565b91505092915050565b7f4f6e6c7920746869657665732063616e20626520757067726164656400000000600082015250565b6000612612601c83611efb565b915061261d826125dc565b602082019050919050565b6000602082019050818103600083015261264181612605565b9050919050565b7f596f7520617265206e6f74206f776e6572000000000000000000000000000000600082015250565b600061267e601183611efb565b915061268982612648565b602082019050919050565b600060208201905081810360008301526126ad81612671565b9050919050565b7f52656163686564206c6174657374206c6576656c000000000000000000000000600082015250565b60006126ea601483611efb565b91506126f5826126b4565b602082019050919050565b60006020820190508181036000830152612719816126dd565b9050919050565b600061272b82612459565b915061273683612459565b92508161ffff048311821515161561275157612750611fa7565b5b828202905092915050565b7f5374696c6c206e6565642074696d65206265666f726520757067726164696e67600082015250565b6000612792602083611efb565b915061279d8261275c565b602082019050919050565b600060208201905081810360008301526127c181612785565b9050919050565b60006127d382611b26565b91506127de83611b26565b92508260ff038211156127f4576127f3611fa7565b5b828201905092915050565b6000819050919050565b600061282461281f61281a84612459565b6127ff565b61185b565b9050919050565b61283481612809565b82525050565b600061285561285061284b84611b26565b6127ff565b61185b565b9050919050565b6128658161283a565b82525050565b60006060820190506128806000830186611afc565b61288d602083018561282b565b61289a604083018461285c565b949350505050565b7f496e73756666696369656e74204c4f4f542062616c616e636500000000000000600082015250565b60006128d8601983611efb565b91506128e3826128a2565b602082019050919050565b60006020820190508181036000830152612907816128cb565b9050919050565b7f506175736561626c653a20706175736564000000000000000000000000000000600082015250565b6000612944601183611efb565b915061294f8261290e565b602082019050919050565b6000602082019050818103600083015261297381612937565b9050919050565b7f506175736561626c653a206e6f74207061757365640000000000000000000000600082015250565b60006129b0601583611efb565b91506129bb8261297a565b602082019050919050565b600060208201905081810360008301526129df816129a3565b905091905056fea264697066735822122075c15b842cb4b701764acab0a049ad42199da8e8ddfa395f0b884ba6fa9707d664736f6c634300080a0033

Block Transaction 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
[ 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.