Contract 0x142821188ca3954360f48fadad8d32b2b38db022 1

Contract Overview

Balance:
0 BNB
Txn Hash
Block
From
To
Value [Txn Fee]
0x80107f79d1d353a44bfd40e5e14084f62d7ca087580a0cfb894a44a0bf67657e109830922021-07-28 11:09:495 secs ago0xdc3ebc37da53a644d67e5e3b5ba4eef88d969d5c IN  0x142821188ca3954360f48fadad8d32b2b38db0220 BNB0.00042211
0xcde63a4b995ca9d6069cbfdf66d8d1c4f271cf3d16762acfb1788d4ff722242c109830922021-07-28 11:09:495 secs ago0x998cb7821e605cc16b6174e7c50e19adb2dd2fb0 IN  0x142821188ca3954360f48fadad8d32b2b38db0220 BNB0.00222141
0xa478a3ca6689b0a5e9710b00fe64b43dd95e5dd52e005e240ed1d20c4c6751cb109830762021-07-28 11:09:0153 secs ago0x998cb7821e605cc16b6174e7c50e19adb2dd2fb0 IN  0x142821188ca3954360f48fadad8d32b2b38db0220 BNB0.00042143
0xfb5d2c32f5c27db734d56cf85f934aee5a89a3cc3e6ab43222e3b649af84a7c7109830742021-07-28 11:08:5559 secs ago0xdc3ebc37da53a644d67e5e3b5ba4eef88d969d5c IN  0x142821188ca3954360f48fadad8d32b2b38db0220 BNB0.00211918
0xe0ba1b0e7e9ecc4814be7185b1b4cf92ad6c1e6942e937e446d0fae9dc6747ee109830582021-07-28 11:08:071 min ago0xdc3ebc37da53a644d67e5e3b5ba4eef88d969d5c IN  0x142821188ca3954360f48fadad8d32b2b38db0220 BNB0.00211906
0x3113d656730cca2eb8adfefa825a1fa4fa2c9d6fcdd573d228ee680873df56ff109830422021-07-28 11:07:192 mins ago0x998cb7821e605cc16b6174e7c50e19adb2dd2fb0 IN  0x142821188ca3954360f48fadad8d32b2b38db0220 BNB0.00042155
0xae4b26391ba03017d5521de67776ab66c59e021a25d62e7ea6cdc75626dd065c109830412021-07-28 11:07:162 mins ago0xdc3ebc37da53a644d67e5e3b5ba4eef88d969d5c IN  0x142821188ca3954360f48fadad8d32b2b38db0220 BNB0.00211918
0x366deabcf6cfeec28a5afc027b38d79ceac0a6edec8e9afac5b1b4a1a2b5c309109830242021-07-28 11:06:253 mins ago0xdc3ebc37da53a644d67e5e3b5ba4eef88d969d5c IN  0x142821188ca3954360f48fadad8d32b2b38db0220 BNB0.00042235
0x1da154243e8530befc6b1b130d09c4e21f1fd055efe92332fe2955271ee04a4d109830242021-07-28 11:06:253 mins ago0x998cb7821e605cc16b6174e7c50e19adb2dd2fb0 IN  0x142821188ca3954360f48fadad8d32b2b38db0220 BNB0.00222141
0x617d98529b6076d3773468e4962d711d86234a33df5a64fad741ff0c1403638a109830082021-07-28 11:05:374 mins ago0x998cb7821e605cc16b6174e7c50e19adb2dd2fb0 IN  0x142821188ca3954360f48fadad8d32b2b38db0220 BNB0.00222153
0xab56740b66c48da6b2744a55af440b4c1aba9fe4c3475b03a03c7a3433fca47e109829922021-07-28 11:04:495 mins ago0xdc3ebc37da53a644d67e5e3b5ba4eef88d969d5c IN  0x142821188ca3954360f48fadad8d32b2b38db0220 BNB0.0021193
0xd7a4d17264fb7da89e0d3c3fb99436652af315c872f2a8907a925ae693ceaae0109829742021-07-28 11:03:555 mins ago0x998cb7821e605cc16b6174e7c50e19adb2dd2fb0 IN  0x142821188ca3954360f48fadad8d32b2b38db0220 BNB0.00222153
0x08331b5deeb84b725cd12a8e7abf7f4c8053c4a27c3ccb61fec4730ac73b6f75109829572021-07-28 11:03:046 mins ago0xdc3ebc37da53a644d67e5e3b5ba4eef88d969d5c IN  0x142821188ca3954360f48fadad8d32b2b38db0220 BNB0.0021193
0x96d7f17ebf58d37b12452cc2911993d7a42f2e54fddf2625d88d666ad16d0a9d109829402021-07-28 11:02:137 mins ago0x998cb7821e605cc16b6174e7c50e19adb2dd2fb0 IN  0x142821188ca3954360f48fadad8d32b2b38db0220 BNB0.00222153
0x29492466d08d96aa25fa1d63083133d8c12e542862c69dc713482657217f9064109829242021-07-28 11:01:258 mins ago0xdc3ebc37da53a644d67e5e3b5ba4eef88d969d5c IN  0x142821188ca3954360f48fadad8d32b2b38db0220 BNB0.00211918
0x6c55241fa0b2176fafb7bcce5d94f19f66e64b006459e5f92801fb796483b981109829062021-07-28 11:00:319 mins ago0x998cb7821e605cc16b6174e7c50e19adb2dd2fb0 IN  0x142821188ca3954360f48fadad8d32b2b38db0220 BNB0.00222153
0x37f84a071ec025770b1df4c0fc119c3f71a8063cb7ae04c7cfbadcd2e8341cc2109828892021-07-28 10:59:4010 mins ago0xdc3ebc37da53a644d67e5e3b5ba4eef88d969d5c IN  0x142821188ca3954360f48fadad8d32b2b38db0220 BNB0.0021193
0x7369b48609f7b36a682440b301652be9ca5d8491f90ad84825720bacd2a7240c109828732021-07-28 10:58:5211 mins ago0x998cb7821e605cc16b6174e7c50e19adb2dd2fb0 IN  0x142821188ca3954360f48fadad8d32b2b38db0220 BNB0.00042167
0xbbabf4e0f8ac49b2f095e212ff30d334c7bdcd620227c84cc6703d406067979d109828722021-07-28 10:58:4911 mins ago0xdc3ebc37da53a644d67e5e3b5ba4eef88d969d5c IN  0x142821188ca3954360f48fadad8d32b2b38db0220 BNB0.0021193
0xa1f4d9cf0b35538d64b6366eabb7e63cd7641071a500d152444ae27dec356b8b109828562021-07-28 10:58:0111 mins ago0xdc3ebc37da53a644d67e5e3b5ba4eef88d969d5c IN  0x142821188ca3954360f48fadad8d32b2b38db0220 BNB0.00042247
0xf5e74fcc2d76cc2660e4d271c6c00a373022149aafae11fea0f64883210eec2f109828562021-07-28 10:58:0111 mins ago0x998cb7821e605cc16b6174e7c50e19adb2dd2fb0 IN  0x142821188ca3954360f48fadad8d32b2b38db0220 BNB0.00222141
0x5a8f3bcbf359f111eba8977c6b3900348502d544dafeeae8b199f73e5e20112b109828402021-07-28 10:57:1312 mins ago0x998cb7821e605cc16b6174e7c50e19adb2dd2fb0 IN  0x142821188ca3954360f48fadad8d32b2b38db0220 BNB0.00222153
0xf2ebb13c46f87a62028c765ef5dce67011f698a4d55450dc9b8a868c881ba5e9109828212021-07-28 10:56:1613 mins ago0xdc3ebc37da53a644d67e5e3b5ba4eef88d969d5c IN  0x142821188ca3954360f48fadad8d32b2b38db0220 BNB0.0021193
0xbe0df4b95c53f302208de333f7db990cbeaa864fe62cc8519930ac9b1357af68109828042021-07-28 10:55:2514 mins ago0x998cb7821e605cc16b6174e7c50e19adb2dd2fb0 IN  0x142821188ca3954360f48fadad8d32b2b38db0220 BNB0.00222141
0x636b7a5eb110512b1201624c80a847eddd0530083b3daf07758d51cc1e60c046109827882021-07-28 10:54:3715 mins ago0xdc3ebc37da53a644d67e5e3b5ba4eef88d969d5c IN  0x142821188ca3954360f48fadad8d32b2b38db0220 BNB0.00211918
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0xcde63a4b995ca9d6069cbfdf66d8d1c4f271cf3d16762acfb1788d4ff722242c109830922021-07-28 11:09:495 secs ago 0x142821188ca3954360f48fadad8d32b2b38db022 0x42ffecc872c2455831217bad61fb6e089d175b7d0 BNB
0xcde63a4b995ca9d6069cbfdf66d8d1c4f271cf3d16762acfb1788d4ff722242c109830922021-07-28 11:09:495 secs ago 0x142821188ca3954360f48fadad8d32b2b38db022 0x42ffecc872c2455831217bad61fb6e089d175b7d0 BNB
0xcde63a4b995ca9d6069cbfdf66d8d1c4f271cf3d16762acfb1788d4ff722242c109830922021-07-28 11:09:495 secs ago 0x142821188ca3954360f48fadad8d32b2b38db022 0x8f98d3b5c911206c1ac08b9938875620a03bcd590 BNB
0xfb5d2c32f5c27db734d56cf85f934aee5a89a3cc3e6ab43222e3b649af84a7c7109830742021-07-28 11:08:5559 secs ago 0x142821188ca3954360f48fadad8d32b2b38db022 0x42ffecc872c2455831217bad61fb6e089d175b7d0 BNB
0xfb5d2c32f5c27db734d56cf85f934aee5a89a3cc3e6ab43222e3b649af84a7c7109830742021-07-28 11:08:5559 secs ago 0x142821188ca3954360f48fadad8d32b2b38db022 0x42ffecc872c2455831217bad61fb6e089d175b7d0 BNB
0xfb5d2c32f5c27db734d56cf85f934aee5a89a3cc3e6ab43222e3b649af84a7c7109830742021-07-28 11:08:5559 secs ago 0x142821188ca3954360f48fadad8d32b2b38db022 0x42ffecc872c2455831217bad61fb6e089d175b7d0 BNB
0xfb5d2c32f5c27db734d56cf85f934aee5a89a3cc3e6ab43222e3b649af84a7c7109830742021-07-28 11:08:5559 secs ago 0x142821188ca3954360f48fadad8d32b2b38db022 0x8f98d3b5c911206c1ac08b9938875620a03bcd590 BNB
0xe0ba1b0e7e9ecc4814be7185b1b4cf92ad6c1e6942e937e446d0fae9dc6747ee109830582021-07-28 11:08:071 min ago 0x142821188ca3954360f48fadad8d32b2b38db022 0x42ffecc872c2455831217bad61fb6e089d175b7d0 BNB
0xe0ba1b0e7e9ecc4814be7185b1b4cf92ad6c1e6942e937e446d0fae9dc6747ee109830582021-07-28 11:08:071 min ago 0x142821188ca3954360f48fadad8d32b2b38db022 0x42ffecc872c2455831217bad61fb6e089d175b7d0 BNB
0xe0ba1b0e7e9ecc4814be7185b1b4cf92ad6c1e6942e937e446d0fae9dc6747ee109830582021-07-28 11:08:071 min ago 0x142821188ca3954360f48fadad8d32b2b38db022 0x42ffecc872c2455831217bad61fb6e089d175b7d0 BNB
0xe0ba1b0e7e9ecc4814be7185b1b4cf92ad6c1e6942e937e446d0fae9dc6747ee109830582021-07-28 11:08:071 min ago 0x142821188ca3954360f48fadad8d32b2b38db022 0x8f98d3b5c911206c1ac08b9938875620a03bcd590 BNB
0xae4b26391ba03017d5521de67776ab66c59e021a25d62e7ea6cdc75626dd065c109830412021-07-28 11:07:162 mins ago 0x142821188ca3954360f48fadad8d32b2b38db022 0x42ffecc872c2455831217bad61fb6e089d175b7d0 BNB
0xae4b26391ba03017d5521de67776ab66c59e021a25d62e7ea6cdc75626dd065c109830412021-07-28 11:07:162 mins ago 0x142821188ca3954360f48fadad8d32b2b38db022 0x42ffecc872c2455831217bad61fb6e089d175b7d0 BNB
0xae4b26391ba03017d5521de67776ab66c59e021a25d62e7ea6cdc75626dd065c109830412021-07-28 11:07:162 mins ago 0x142821188ca3954360f48fadad8d32b2b38db022 0x42ffecc872c2455831217bad61fb6e089d175b7d0 BNB
0xae4b26391ba03017d5521de67776ab66c59e021a25d62e7ea6cdc75626dd065c109830412021-07-28 11:07:162 mins ago 0x142821188ca3954360f48fadad8d32b2b38db022 0x8f98d3b5c911206c1ac08b9938875620a03bcd590 BNB
0x1da154243e8530befc6b1b130d09c4e21f1fd055efe92332fe2955271ee04a4d109830242021-07-28 11:06:253 mins ago 0x142821188ca3954360f48fadad8d32b2b38db022 0x42ffecc872c2455831217bad61fb6e089d175b7d0 BNB
0x1da154243e8530befc6b1b130d09c4e21f1fd055efe92332fe2955271ee04a4d109830242021-07-28 11:06:253 mins ago 0x142821188ca3954360f48fadad8d32b2b38db022 0x42ffecc872c2455831217bad61fb6e089d175b7d0 BNB
0x1da154243e8530befc6b1b130d09c4e21f1fd055efe92332fe2955271ee04a4d109830242021-07-28 11:06:253 mins ago 0x142821188ca3954360f48fadad8d32b2b38db022 0x8f98d3b5c911206c1ac08b9938875620a03bcd590 BNB
0x617d98529b6076d3773468e4962d711d86234a33df5a64fad741ff0c1403638a109830082021-07-28 11:05:374 mins ago 0x142821188ca3954360f48fadad8d32b2b38db022 0x42ffecc872c2455831217bad61fb6e089d175b7d0 BNB
0x617d98529b6076d3773468e4962d711d86234a33df5a64fad741ff0c1403638a109830082021-07-28 11:05:374 mins ago 0x142821188ca3954360f48fadad8d32b2b38db022 0x42ffecc872c2455831217bad61fb6e089d175b7d0 BNB
0x617d98529b6076d3773468e4962d711d86234a33df5a64fad741ff0c1403638a109830082021-07-28 11:05:374 mins ago 0x142821188ca3954360f48fadad8d32b2b38db022 0x8f98d3b5c911206c1ac08b9938875620a03bcd590 BNB
0xab56740b66c48da6b2744a55af440b4c1aba9fe4c3475b03a03c7a3433fca47e109829922021-07-28 11:04:495 mins ago 0x142821188ca3954360f48fadad8d32b2b38db022 0x42ffecc872c2455831217bad61fb6e089d175b7d0 BNB
0xab56740b66c48da6b2744a55af440b4c1aba9fe4c3475b03a03c7a3433fca47e109829922021-07-28 11:04:495 mins ago 0x142821188ca3954360f48fadad8d32b2b38db022 0x42ffecc872c2455831217bad61fb6e089d175b7d0 BNB
0xab56740b66c48da6b2744a55af440b4c1aba9fe4c3475b03a03c7a3433fca47e109829922021-07-28 11:04:495 mins ago 0x142821188ca3954360f48fadad8d32b2b38db022 0x42ffecc872c2455831217bad61fb6e089d175b7d0 BNB
0xab56740b66c48da6b2744a55af440b4c1aba9fe4c3475b03a03c7a3433fca47e109829922021-07-28 11:04:495 mins ago 0x142821188ca3954360f48fadad8d32b2b38db022 0x8f98d3b5c911206c1ac08b9938875620a03bcd590 BNB
[ Download CSV Export 
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Chain

Compiler Version
v0.6.8+commit.0bbfe453

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at BscScan.com on 2021-07-07
*/

// File: @openzeppelin/contracts/math/SafeMath.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

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

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

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

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

        return c;
    }

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

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

