Donau Testnet

Contract

0x409c6eCD9b4373240D1430F5fF21f099Fa03c752

Overview

BTT Balance

Bittorent Chain LogoBittorent Chain LogoBittorent Chain Logo0 BTT

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

> 10 Internal Transactions found.

Latest 25 internal transactions (View All)

Parent Transaction Hash Block From To
479914912025-01-22 7:13:4130 hrs ago1737530021
0x409c6eCD...9Fa03c752
0 BTT
479914892025-01-22 7:13:3730 hrs ago1737530017
0x409c6eCD...9Fa03c752
0 BTT
479914882025-01-22 7:13:3530 hrs ago1737530015
0x409c6eCD...9Fa03c752
0 BTT
479914822025-01-22 7:13:1930 hrs ago1737529999
0x409c6eCD...9Fa03c752
0 BTT
479914812025-01-22 7:13:1730 hrs ago1737529997
0x409c6eCD...9Fa03c752
0 BTT
479914792025-01-22 7:13:1330 hrs ago1737529993
0x409c6eCD...9Fa03c752
0 BTT
479913172025-01-22 7:07:4130 hrs ago1737529661
0x409c6eCD...9Fa03c752
0 BTT
479913132025-01-22 7:07:3330 hrs ago1737529653
0x409c6eCD...9Fa03c752
0 BTT
479913072025-01-22 7:07:2130 hrs ago1737529641
0x409c6eCD...9Fa03c752
0 BTT
351356682024-03-21 7:56:50308 days ago1711007810
0x409c6eCD...9Fa03c752
0 BTT
351356662024-03-21 7:56:46308 days ago1711007806
0x409c6eCD...9Fa03c752
0 BTT
351356642024-03-21 7:56:42308 days ago1711007802
0x409c6eCD...9Fa03c752
0 BTT
351356612024-03-21 7:56:36308 days ago1711007796
0x409c6eCD...9Fa03c752
0 BTT
351356592024-03-21 7:56:32308 days ago1711007792
0x409c6eCD...9Fa03c752
0 BTT
351356572024-03-21 7:56:28308 days ago1711007788
0x409c6eCD...9Fa03c752
0 BTT
351356562024-03-21 7:56:26308 days ago1711007786
0x409c6eCD...9Fa03c752
0 BTT
351356552024-03-21 7:56:24308 days ago1711007784
0x409c6eCD...9Fa03c752
0 BTT
351356542024-03-21 7:56:22308 days ago1711007782
0x409c6eCD...9Fa03c752
0 BTT
351356532024-03-21 7:56:20308 days ago1711007780
0x409c6eCD...9Fa03c752
0 BTT
351356532024-03-21 7:56:20308 days ago1711007780
0x409c6eCD...9Fa03c752
0 BTT
351356522024-03-21 7:56:18308 days ago1711007778
0x409c6eCD...9Fa03c752
0 BTT
351356512024-03-21 7:56:16308 days ago1711007776
0x409c6eCD...9Fa03c752
0 BTT
351356502024-03-21 7:56:14308 days ago1711007774
0x409c6eCD...9Fa03c752
0 BTT
351356492024-03-21 7:56:12308 days ago1711007772
0x409c6eCD...9Fa03c752
0 BTT
351356492024-03-21 7:56:12308 days ago1711007772
0x409c6eCD...9Fa03c752
0 BTT
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ChildChainManager

Compiler Version
v0.6.6+commit.6c089d02

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion, MIT license

Contract Source Code (Solidity)

/**
 *Submitted for verification at testnet.bttcscan.com on 2022-09-15
*/

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

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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

// File: contracts/child/ChildChainManager/IChildChainManager.sol

pragma solidity 0.6.6;

interface IChildChainManager {
    event TokenMapped(uint64 indexed chainId, address indexed rootToken, address indexed childToken);

    function mapToken(uint64 chainId, address rootToken, address childToken) external;
    function cleanMapToken(uint64 chainId, address rootToken, address childToken) external;
}

// File: contracts/child/ChildToken/IChildToken.sol

pragma solidity 0.6.6;

interface IChildToken {
    event WithdrawTo(address indexed from, address indexed to, uint256 amount);
    function deposit(address user, bytes calldata depositData) external;
}

// File: contracts/common/Initializable.sol

pragma solidity 0.6.6;

