Contract 0xbfadfd5e22f227644e036bd407a14675654de63b 1

Contract Overview

Balance:
0 BNB
Txn Hash
Block
From
To
Value [Txn Fee]
0x5f62d115d101823f9b31f229c8bec5ca2d922e6119b6c10207515ae33977dfae110767692021-07-31 17:36:541 day 16 hrs ago0xe3bda0c6e1fbb111091dfef6f22a673b20ea5f50 IN  0xbfadfd5e22f227644e036bd407a14675654de63b0 BNB0.00198828
0x9c01532f01b97418a5a60fbc27832db3c237719dc45d17604c8dce4499262d62110767512021-07-31 17:36:001 day 16 hrs ago0xe3bda0c6e1fbb111091dfef6f22a673b20ea5f50 IN  0xbfadfd5e22f227644e036bd407a14675654de63b0 BNB0.00198828
0xe12d6b6fe0d9bd86e384835f9e9c9adc87d6770f3c2af7a4fe25e08a74618589110767352021-07-31 17:35:121 day 16 hrs ago0xe3bda0c6e1fbb111091dfef6f22a673b20ea5f50 IN  0xbfadfd5e22f227644e036bd407a14675654de63b0 BNB0.00198828
0xd0eac29f395bae38ddc5634355158d39b5376628cad2ccd5ca87c03ce2605f18110767152021-07-31 17:34:121 day 16 hrs ago0xe3bda0c6e1fbb111091dfef6f22a673b20ea5f50 IN  0xbfadfd5e22f227644e036bd407a14675654de63b0 BNB0.00198828
0xd2d9918b5d42554c57020bcdbc79f80484415afd49280fc2bd21cfe37e9eb4be110766952021-07-31 17:33:121 day 16 hrs ago0xe3bda0c6e1fbb111091dfef6f22a673b20ea5f50 IN  0xbfadfd5e22f227644e036bd407a14675654de63b0 BNB0.00176322
0x993bb6e8e224b3229f90d34fa2db4facde71649b56e27f921ebdff6daf16f438110766682021-07-31 17:31:511 day 16 hrs ago0xe3bda0c6e1fbb111091dfef6f22a673b20ea5f50 IN  0xbfadfd5e22f227644e036bd407a14675654de63b0 BNB0.00198816
0x66fe8c985c465d42ca7465867729ef4f56dbedc9f85cdbe55bd12f0e8f2ec5dd110766482021-07-31 17:30:511 day 16 hrs ago0xe3bda0c6e1fbb111091dfef6f22a673b20ea5f50 IN  0xbfadfd5e22f227644e036bd407a14675654de63b0 BNB0.00198804
0x86f014c5d4bd4b578164ae2820f24939d07d2c786e9c3878df9972c86600d4da110766312021-07-31 17:30:001 day 16 hrs ago0xe3bda0c6e1fbb111091dfef6f22a673b20ea5f50 IN  0xbfadfd5e22f227644e036bd407a14675654de63b0 BNB0.00187488
0x532c491f3a71e584f06cfe27b05031828d482e2a8e297a3c891c1a8216eadaa6110765972021-07-31 17:28:181 day 16 hrs ago0xe3bda0c6e1fbb111091dfef6f22a673b20ea5f50 IN  0xbfadfd5e22f227644e036bd407a14675654de63b0 BNB0.00198828
0x73f7702df72167b1dfa99b8337b0c546997f1297e58cd537f630dd67911f5c09110765752021-07-31 17:27:121 day 16 hrs ago0xe3bda0c6e1fbb111091dfef6f22a673b20ea5f50 IN  0xbfadfd5e22f227644e036bd407a14675654de63b0 BNB0.00198804
0xcfafc7e4a3d33697be8bb189f9932349c708b2a2adaf68f760c9cb865c2320dc110765572021-07-31 17:26:181 day 16 hrs ago0xe3bda0c6e1fbb111091dfef6f22a673b20ea5f50 IN  0xbfadfd5e22f227644e036bd407a14675654de63b0 BNB0.00198828
0xa3864f5b4c740b78e9e90aef1fa2a0b273347659471a2c827a4c78eb6fc9bb2b110765382021-07-31 17:25:211 day 16 hrs ago0xe3bda0c6e1fbb111091dfef6f22a673b20ea5f50 IN  0xbfadfd5e22f227644e036bd407a14675654de63b0 BNB0.00198828
0x95fa5890e3c913a479b229161a40abac31461d069cb87503b03f9a97a19dbff3110765172021-07-31 17:24:181 day 16 hrs ago0xe3bda0c6e1fbb111091dfef6f22a673b20ea5f50 IN  0xbfadfd5e22f227644e036bd407a14675654de63b0 BNB0.00198828
0x20ab912492adcaa7c2999f58190f4fa9c9ce8ea87bc2b55833ec086307d2ff5e110764982021-07-31 17:23:211 day 16 hrs ago0xe3bda0c6e1fbb111091dfef6f22a673b20ea5f50 IN  0xbfadfd5e22f227644e036bd407a14675654de63b0 BNB0.00198816
0x5da649203a075521d0185f910c182ed631cd76352d09902e6bffa3d52c567bfc110764732021-07-31 17:22:061 day 16 hrs ago0xe3bda0c6e1fbb111091dfef6f22a673b20ea5f50 IN  0xbfadfd5e22f227644e036bd407a14675654de63b0 BNB0.00198828
0x0a359f947b7e90167924ae015016b4f2fdbdaf02c7b872e3a982a299fd970347110764522021-07-31 17:21:031 day 16 hrs ago0xe3bda0c6e1fbb111091dfef6f22a673b20ea5f50 IN  0xbfadfd5e22f227644e036bd407a14675654de63b0 BNB0.00198816
0x75506f31a1ba5da7e2ffecd331e065a08fa794e127cdb44f20a0d0d07d16faf0110764352021-07-31 17:20:121 day 16 hrs ago0xe3bda0c6e1fbb111091dfef6f22a673b20ea5f50 IN  0xbfadfd5e22f227644e036bd407a14675654de63b0 BNB0.00198828
0xb58017ed614f42c4546e044d42aa5b3cb293926a0bd0b66251c92818980ab62e110764192021-07-31 17:19:241 day 16 hrs ago0xe3bda0c6e1fbb111091dfef6f22a673b20ea5f50 IN  0xbfadfd5e22f227644e036bd407a14675654de63b0 BNB0.00198828
0x08033e2efd5a3a1e81c43ac90fa8a71eae0b5a782a5bc99e1bedfca8ab455509110764002021-07-31 17:18:271 day 16 hrs ago0xe3bda0c6e1fbb111091dfef6f22a673b20ea5f50 IN  0xbfadfd5e22f227644e036bd407a14675654de63b0 BNB0.00176334
0xc3759840974c91c96d483876ca2838ab96bd45617c1071ba5b4734ac10fa7ba9110763732021-07-31 17:17:061 day 16 hrs ago0xe3bda0c6e1fbb111091dfef6f22a673b20ea5f50 IN  0xbfadfd5e22f227644e036bd407a14675654de63b0 BNB0.00198816
0x2ca531e97eda536abd919dc4587ff66d8d16a9cca2f7985d51c5c20cc137e641110763522021-07-31 17:16:031 day 16 hrs ago0xe3bda0c6e1fbb111091dfef6f22a673b20ea5f50 IN  0xbfadfd5e22f227644e036bd407a14675654de63b0 BNB0.00198816
0xebebe86302a65388742321b9efe9def15c4267ff0a029c70dcba20e7817d85c6110763322021-07-31 17:15:031 day 16 hrs ago0xe3bda0c6e1fbb111091dfef6f22a673b20ea5f50 IN  0xbfadfd5e22f227644e036bd407a14675654de63b0 BNB0.00198828
0x229fd84ee472eeeb57c687b7e827ecd87dadfa2d748388c52a6669922e3fc55b110763072021-07-31 17:13:481 day 16 hrs ago0xe3bda0c6e1fbb111091dfef6f22a673b20ea5f50 IN  0xbfadfd5e22f227644e036bd407a14675654de63b0 BNB0.00198816
0xf37c833910a735f618d3cca1356ababe4bda00b5f5cdada173a5573bfcfb8292110762832021-07-31 17:12:361 day 16 hrs ago0xe3bda0c6e1fbb111091dfef6f22a673b20ea5f50 IN  0xbfadfd5e22f227644e036bd407a14675654de63b0 BNB0.00198828
0x7987941199f0e2a0c8455be1c095235c22bd8bff849b69ec8f430064f4387097110762652021-07-31 17:11:421 day 16 hrs ago0xe3bda0c6e1fbb111091dfef6f22a673b20ea5f50 IN  0xbfadfd5e22f227644e036bd407a14675654de63b0 BNB0.00198816
[ Download CSV Export 
Latest 25 internal transaction
Parent Txn Hash Block From To Value
0x5f62d115d101823f9b31f229c8bec5ca2d922e6119b6c10207515ae33977dfae110767692021-07-31 17:36:541 day 16 hrs ago 0xbfadfd5e22f227644e036bd407a14675654de63b 0x135cc4896723fc7a606921a9288f982a96cc9d460 BNB
0x5f62d115d101823f9b31f229c8bec5ca2d922e6119b6c10207515ae33977dfae110767692021-07-31 17:36:541 day 16 hrs ago 0xbfadfd5e22f227644e036bd407a14675654de63b 0x135cc4896723fc7a606921a9288f982a96cc9d460 BNB
0x5f62d115d101823f9b31f229c8bec5ca2d922e6119b6c10207515ae33977dfae110767692021-07-31 17:36:541 day 16 hrs ago 0xbfadfd5e22f227644e036bd407a14675654de63b 0xe1cdce9a678e84aa73d3266176c6e11b3edc4f670 BNB
0x9c01532f01b97418a5a60fbc27832db3c237719dc45d17604c8dce4499262d62110767512021-07-31 17:36:001 day 16 hrs ago 0xbfadfd5e22f227644e036bd407a14675654de63b 0x135cc4896723fc7a606921a9288f982a96cc9d460 BNB
0x9c01532f01b97418a5a60fbc27832db3c237719dc45d17604c8dce4499262d62110767512021-07-31 17:36:001 day 16 hrs ago 0xbfadfd5e22f227644e036bd407a14675654de63b 0x135cc4896723fc7a606921a9288f982a96cc9d460 BNB
0x9c01532f01b97418a5a60fbc27832db3c237719dc45d17604c8dce4499262d62110767512021-07-31 17:36:001 day 16 hrs ago 0xbfadfd5e22f227644e036bd407a14675654de63b 0xe1cdce9a678e84aa73d3266176c6e11b3edc4f670 BNB
0xe12d6b6fe0d9bd86e384835f9e9c9adc87d6770f3c2af7a4fe25e08a74618589110767352021-07-31 17:35:121 day 16 hrs ago 0xbfadfd5e22f227644e036bd407a14675654de63b 0x135cc4896723fc7a606921a9288f982a96cc9d460 BNB
0xe12d6b6fe0d9bd86e384835f9e9c9adc87d6770f3c2af7a4fe25e08a74618589110767352021-07-31 17:35:121 day 16 hrs ago 0xbfadfd5e22f227644e036bd407a14675654de63b 0x135cc4896723fc7a606921a9288f982a96cc9d460 BNB
0xe12d6b6fe0d9bd86e384835f9e9c9adc87d6770f3c2af7a4fe25e08a74618589110767352021-07-31 17:35:121 day 16 hrs ago 0xbfadfd5e22f227644e036bd407a14675654de63b 0xe1cdce9a678e84aa73d3266176c6e11b3edc4f670 BNB
0xd0eac29f395bae38ddc5634355158d39b5376628cad2ccd5ca87c03ce2605f18110767152021-07-31 17:34:121 day 16 hrs ago 0xbfadfd5e22f227644e036bd407a14675654de63b 0x135cc4896723fc7a606921a9288f982a96cc9d460 BNB
0xd0eac29f395bae38ddc5634355158d39b5376628cad2ccd5ca87c03ce2605f18110767152021-07-31 17:34:121 day 16 hrs ago 0xbfadfd5e22f227644e036bd407a14675654de63b 0x135cc4896723fc7a606921a9288f982a96cc9d460 BNB
0xd0eac29f395bae38ddc5634355158d39b5376628cad2ccd5ca87c03ce2605f18110767152021-07-31 17:34:121 day 16 hrs ago 0xbfadfd5e22f227644e036bd407a14675654de63b 0xe1cdce9a678e84aa73d3266176c6e11b3edc4f670 BNB
0xd2d9918b5d42554c57020bcdbc79f80484415afd49280fc2bd21cfe37e9eb4be110766952021-07-31 17:33:121 day 16 hrs ago 0xbfadfd5e22f227644e036bd407a14675654de63b 0x135cc4896723fc7a606921a9288f982a96cc9d460 BNB
0xd2d9918b5d42554c57020bcdbc79f80484415afd49280fc2bd21cfe37e9eb4be110766952021-07-31 17:33:121 day 16 hrs ago 0xbfadfd5e22f227644e036bd407a14675654de63b 0x135cc4896723fc7a606921a9288f982a96cc9d460 BNB
0xd2d9918b5d42554c57020bcdbc79f80484415afd49280fc2bd21cfe37e9eb4be110766952021-07-31 17:33:121 day 16 hrs ago 0xbfadfd5e22f227644e036bd407a14675654de63b 0xe1cdce9a678e84aa73d3266176c6e11b3edc4f670 BNB
0x993bb6e8e224b3229f90d34fa2db4facde71649b56e27f921ebdff6daf16f438110766682021-07-31 17:31:511 day 16 hrs ago 0xbfadfd5e22f227644e036bd407a14675654de63b 0x135cc4896723fc7a606921a9288f982a96cc9d460 BNB
0x993bb6e8e224b3229f90d34fa2db4facde71649b56e27f921ebdff6daf16f438110766682021-07-31 17:31:511 day 16 hrs ago 0xbfadfd5e22f227644e036bd407a14675654de63b 0x135cc4896723fc7a606921a9288f982a96cc9d460 BNB
0x993bb6e8e224b3229f90d34fa2db4facde71649b56e27f921ebdff6daf16f438110766682021-07-31 17:31:511 day 16 hrs ago 0xbfadfd5e22f227644e036bd407a14675654de63b 0xe1cdce9a678e84aa73d3266176c6e11b3edc4f670 BNB
0x66fe8c985c465d42ca7465867729ef4f56dbedc9f85cdbe55bd12f0e8f2ec5dd110766482021-07-31 17:30:511 day 16 hrs ago 0xbfadfd5e22f227644e036bd407a14675654de63b 0x135cc4896723fc7a606921a9288f982a96cc9d460 BNB
0x66fe8c985c465d42ca7465867729ef4f56dbedc9f85cdbe55bd12f0e8f2ec5dd110766482021-07-31 17:30:511 day 16 hrs ago 0xbfadfd5e22f227644e036bd407a14675654de63b 0x135cc4896723fc7a606921a9288f982a96cc9d460 BNB
0x66fe8c985c465d42ca7465867729ef4f56dbedc9f85cdbe55bd12f0e8f2ec5dd110766482021-07-31 17:30:511 day 16 hrs ago 0xbfadfd5e22f227644e036bd407a14675654de63b 0xe1cdce9a678e84aa73d3266176c6e11b3edc4f670 BNB
0x86f014c5d4bd4b578164ae2820f24939d07d2c786e9c3878df9972c86600d4da110766312021-07-31 17:30:001 day 16 hrs ago 0xbfadfd5e22f227644e036bd407a14675654de63b 0x135cc4896723fc7a606921a9288f982a96cc9d460 BNB
0x86f014c5d4bd4b578164ae2820f24939d07d2c786e9c3878df9972c86600d4da110766312021-07-31 17:30:001 day 16 hrs ago 0xbfadfd5e22f227644e036bd407a14675654de63b 0x135cc4896723fc7a606921a9288f982a96cc9d460 BNB
0x86f014c5d4bd4b578164ae2820f24939d07d2c786e9c3878df9972c86600d4da110766312021-07-31 17:30:001 day 16 hrs ago 0xbfadfd5e22f227644e036bd407a14675654de63b 0xe1cdce9a678e84aa73d3266176c6e11b3edc4f670 BNB
0x532c491f3a71e584f06cfe27b05031828d482e2a8e297a3c891c1a8216eadaa6110765972021-07-31 17:28:181 day 16 hrs ago 0xbfadfd5e22f227644e036bd407a14675654de63b 0x135cc4896723fc7a606921a9288f982a96cc9d460 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-14
*/

// 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
    // temporary remove this condition, because recently on ropsten we see cases when minter/node
    // can be even 100sec behind
    // 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"}]

60806040523480156200001157600080fd5b50604051620049de380380620049de83398181016040528101906200003791906200042a565b81600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415620000ab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401620000a290620004ff565b60405180910390fd5b806000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550506000620000fe620003b160201b60201c565b905080600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35080600460086101000a81548161ffff021916908361ffff16021790555060008273ffffffffffffffffffffffffffffffffffffffff166321f8a7216040518163ffffffff1660e01b8152600401620001f59062000521565b60206040518083038186803b1580156200020e57600080fd5b505afa15801562000223573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620002499190620003fe565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614620003a85760018173ffffffffffffffffffffffffffffffffffffffff166377839fe66040518163ffffffff1660e01b815260040160206040518083038186803b158015620002c957600080fd5b505afa158015620002de573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200030491906200046b565b8273ffffffffffffffffffffffffffffffffffffffff16637353cbcb6040518163ffffffff1660e01b815260040160206040518083038186803b1580156200034b57600080fd5b505afa15801562000360573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200038691906200046b565b01016004806101000a81548163ffffffff021916908363ffffffff1602179055505b505050620005ed565b600033905090565b600081519050620003ca816200059f565b92915050565b600081519050620003e181620005b9565b92915050565b600081519050620003f881620005d3565b92915050565b6000602082840312156200041157600080fd5b60006200042184828501620003b9565b91505092915050565b600080604083850312156200043e57600080fd5b60006200044e85828601620003b9565b92505060206200046185828601620003d0565b9150509250929050565b6000602082840312156200047e57600080fd5b60006200048e84828501620003e7565b91505092915050565b6000620004a66012836200053c565b91507f5f726567697374727920697320656d70747900000000000000000000000000006000830152602082019050919050565b7f436861696e000000000000000000000000000000000000000000000000000000815250565b600060208201905081810360008301526200051a8162000497565b9050919050565b60006020820190506200053760008301620004d9565b919050565b600082825260208201905092915050565b60006200055a826200056f565b9050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600063ffffffff82169050919050565b620005aa816200054d565b8114620005b657600080fd5b50565b620005c48162000561565b8114620005d057600080fd5b50565b620005de816200058f565b8114620005ea57600080fd5b50565b6143e180620005fd6000396000f3fe608060405234801561001057600080fd5b50600436106102065760003560e01c80638da5cb5b1161011a578063ca4d29d2116100ad578063e76c0b571161007c578063e76c0b571461064f578063ed9975c31461066d578063ef19f3e71461068b578063f25b3f99146106bb578063f2fde38b146106ed57610206565b8063ca4d29d2146105a0578063cbb1b2c7146105d0578063d3d3ea0814610601578063d45167d01461061f57610206565b8063bef9f8a1116100e9578063bef9f8a1146104f2578063bf66e3ba14610522578063c3369db814610552578063c70391671461058257610206565b80638da5cb5b146104675780639f6119d714610485578063abf410e5146104a3578063adf1639d146104c157610206565b8063485e055d1161019d578063637180a81161016c578063637180a8146103d3578063715018a6146103f15780637353cbcb146103fb57806377839fe614610419578063805d34321461043757610206565b8063485e055d146103425780634bc935d71461035e5780634e69d5601461038e57806355a373d6146103b557610206565b8063243b68f9116101d9578063243b68f9146102a757806324c89a49146102d757806326f3ab8b146102f557806340a9e5e31461032657610206565b80630f2acc3e1461020b5780631374df0b1461023b57806317d7de7c14610259578063199dadc514610277575b600080fd5b61022560048036038101906102209190612c66565b610709565b6040516102329190613a0e565b60405180910390f35b61024361073c565b6040516102509190613cde565b60405180910390f35b610261610750565b60405161026e9190613a0e565b60405180910390f35b610291600480360381019061028c9190612db4565b610778565b60405161029e91906139f3565b60405180910390f35b6102c160048036038101906102bc9190612cd2565b6107cd565b6040516102ce919061399a565b60405180910390f35b6102df61086f565b6040516102ec9190613aa5565b60405180910390f35b61030f600480360381019061030a9190612a6b565b6108a8565b60405161031d9291906139bc565b60405180910390f35b610340600480360381019061033b9190612d39565b610a31565b005b61035c60048036038101906103579190612ec4565b610b36565b005b61037860048036038101906103739190612ab0565b6112de565b60405161038591906139f3565b60405180910390f35b610396611309565b6040516103ac9a99989796959493929190613d3d565b60405180910390f35b6103bd611826565b6040516103ca9190613ac7565b60405180910390f35b6103db611965565b6040516103e89190613afd565b60405180910390f35b6103f9611a14565b005b610403611b6c565b6040516104109190613e17565b60405180910390f35b610421611b82565b60405161042e9190613e17565b60405180910390f35b610451600480360381019061044c9190612d62565b611b97565b60405161045e9190613e17565b60405180910390f35b61046f611c44565b60405161047c919061395d565b60405180910390f35b61048d611c6e565b60405161049a919061395d565b60405180910390f35b6104ab611c81565b6040516104b89190613ae2565b60405180910390f35b6104db60048036038101906104d69190612bda565b611ca6565b6040516104e9929190613dee565b60405180910390f35b61050c60048036038101906105079190612e9b565b611d33565b6040516105199190613a0e565b60405180910390f35b61053c60048036038101906105379190612b17565b611d59565b6040516105499190613978565b60405180910390f35b61056c60048036038101906105679190612e9b565b611e70565b6040516105799190613e17565b60405180910390f35b61058a611ea6565b6040516105979190613b18565b60405180910390f35b6105ba60048036038101906105b59190612e5f565b611f55565b6040516105c79190613d22565b60405180910390f35b6105ea60048036038101906105e59190612bda565b611fdb565b6040516105f8929190613cf9565b60405180910390f35b610609612037565b6040516106169190613e17565b60405180910390f35b61063960048036038101906106349190612c03565b612067565b604051610646919061395d565b60405180910390f35b610657612124565b6040516106649190613e17565b60405180910390f35b610675612134565b604051610682919061395d565b60405180910390f35b6106a560048036038101906106a09190612d62565b612144565b6040516106b2919061395d565b60405180910390f35b6106d560048036038101906106d09190612d62565b612289565b6040516106e493929190613a29565b60405180910390f35b610707600480360381019061070291906129c5565b6122df565b005b6000828260405160200161071e92919061390d565b60405160208183030381529060405280519060200120905092915050565b600460089054906101000a900461ffff1681565b60007f436861696e000000000000000000000000000000000000000000000000000000905090565b60006107c384600260008881526020019081526020016000206000015485856040516020016107a892919061390d565b604051602081830303815290604052805190602001206112de565b9050949350505050565b6060808267ffffffffffffffff811180156107e757600080fd5b506040519080825280602002602001820160405280156108165781602001602082028036833780820191505090505b50905060008090505b838110156108635760008060208760018501010290508088015191508184848151811061084857fe5b6020026020010181815250505050808060010191505061081f565b50809150509392505050565b6040518060400160405280601c81526020017f19457468657265756d205369676e6564204d6573736167653a0a33320000000081525081565b6060808383905067ffffffffffffffff811180156108c557600080fd5b506040519080825280602002602001820160405280156108f45781602001602082028036833780820191505090505b5090508383905067ffffffffffffffff8111801561091157600080fd5b506040519080825280602002602001820160405280156109405781602001602082028036833780820191505090505b50915060008090505b84849050811015610a295760006003600087878581811061096657fe5b90506020020135815260200190815260200160002090508060000160009054906101000a90047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff168483815181106109d457fe5b60200260200101818152505080600001601c9054906101000a900463ffffffff16838381518110610a0157fe5b602002602001019063ffffffff16908163ffffffff1681525050508080600101915050610949565b509250929050565b610a396124a6565b73ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614610ac8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610abf90613c65565b60405180910390fd5b80600460086101000a81548161ffff021916908361ffff1602179055503373ffffffffffffffffffffffffffffffffffffffff167f22d3c53dc5741f3378120ad17e6ae419e28fecb3c4c2572ca0de779d825f63f482604051610b2b9190613cde565b60405180910390a250565b6000610b40612037565b905042600460089054906101000a900461ffff1661ffff16600260008463ffffffff16815260200190815260200160002060010160009054906101000a900463ffffffff160163ffffffff1610610bcc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bc390613b93565b60405180910390fd5b8763ffffffff16600260008363ffffffff16815260200190815260200160002060010160009054906101000a900463ffffffff1663ffffffff1610610c46576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c3d90613cbe565b60405180910390fd5b8451865114610c8a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8190613c05565b60405180910390fd5b60608888604051602001610c9f929190613931565b604051602081830303815290604052905060008090505b8751811015610e9157868181518110610ccb57fe5b6020026020010151878281518110610cdf57fe5b60200260200101517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1614610d45576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d3c90613b73565b60405180910390fd5b6040518060400160405280888381518110610d5c57fe5b60200260200101517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1681526020018b63ffffffff16815250600360008a8481518110610da157fe5b6020026020010151815260200190815260200160002060008201518160000160006101000a8154817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff02191690837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff160217905550602082015181600001601c6101000a81548163ffffffff021916908363ffffffff16021790555090505081888281518110610e4557fe5b6020026020010151888381518110610e5957fe5b6020026020010151604051602001610e73939291906138d4565b60405160208183030381529060405291508080600101915050610cb6565b5060008180519060200120905060008090506000610ead611965565b905060008173ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b158015610ef757600080fd5b505afa158015610f0b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f2f9190612d8b565b9050600080905060008090505b8a51811015611119576000610f8c878d8481518110610f5757fe5b60200260200101518d8581518110610f6b57fe5b60200260200101518d8681518110610f7f57fe5b6020026020010151612067565b905060008573ffffffffffffffffffffffffffffffffffffffff166370a08231836040518263ffffffff1660e01b8152600401610fc9919061395d565b60206040518083038186803b158015610fe157600080fd5b505afa158015610ff5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110199190612d8b565b90508173ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1610611089576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108090613c25565b60405180910390fd5b819350600081141561109c57505061110c565b8173ffffffffffffffffffffffffffffffffffffffff1660018b0163ffffffff167fbac7552ab5da8d0588709ddb75aceec28520646f54bca1cc5e6e104db61935ec836040516110ec9190613d22565b60405180910390a361110781886124ae90919063ffffffff16565b965050505b8080600101915050610f3c565b5061112e60428361250390919063ffffffff16565b61114260648661250390919063ffffffff16565b1015611183576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117a90613c85565b60405180910390fd5b8c6002600060018a0163ffffffff168152602001908152602001600020600001819055508d6002600060018a0163ffffffff16815260200190815260200160002060010160006101000a81548163ffffffff021916908363ffffffff1602179055508460801c6002600060018a0163ffffffff16815260200190815260200160002060010160046101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506004600081819054906101000a900463ffffffff168092919060010191906101000a81548163ffffffff021916908363ffffffff160217905550503373ffffffffffffffffffffffffffffffffffffffff167f5f11830295067c4bcc7d02d4e3b048cd7427be50a3aeb6afc9d3d559ee64bcfa6001890184876040516112c693929190613e32565b60405180910390a25050505050505050505050505050565b60008060001b8314156112f45760009050611302565b6112ff848484612573565b90505b9392505050565b60008060008060008060608060606000439950600460089054906101000a900461ffff169850611337612037565b9650600260008863ffffffff16815260200190815260200160002060010160009054906101000a900463ffffffff1697506000611372611ea6565b905060008173ffffffffffffffffffffffffffffffffffffffff16639031d9136040518163ffffffff1660e01b815260040160206040518083038186803b1580156113bc57600080fd5b505afa1580156113d0573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113f49190612d8b565b90508067ffffffffffffffff8111801561140d57600080fd5b5060405190808252806020026020018201604052801561143c5781602001602082028036833780820191505090505b5095508067ffffffffffffffff8111801561145657600080fd5b5060405190808252806020026020018201604052801561148a57816020015b60608152602001906001900390816114755790505b50935060008090505b81811015611631578273ffffffffffffffffffffffffffffffffffffffff1663edf26d9b826040518263ffffffff1660e01b81526004016114d49190613d22565b60206040518083038186803b1580156114ec57600080fd5b505afa158015611500573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061152491906129ee565b87828151811061153057fe5b602002602001019073ffffffffffffffffffffffffffffffffffffffff16908173ffffffffffffffffffffffffffffffffffffffff16815250508273ffffffffffffffffffffffffffffffffffffffff1663fa52c7d888838151811061159257fe5b60200260200101516040518263ffffffff1660e01b81526004016115b6919061395d565b60006040518083038186803b1580156115ce57600080fd5b505afa1580156115e2573d6000803e3d6000fd5b505050506040513d6000823e3d601f19601f8201168201806040525081019061160b9190612a17565b905085828151811061161957fe5b60200260200101819052508080600101915050611493565b5061163e60014201611b97565b96506000811161164f576000611670565b8561165d8260014201611f55565b8151811061166757fe5b60200260200101515b9750600061167c611965565b90508167ffffffffffffffff8111801561169557600080fd5b506040519080825280602002602001820160405280156116c45781602001602082028036833780820191505090505b5095508073ffffffffffffffffffffffffffffffffffffffff166318160ddd6040518163ffffffff1660e01b815260040160206040518083038186803b15801561170d57600080fd5b505afa158015611721573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117459190612d8b565b935060008090505b82811015611816578173ffffffffffffffffffffffffffffffffffffffff166370a0823189838151811061177d57fe5b60200260200101516040518263ffffffff1660e01b81526004016117a1919061395d565b60206040518083038186803b1580156117b957600080fd5b505afa1580156117cd573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117f19190612d8b565b8782815181106117fd57fe5b602002602001018181525050808060010191505061174d565b5050505090919293949596979899565b60008073ffffffffffffffffffffffffffffffffffffffff166000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156118b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118af90613be5565b60405180910390fd5b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166346bcb49d6040518163ffffffff1660e01b815260040161191090613ca5565b60206040518083038186803b15801561192857600080fd5b505afa15801561193c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061196091906129ee565b905090565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166346bcb49d6040518163ffffffff1660e01b81526004016119bf90613bb3565b60206040518083038186803b1580156119d757600080fd5b505afa1580156119eb573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a0f91906129ee565b905090565b611a1c6124a6565b73ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611aab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611aa290613c65565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600460009054906101000a900463ffffffff1681565b6004809054906101000a900463ffffffff1681565b6000806004809054906101000a900463ffffffff16600460009054906101000a900463ffffffff1601905060008163ffffffff161415611bdb576000915050611c3f565b82600460089054906101000a900461ffff1661ffff16600260006001850363ffffffff16815260200190815260200160002060010160009054906101000a900463ffffffff160163ffffffff161015611c375780915050611c3f565b600181039150505b919050565b6000600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6000611c7c60014201612144565b905090565b6000809054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60008060006003600085815260200190815260200160002090508060000160009054906101000a90047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1681600001601c9054906101000a900463ffffffff168063ffffffff1690509250925050915091565b6000600260008363ffffffff168152602001908152602001600020600001549050919050565b6060815167ffffffffffffffff81118015611d7357600080fd5b50604051908082528060200260200182016040528015611da25781602001602082028036833780820191505090505b509050600080905060008090505b8351811015611e6657611e23611dda8784888581518110611dcd57fe5b60200260200101516107cd565b600260008a8581518110611dea57fe5b602002602001015163ffffffff16815260200190815260200160002060000154868481518110611e1657fe5b60200260200101516112de565b838281518110611e2f57fe5b602002602001019015159081151581525050848181518110611e4d57fe5b6020026020010151820191508080600101915050611db0565b5050949350505050565b6000600260008363ffffffff16815260200190815260200160002060010160009054906101000a900463ffffffff169050919050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166346bcb49d6040518163ffffffff1660e01b8152600401611f0090613bcc565b60206040518083038186803b158015611f1857600080fd5b505afa158015611f2c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f5091906129ee565b905090565b600080611f60612037565b905060006001600460089054906101000a900461ffff160161ffff16600260008463ffffffff16815260200190815260200160002060010160009054906101000a900463ffffffff1663ffffffff16850381611fb857fe5b048263ffffffff16019050848181611fcc57fe5b0661ffff169250505092915050565b60036020528060005260406000206000915090508060000160009054906101000a90047bffffffffffffffffffffffffffffffffffffffffffffffffffffffff169080600001601c9054906101000a900463ffffffff16905082565b600060016004809054906101000a900463ffffffff16600460009054906101000a900463ffffffff160103905090565b6000806040518060400160405280601c81526020017f19457468657265756d205369676e6564204d6573736167653a0a333200000000815250866040516020016120b29291906138ac565b604051602081830303815290604052805190602001209050600181868686604051600081526020016040526040516120ed9493929190613a60565b6020604051602081039080840390855afa15801561210f573d6000803e3d6000fd5b50505060206040510351915050949350505050565b600061212f42611b97565b905090565b600061213f42612144565b905090565b60008061214f611ea6565b905060008173ffffffffffffffffffffffffffffffffffffffff16639031d9136040518163ffffffff1660e01b815260040160206040518083038186803b15801561219957600080fd5b505afa1580156121ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121d19190612d8b565b905060008114156121e757600092505050612284565b60006121f38286611f55565b90508273ffffffffffffffffffffffffffffffffffffffff1663edf26d9b826040518263ffffffff1660e01b815260040161222e9190613d22565b60206040518083038186803b15801561224657600080fd5b505afa15801561225a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061227e91906129ee565b93505050505b919050565b60026020528060005260406000206000915090508060000154908060010160009054906101000a900463ffffffff16908060010160049054906101000a90046fffffffffffffffffffffffffffffffff16905083565b6122e76124a6565b73ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614612376576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161236d90613c65565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156123e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123dd90613b33565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b600033905090565b6000808284019050838110156124f9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124f090613b53565b60405180910390fd5b8091505092915050565b600080831415612516576000905061256d565b600082840290508284828161252757fe5b0414612568576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161255f90613c45565b60405180910390fd5b809150505b92915050565b60008082905060008090505b855181101561261157600086828151811061259657fe5b602002602001015190508083116125d75782816040516020016125ba929190613880565b604051602081830303815290604052805190602001209250612603565b80836040516020016125ea929190613880565b6040516020818303038152906040528051906020012092505b50808060010191505061257f565b508381149150509392505050565b60008135905061262e81614321565b92915050565b60008151905061264381614321565b92915050565b60008083601f84011261265b57600080fd5b8235905067ffffffffffffffff81111561267457600080fd5b60208301915083602082028301111561268c57600080fd5b9250929050565b600082601f8301126126a457600080fd5b81356126b76126b282613e96565b613e69565b915081818352602084019350602081019050838560208402820111156126dc57600080fd5b60005b8381101561270c57816126f2888261289f565b8452602084019350602083019250506001810190506126df565b5050505092915050565b600082601f83011261272757600080fd5b813561273a61273582613ebe565b613e69565b9150818183526020840193506020810190508385602084028201111561275f57600080fd5b60005b8381101561278f57816127758882612971565b845260208401935060208301925050600181019050612762565b5050505092915050565b600082601f8301126127aa57600080fd5b81356127bd6127b882613ee6565b613e69565b915081818352602084019350602081019050838560208402820111156127e257600080fd5b60005b8381101561281257816127f8888261299b565b8452602084019350602083019250506001810190506127e5565b5050505092915050565b600082601f83011261282d57600080fd5b813561284061283b82613f0e565b613e69565b9150818183526020840193506020810190508385602084028201111561286557600080fd5b60005b83811015612895578161287b88826129b0565b845260208401935060208301925050600181019050612868565b5050505092915050565b6000813590506128ae81614338565b92915050565b600082601f8301126128c557600080fd5b81356128d86128d382613f36565b613e69565b915080825260208301602083018583830111156128f457600080fd5b6128ff83828461429b565b50505092915050565b600082601f83011261291957600080fd5b815161292c61292782613f62565b613e69565b9150808252602083016020830185838301111561294857600080fd5b6129538382846142aa565b50505092915050565b60008135905061296b8161434f565b92915050565b60008135905061298081614366565b92915050565b60008151905061299581614366565b92915050565b6000813590506129aa8161437d565b92915050565b6000813590506129bf81614394565b92915050565b6000602082840312156129d757600080fd5b60006129e58482850161261f565b91505092915050565b600060208284031215612a0057600080fd5b6000612a0e84828501612634565b91505092915050565b60008060408385031215612a2a57600080fd5b6000612a3885828601612634565b925050602083015167ffffffffffffffff811115612a5557600080fd5b612a6185828601612908565b9150509250929050565b60008060208385031215612a7e57600080fd5b600083013567ffffffffffffffff811115612a9857600080fd5b612aa485828601612649565b92509250509250929050565b600080600060608486031215612ac557600080fd5b600084013567ffffffffffffffff811115612adf57600080fd5b612aeb86828701612693565b9350506020612afc8682870161289f565b9250506040612b0d8682870161289f565b9150509250925092565b60008060008060808587031215612b2d57600080fd5b600085013567ffffffffffffffff811115612b4757600080fd5b612b5387828801612799565b945050602085013567ffffffffffffffff811115612b7057600080fd5b612b7c878288016128b4565b935050604085013567ffffffffffffffff811115612b9957600080fd5b612ba587828801612716565b925050606085013567ffffffffffffffff811115612bc257600080fd5b612bce87828801612693565b91505092959194509250565b600060208284031215612bec57600080fd5b6000612bfa8482850161289f565b91505092915050565b60008060008060808587031215612c1957600080fd5b6000612c278782880161289f565b9450506020612c38878288016129b0565b9350506040612c498782880161289f565b9250506060612c5a8782880161289f565b91505092959194509250565b60008060408385031215612c7957600080fd5b600083013567ffffffffffffffff811115612c9357600080fd5b612c9f858286016128b4565b925050602083013567ffffffffffffffff811115612cbc57600080fd5b612cc8858286016128b4565b9150509250929050565b600080600060608486031215612ce757600080fd5b600084013567ffffffffffffffff811115612d0157600080fd5b612d0d868287016128b4565b9350506020612d1e86828701612971565b9250506040612d2f86828701612971565b9150509250925092565b600060208284031215612d4b57600080fd5b6000612d598482850161295c565b91505092915050565b600060208284031215612d7457600080fd5b6000612d8284828501612971565b91505092915050565b600060208284031215612d9d57600080fd5b6000612dab84828501612986565b91505092915050565b60008060008060808587031215612dca57600080fd5b6000612dd887828801612971565b945050602085013567ffffffffffffffff811115612df557600080fd5b612e0187828801612693565b935050604085013567ffffffffffffffff811115612e1e57600080fd5b612e2a878288016128b4565b925050606085013567ffffffffffffffff811115612e4757600080fd5b612e53878288016128b4565b91505092959194509250565b60008060408385031215612e7257600080fd5b6000612e8085828601612971565b9250506020612e9185828601612971565b9150509250929050565b600060208284031215612ead57600080fd5b6000612ebb8482850161299b565b91505092915050565b600080600080600080600060e0888a031215612edf57600080fd5b6000612eed8a828b0161299b565b9750506020612efe8a828b0161289f565b965050604088013567ffffffffffffffff811115612f1b57600080fd5b612f278a828b01612693565b955050606088013567ffffffffffffffff811115612f4457600080fd5b612f508a828b01612716565b945050608088013567ffffffffffffffff811115612f6d57600080fd5b612f798a828b0161281c565b93505060a088013567ffffffffffffffff811115612f9657600080fd5b612fa28a828b01612693565b92505060c088013567ffffffffffffffff811115612fbf57600080fd5b612fcb8a828b01612693565b91505092959891949750929550565b6000612fe68383613066565b60208301905092915050565b6000612ffe83836132cf565b60208301905092915050565b600061301683836132ed565b60208301905092915050565b600061302e83836133c8565b905092915050565b600061304283836137f8565b60208301905092915050565b600061305a838361383c565b60208301905092915050565b61306f81614138565b82525050565b61307e81614138565b82525050565b600061308f82613fee565b6130998185614094565b93506130a483613f8e565b8060005b838110156130d55781516130bc8882612fda565b97506130c783614046565b9250506001810190506130a8565b5085935050505092915050565b60006130ed82613ff9565b6130f781856140a5565b935061310283613f9e565b8060005b8381101561313357815161311a8882612ff2565b975061312583614053565b925050600181019050613106565b5085935050505092915050565b600061314b82614004565b61315581856140b6565b935061316083613fae565b8060005b83811015613191578151613178888261300a565b975061318383614060565b925050600181019050613164565b5085935050505092915050565b60006131a98261400f565b6131b381856140c7565b9350836020820285016131c585613fbe565b8060005b8581101561320157848403895281516131e28582613022565b94506131ed8361406d565b925060208a019950506001810190506131c9565b50829750879550505050505092915050565b600061321e8261401a565b61322881856140d8565b935061323383613fce565b8060005b8381101561326457815161324b8882613036565b97506132568361407a565b925050600181019050613237565b5085935050505092915050565b600061327c82614025565b61328681856140e9565b935061329183613fde565b8060005b838110156132c25781516132a9888261304e565b97506132b483614087565b925050600181019050613295565b5085935050505092915050565b6132d88161414a565b82525050565b6132e78161414a565b82525050565b6132f681614156565b82525050565b61330581614156565b82525050565b61331c61331782614156565b6142dd565b82525050565b600061332d82614030565b61333781856140fa565b93506133478185602086016142aa565b61335081614303565b840191505092915050565b600061336682614030565b613370818561410b565b93506133808185602086016142aa565b80840191505092915050565b613395816141f9565b82525050565b6133a48161421d565b82525050565b6133b381614241565b82525050565b6133c281614265565b82525050565b60006133d38261403b565b6133dd8185614116565b93506133ed8185602086016142aa565b6133f681614303565b840191505092915050565b600061340e602683614127565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613474601b83614127565b91507f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006000830152602082019050919050565b60006134b4600c83614127565b91507f464344206f766572666c6f7700000000000000000000000000000000000000006000830152602082019050919050565b60006134f4600b83614127565b91507f646f206e6f74207370616d0000000000000000000000000000000000000000006000830152602082019050919050565b7f5374616b696e6742616e6b000000000000000000000000000000000000000000815250565b7f56616c696461746f725265676973747279000000000000000000000000000000815250565b6000613580601283614127565b91507f5f726567697374727920697320656d70747900000000000000000000000000006000830152602082019050919050565b60006135c0602783614127565b91507f6e756d62657273206f66206b65797320616e642076616c756573206e6f74207460008301527f68652073616d65000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613626602183614127565b91507f76616c696461746f7220696e636c75646564206d6f7265207468616e206f6e6360008301527f65000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061368c602183614127565b91507f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f60008301527f77000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006136f2602083614127565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000613732601d83614127565b91507f6e6f7420656e6f75676820706f776572207761732067617468657265640000006000830152602082019050919050565b7f554d420000000000000000000000000000000000000000000000000000000000815250565b6000613798601983614127565b91507f63616e204e4f54207375626d6974206f6c6465722064617461000000000000006000830152602082019050919050565b6137d481614160565b82525050565b6137e38161417c565b82525050565b6137f2816141aa565b82525050565b613801816141d2565b82525050565b613810816141d2565b82525050565b613827613822826141d2565b6142e7565b82525050565b61383681614289565b82525050565b613845816141dc565b82525050565b613854816141dc565b82525050565b61386b613866826141dc565b6142f1565b82525050565b61387a816141ec565b82525050565b600061388c828561330b565b60208201915061389c828461330b565b6020820191508190509392505050565b60006138b8828561335b565b91506138c4828461330b565b6020820191508190509392505050565b60006138e0828661335b565b91506138ec828561330b565b6020820191506138fc8284613816565b602082019150819050949350505050565b6000613919828561335b565b9150613925828461335b565b91508190509392505050565b600061393d828561385a565b60048201915061394d828461330b565b6020820191508190509392505050565b60006020820190506139726000830184613075565b92915050565b6000602082019050818103600083015261399281846130e2565b905092915050565b600060208201905081810360008301526139b48184613140565b905092915050565b600060408201905081810360008301526139d68185613213565b905081810360208301526139ea8184613271565b90509392505050565b6000602082019050613a0860008301846132de565b92915050565b6000602082019050613a2360008301846132fc565b92915050565b6000606082019050613a3e60008301866132fc565b613a4b602083018561384b565b613a5860408301846137cb565b949350505050565b6000608082019050613a7560008301876132fc565b613a826020830186613871565b613a8f60408301856132fc565b613a9c60608301846132fc565b95945050505050565b60006020820190508181036000830152613abf8184613322565b905092915050565b6000602082019050613adc600083018461338c565b92915050565b6000602082019050613af7600083018461339b565b92915050565b6000602082019050613b1260008301846133aa565b92915050565b6000602082019050613b2d60008301846133b9565b92915050565b60006020820190508181036000830152613b4c81613401565b9050919050565b60006020820190508181036000830152613b6c81613467565b9050919050565b60006020820190508181036000830152613b8c816134a7565b9050919050565b60006020820190508181036000830152613bac816134e7565b9050919050565b6000602082019050613bc760008301613527565b919050565b6000602082019050613be06000830161354d565b919050565b60006020820190508181036000830152613bfe81613573565b9050919050565b60006020820190508181036000830152613c1e816135b3565b9050919050565b60006020820190508181036000830152613c3e81613619565b9050919050565b60006020820190508181036000830152613c5e8161367f565b9050919050565b60006020820190508181036000830152613c7e816136e5565b9050919050565b60006020820190508181036000830152613c9e81613725565b9050919050565b6000602082019050613cb960008301613765565b919050565b60006020820190508181036000830152613cd78161378b565b9050919050565b6000602082019050613cf360008301846137da565b92915050565b6000604082019050613d0e60008301856137e9565b613d1b602083018461384b565b9392505050565b6000602082019050613d376000830184613807565b92915050565b600061014082019050613d53600083018d613807565b613d60602083018c6137da565b613d6d604083018b61384b565b613d7a606083018a61384b565b613d876080830189613075565b613d9460a083018861384b565b81810360c0830152613da68187613084565b905081810360e0830152613dba8186613213565b9050818103610100830152613dcf818561319e565b9050613ddf610120830184613807565b9b9a5050505050505050505050565b6000604082019050613e036000830185613807565b613e106020830184613807565b9392505050565b6000602082019050613e2c600083018461384b565b92915050565b6000606082019050613e47600083018661382d565b613e546020830185613807565b613e616040830184613807565b949350505050565b6000604051905081810181811067ffffffffffffffff82111715613e8c57600080fd5b8060405250919050565b600067ffffffffffffffff821115613ead57600080fd5b602082029050602081019050919050565b600067ffffffffffffffff821115613ed557600080fd5b602082029050602081019050919050565b600067ffffffffffffffff821115613efd57600080fd5b602082029050602081019050919050565b600067ffffffffffffffff821115613f2557600080fd5b602082029050602081019050919050565b600067ffffffffffffffff821115613f4d57600080fd5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff821115613f7957600080fd5b601f19601f8301169050602081019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b6000602082019050919050565b6000602082019050919050565b6000602082019050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b60006141438261418a565b9050919050565b60008115159050919050565b6000819050919050565b60006fffffffffffffffffffffffffffffffff82169050919050565b600061ffff82169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600063ffffffff82169050919050565b600060ff82169050919050565b60006142048261420b565b9050919050565b60006142168261418a565b9050919050565b60006142288261422f565b9050919050565b600061423a8261418a565b9050919050565b600061424c82614253565b9050919050565b600061425e8261418a565b9050919050565b600061427082614277565b9050919050565b60006142828261418a565b9050919050565b6000614294826141dc565b9050919050565b82818337600083830152505050565b60005b838110156142c85780820151818401526020810190506142ad565b838111156142d7576000848401525b50505050565b6000819050919050565b6000819050919050565b60006142fc82614314565b9050919050565b6000601f19601f8301169050919050565b60008160e01b9050919050565b61432a81614138565b811461433557600080fd5b50565b61434181614156565b811461434c57600080fd5b50565b6143588161417c565b811461436357600080fd5b50565b61436f816141d2565b811461437a57600080fd5b50565b614386816141dc565b811461439157600080fd5b50565b61439d816141ec565b81146143a857600080fd5b5056fea26469706673582212203cd248756314c81ee071035b1cbbfeeaba76e297f4d50d85f764220332734e1b64736f6c63430006080033000000000000000000000000e1cdce9a678e84aa73d3266176c6e11b3edc4f67000000000000000000000000000000000000000000000000000000000000003c

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

000000000000000000000000e1cdce9a678e84aa73d3266176c6e11b3edc4f67000000000000000000000000000000000000000000000000000000000000003c

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000e1cdce9a678e84aa73d3266176c6e11b3edc4f67
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