// File: @openzeppelin/contracts/cryptography/MerkleProof.sol


pragma solidity ^0.6.0;

/**
 * @dev These functions deal with verification of Merkle trees (hash trees),
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {
        bytes32 computedHash = leaf;

        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];

            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }

        // Check if the computed hash (root) is equal to the provided root
        return computedHash == root;
    }
}

// File: @openzeppelin/contracts/GSN/Context.sol


pragma solidity ^0.6.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 GSN 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 payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

// File: @openzeppelin/contracts/access/Ownable.sol


pragma solidity ^0.6.0;

/**
 * @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.
 */
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 () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view 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 {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

// File: @umb-network/toolbox/dist/contracts/lib/ValueDecoder.sol

pragma solidity >=0.6.8;

library ValueDecoder {
  function toUint(bytes memory _bytes) internal pure returns (uint256 value) {
    assembly {
      value := mload(add(_bytes, 32))
    }
  }
}

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol


pragma solidity ^0.6.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

// File: contracts/interfaces/IStakingBank.sol

pragma solidity ^0.6.8;


interface IStakingBank is IERC20 {
  function receiveApproval(address _from) external returns (bool success);

  function withdraw(uint256 _value) external returns (bool success);
}

// File: contracts/interfaces/IValidatorRegistry.sol

pragma solidity ^0.6.8;

interface IValidatorRegistry {
  function create(address _id, string calldata _location) external;

  function update(address _id, string calldata _location) external;

  function addresses(uint256 _ix) external view returns (address);

  function validators(address _id) external view returns (address id, string memory location);

  function getNumberOfValidators() external view returns (uint256);

  function getName() external pure returns (bytes32);
}

// File: @openzeppelin/contracts/utils/Address.sol


pragma solidity ^0.6.2;

/**
 * @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 in extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        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");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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");
        return _functionCallWithValue(target, data, value, errorMessage);
    }

    function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
        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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// File: @openzeppelin/contracts/token/ERC20/ERC20.sol


pragma solidity ^0.6.0;





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

    mapping (address => uint256) private _balances;

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

    uint256 private _totalSupply;

    string private _name;
    string private _symbol;
    uint8 private _decimals;

    /**
     * @dev Sets the values for {name} and {symbol}, initializes {decimals} with
     * a default value of 18.
     *
     * To select a different value for {decimals}, use {_setupDecimals}.
     *
     * All three of these values are immutable: they can only be set once during
     * construction.
     */
    constructor (string memory name, string memory symbol) public {
        _name = name;
        _symbol = symbol;
        _decimals = 18;
    }

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfer(sender, recipient, amount);

        _balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
        _balances[recipient] = _balances[recipient].add(amount);
        emit Transfer(sender, recipient, amount);
    }

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

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

        _totalSupply = _totalSupply.add(amount);
        _balances[account] = _balances[account].add(amount);
        emit Transfer(address(0), account, amount);
    }

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

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

        _balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
        _totalSupply = _totalSupply.sub(amount);
        emit Transfer(account, address(0), amount);
    }

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

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

    /**
     * @dev Sets {decimals} to a value other than the default one of 18.
     *
     * WARNING: This function should only be called from the constructor. Most
     * applications that interact with token contracts will not expect
     * {decimals} to ever change, and may work incorrectly if it does.
     */
    function _setupDecimals(uint8 decimals_) internal {
        _decimals = decimals_;
    }

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