contract Initializable {
    bool inited = false;

    modifier initializer() {
        require(!inited, "already inited");
        _;
        inited = true;
    }
}

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

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;

        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping (bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) { // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        require(set._values.length > index, "EnumerableSet: index out of bounds");
        return set._values[index];
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }


    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }
}

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

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

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

        uint256 size;
        // 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");
        require(isContract(target), "Address: call to non-contract");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.call{ value: value }(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.staticcall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

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

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

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private pure returns(bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                // 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/utils/Context.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/*
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with 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/AccessControl.sol

// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;



/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context {
    using EnumerableSet for EnumerableSet.AddressSet;
    using Address for address;

    struct RoleData {
        EnumerableSet.AddressSet members;
        bytes32 adminRole;
    }

    mapping (bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view returns (bool) {
        return _roles[role].members.contains(account);
    }

    /**
     * @dev Returns the number of accounts that have `role`. Can be used
     * together with {getRoleMember} to enumerate all bearers of a role.
     */
    function getRoleMemberCount(bytes32 role) public view returns (uint256) {
        return _roles[role].members.length();
    }

    /**
     * @dev Returns one of the accounts that have `role`. `index` must be a
     * value between 0 and {getRoleMemberCount}, non-inclusive.
     *
     * Role bearers are not sorted in any particular way, and their ordering may
     * change at any point.
     *
     * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure
     * you perform all queries on the same block. See the following
     * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]
     * for more information.
     */
    function getRoleMember(bytes32 role, uint256 index) public view returns (address) {
        return _roles[role].members.at(index);
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) public virtual {
        require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to grant");

        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) public virtual {
        require(hasRole(_roles[role].adminRole, _msgSender()), "AccessControl: sender must be an admin to revoke");

        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) public virtual {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        emit RoleAdminChanged(role, _roles[role].adminRole, adminRole);
        _roles[role].adminRole = adminRole;
    }

    function _grantRole(bytes32 role, address account) private {
        if (_roles[role].members.add(account)) {
            emit RoleGranted(role, account, _msgSender());
        }
    }

    function _revokeRole(bytes32 role, address account) private {
        if (_roles[role].members.remove(account)) {
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}

// File: contracts/common/AccessControlMixin.sol

pragma solidity 0.6.6;

contract AccessControlMixin is AccessControl {
    string private _revertMsg;
    function _setupContractId(string memory contractId) internal {
        _revertMsg = string(abi.encodePacked(contractId, ": INSUFFICIENT_PERMISSIONS"));
    }

    modifier only(bytes32 role) {
        require(
            hasRole(role, _msgSender()),
            _revertMsg
        );
        _;
    }
}

// File: contracts/child/IStateReceiver.sol

pragma solidity 0.6.6;

interface IStateReceiver {
    function onStateReceive(uint256 id, bytes calldata data) external;
}

// File: contracts/child/ChildChainManager/ChildChainManager.sol

pragma solidity 0.6.6;






contract ChildChainManager is
    IChildChainManager,
    Initializable,
    AccessControlMixin,
    IStateReceiver
{
    bytes32 public constant DEPOSIT = keccak256("DEPOSIT");
    bytes32 public constant MAP_TOKEN = keccak256("MAP_TOKEN");
    bytes32 public constant MAPPER_ROLE = keccak256("MAPPER_ROLE");
    bytes32 public constant STATE_SYNCER_ROLE = keccak256("STATE_SYNCER_ROLE");

    mapping(uint256 => address) public rootToChildToken;
    mapping(address => address) public childToRootToken;

    function initialize(address _owner) external initializer {
        _setupContractId("ChildChainManager");
        _setupRole(DEFAULT_ADMIN_ROLE, _owner);
        _setupRole(MAPPER_ROLE, _owner);
        _setupRole(STATE_SYNCER_ROLE, _owner);
    }

    function getRootToChildToken(uint64 chainId, address rootToken)
        external
        view
        returns (address childToken)
    {
        childToken = rootToChildToken[uint256(rootToken) | (uint256(chainId)<<160)];
    }

    /**
     * @notice Map a token to enable its movement via the PoS Portal, callable only by mappers
     * Normally mapping should happen automatically using state sync
     * This function should be used only while initial deployment when state sync is not registrered or if it fails
     * @param rootToken address of token on root chain
     * @param childToken address of token on child chain
     */
    function mapToken(uint64 chainId, address rootToken, address childToken)
        external
        override
        only(MAPPER_ROLE)
    {
        _mapToken(chainId, rootToken, childToken);
    }

    /**
     * @notice Receive state sync data from root chain, only callable by state syncer
     * @dev state syncing mechanism is used for both depositing tokens and mapping them
     * @param data bytes data from RootChainManager contract
     * `data` is made up of bytes32 `syncType` and bytes `syncData`
     * `syncType` determines if it is deposit or token mapping
     * in case of token mapping, `syncData` is encoded address `rootToken`, address `childToken` and bytes32 `tokenType`
     * in case of deposit, `syncData` is encoded address `user`, address `rootToken` and bytes `depositData`
     * `depositData` is token specific data (amount in case of ERC20). It is passed as is to child token
     */
    function onStateReceive(uint256, bytes calldata data)
        external
        override
        only(STATE_SYNCER_ROLE)
    {
        (bytes32 syncType, bytes memory syncData) = abi.decode(
            data,
            (bytes32, bytes)
        );

        if (syncType == DEPOSIT) {
            _syncDeposit(syncData);
        } else if (syncType == MAP_TOKEN) {
            (address rootToken, address childToken, uint64 chainId, ) = abi.decode(
                syncData,
                (address, address, uint64, bytes32)
            );
            _mapToken(chainId, rootToken, childToken);
        } else {
            revert("ChildChainManager: INVALID_SYNC_TYPE");
        }
    }

    /**
     * @notice Clean polluted token mapping
     * @param rootToken address of token on root chain. Since rename token was introduced later stage,
     * clean method is used to clean pollulated mapping
     */
    function cleanMapToken(
        uint64 chainId,
        address rootToken,
        address childToken
    ) external override only(MAPPER_ROLE) {
        uint256 rootKey = uint256(rootToken) | (uint256(chainId)<<160);
        rootToChildToken[rootKey] = address(0);
        childToRootToken[childToken] = address(0);

        emit TokenMapped(chainId, rootToken, childToken);
    }

    function _mapToken(uint64 chainId, address rootToken, address childToken) private {
        uint256 rootKey = uint256(rootToken) | (uint256(chainId)<<160);
        address oldChildToken = rootToChildToken[rootKey];
        address oldRootToken = childToRootToken[childToken];

        uint256 oldRootKey = uint256(oldRootToken) | (uint256(chainId)<<160);

        if (rootToChildToken[oldRootKey] != address(0)) {
            rootToChildToken[oldRootKey] = address(0);
        }
        if (childToRootToken[oldChildToken] != address(0)) {
            childToRootToken[oldChildToken] = address(0);
        }

        rootToChildToken[rootKey] = childToken;
        childToRootToken[childToken] = rootToken;

        emit TokenMapped(chainId, rootToken, childToken);
    }

    function _syncDeposit(bytes memory syncData) private {
        (address user, address rootToken, uint64 chainId, bytes memory depositData) = abi
            .decode(syncData, (address, address, uint64, bytes));
        uint256 rootKey = uint256(rootToken) | (uint256(chainId)<<160);
        address childTokenAddress = rootToChildToken[rootKey];
        require(
            childTokenAddress != address(0x0),
            "ChildChainManager: TOKEN_NOT_MAPPED"
        );
        IChildToken childTokenContract = IChildToken(childTokenAddress);
        childTokenContract.deposit(user, depositData);
    }
}

Contract ABI

[{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint64","name":"chainId","type":"uint64"},{"indexed":true,"internalType":"address","name":"rootToken","type":"address"},{"indexed":true,"internalType":"address","name":"childToken","type":"address"}],"name":"TokenMapped","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"DEPOSIT","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAPPER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"MAP_TOKEN","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"STATE_SYNCER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"}],"name":"childToRootToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"chainId","type":"uint64"},{"internalType":"address","name":"rootToken","type":"address"},{"internalType":"address","name":"childToken","type":"address"}],"name":"cleanMapToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"chainId","type":"uint64"},{"internalType":"address","name":"rootToken","type":"address"}],"name":"getRootToChildToken","outputs":[{"internalType":"address","name":"childToken","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_owner","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint64","name":"chainId","type":"uint64"},{"internalType":"address","name":"rootToken","type":"address"},{"internalType":"address","name":"childToken","type":"address"}],"name":"mapToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onStateReceive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"rootToChildToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60806040526000805460ff1916905534801561001a57600080fd5b506114788061002a6000396000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c80639010d07c116100ad578063c4d66de811610071578063c4d66de81461037c578063ca15c873146103a2578063d547741f146103bf578063d81c8e52146103eb578063d956d5fa146103f357610121565b80639010d07c146102b657806391d14854146102d957806396d0786a14610319578063a217fddf14610336578063adc9b9a31461033e57610121565b806336568abe116100f457806336568abe1461024c5780634dee449814610278578063568b80b5146102805780636e86b77014610288578063886a69ba146102ae57610121565b80630a8099e314610126578063248a9ca31461017857806326c53bea146101a75780632f2ff15d14610220575b600080fd5b61015c6004803603604081101561013c57600080fd5b50803567ffffffffffffffff1690602001356001600160a01b0316610431565b604080516001600160a01b039092168252519081900360200190f35b6101956004803603602081101561018e57600080fd5b5035610463565b60408051918252519081900360200190f35b61021e600480360360408110156101bd57600080fd5b813591908101906040810160208201356401000000008111156101df57600080fd5b8201836020820111156101f157600080fd5b8035906020019184600183028401116401000000008311171561021357600080fd5b509092509050610478565b005b61021e6004803603604081101561023657600080fd5b50803590602001356001600160a01b03166106d4565b61021e6004803603604081101561026257600080fd5b50803590602001356001600160a01b031661073b565b61019561079c565b6101956107c5565b61015c6004803603602081101561029e57600080fd5b50356001600160a01b03166107e8565b610195610803565b61015c600480360360408110156102cc57600080fd5b5080359060200135610824565b610305600480360360408110156102ef57600080fd5b50803590602001356001600160a01b031661084b565b604080519115158252519081900360200190f35b61015c6004803603602081101561032f57600080fd5b5035610869565b610195610884565b61021e6004803603606081101561035457600080fd5b5067ffffffffffffffff813516906001600160a01b0360208201358116916040013516610889565b61021e6004803603602081101561039257600080fd5b50356001600160a01b031661092d565b610195600480360360208110156103b857600080fd5b5035610a1d565b61021e600480360360408110156103d557600080fd5b50803590602001356001600160a01b0316610a34565b610195610a8d565b61021e6004803603606081101561040957600080fd5b5067ffffffffffffffff813516906001600160a01b0360208201358116916040013516610aac565b60a09190911b67ffffffffffffffff60a01b166001600160a01b03918216176000908152600360205260409020541690565b60009081526001602052604090206002015490565b604080517053544154455f53594e4345525f524f4c4560781b815290519081900360110190206104af816104aa610bd2565b61084b565b60029061054f5760405162461bcd60e51b81526020600482019081528254600260001961010060018416150201909116046024830181905290918291604490910190849080156105405780601f1061051557610100808354040283529160200191610540565b820191906000526020600020905b81548152906001019060200180831161052357829003601f168201915b50509250505060405180910390fd5b50600060608484604081101561056457600080fd5b8135919081019060408101602082013564010000000081111561058657600080fd5b82018360208201111561059857600080fd5b803590602001918460018302840111640100000000831117156105ba57600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516611115413d4d25560ca1b8152905190819003600701902096985091965050505091841415915061062d90505761062881610bd7565b6106cc565b604080516826a0a82faa27a5a2a760b91b8152905190819003600901902082141561069557600080600083806020019051608081101561066c57600080fd5b5080516020820151604090920151909450909250905061068d818484610e0b565b5050506106cc565b60405162461bcd60e51b815260040180806020018281038252602481526020018061139d6024913960400191505060405180910390fd5b505050505050565b6000828152600160205260409020600201546106f2906104aa610bd2565b61072d5760405162461bcd60e51b815260040180806020018281038252602f81526020018061136e602f913960400191505060405180910390fd5b6107378282610f51565b5050565b610743610bd2565b6001600160a01b0316816001600160a01b0316146107925760405162461bcd60e51b815260040180806020018281038252602f815260200180611414602f913960400191505060405180910390fd5b6107378282610fc0565b604080517053544154455f53594e4345525f524f4c4560781b8152905190819003601101902081565b604080516a4d41505045525f524f4c4560a81b8152905190819003600b01902081565b6004602052600090815260409020546001600160a01b031681565b604080516826a0a82faa27a5a2a760b91b8152905190819003600901902081565b6000828152600160205260408120610842908363ffffffff61102f16565b90505b92915050565b6000828152600160205260408120610842908363ffffffff61103b16565b6003602052600090815260409020546001600160a01b031681565b600081565b604080516a4d41505045525f524f4c4560a81b8152905190819003600b0190206108b5816104aa610bd2565b60029061091b5760405162461bcd60e51b81526020600482019081528254600260001961010060018416150201909116046024830181905290918291604490910190849080156105405780601f1061051557610100808354040283529160200191610540565b50610927848484610e0b565b50505050565b60005460ff1615610976576040805162461bcd60e51b815260206004820152600e60248201526d185b1c9958591e481a5b9a5d195960921b604482015290519081900360640190fd5b6109a86040518060400160405280601181526020017021b434b63221b430b4b726b0b730b3b2b960791b815250611050565b6109b360008261072d565b604080516a4d41505045525f524f4c4560a81b8152905190819003600b0190206109dd908261072d565b604080517053544154455f53594e4345525f524f4c4560781b81529051908190036011019020610a0d908261072d565b506000805460ff19166001179055565b6000818152600160205260408120610845906110ee565b600082815260016020526040902060020154610a52906104aa610bd2565b6107925760405162461bcd60e51b81526004018080602001828103825260308152602001806113e46030913960400191505060405180910390fd5b604080516611115413d4d25560ca1b8152905190819003600701902081565b604080516a4d41505045525f524f4c4560a81b8152905190819003600b019020610ad8816104aa610bd2565b600290610b3e5760405162461bcd60e51b81526020600482019081528254600260001961010060018416150201909116046024830181905290918291604490910190849080156105405780601f1061051557610100808354040283529160200191610540565b506001600160a01b0380841667ffffffffffffffff60a01b60a087901b168117600081815260036020908152604080832080546001600160a01b03199081169091559588168084526004909252808320805490961690955593519193929167ffffffffffffffff8916917fd7637a5eceae48a2a5726dae780229d3d77f026d4431b191bb895f197e6ad56391a45050505050565b335b90565b60008060006060848060200190516080811015610bf357600080fd5b815160208301516040808501516060860180519251949693959194939182019284640100000000821115610c2657600080fd5b908301906020820185811115610c3b57600080fd5b8251640100000000811182820188101715610c5557600080fd5b82525081516020918201929091019080838360005b83811015610c82578181015183820152602001610c6a565b50505050905090810190601f168015610caf5780820380516001836020036101000a031916815260200191505b5060409081526001600160a01b0380881667ffffffffffffffff60a01b60a089901b1617600081815260036020529290922054989c50969a5094985092965092949093169250505080610d335760405162461bcd60e51b81526004018080602001828103825260238152602001806113c16023913960400191505060405180910390fd5b6040805163cf2c52cb60e01b81526001600160a01b03888116600483019081526024830193845286516044840152865185949285169363cf2c52cb938c938a93909260640190602085019080838360005b83811015610d9c578181015183820152602001610d84565b50505050905090810190601f168015610dc95780820380516001836020036101000a031916815260200191505b509350505050600060405180830381600087803b158015610de957600080fd5b505af1158015610dfd573d6000803e3d6000fd5b505050505050505050505050565b6001600160a01b0380831667ffffffffffffffff60a01b60a086901b1690811760008181526003602081815260408084205488881685526004835281852054881696871780865293909252909220549294918216939290911615610e8657600081815260036020526040902080546001600160a01b03191690555b6001600160a01b038381166000908152600460205260409020541615610ecd576001600160a01b038316600090815260046020526040902080546001600160a01b03191690555b600084815260036020908152604080832080546001600160a01b03808b166001600160a01b0319928316811790935582865260049094528285208054948c1694909116841790559051909267ffffffffffffffff8b16917fd7637a5eceae48a2a5726dae780229d3d77f026d4431b191bb895f197e6ad5639190a450505050505050565b6000828152600160205260409020610f6f908263ffffffff6110f916565b1561073757610f7c610bd2565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152600160205260409020610fde908263ffffffff61110e16565b1561073757610feb610bd2565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b60006108428383611123565b6000610842836001600160a01b038416611187565b806040516020018082805190602001908083835b602083106110835780518252601f199092019160209182019101611064565b51815160209384036101000a60001901801990921691161790527f3a20494e53554646494349454e545f5045524d495353494f4e530000000000009190930190815260408051808303600519018152601a9092019052805161073795506002945092019190506112b3565b60006108458261119f565b6000610842836001600160a01b0384166111a3565b6000610842836001600160a01b0384166111ed565b815460009082106111655760405162461bcd60e51b815260040180806020018281038252602281526020018061134c6022913960400191505060405180910390fd5b82600001828154811061117457fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b60006111af8383611187565b6111e557508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610845565b506000610845565b600081815260018301602052604081205480156112a9578354600019808301919081019060009087908390811061122057fe5b906000526020600020015490508087600001848154811061123d57fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061126d57fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610845565b6000915050610845565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106112f457805160ff1916838001178555611321565b82800160010185558215611321579182015b82811115611321578251825591602001919060010190611306565b5061132d929150611331565b5090565b610bd491905b8082111561132d576000815560010161133756fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e744368696c64436861696e4d616e616765723a20494e56414c49445f53594e435f545950454368696c64436861696e4d616e616765723a20544f4b454e5f4e4f545f4d4150504544416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b65416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a26469706673582212202938b2e821369098f44f282ce9c57a9d7a39fa318f01e015e60ebfcd8f9895ca64736f6c63430006060033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101215760003560e01c80639010d07c116100ad578063c4d66de811610071578063c4d66de81461037c578063ca15c873146103a2578063d547741f146103bf578063d81c8e52146103eb578063d956d5fa146103f357610121565b80639010d07c146102b657806391d14854146102d957806396d0786a14610319578063a217fddf14610336578063adc9b9a31461033e57610121565b806336568abe116100f457806336568abe1461024c5780634dee449814610278578063568b80b5146102805780636e86b77014610288578063886a69ba146102ae57610121565b80630a8099e314610126578063248a9ca31461017857806326c53bea146101a75780632f2ff15d14610220575b600080fd5b61015c6004803603604081101561013c57600080fd5b50803567ffffffffffffffff1690602001356001600160a01b0316610431565b604080516001600160a01b039092168252519081900360200190f35b6101956004803603602081101561018e57600080fd5b5035610463565b60408051918252519081900360200190f35b61021e600480360360408110156101bd57600080fd5b813591908101906040810160208201356401000000008111156101df57600080fd5b8201836020820111156101f157600080fd5b8035906020019184600183028401116401000000008311171561021357600080fd5b509092509050610478565b005b61021e6004803603604081101561023657600080fd5b50803590602001356001600160a01b03166106d4565b61021e6004803603604081101561026257600080fd5b50803590602001356001600160a01b031661073b565b61019561079c565b6101956107c5565b61015c6004803603602081101561029e57600080fd5b50356001600160a01b03166107e8565b610195610803565b61015c600480360360408110156102cc57600080fd5b5080359060200135610824565b610305600480360360408110156102ef57600080fd5b50803590602001356001600160a01b031661084b565b604080519115158252519081900360200190f35b61015c6004803603602081101561032f57600080fd5b5035610869565b610195610884565b61021e6004803603606081101561035457600080fd5b5067ffffffffffffffff813516906001600160a01b0360208201358116916040013516610889565b61021e6004803603602081101561039257600080fd5b50356001600160a01b031661092d565b610195600480360360208110156103b857600080fd5b5035610a1d565b61021e600480360360408110156103d557600080fd5b50803590602001356001600160a01b0316610a34565b610195610a8d565b61021e6004803603606081101561040957600080fd5b5067ffffffffffffffff813516906001600160a01b0360208201358116916040013516610aac565b60a09190911b67ffffffffffffffff60a01b166001600160a01b03918216176000908152600360205260409020541690565b60009081526001602052604090206002015490565b604080517053544154455f53594e4345525f524f4c4560781b815290519081900360110190206104af816104aa610bd2565b61084b565b60029061054f5760405162461bcd60e51b81526020600482019081528254600260001961010060018416150201909116046024830181905290918291604490910190849080156105405780601f1061051557610100808354040283529160200191610540565b820191906000526020600020905b81548152906001019060200180831161052357829003601f168201915b50509250505060405180910390fd5b50600060608484604081101561056457600080fd5b8135919081019060408101602082013564010000000081111561058657600080fd5b82018360208201111561059857600080fd5b803590602001918460018302840111640100000000831117156105ba57600080fd5b91908080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525050604080516611115413d4d25560ca1b8152905190819003600701902096985091965050505091841415915061062d90505761062881610bd7565b6106cc565b604080516826a0a82faa27a5a2a760b91b8152905190819003600901902082141561069557600080600083806020019051608081101561066c57600080fd5b5080516020820151604090920151909450909250905061068d818484610e0b565b5050506106cc565b60405162461bcd60e51b815260040180806020018281038252602481526020018061139d6024913960400191505060405180910390fd5b505050505050565b6000828152600160205260409020600201546106f2906104aa610bd2565b61072d5760405162461bcd60e51b815260040180806020018281038252602f81526020018061136e602f913960400191505060405180910390fd5b6107378282610f51565b5050565b610743610bd2565b6001600160a01b0316816001600160a01b0316146107925760405162461bcd60e51b815260040180806020018281038252602f815260200180611414602f913960400191505060405180910390fd5b6107378282610fc0565b604080517053544154455f53594e4345525f524f4c4560781b8152905190819003601101902081565b604080516a4d41505045525f524f4c4560a81b8152905190819003600b01902081565b6004602052600090815260409020546001600160a01b031681565b604080516826a0a82faa27a5a2a760b91b8152905190819003600901902081565b6000828152600160205260408120610842908363ffffffff61102f16565b90505b92915050565b6000828152600160205260408120610842908363ffffffff61103b16565b6003602052600090815260409020546001600160a01b031681565b600081565b604080516a4d41505045525f524f4c4560a81b8152905190819003600b0190206108b5816104aa610bd2565b60029061091b5760405162461bcd60e51b81526020600482019081528254600260001961010060018416150201909116046024830181905290918291604490910190849080156105405780601f1061051557610100808354040283529160200191610540565b50610927848484610e0b565b50505050565b60005460ff1615610976576040805162461bcd60e51b815260206004820152600e60248201526d185b1c9958591e481a5b9a5d195960921b604482015290519081900360640190fd5b6109a86040518060400160405280601181526020017021b434b63221b430b4b726b0b730b3b2b960791b815250611050565b6109b360008261072d565b604080516a4d41505045525f524f4c4560a81b8152905190819003600b0190206109dd908261072d565b604080517053544154455f53594e4345525f524f4c4560781b81529051908190036011019020610a0d908261072d565b506000805460ff19166001179055565b6000818152600160205260408120610845906110ee565b600082815260016020526040902060020154610a52906104aa610bd2565b6107925760405162461bcd60e51b81526004018080602001828103825260308152602001806113e46030913960400191505060405180910390fd5b604080516611115413d4d25560ca1b8152905190819003600701902081565b604080516a4d41505045525f524f4c4560a81b8152905190819003600b019020610ad8816104aa610bd2565b600290610b3e5760405162461bcd60e51b81526020600482019081528254600260001961010060018416150201909116046024830181905290918291604490910190849080156105405780601f1061051557610100808354040283529160200191610540565b506001600160a01b0380841667ffffffffffffffff60a01b60a087901b168117600081815260036020908152604080832080546001600160a01b03199081169091559588168084526004909252808320805490961690955593519193929167ffffffffffffffff8916917fd7637a5eceae48a2a5726dae780229d3d77f026d4431b191bb895f197e6ad56391a45050505050565b335b90565b60008060006060848060200190516080811015610bf357600080fd5b815160208301516040808501516060860180519251949693959194939182019284640100000000821115610c2657600080fd5b908301906020820185811115610c3b57600080fd5b8251640100000000811182820188101715610c5557600080fd5b82525081516020918201929091019080838360005b83811015610c82578181015183820152602001610c6a565b50505050905090810190601f168015610caf5780820380516001836020036101000a031916815260200191505b5060409081526001600160a01b0380881667ffffffffffffffff60a01b60a089901b1617600081815260036020529290922054989c50969a5094985092965092949093169250505080610d335760405162461bcd60e51b81526004018080602001828103825260238152602001806113c16023913960400191505060405180910390fd5b6040805163cf2c52cb60e01b81526001600160a01b03888116600483019081526024830193845286516044840152865185949285169363cf2c52cb938c938a93909260640190602085019080838360005b83811015610d9c578181015183820152602001610d84565b50505050905090810190601f168015610dc95780820380516001836020036101000a031916815260200191505b509350505050600060405180830381600087803b158015610de957600080fd5b505af1158015610dfd573d6000803e3d6000fd5b505050505050505050505050565b6001600160a01b0380831667ffffffffffffffff60a01b60a086901b1690811760008181526003602081815260408084205488881685526004835281852054881696871780865293909252909220549294918216939290911615610e8657600081815260036020526040902080546001600160a01b03191690555b6001600160a01b038381166000908152600460205260409020541615610ecd576001600160a01b038316600090815260046020526040902080546001600160a01b03191690555b600084815260036020908152604080832080546001600160a01b03808b166001600160a01b0319928316811790935582865260049094528285208054948c1694909116841790559051909267ffffffffffffffff8b16917fd7637a5eceae48a2a5726dae780229d3d77f026d4431b191bb895f197e6ad5639190a450505050505050565b6000828152600160205260409020610f6f908263ffffffff6110f916565b1561073757610f7c610bd2565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000828152600160205260409020610fde908263ffffffff61110e16565b1561073757610feb610bd2565b6001600160a01b0316816001600160a01b0316837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b60006108428383611123565b6000610842836001600160a01b038416611187565b806040516020018082805190602001908083835b602083106110835780518252601f199092019160209182019101611064565b51815160209384036101000a60001901801990921691161790527f3a20494e53554646494349454e545f5045524d495353494f4e530000000000009190930190815260408051808303600519018152601a9092019052805161073795506002945092019190506112b3565b60006108458261119f565b6000610842836001600160a01b0384166111a3565b6000610842836001600160a01b0384166111ed565b815460009082106111655760405162461bcd60e51b815260040180806020018281038252602281526020018061134c6022913960400191505060405180910390fd5b82600001828154811061117457fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b60006111af8383611187565b6111e557508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610845565b506000610845565b600081815260018301602052604081205480156112a9578354600019808301919081019060009087908390811061122057fe5b906000526020600020015490508087600001848154811061123d57fe5b60009182526020808320909101929092558281526001898101909252604090209084019055865487908061126d57fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050610845565b6000915050610845565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106112f457805160ff1916838001178555611321565b82800160010185558215611321579182015b82811115611321578251825591602001919060010190611306565b5061132d929150611331565b5090565b610bd491905b8082111561132d576000815560010161133756fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e744368696c64436861696e4d616e616765723a20494e56414c49445f53594e435f545950454368696c64436861696e4d616e616765723a20544f4b454e5f4e4f545f4d4150504544416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b65416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a26469706673582212202938b2e821369098f44f282ce9c57a9d7a39fa318f01e015e60ebfcd8f9895ca64736f6c63430006060033

Deployed Bytecode Sourcemap

30956:5131:0:-:0;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;30956:5131:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;9;2:12;31740:233:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;31740:233:0;;;;;;;;-1:-1:-1;;;;;31740:233:0;;:::i;:::-;;;;-1:-1:-1;;;;;31740:233:0;;;;;;;;;;;;;;26971:114;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;26971:114:0;;:::i;:::-;;;;;;;;;;;;;;;;33332:709;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;33332:709:0;;;;;;;;;;;;;;27:11:-1;11:28;;8:2;;;52:1;49;42:12;8:2;33332:709:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;33332:709:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128;121:12;8:2;-1:-1;33332:709:0;;-1:-1:-1;33332:709:0;-1:-1:-1;33332:709:0;:::i;:::-;;27347:227;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;27347:227:0;;;;;;-1:-1:-1;;;;;27347:227:0;;:::i;28556:209::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;28556:209:0;;;;;;-1:-1:-1;;;;;28556:209:0;;:::i;31279:74::-;;;:::i;31210:62::-;;;:::i;31420:51::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;31420:51:0;-1:-1:-1;;;;;31420:51:0;;:::i;31145:58::-;;;:::i;26644:138::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;26644:138:0;;;;;;;:::i;25605:139::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;25605:139:0;;;;;;-1:-1:-1;;;;;25605:139:0;;:::i;:::-;;;;;;;;;;;;;;;;;;31362:51;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;31362:51:0;;:::i;24350:49::-;;;:::i;32396:201::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;32396:201:0;;;;;-1:-1:-1;;;;;32396:201:0;;;;;;;;;;;;:::i;31480:252::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;31480:252:0;-1:-1:-1;;;;;31480:252:0;;:::i;25918:127::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;25918:127:0;;:::i;27819:230::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;27819:230:0;;;;;;-1:-1:-1;;;;;27819:230:0;;:::i;31084:54::-;;;:::i;34273:391::-;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;-1:-1;34273:391:0;;;;;-1:-1:-1;;;;;34273:391:0;;;;;;;;;;;;:::i;31740:233::-;31960:3;31942:21;;;;-1:-1:-1;;;31942:21:0;-1:-1:-1;;;;;31920:18:0;;;:44;31854:18;31903:62;;;:16;:62;;;;;;;;31740:233::o;26971:114::-;27028:7;27055:12;;;:6;:12;;;;;:22;;;;26971:114::o;33332:709::-;31323:30;;;-1:-1:-1;;;31323:30:0;;;;;;;;;;;;30584:27;31323:30;30598:12;:10;:12::i;:::-;30584:7;:27::i;:::-;30626:10;30562:85;;;;;-1:-1:-1;;;30562:85:0;;;;;;;;;;;;-1:-1:-1;;30562:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33472:16:::1;33490:21;33540:4;;15:2:-1;10:3;7:11;4:2;;;31:1;28::::0;21:12:::1;4:2;33515:71:0::0;::::1;::::0;;;::::1;::::0;;;;::::1;::::0;::::1;;27:11:-1;11:28:::0;::::1;8:2;;;52:1;49::::0;42:12:::1;8:2;33515:71:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61::::0;54:12:::1;8:2;33515:71:0;;;;;;100:9:-1;95:1;81:12;77:20;67:8;63:35;60:50;39:11;25:12;22:29;11:107;8:2;;;131:1;128::::0;121:12:::1;8:2;33515:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;81:16:::0;::::1;74:27:::0;;;;-1:-1;;31118:20:0::1;::::0;;-1:-1:-1;;;31118:20:0;;;;;;;;::::1;::::0;;;33471:115;;-1:-1:-1;33515:71:0;;-1:-1:-1;;;;33603:19:0;;::::1;33599:435;::::0;-1:-1:-1;33599:435:0::1;::::0;-1:-1:-1;33599:435:0::1;33639:22;33652:8;33639:12;:22::i;:::-;33599:435;;;31181:22;::::0;;-1:-1:-1;;;31181:22:0;;;;;;;;::::1;::::0;;;33683:21;::::1;33679:355;;;33722:17;33741:18:::0;33761:14:::1;33810:8;33781:106;;;;;15:3:-1;10;7:12;4:2;;;32:1;29::::0;22:12:::1;4:2;-1:-1:::0;33781:106:0;;::::1;::::0;::::1;::::0;;;;;;;;-1:-1:-1;33781:106:0;;-1:-1:-1;33781:106:0;-1:-1:-1;33902:41:0::1;33781:106:::0;;;33902:9:::1;:41::i;:::-;33679:355;;;;;;33976:46;;-1:-1:-1::0;;;33976:46:0::1;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;33679:355;30658:1;;33332:709:::0;;;;:::o;27347:227::-;27439:12;;;;:6;:12;;;;;:22;;;27431:45;;27463:12;:10;:12::i;27431:45::-;27423:105;;;;-1:-1:-1;;;27423:105:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27541:25;27552:4;27558:7;27541:10;:25::i;:::-;27347:227;;:::o;28556:209::-;28654:12;:10;:12::i;:::-;-1:-1:-1;;;;;28643:23:0;:7;-1:-1:-1;;;;;28643:23:0;;28635:83;;;;-1:-1:-1;;;28635:83:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28731:26;28743:4;28749:7;28731:11;:26::i;31279:74::-;31323:30;;;-1:-1:-1;;;31323:30:0;;;;;;;;;;;;31279:74;:::o;31210:62::-;31248:24;;;-1:-1:-1;;;31248:24:0;;;;;;;;;;;;31210:62;:::o;31420:51::-;;;;;;;;;;;;-1:-1:-1;;;;;31420:51:0;;:::o;31145:58::-;31181:22;;;-1:-1:-1;;;31181:22:0;;;;;;;;;;;;31145:58;:::o;26644:138::-;26717:7;26744:12;;;:6;:12;;;;;:30;;26768:5;26744:30;:23;:30;:::i;:::-;26737:37;;26644:138;;;;;:::o;25605:139::-;25674:4;25698:12;;;:6;:12;;;;;:38;;25728:7;25698:38;:29;:38;:::i;31362:51::-;;;;;;;;;;;;-1:-1:-1;;;;;31362:51:0;;:::o;24350:49::-;24395:4;24350:49;:::o;32396:201::-;31248:24;;;-1:-1:-1;;;31248:24:0;;;;;;;;;;;;30584:27;31248:24;30598:12;:10;:12::i;30584:27::-;30626:10;30562:85;;;;;-1:-1:-1;;;30562:85:0;;;;;;;;;;;;-1:-1:-1;;30562:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;32548:41:::1;32558:7;32567:9;32578:10;32548:9;:41::i;:::-;32396:201:::0;;;;:::o;31480:252::-;3700:6;;;;3699:7;3691:34;;;;;-1:-1:-1;;;3691:34:0;;;;;;;;;;;;-1:-1:-1;;;3691:34:0;;;;;;;;;;;;;;;31548:37:::1;;;;;;;;;;;;;;-1:-1:-1::0;;;31548:37:0::1;;::::0;:16:::1;:37::i;:::-;31596:38;24395:4;31627:6:::0;31596:10:::1;:38::i;:::-;31248:24;::::0;;-1:-1:-1;;;31248:24:0;;;;;;;;::::1;::::0;;;31645:31:::1;::::0;31669:6;31645:10:::1;:31::i;:::-;31323:30;::::0;;-1:-1:-1;;;31323:30:0;;;;;;;;::::1;::::0;;;31687:37:::1;::::0;31717:6;31687:10:::1;:37::i;:::-;-1:-1:-1::0;3748:6:0;:13;;-1:-1:-1;;3748:13:0;3757:4;3748:13;;;31480:252::o;25918:127::-;25981:7;26008:12;;;:6;:12;;;;;:29;;:27;:29::i;27819:230::-;27912:12;;;;:6;:12;;;;;:22;;;27904:45;;27936:12;:10;:12::i;27904:45::-;27896:106;;;;-1:-1:-1;;;27896:106:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;31084:54;31118:20;;;-1:-1:-1;;;31118:20:0;;;;;;;;;;;;31084:54;:::o;34273:391::-;31248:24;;;-1:-1:-1;;;31248:24:0;;;;;;;;;;;;30584:27;31248:24;30598:12;:10;:12::i;30584:27::-;30626:10;30562:85;;;;;-1:-1:-1;;;30562:85:0;;;;;;;;;;;;-1:-1:-1;;30562:85:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;;;;;;34450:18:0;;::::1;-1:-1:-1::0;;;34490:3:0::1;34472:21:::0;;;;34450:44;::::1;34432:15;34505:25:::0;;;:16:::1;:25;::::0;;;;;;;:38;;-1:-1:-1;;;;;;34505:38:0;;::::1;::::0;;;34554:28;;::::1;::::0;;;:16:::1;:28:::0;;;;;;:41;;;;::::1;::::0;;;34613:43;;34450:44;;34554:28;34450:18;34472:16:::1;::::0;::::1;::::0;34613:43:::1;::::0;::::1;30658:1;34273:391:::0;;;;:::o;22254:106::-;22342:10;22254:106;;:::o;35469:615::-;35534:12;35548:17;35567:14;35583:24;35636:8;35611:69;;;;;15:3:-1;10;7:12;4:2;;;32:1;29;22:12;4:2;35611:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19:11:-1;11:20;;8:2;;;44:1;41;34:12;8:2;62:21;;;;123:4;114:14;;138:31;;;135:2;;;182:1;179;172:12;135:2;213:10;;261:11;244:29;;285:43;;;282:58;-1:-1;233:115;230:2;;;361:1;358;351:12;230:2;372:25;;-1:-1;35611:69:0;;420:4:-1;411:14;;;;35611:69:0;;;;;411:14:-1;35611:69:0;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;35611:69:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;35611:69:0;;;;-1:-1:-1;;;;;35709:18:0;;;-1:-1:-1;;;35749:3:0;35731:21;;;;35709:44;35691:15;35792:25;;;:16;:25;;;;;;;35533:147;;-1:-1:-1;35533:147:0;;-1:-1:-1;35533:147:0;;-1:-1:-1;35533:147:0;;-1:-1:-1;35709:44:0;;35792:25;;;;-1:-1:-1;;;35850:33:0;35828:118;;;;-1:-1:-1;;;35828:118:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;36031:45;;;-1:-1:-1;;;36031:45:0;;-1:-1:-1;;;;;36031:45:0;;;;;;;;;;;;;;;;;;;;;;;36002:17;;36031:26;;;;;;36058:4;;36064:11;;36031:45;;;;;;;;;;;;35957:30;8:100:-1;33:3;30:1;27:10;8:100;;;90:11;;;84:18;71:11;;;64:39;52:2;45:10;8:100;;;12:14;36031:45:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;36031:45:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;36031:45:0;;;;35469:615;;;;;;;;:::o;34672:789::-;-1:-1:-1;;;;;34783:18:0;;;-1:-1:-1;;;34823:3:0;34805:21;;;;34783:44;;;34765:15;34862:25;;;:16;:25;;;;;;;;;34921:28;;;;;:16;:28;;;;;;;;34983:47;;;35047:28;;;;;;;;;;;34783:44;;34862:25;;;;34921:28;34983:47;;35047:28;:42;35043:116;;35145:1;35106:28;;;:16;:28;;;;;:41;;-1:-1:-1;;;;;;35106:41:0;;;35043:116;-1:-1:-1;;;;;35173:31:0;;;35216:1;35173:31;;;:16;:31;;;;;;;:45;35169:122;;-1:-1:-1;;;;;35235:31:0;;35277:1;35235:31;;;:16;:31;;;;;:44;;-1:-1:-1;;;;;;35235:44:0;;;35169:122;35303:25;;;;:16;:25;;;;;;;;:38;;-1:-1:-1;;;;;35303:38:0;;;-1:-1:-1;;;;;;35303:38:0;;;;;;;;35352:28;;;:16;:28;;;;;;:40;;;;;;;;;;;;;35410:43;;35303:38;;35410:43;;;;;;35303:25;35410:43;34672:789;;;;;;;:::o;29799:188::-;29873:12;;;;:6;:12;;;;;:33;;29898:7;29873:33;:24;:33;:::i;:::-;29869:111;;;29955:12;:10;:12::i;:::-;-1:-1:-1;;;;;29928:40:0;29946:7;-1:-1:-1;;;;;29928:40:0;29940:4;29928:40;;;;;;;;;;29799:188;;:::o;29995:192::-;30070:12;;;;:6;:12;;;;;:36;;30098:7;30070:36;:27;:36;:::i;:::-;30066:114;;;30155:12;:10;:12::i;:::-;-1:-1:-1;;;;;30128:40:0;30146:7;-1:-1:-1;;;;;30128:40:0;30140:4;30128:40;;;;;;;;;;29995:192;;:::o;11751:158::-;11825:7;11876:22;11880:3;11892:5;11876:3;:22::i;11037:167::-;11117:4;11141:55;11151:3;-1:-1:-1;;;;;11171:23:0;;11141:9;:55::i;30356:159::-;30465:10;30448:58;;;;;;;;;;;;;;;36:153:-1;66:2;61:3;58:11;36:153;;176:10;;164:23;;-1:-1;;139:12;;;;98:2;89:12;;;;114;36:153;;;299:10;344;;263:2;259:12;;;254:3;250:22;-1:-1;;246:30;311:9;;295:26;;;340:21;;377:20;365:33;;30448:58:0;;;;;;;;;;;26:21:-1;;;-1:-1;;22:32;6:49;;30448:58:0;;;;;;30428:79;;;;-1:-1:-1;30428:10:0;;-1:-1:-1;30428:79:0;;;;-1:-1:-1;30428:79:0;:::i;11290:117::-;11353:7;11380:19;11388:3;11380:7;:19::i;10465:152::-;10535:4;10559:50;10564:3;-1:-1:-1;;;;;10584:23:0;;10559:4;:50::i;10793:158::-;10866:4;10890:53;10898:3;-1:-1:-1;;;;;10918:23:0;;10890:7;:53::i;8417:204::-;8512:18;;8484:7;;8512:26;-1:-1:-1;8504:73:0;;;;-1:-1:-1;;;8504:73:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8595:3;:11;;8607:5;8595:18;;;;;;;;;;;;;;;;8588:25;;8417:204;;;;:::o;7749:129::-;7822:4;7846:19;;;:12;;;;;:19;;;;;;:24;;;7749:129::o;7964:109::-;8047:18;;7964:109::o;5529:414::-;5592:4;5614:21;5624:3;5629:5;5614:9;:21::i;:::-;5609:327;;-1:-1:-1;27:10;;39:1;23:18;;;45:23;;5652:11:0;:23;;;;;;;;;;;;;5835:18;;5813:19;;;:12;;;:19;;;;;;:40;;;;5868:11;;5609:327;-1:-1:-1;5919:5:0;5912:12;;6119:1544;6185:4;6324:19;;;:12;;;:19;;;;;;6360:15;;6356:1300;;6795:18;;-1:-1:-1;;6746:14:0;;;;6795:22;;;;6722:21;;6795:3;;:22;;7082;;;;;;;;;;;;;;7062:42;;7228:9;7199:3;:11;;7211:13;7199:26;;;;;;;;;;;;;;;;;;;:38;;;;7305:23;;;7347:1;7305:12;;;:23;;;;;;7331:17;;;7305:43;;7457:17;;7305:3;;7457:17;;;;;;;;;;;;;;;;;;;;;;7552:3;:12;;:19;7565:5;7552:19;;;;;;;;;;;7545:26;;;7595:4;7588:11;;;;;;;;6356:1300;7639:5;7632:12;;;;;30956:5131;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;-1:-1:-1;30956:5131:0;;;-1:-1:-1;30956:5131:0;:::i;:::-;;;:::o;:::-;;;;;;;;;;;;;;;;;

Swarm Source

ipfs://2938b2e821369098f44f282ce9c57a9d7a39fa318f01e015e60ebfcd8f9895ca

Block Transaction Gas Used Reward
view all blocks produced

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

Validator Index Block Amount
View All Withdrawals

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

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