// File: contracts/interfaces/IRegistry.sol

pragma solidity 0.6.8;


interface IRegistry {
    function getAddress(bytes32 name) external view returns (address);

    function requireAndGetAddress(bytes32 name) external view returns (address);
}

// File: contracts/extensions/Registrable.sol

pragma solidity 0.6.8;





abstract contract Registrable {
  IRegistry public contractRegistry;

  // ========== CONSTRUCTOR ========== //

  constructor(address _contractRegistry) internal {
    require(_contractRegistry != address(0x0), "_registry is empty");
    contractRegistry = IRegistry(_contractRegistry);
  }

  // ========== MODIFIERS ========== //

  modifier onlyFromContract(address _msgSender, bytes32 _contractName) {
    require(
      contractRegistry.getAddress(_contractName) == _msgSender,
        string(abi.encodePacked("caller is not ", _contractName))
    );
    _;
  }

  modifier withRegistrySetUp() {
    require(address(contractRegistry) != address(0x0), "_registry is empty");
    _;
  }

  // ========== VIEWS ========== //

  function getName() virtual external pure returns (bytes32);

  function validatorRegistryContract() public view returns (IValidatorRegistry) {
    return IValidatorRegistry(contractRegistry.requireAndGetAddress("ValidatorRegistry"));
  }

  function stakingBankContract() public view returns (IStakingBank) {
    return IStakingBank(contractRegistry.requireAndGetAddress("StakingBank"));
  }

  function tokenContract() public view withRegistrySetUp returns (ERC20) {
    return ERC20(contractRegistry.requireAndGetAddress("UMB"));
  }
}

// File: contracts/Registry.sol

pragma solidity 0.6.8;

// Inheritance



contract Registry is Ownable {
  mapping(bytes32 => address) public registry;

  // ========== EVENTS ========== //

  event LogRegistered(address indexed destination, bytes32 name);

  // ========== MUTATIVE FUNCTIONS ========== //

  function importAddresses(bytes32[] calldata _names, address[] calldata _destinations) external onlyOwner {
    require(_names.length == _destinations.length, "Input lengths must match");

    for (uint i = 0; i < _names.length; i++) {
      registry[_names[i]] = _destinations[i];
      emit LogRegistered(_destinations[i], _names[i]);
    }
  }

  function importContracts(address[] calldata _destinations) external onlyOwner {
    for (uint i = 0; i < _destinations.length; i++) {
      bytes32 name = Registrable(_destinations[i]).getName();
      registry[name] = _destinations[i];
      emit LogRegistered(_destinations[i], name);
    }
  }

  // ========== VIEWS ========== //

  function requireAndGetAddress(bytes32 name) external view returns (address) {
    address _foundAddress = registry[name];
    require(_foundAddress != address(0), string(abi.encodePacked("Name not registered: ", name)));
    return _foundAddress;
  }

  function getAddress(bytes32 _bytes) external view returns (address) {
    return registry[_bytes];
  }

  function getAddressByString(string memory _name) public view returns (address) {
    return registry[stringToBytes32(_name)];
  }

  function stringToBytes32(string memory _string) public pure returns (bytes32 result) {
    bytes memory tempEmptyStringTest = bytes(_string);

    if (tempEmptyStringTest.length == 0) {
      return 0x0;
    }

    assembly {
      result := mload(add(_string, 32))
    }
  }
}

// File: contracts/Chain.sol

pragma solidity ^0.6.8;
pragma experimental ABIEncoderV2;









contract Chain is Registrable, Ownable {
  using SafeMath for uint256;
  using ValueDecoder for bytes;

  // ========== STATE VARIABLES ========== //

  bytes constant public ETH_PREFIX = "\x19Ethereum Signed Message:\n32";

  struct Block {
    bytes32 root;
    uint32 dataTimestamp;
    uint128 affidavit;
  }

  struct FirstClassData {
    uint224 value;
    uint32 dataTimestamp;
  }

  mapping(uint256 => Block) public blocks;
  mapping(bytes32 => FirstClassData) public fcds;

  uint32 public blocksCount;
  uint32 public blocksCountOffset;
  uint16 public padding;

  // ========== CONSTRUCTOR ========== //

  constructor(address _contractRegistry, uint16 _padding) public Registrable(_contractRegistry) {
    padding = _padding;
    Chain oldChain = Chain(Registry(_contractRegistry).getAddress("Chain"));

    if (address(oldChain) != address(0x0)) {
      // +1 because it might be situation when tx is already in progress in old contract
      blocksCountOffset = oldChain.blocksCount() + oldChain.blocksCountOffset() + 1;
    }
  }

  // ========== MUTATIVE FUNCTIONS ========== //

  function setPadding(uint16 _padding) external onlyOwner {
    padding = _padding;
    emit LogPadding(msg.sender, _padding);
  }

  function submit(
    uint32 _dataTimestamp,
    bytes32 _root,
    bytes32[] memory _keys,
    uint256[] memory _values,
    uint8[] memory _v,
    bytes32[] memory _r,
    bytes32[] memory _s
  ) public {
    uint32 lastBlockId = getLatestBlockId();
    require(blocks[lastBlockId].dataTimestamp + padding < block.timestamp, "do not spam");
    require(blocks[lastBlockId].dataTimestamp < _dataTimestamp, "can NOT submit older data");
    // we can't expect minter will have exactly the same timestamp
    // but for sure we can demand not to be off by a lot, that's why +3sec
    require(_dataTimestamp <= block.timestamp + 3,
      string(abi.encodePacked("oh, so you can predict the future:", _dataTimestamp - block.timestamp + 48)));
    require(_keys.length == _values.length, "numbers of keys and values not the same");

    bytes memory testimony = abi.encodePacked(_dataTimestamp, _root);

    for (uint256 i = 0; i < _keys.length; i++) {
      require(uint224(_values[i]) == _values[i], "FCD overflow");
      fcds[_keys[i]] = FirstClassData(uint224(_values[i]), _dataTimestamp);
      testimony = abi.encodePacked(testimony, _keys[i], _values[i]);
    }

    bytes32 affidavit = keccak256(testimony);
    uint256 power = 0;

    IStakingBank stakingBank = stakingBankContract();
    uint256 staked = stakingBank.totalSupply();
    address prevSigner = address(0x0);

    for (uint256 i = 0; i < _v.length; i++) {
      address signer = recoverSigner(affidavit, _v[i], _r[i], _s[i]);
      uint256 balance = stakingBank.balanceOf(signer);

      require(prevSigner < signer, "validator included more than once");
      prevSigner = signer;
      if (balance == 0) continue;

      emit LogVoter(lastBlockId + 1, signer, balance);
      power = power.add(balance);
    }

    // TODO to optimise, break the loop when get enough power
    require(power.mul(100) >= staked.mul(66), "not enough power was gathered");

    blocks[lastBlockId + 1].root = _root;
    blocks[lastBlockId + 1].dataTimestamp = _dataTimestamp;
    blocks[lastBlockId + 1].affidavit = uint128(bytes16(affidavit));
    blocksCount++;

    emit LogMint(msg.sender, lastBlockId + 1, staked, power);
  }

  // ========== VIEWS ========== //

  function getName() override external pure returns (bytes32) {
    return "Chain";
  }

  function recoverSigner(bytes32 _affidavit, uint8 _v, bytes32 _r, bytes32 _s) public pure returns (address) {
    bytes32 hash = keccak256(abi.encodePacked(ETH_PREFIX, _affidavit));
    return ecrecover(hash, _v, _r, _s);
  }

  function getStatus() external view returns(
    uint256 blockNumber,
    uint16 timePadding,
    uint32 lastDataTimestamp,
    uint32 lastBlockId,
    address nextLeader,
    uint32 nextBlockId,
    address[] memory validators,
    uint256[] memory powers,
    string[] memory locations,
    uint256 staked
  ) {
    blockNumber = block.number;
    timePadding = padding;
    lastBlockId = getLatestBlockId();
    lastDataTimestamp = blocks[lastBlockId].dataTimestamp;

    IValidatorRegistry vr = validatorRegistryContract();
    uint256 numberOfValidators = vr.getNumberOfValidators();
    validators = new address[](numberOfValidators);
    locations = new string[](numberOfValidators);

    for (uint256 i = 0; i < numberOfValidators; i++) {
      validators[i] = vr.addresses(i);
      (, locations[i]) = vr.validators(validators[i]);
    }

    nextBlockId = getBlockIdAtTimestamp(block.timestamp + 1);

    nextLeader = numberOfValidators > 0
      ? validators[getLeaderIndex(numberOfValidators, block.timestamp + 1)]
      : address(0);

    IStakingBank stakingBank = stakingBankContract();
    powers = new uint256[](numberOfValidators);
    staked = stakingBank.totalSupply();

    for (uint256 i = 0; i < numberOfValidators; i++) {
      powers[i] = stakingBank.balanceOf(validators[i]);
    }
  }

  function getBlockId() public view returns (uint32) {
    return getBlockIdAtTimestamp(block.timestamp);
  }

  // this function does not works for past timestamps
  function getBlockIdAtTimestamp(uint256 _timestamp) public view returns (uint32) {
    uint32 _blocksCount = blocksCount + blocksCountOffset;

    if (_blocksCount == 0) {
      return 0;
    }

    if (blocks[_blocksCount - 1].dataTimestamp + padding < _timestamp) {
      return _blocksCount;
    }

    return _blocksCount - 1;
  }

  function getLatestBlockId() public view returns (uint32) {
    return blocksCount + blocksCountOffset - 1;
  }

  // note: I think its time to move leader selection from Chain
  // we don't have anchor so we using timestamp, but timestamp if available without calling blockchain
  // I will leave this methods but it should be deprecated soon
  function getLeaderIndex(uint256 _numberOfValidators, uint256 _timestamp) public view returns (uint256) {
    uint32 latestBlockId = getLatestBlockId();

    // timePadding + 1 => because padding is a space between blocks, so next round starts on first block after padding
    uint256 validatorIndex = latestBlockId +
      (_timestamp - blocks[latestBlockId].dataTimestamp) / (padding + 1);

    return uint16(validatorIndex % _numberOfValidators);
  }

  function getNextLeaderAddress() public view returns (address) {
    return getLeaderAddressAtTime(block.timestamp + 1);
  }

  function getLeaderAddress() public view returns (address) {
    return getLeaderAddressAtTime(block.timestamp);
  }

  // @todo - properly handled non-enabled validators, newly added validators, and validators with low stake
  function getLeaderAddressAtTime(uint256 _timestamp) public view returns (address) {
    IValidatorRegistry validatorRegistry = validatorRegistryContract();

    uint256 numberOfValidators = validatorRegistry.getNumberOfValidators();

    if (numberOfValidators == 0) {
      return address(0x0);
    }

    uint256 validatorIndex = getLeaderIndex(numberOfValidators, _timestamp);

    return validatorRegistry.addresses(validatorIndex);
  }

  function verifyProof(bytes32[] memory _proof, bytes32 _root, bytes32 _leaf) public view returns (bool) {
    if (_root == bytes32(0)) {
      return false;
    }

    return MerkleProof.verify(_proof, _root, _leaf);
  }

  function hashLeaf(bytes memory _key, bytes memory _value) public view returns (bytes32) {
    return keccak256(abi.encodePacked(_key, _value));
  }

  function verifyProofForBlock(
    uint256 _blockId,
    bytes32[] memory _proof,
    bytes memory _key,
    bytes memory _value
  ) public view returns (bool) {
    return verifyProof(_proof, blocks[_blockId].root, keccak256(abi.encodePacked(_key, _value)));
  }

  function bytesToBytes32Array(
    bytes memory _data,
    uint256 _offset,
    uint256 _items
  ) public pure returns (bytes32[] memory) {
    bytes32[] memory dataList = new bytes32[](_items);

    for (uint256 i = 0; i < _items; i++) {
      bytes32 temp;
      uint256 idx = (i + 1 + _offset) * 32;

      assembly {
        temp := mload(add(_data, idx))
      }

      dataList[i] = temp;
    }

    return (dataList);
  }

  function verifyProofs(
    uint32[] memory _blockIds,
    bytes memory _proofs,
    uint256[] memory _proofItemsCounter,
    bytes32[] memory _leaves
  ) public view returns (bool[] memory results) {
    results = new bool[](_leaves.length);
    uint256 offset = 0;

    for (uint256 i = 0; i < _leaves.length; i++) {
      results[i] = verifyProof(
        bytesToBytes32Array(_proofs, offset, _proofItemsCounter[i]),
        blocks[_blockIds[i]].root,
        _leaves[i]
      );

      offset += _proofItemsCounter[i];
    }
  }

  function getBlockRoot(uint32 _blockId) external view returns (bytes32) {
    return blocks[_blockId].root;
  }

  function getBlockTimestamp(uint32 _blockId) external view returns (uint32) {
    return blocks[_blockId].dataTimestamp;
  }

  function getCurrentValues(bytes32[] calldata _keys)
  external view returns (uint256[] memory values, uint32[] memory timestamps) {
    timestamps = new uint32[](_keys.length);
    values = new uint256[](_keys.length);

    for (uint i=0; i<_keys.length; i++) {
      FirstClassData storage numericFCD = fcds[_keys[i]];
      values[i] = uint256(numericFCD.value);
      timestamps[i] = numericFCD.dataTimestamp;
    }
  }

  function getCurrentValue(bytes32 _key) external view returns (uint256 value, uint256 timestamp) {
    FirstClassData storage numericFCD = fcds[_key];
    return (uint256(numericFCD.value), numericFCD.dataTimestamp);
  }

  // ========== EVENTS ========== //

  event LogPadding(address indexed executor, uint16 timePadding);
  event LogMint(address indexed minter, uint256 blockId, uint256 staked, uint256 power);
  event LogVoter(uint256 indexed blockId, address indexed voter, uint256 vote);
}

Contract ABI

[{"inputs":[{"internalType":"address","name":"_contractRegistry","type":"address"},{"internalType":"uint16","name":"_padding","type":"uint16"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"minter","type":"address"},{"indexed":false,"internalType":"uint256","name":"blockId","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"staked","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"power","type":"uint256"}],"name":"LogMint","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"executor","type":"address"},{"indexed":false,"internalType":"uint16","name":"timePadding","type":"uint16"}],"name":"LogPadding","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"blockId","type":"uint256"},{"indexed":true,"internalType":"address","name":"voter","type":"address"},{"indexed":false,"internalType":"uint256","name":"vote","type":"uint256"}],"name":"LogVoter","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"},{"inputs":[],"name":"ETH_PREFIX","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"blocks","outputs":[{"internalType":"bytes32","name":"root","type":"bytes32"},{"internalType":"uint32","name":"dataTimestamp","type":"uint32"},{"internalType":"uint128","name":"affidavit","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"blocksCount","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"blocksCountOffset","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"_data","type":"bytes"},{"internalType":"uint256","name":"_offset","type":"uint256"},{"internalType":"uint256","name":"_items","type":"uint256"}],"name":"bytesToBytes32Array","outputs":[{"internalType":"bytes32[]","name":"","type":"bytes32[]"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"contractRegistry","outputs":[{"internalType":"contract IRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"fcds","outputs":[{"internalType":"uint224","name":"value","type":"uint224"},{"internalType":"uint32","name":"dataTimestamp","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBlockId","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_timestamp","type":"uint256"}],"name":"getBlockIdAtTimestamp","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"_blockId","type":"uint32"}],"name":"getBlockRoot","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"_blockId","type":"uint32"}],"name":"getBlockTimestamp","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_key","type":"bytes32"}],"name":"getCurrentValue","outputs":[{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"timestamp","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_keys","type":"bytes32[]"}],"name":"getCurrentValues","outputs":[{"internalType":"uint256[]","name":"values","type":"uint256[]"},{"internalType":"uint32[]","name":"timestamps","type":"uint32[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLatestBlockId","outputs":[{"internalType":"uint32","name":"","type":"uint32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getLeaderAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_timestamp","type":"uint256"}],"name":"getLeaderAddressAtTime","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_numberOfValidators","type":"uint256"},{"internalType":"uint256","name":"_timestamp","type":"uint256"}],"name":"getLeaderIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getName","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"getNextLeaderAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getStatus","outputs":[{"internalType":"uint256","name":"blockNumber","type":"uint256"},{"internalType":"uint16","name":"timePadding","type":"uint16"},{"internalType":"uint32","name":"lastDataTimestamp","type":"uint32"},{"internalType":"uint32","name":"lastBlockId","type":"uint32"},{"internalType":"address","name":"nextLeader","type":"address"},{"internalType":"uint32","name":"nextBlockId","type":"uint32"},{"internalType":"address[]","name":"validators","type":"address[]"},{"internalType":"uint256[]","name":"powers","type":"uint256[]"},{"internalType":"string[]","name":"locations","type":"string[]"},{"internalType":"uint256","name":"staked","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"_key","type":"bytes"},{"internalType":"bytes","name":"_value","type":"bytes"}],"name":"hashLeaf","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"padding","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_affidavit","type":"bytes32"},{"internalType":"uint8","name":"_v","type":"uint8"},{"internalType":"bytes32","name":"_r","type":"bytes32"},{"internalType":"bytes32","name":"_s","type":"bytes32"}],"name":"recoverSigner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"pure","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_padding","type":"uint16"}],"name":"setPadding","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"stakingBankContract","outputs":[{"internalType":"contract IStakingBank","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32","name":"_dataTimestamp","type":"uint32"},{"internalType":"bytes32","name":"_root","type":"bytes32"},{"internalType":"bytes32[]","name":"_keys","type":"bytes32[]"},{"internalType":"uint256[]","name":"_values","type":"uint256[]"},{"internalType":"uint8[]","name":"_v","type":"uint8[]"},{"internalType":"bytes32[]","name":"_r","type":"bytes32[]"},{"internalType":"bytes32[]","name":"_s","type":"bytes32[]"}],"name":"submit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"tokenContract","outputs":[{"internalType":"contract ERC20","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"validatorRegistryContract","outputs":[{"internalType":"contract IValidatorRegistry","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"},{"internalType":"bytes32","name":"_root","type":"bytes32"},{"internalType":"bytes32","name":"_leaf","type":"bytes32"}],"name":"verifyProof","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_blockId","type":"uint256"},{"internalType":"bytes32[]","name":"_proof","type":"bytes32[]"},{"internalType":"bytes","name":"_key","type":"bytes"},{"internalType":"bytes","name":"_value","type":"bytes"}],"name":"verifyProofForBlock","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint32[]","name":"_blockIds","type":"uint32[]"},{"internalType":"bytes","name":"_proofs","type":"bytes"},{"internalType":"uint256[]","name":"_proofItemsCounter","type":"uint256[]"},{"internalType":"bytes32[]","name":"_leaves","type":"bytes32[]"}],"name":"verifyProofs","outputs":[{"internalType":"bool[]","name":"results","type":"bool[]"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b5060405162004b4a38038062004b4a83398181016040528101906200003791906200042a565b81600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415620000ab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000a290620004ff565b60405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550506000620000fe620003b160201b60201c565b905080600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35080600460086101000a81548161ffff021916908361ffff16021790555060008273ffffffffffffffffffffffffffffffffffffffff166321f8a7216040518163ffffffff1660e01b8152600401620001f59062000521565b60206040518083038186803b1580156200020e57600080fd5b505afa15801562000223573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002499190620003fe565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614620003a85760018173ffffffffffffffffffffffffffffffffffffffff166377839fe66040518163ffffffff1660e01b815260040160206040518083038186803b158015620002c957600080fd5b505afa158015620002de573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200030491906200046b565b8273ffffffffffffffffffffffffffffffffffffffff16637353cbcb6040518163ffffffff1660e01b815260040160206040518083038186803b1580156200034b57600080fd5b505afa15801562000360573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200038691906200046b565b01016004806101000a81548163ffffffff021916908363ffffffff1602179055505b505050620005ed565b600033905090565b600081519050620003ca816200059f565b92915050565b600081519050620003e181620005b9565b92915050565b600081519050620003f881620005d3565b92915050565b6000602082840312156200041157600080fd5b60006200042184828501620003b9565b91505092915050565b600080604083850312156200043e57600080fd5b60006200044e85828601620003b9565b92505060206200046185828601620003d0565b9150509250929050565b6000602082840312156200047e57600080fd5b60006200048e84828501620003e7565b91505092915050565b6000620004a66012836200053c565b91507f5f726567697374727920697320656d70747900000000000000000000000000006000830152602082019050919050565b7f436861696e000000000000000000000000000000000000000000000000000000815250565b600060208201905081810360008301526200051a8162000497565b9050919050565b60006020820190506200053760008301620004d9565b919050565b600082825260208201905092915050565b60006200055a826200056f565b9050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600063ffffffff82169050919050565b620005aa816200054d565b8114620005b657600080fd5b50565b620005c48162000561565b8114620005d057600080fd5b50565b620005de816200058f565b8114620005ea57600080fd5b50565b61454d80620005fd6000396000f3fe608060405234801561001057600080fd5b50600436106102065760003560e01c80638da5cb5b1161011a578063ca4d29d2116100ad578063e76c0b571161007c578063e76c0b571461064f578063ed9975c31461066d578063ef19f3e71461068b578063f25b3f99146106bb578063f2fde38b146106ed57610206565b8063ca4d29d2146105a0578063cbb1b2c7146105d0578063d3d3ea0814610601578063d45167d01461061f57610206565b8063bef9f8a1116100e9578063bef9f8a1146104f2578063bf66e3ba14610522578063c3369db814610552578063c70391671461058257610206565b80638da5cb5b146104675780639f6119d714610485578063abf410e5146104a3578063adf1639d146104c157610206565b8063485e055d1161019d578063637180a81161016c578063637180a8146103d3578063715018a6146103f15780637353cbcb146103fb57806377839fe614610419578063805d34321461043757610206565b8063485e055d146103425780634bc935d71461035e5780634e69d5601461038e57806355a373d6146103b557610206565b8063243b68f9116101d9578063243b68f9146102a757806324c89a49146102d757806326f3ab8b146102f557806340a9e5e31461032657610206565b80630f2acc3e1461020b5780631374df0b1461023b57806317d7de7c14610259578063199dadc514610277575b600080fd5b61022560048036038101906102209190612ce0565b610709565b6040516102329190613b4d565b60405180910390f35b61024361073c565b6040516102509190613e3f565b60405180910390f35b610261610750565b60405161026e9190613b4d565b60405180910390f35b610291600480360381019061028c9190612e2e565b610778565b60405161029e9190613b32565b60405180910390f35b6102c160048036038101906102bc9190612d4c565b6107cd565b6040516102ce9190613ad9565b60405180910390f35b6102df61086f565b6040516102ec9190613be4565b60405180910390f35b61030f600480360381019061030a9190612ae5565b6108a8565b60405161031d929190613afb565b60405180910390f35b610340600480360381019061033b9190612db3565b610a31565b005b61035c60048036038101906103579190612f3e565b610b36565b005b61037860048036038101906103739190612b2a565b611358565b6040516103859190613b32565b60405180910390f35b610396611383565b6040516103ac9a99989796959493929190613e9e565b60405180910390f35b6103bd6118a0565b6040516103ca9190613c06565b60405180910390f35b6103db6119df565b6040516103e89190613c3c565b60405180910390f35b6103f9611a8e565b005b610403611be6565b6040516104109190613f78565b60405180910390f35b610421611bfc565b60405161042e9190613f78565b60405180910390f35b610451600480360381019061044c9190612ddc565b611c11565b60405161045e9190613f78565b60405180910390f35b61046f611cbe565b60405161047c9190613a9c565b60405180910390f35b61048d611ce8565b60405161049a9190613a9c565b60405180910390f35b6104ab611cfb565b6040516104b89190613c21565b60405180910390f35b6104db60048036038101906104d69190612c54565b611d20565b6040516104e9929190613f4f565b60405180910390f35b61050c60048036038101906105079190612f15565b611dad565b6040516105199190613b4d565b60405180910390f35b61053c60048036038101906105379190612b91565b611dd3565b6040516105499190613ab7565b60405180910390f35b61056c60048036038101906105679190612f15565b611eea565b6040516105799190613f78565b60405180910390f35b61058a611f20565b6040516105979190613c57565b60405180910390f35b6105ba60048036038101906105b59190612ed9565b611fcf565b6040516105c79190613e83565b60405180910390f35b6105ea60048036038101906105e59190612c54565b612055565b6040516105f8929190613e5a565b60405180910390f35b6106096120b1565b6040516106169190613f78565b60405180910390f35b61063960048036038101906106349190612c7d565b6120e1565b6040516106469190613a9c565b60405180910390f35b61065761219e565b6040516106649190613f78565b60405180910390f35b6106756121ae565b6040516106829190613a9c565b60405180910390f35b6106a560048036038101906106a09190612ddc565b6121be565b6040516106b29190613a9c565b60405180910390f35b6106d560048036038101906106d09190612ddc565b612303565b6040516106e493929190613b68565b60405180910390f35b61070760048036038101906107029190612a3f565b612359565b005b6000828260405160200161071e929190613a26565b60405160208183030381529060405280519060200120905092915050565b600460089054906101000a900461ffff1681565b60007f436861696e000000000000000000000000000000000000000000000000000000905090565b60006107c384600260008881526020019081526020016000206000015485856040516020016107a8929190613a26565b60405160208183030381529060405280519060200120611358565b9050949350505050565b6060808267ffffffffffffffff811180156107e757600080fd5b506040519080825280602002602001820160405280156108165781602001602082028036833780820191505090505b50905060008090505b838110156108635760008060208760018501010290508088015191508184848151811061084857fe5b6020026020010181815250505050808060010191505061081f565b50809150509392505050565b6040518060400160405280601c81526020017f19457468657265756d205369676e6564204d6573736167653a0a33320000000081525081565b6060808383905067ffffffffffffffff811180156108c557600080fd5b506040519080825280602002602001820160405280156108f45781602001602082028036833780820191505090505b5090508383905067ffffffffffffffff8111801561091157600080fd5b506040519080825280602002602001820160405280156109405781602001602082028036833780820191505090505b50915060008090505b84849050811015610a295760006003600087878581811061096657fe5b90506020020135815260200190815260200160002090508060000160009054906101000a90047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff168483815181106109d457fe5b60200260200101818152505080600001601c9054906101000a900463ffffffff16838381518110610a0157fe5b602002602001019063ffffffff16908163ffffffff1681525050508080600101915050610949565b509250929050565b610a39612520565b73ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610ac8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610abf90613dc6565b60405180910390fd5b80600460086101000a81548161ffff021916908361ffff1602179055503373ffffffffffffffffffffffffffffffffffffffff167f22d3c53dc5741f3378120ad17e6ae419e28fecb3c4c2572ca0de779d825f63f482604051610b2b9190613e3f565b60405180910390a250565b6000610b406120b1565b905042600460089054906101000a900461ffff1661ffff16600260008463ffffffff16815260200190815260200160002060010160009054906101000a900463ffffffff160163ffffffff1610610bcc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bc390613cf4565b60405180910390fd5b8763ffffffff16600260008363ffffffff16815260200190815260200160002060010160009054906101000a900463ffffffff1663ffffffff1610610c46576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3d90613e1f565b60405180910390fd5b600342018863ffffffff1611156030428a63ffffffff160301604051602001610c6f9190613a4a565b60405160208183030381529060405290610cbf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cb69190613c72565b60405180910390fd5b508451865114610d04576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cfb90613d66565b60405180910390fd5b60608888604051602001610d19929190613a70565b604051602081830303815290604052905060008090505b8751811015610f0b57868181518110610d4557fe5b6020026020010151878281518110610d5957fe5b60200260200101517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1614610dbf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610db690613cd4565b60405180910390fd5b6040518060400160405280888381518110610dd657fe5b60200260200101517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1681526020018b63ffffffff16815250600360008a8481518110610e1b57fe5b6020026020010151815260200190815260200160002060008201518160000160006101000a8154817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff02191690837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff160217905550602082015181600001601c6101000a81548163ffffffff021916908363ffffffff16021790555090505081888281518110610ebf57fe5b6020026020010151888381518110610ed357fe5b6020026020010151604051602001610eed939291906139ed565b60405160208183030381529060405291508080600101915050610d30565b5060008180519060200120905060008090506000610f276119df565b905060008173ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610f7157600080fd5b505afa158015610f85573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fa99190612e05565b9050600080905060008090505b8a51811015611193576000611006878d8481518110610fd157fe5b60200260200101518d8581518110610fe557fe5b60200260200101518d8681518110610ff957fe5b60200260200101516120e1565b905060008573ffffffffffffffffffffffffffffffffffffffff166370a08231836040518263ffffffff1660e01b81526004016110439190613a9c565b60206040518083038186803b15801561105b57600080fd5b505afa15801561106f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110939190612e05565b90508173ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1610611103576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110fa90613d86565b60405180910390fd5b8193506000811415611116575050611186565b8173ffffffffffffffffffffffffffffffffffffffff1660018b0163ffffffff167fbac7552ab5da8d0588709ddb75aceec28520646f54bca1cc5e6e104db61935ec836040516111669190613e83565b60405180910390a3611181818861252890919063ffffffff16565b965050505b8080600101915050610fb6565b506111a860428361257d90919063ffffffff16565b6111bc60648661257d90919063ffffffff16565b10156111fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111f490613de6565b60405180910390fd5b8c6002600060018a0163ffffffff168152602001908152602001600020600001819055508d6002600060018a0163ffffffff16815260200190815260200160002060010160006101000a81548163ffffffff021916908363ffffffff1602179055508460801c6002600060018a0163ffffffff16815260200190815260200160002060010160046101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506004600081819054906101000a900463ffffffff168092919060010191906101000a81548163ffffffff021916908363ffffffff160217905550503373ffffffffffffffffffffffffffffffffffffffff167f5f11830295067c4bcc7d02d4e3b048cd7427be50a3aeb6afc9d3d559ee64bcfa60018901848760405161134093929190613f93565b60405180910390a25050505050505050505050505050565b60008060001b83141561136e576000905061137c565b6113798484846125ed565b90505b9392505050565b60008060008060008060608060606000439950600460089054906101000a900461ffff1698506113b16120b1565b9650600260008863ffffffff16815260200190815260200160002060010160009054906101000a900463ffffffff16975060006113ec611f20565b905060008173ffffffffffffffffffffffffffffffffffffffff16639031d9136040518163ffffffff1660e01b815260040160206040518083038186803b15801561143657600080fd5b505afa15801561144a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061146e9190612e05565b90508067ffffffffffffffff8111801561148757600080fd5b506040519080825280602002602001820160405280156114b65781602001602082028036833780820191505090505b5095508067ffffffffffffffff811180156114d057600080fd5b5060405190808252806020026020018201604052801561150457816020015b60608152602001906001900390816114ef5790505b50935060008090505b818110156116ab578273ffffffffffffffffffffffffffffffffffffffff1663edf26d9b826040518263ffffffff1660e01b815260040161154e9190613e83565b60206040518083038186803b15801561156657600080fd5b505afa15801561157a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061159e9190612a68565b8782815181106115aa57fe5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508273ffffffffffffffffffffffffffffffffffffffff1663fa52c7d888838151811061160c57fe5b60200260200101516040518263ffffffff1660e01b81526004016116309190613a9c565b60006040518083038186803b15801561164857600080fd5b505afa15801561165c573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f820116820180604052508101906116859190612a91565b905085828151811061169357fe5b6020026020010181905250808060010191505061150d565b506116b860014201611c11565b9650600081116116c95760006116ea565b856116d78260014201611fcf565b815181106116e157fe5b60200260200101515b975060006116f66119df565b90508167ffffffffffffffff8111801561170f57600080fd5b5060405190808252806020026020018201604052801561173e5781602001602082028036833780820191505090505b5095508073ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561178757600080fd5b505afa15801561179b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117bf9190612e05565b935060008090505b82811015611890578173ffffffffffffffffffffffffffffffffffffffff166370a082318983815181106117f757fe5b60200260200101516040518263ffffffff1660e01b815260040161181b9190613a9c565b60206040518083038186803b15801561183357600080fd5b505afa158015611847573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061186b9190612e05565b87828151811061187757fe5b60200260200101818152505080806001019150506117c7565b5050505090919293949596979899565b60008073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415611932576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161192990613d46565b60405180910390fd5b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166346bcb49d6040518163ffffffff1660e01b815260040161198a90613e06565b60206040518083038186803b1580156119a257600080fd5b505afa1580156119b6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119da9190612a68565b905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166346bcb49d6040518163ffffffff1660e01b8152600401611a3990613d14565b60206040518083038186803b158015611a5157600080fd5b505afa158015611a65573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a899190612a68565b905090565b611a96612520565b73ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611b25576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b1c90613dc6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600460009054906101000a900463ffffffff1681565b6004809054906101000a900463ffffffff1681565b6000806004809054906101000a900463ffffffff16600460009054906101000a900463ffffffff1601905060008163ffffffff161415611c55576000915050611cb9565b82600460089054906101000a900461ffff1661ffff16600260006001850363ffffffff16815260200190815260200160002060010160009054906101000a900463ffffffff160163ffffffff161015611cb15780915050611cb9565b600181039150505b919050565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000611cf6600142016121be565b905090565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060006003600085815260200190815260200160002090508060000160009054906101000a90047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1681600001601c9054906101000a900463ffffffff168063ffffffff1690509250925050915091565b6000600260008363ffffffff168152602001908152602001600020600001549050919050565b6060815167ffffffffffffffff81118015611ded57600080fd5b50604051908082528060200260200182016040528015611e1c5781602001602082028036833780820191505090505b509050600080905060008090505b8351811015611ee057611e9d611e548784888581518110611e4757fe5b60200260200101516107cd565b600260008a8581518110611e6457fe5b602002602001015163ffffffff16815260200190815260200160002060000154868481518110611e9057fe5b6020026020010151611358565b838281518110611ea957fe5b602002602001019015159081151581525050848181518110611ec757fe5b6020026020010151820191508080600101915050611e2a565b5050949350505050565b6000600260008363ffffffff16815260200190815260200160002060010160009054906101000a900463ffffffff169050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166346bcb49d6040518163ffffffff1660e01b8152600401611f7a90613d2d565b60206040518083038186803b158015611f9257600080fd5b505afa158015611fa6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fca9190612a68565b905090565b600080611fda6120b1565b905060006001600460089054906101000a900461ffff160161ffff16600260008463ffffffff16815260200190815260200160002060010160009054906101000a900463ffffffff1663ffffffff1685038161203257fe5b048263ffffffff1601905084818161204657fe5b0661ffff169250505092915050565b60036020528060005260406000206000915090508060000160009054906101000a90047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff169080600001601c9054906101000a900463ffffffff16905082565b600060016004809054906101000a900463ffffffff16600460009054906101000a900463ffffffff160103905090565b6000806040518060400160405280601c81526020017f19457468657265756d205369676e6564204d6573736167653a0a3332000000008152508660405160200161212c9291906139c5565b604051602081830303815290604052805190602001209050600181868686604051600081526020016040526040516121679493929190613b9f565b6020604051602081039080840390855afa158015612189573d6000803e3d6000fd5b50505060206040510351915050949350505050565b60006121a942611c11565b905090565b60006121b9426121be565b905090565b6000806121c9611f20565b905060008173ffffffffffffffffffffffffffffffffffffffff16639031d9136040518163ffffffff1660e01b815260040160206040518083038186803b15801561221357600080fd5b505afa158015612227573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061224b9190612e05565b90506000811415612261576000925050506122fe565b600061226d8286611fcf565b90508273ffffffffffffffffffffffffffffffffffffffff1663edf26d9b826040518263ffffffff1660e01b81526004016122a89190613e83565b60206040518083038186803b1580156122c057600080fd5b505afa1580156122d4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122f89190612a68565b93505050505b919050565b60026020528060005260406000206000915090508060000154908060010160009054906101000a900463ffffffff16908060010160049054906101000a90046fffffffffffffffffffffffffffffffff16905083565b612361612520565b73ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16146123f0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123e790613dc6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612460576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161245790613c94565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600033905090565b600080828401905083811015612573576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161256a90613cb4565b60405180910390fd5b8091505092915050565b60008083141561259057600090506125e7565b60008284029050828482816125a157fe5b04146125e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125d990613da6565b60405180910390fd5b809150505b92915050565b60008082905060008090505b855181101561268b57600086828151811061261057fe5b60200260200101519050808311612651578281604051602001612634929190613999565b60405160208183030381529060405280519060200120925061267d565b8083604051602001612664929190613999565b6040516020818303038152906040528051906020012092505b5080806001019150506125f9565b508381149150509392505050565b6000813590506126a88161448d565b92915050565b6000815190506126bd8161448d565b92915050565b60008083601f8401126126d557600080fd5b8235905067ffffffffffffffff8111156126ee57600080fd5b60208301915083602082028301111561270657600080fd5b9250929050565b600082601f83011261271e57600080fd5b813561273161272c82613ff7565b613fca565b9150818183526020840193506020810190508385602084028201111561275657600080fd5b60005b83811015612786578161276c8882612919565b845260208401935060208301925050600181019050612759565b5050505092915050565b600082601f8301126127a157600080fd5b81356127b46127af8261401f565b613fca565b915081818352602084019350602081019050838560208402820111156127d957600080fd5b60005b8381101561280957816127ef88826129eb565b8452602084019350602083019250506001810190506127dc565b5050505092915050565b600082601f83011261282457600080fd5b813561283761283282614047565b613fca565b9150818183526020840193506020810190508385602084028201111561285c57600080fd5b60005b8381101561288c57816128728882612a15565b84526020840193506020830192505060018101905061285f565b5050505092915050565b600082601f8301126128a757600080fd5b81356128ba6128b58261406f565b613fca565b915081818352602084019350602081019050838560208402820111156128df57600080fd5b60005b8381101561290f57816128f58882612a2a565b8452602084019350602083019250506001810190506128e2565b5050505092915050565b600081359050612928816144a4565b92915050565b600082601f83011261293f57600080fd5b813561295261294d82614097565b613fca565b9150808252602083016020830185838301111561296e57600080fd5b612979838284614407565b50505092915050565b600082601f83011261299357600080fd5b81516129a66129a1826140c3565b613fca565b915080825260208301602083018583830111156129c257600080fd5b6129cd838284614416565b50505092915050565b6000813590506129e5816144bb565b92915050565b6000813590506129fa816144d2565b92915050565b600081519050612a0f816144d2565b92915050565b600081359050612a24816144e9565b92915050565b600081359050612a3981614500565b92915050565b600060208284031215612a5157600080fd5b6000612a5f84828501612699565b91505092915050565b600060208284031215612a7a57600080fd5b6000612a88848285016126ae565b91505092915050565b60008060408385031215612aa457600080fd5b6000612ab2858286016126ae565b925050602083015167ffffffffffffffff811115612acf57600080fd5b612adb85828601612982565b9150509250929050565b60008060208385031215612af857600080fd5b600083013567ffffffffffffffff811115612b1257600080fd5b612b1e858286016126c3565b92509250509250929050565b600080600060608486031215612b3f57600080fd5b600084013567ffffffffffffffff811115612b5957600080fd5b612b658682870161270d565b9350506020612b7686828701612919565b9250506040612b8786828701612919565b9150509250925092565b60008060008060808587031215612ba757600080fd5b600085013567ffffffffffffffff811115612bc157600080fd5b612bcd87828801612813565b945050602085013567ffffffffffffffff811115612bea57600080fd5b612bf68782880161292e565b935050604085013567ffffffffffffffff811115612c1357600080fd5b612c1f87828801612790565b925050606085013567ffffffffffffffff811115612c3c57600080fd5b612c488782880161270d565b91505092959194509250565b600060208284031215612c6657600080fd5b6000612c7484828501612919565b91505092915050565b60008060008060808587031215612c9357600080fd5b6000612ca187828801612919565b9450506020612cb287828801612a2a565b9350506040612cc387828801612919565b9250506060612cd487828801612919565b91505092959194509250565b60008060408385031215612cf357600080fd5b600083013567ffffffffffffffff811115612d0d57600080fd5b612d198582860161292e565b925050602083013567ffffffffffffffff811115612d3657600080fd5b612d428582860161292e565b9150509250929050565b600080600060608486031215612d6157600080fd5b600084013567ffffffffffffffff811115612d7b57600080fd5b612d878682870161292e565b9350506020612d98868287016129eb565b9250506040612da9868287016129eb565b9150509250925092565b600060208284031215612dc557600080fd5b6000612dd3848285016129d6565b91505092915050565b600060208284031215612dee57600080fd5b6000612dfc848285016129eb565b91505092915050565b600060208284031215612e1757600080fd5b6000612e2584828501612a00565b91505092915050565b60008060008060808587031215612e4457600080fd5b6000612e52878288016129eb565b945050602085013567ffffffffffffffff811115612e6f57600080fd5b612e7b8782880161270d565b935050604085013567ffffffffffffffff811115612e9857600080fd5b612ea48782880161292e565b925050606085013567ffffffffffffffff811115612ec157600080fd5b612ecd8782880161292e565b91505092959194509250565b60008060408385031215612eec57600080fd5b6000612efa858286016129eb565b9250506020612f0b858286016129eb565b9150509250929050565b600060208284031215612f2757600080fd5b6000612f3584828501612a15565b91505092915050565b600080600080600080600060e0888a031215612f5957600080fd5b6000612f678a828b01612a15565b9750506020612f788a828b01612919565b965050604088013567ffffffffffffffff811115612f9557600080fd5b612fa18a828b0161270d565b955050606088013567ffffffffffffffff811115612fbe57600080fd5b612fca8a828b01612790565b945050608088013567ffffffffffffffff811115612fe757600080fd5b612ff38a828b01612896565b93505060a088013567ffffffffffffffff81111561301057600080fd5b61301c8a828b0161270d565b92505060c088013567ffffffffffffffff81111561303957600080fd5b6130458a828b0161270d565b91505092959891949750929550565b600061306083836130e0565b60208301905092915050565b60006130788383613349565b60208301905092915050565b60006130908383613367565b60208301905092915050565b60006130a88383613442565b905092915050565b60006130bc8383613911565b60208301905092915050565b60006130d48383613955565b60208301905092915050565b6130e9816142a4565b82525050565b6130f8816142a4565b82525050565b60006131098261414f565b61311381856141f5565b935061311e836140ef565b8060005b8381101561314f5781516131368882613054565b9750613141836141a7565b925050600181019050613122565b5085935050505092915050565b60006131678261415a565b6131718185614206565b935061317c836140ff565b8060005b838110156131ad578151613194888261306c565b975061319f836141b4565b925050600181019050613180565b5085935050505092915050565b60006131c582614165565b6131cf8185614217565b93506131da8361410f565b8060005b8381101561320b5781516131f28882613084565b97506131fd836141c1565b9250506001810190506131de565b5085935050505092915050565b600061322382614170565b61322d8185614228565b93508360208202850161323f8561411f565b8060005b8581101561327b578484038952815161325c858261309c565b9450613267836141ce565b925060208a01995050600181019050613243565b50829750879550505050505092915050565b60006132988261417b565b6132a28185614239565b93506132ad8361412f565b8060005b838110156132de5781516132c588826130b0565b97506132d0836141db565b9250506001810190506132b1565b5085935050505092915050565b60006132f682614186565b613300818561424a565b935061330b8361413f565b8060005b8381101561333c57815161332388826130c8565b975061332e836141e8565b92505060018101905061330f565b5085935050505092915050565b613352816142b6565b82525050565b613361816142b6565b82525050565b613370816142c2565b82525050565b61337f816142c2565b82525050565b613396613391826142c2565b614449565b82525050565b60006133a782614191565b6133b1818561425b565b93506133c1818560208601614416565b6133ca8161446f565b840191505092915050565b60006133e082614191565b6133ea818561426c565b93506133fa818560208601614416565b80840191505092915050565b61340f81614365565b82525050565b61341e81614389565b82525050565b61342d816143ad565b82525050565b61343c816143d1565b82525050565b600061344d8261419c565b6134578185614277565b9350613467818560208601614416565b6134708161446f565b840191505092915050565b60006134868261419c565b6134908185614288565b93506134a0818560208601614416565b6134a98161446f565b840191505092915050565b60006134c1602683614288565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613527601b83614288565b91507f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006000830152602082019050919050565b6000613567600c83614288565b91507f464344206f766572666c6f7700000000000000000000000000000000000000006000830152602082019050919050565b60006135a7600b83614288565b91507f646f206e6f74207370616d0000000000000000000000000000000000000000006000830152602082019050919050565b7f5374616b696e6742616e6b000000000000000000000000000000000000000000815250565b7f56616c696461746f725265676973747279000000000000000000000000000000815250565b6000613633601283614288565b91507f5f726567697374727920697320656d70747900000000000000000000000000006000830152602082019050919050565b6000613673602783614288565b91507f6e756d62657273206f66206b65797320616e642076616c756573206e6f74207460008301527f68652073616d65000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006136d9602283614299565b91507f6f682c20736f20796f752063616e20707265646963742074686520667574757260008301527f653a0000000000000000000000000000000000000000000000000000000000006020830152602282019050919050565b600061373f602183614288565b91507f76616c696461746f7220696e636c75646564206d6f7265207468616e206f6e6360008301527f65000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006137a5602183614288565b91507f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f60008301527f77000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061380b602083614288565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b600061384b601d83614288565b91507f6e6f7420656e6f75676820706f776572207761732067617468657265640000006000830152602082019050919050565b7f554d420000000000000000000000000000000000000000000000000000000000815250565b60006138b1601983614288565b91507f63616e204e4f54207375626d6974206f6c6465722064617461000000000000006000830152602082019050919050565b6138ed816142cc565b82525050565b6138fc816142e8565b82525050565b61390b81614316565b82525050565b61391a8161433e565b82525050565b6139298161433e565b82525050565b61394061393b8261433e565b614453565b82525050565b61394f816143f5565b82525050565b61395e81614348565b82525050565b61396d81614348565b82525050565b61398461397f82614348565b61445d565b82525050565b61399381614358565b82525050565b60006139a58285613385565b6020820191506139b58284613385565b6020820191508190509392505050565b60006139d182856133d5565b91506139dd8284613385565b6020820191508190509392505050565b60006139f982866133d5565b9150613a058285613385565b602082019150613a15828461392f565b602082019150819050949350505050565b6000613a3282856133d5565b9150613a3e82846133d5565b91508190509392505050565b6000613a55826136cc565b9150613a61828461392f565b60208201915081905092915050565b6000613a7c8285613973565b600482019150613a8c8284613385565b6020820191508190509392505050565b6000602082019050613ab160008301846130ef565b92915050565b60006020820190508181036000830152613ad1818461315c565b905092915050565b60006020820190508181036000830152613af381846131ba565b905092915050565b60006040820190508181036000830152613b15818561328d565b90508181036020830152613b2981846132eb565b90509392505050565b6000602082019050613b476000830184613358565b92915050565b6000602082019050613b626000830184613376565b92915050565b6000606082019050613b7d6000830186613376565b613b8a6020830185613964565b613b9760408301846138e4565b949350505050565b6000608082019050613bb46000830187613376565b613bc1602083018661398a565b613bce6040830185613376565b613bdb6060830184613376565b95945050505050565b60006020820190508181036000830152613bfe818461339c565b905092915050565b6000602082019050613c1b6000830184613406565b92915050565b6000602082019050613c366000830184613415565b92915050565b6000602082019050613c516000830184613424565b92915050565b6000602082019050613c6c6000830184613433565b92915050565b60006020820190508181036000830152613c8c818461347b565b905092915050565b60006020820190508181036000830152613cad816134b4565b9050919050565b60006020820190508181036000830152613ccd8161351a565b9050919050565b60006020820190508181036000830152613ced8161355a565b9050919050565b60006020820190508181036000830152613d0d8161359a565b9050919050565b6000602082019050613d28600083016135da565b919050565b6000602082019050613d4160008301613600565b919050565b60006020820190508181036000830152613d5f81613626565b9050919050565b60006020820190508181036000830152613d7f81613666565b9050919050565b60006020820190508181036000830152613d9f81613732565b9050919050565b60006020820190508181036000830152613dbf81613798565b9050919050565b60006020820190508181036000830152613ddf816137fe565b9050919050565b60006020820190508181036000830152613dff8161383e565b9050919050565b6000602082019050613e1a6000830161387e565b919050565b60006020820190508181036000830152613e38816138a4565b9050919050565b6000602082019050613e5460008301846138f3565b92915050565b6000604082019050613e6f6000830185613902565b613e7c6020830184613964565b9392505050565b6000602082019050613e986000830184613920565b92915050565b600061014082019050613eb4600083018d613920565b613ec1602083018c6138f3565b613ece604083018b613964565b613edb606083018a613964565b613ee860808301896130ef565b613ef560a0830188613964565b81810360c0830152613f0781876130fe565b905081810360e0830152613f1b818661328d565b9050818103610100830152613f308185613218565b9050613f40610120830184613920565b9b9a5050505050505050505050565b6000604082019050613f646000830185613920565b613f716020830184613920565b9392505050565b6000602082019050613f8d6000830184613964565b92915050565b6000606082019050613fa86000830186613946565b613fb56020830185613920565b613fc26040830184613920565b949350505050565b6000604051905081810181811067ffffffffffffffff82111715613fed57600080fd5b8060405250919050565b600067ffffffffffffffff82111561400e57600080fd5b602082029050602081019050919050565b600067ffffffffffffffff82111561403657600080fd5b602082029050602081019050919050565b600067ffffffffffffffff82111561405e57600080fd5b602082029050602081019050919050565b600067ffffffffffffffff82111561408657600080fd5b602082029050602081019050919050565b600067ffffffffffffffff8211156140ae57600080fd5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff8211156140da57600080fd5b601f19601f8301169050602081019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b6000602082019050919050565b6000602082019050919050565b6000602082019050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006142af826142f6565b9050919050565b60008115159050919050565b6000819050919050565b60006fffffffffffffffffffffffffffffffff82169050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600063ffffffff82169050919050565b600060ff82169050919050565b600061437082614377565b9050919050565b6000614382826142f6565b9050919050565b60006143948261439b565b9050919050565b60006143a6826142f6565b9050919050565b60006143b8826143bf565b9050919050565b60006143ca826142f6565b9050919050565b60006143dc826143e3565b9050919050565b60006143ee826142f6565b9050919050565b600061440082614348565b9050919050565b82818337600083830152505050565b60005b83811015614434578082015181840152602081019050614419565b83811115614443576000848401525b50505050565b6000819050919050565b6000819050919050565b600061446882614480565b9050919050565b6000601f19601f8301169050919050565b60008160e01b9050919050565b614496816142a4565b81146144a157600080fd5b50565b6144ad816142c2565b81146144b857600080fd5b50565b6144c4816142e8565b81146144cf57600080fd5b50565b6144db8161433e565b81146144e657600080fd5b50565b6144f281614348565b81146144fd57600080fd5b50565b61450981614358565b811461451457600080fd5b5056fea2646970667358221220a73bfe9db68b7ba21802feeff79f12dc2f599a43e85f6e8d383a218f6232040164736f6c634300060800330000000000000000000000008f98d3b5c911206c1ac08b9938875620a03bcd59000000000000000000000000000000000000000000000000000000000000003c

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

0000000000000000000000008f98d3b5c911206c1ac08b9938875620a03bcd59000000000000000000000000000000000000000000000000000000000000003c

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 0000000000000000000000008f98d3b5c911206c1ac08b9938875620a03bcd59
Arg [1] : 000000000000000000000000000000000000000000000000000000000000003c


Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading