Contract 0x2e5e27d50efa501d90ad3638ff8441a0c0c0d75e 1

Contract Overview

Balance:
0 MATIC
Txn Hash
Method
Block
From
To
Value [Txn Fee]
0xb9d27fb655e384403e549a530e92eedda37bda27cf25a3a2ad723caeb6ad5ccdInitialize237391432022-01-10 10:04:16446 days 19 hrs ago0xa06e2a7ad27ef837ef7c7b1371fe3965166b931f IN  0x2e5e27d50efa501d90ad3638ff8441a0c0c0d75e0 MATIC0.000502794 2
0x0bb3862ad7c67001ed098928cd1e8c7321afff5b58923e0b5e820fc8ea78f3100x6080604013320912020-07-06 20:43:21999 days 9 hrs ago0x6317968dbe3042856fa376038079dbb1c2a0c1fb IN  Create: ChildChainManager0 MATIC0.0165747910
[ Download CSV Export 
Parent Txn Hash Block From To Value
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
ChildChainManager

Compiler Version
v0.6.6+commit.6c089d02

Optimization Enabled:
No with 200 runs

Other Settings:
default evmVersion, None license

Contract Source Code (Solidity)

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

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

// SPDX-License-Identifier: MIT

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/child/ChildChainManager/IChildChainManager.sol

pragma solidity ^0.6.6;

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

    function mapToken(address rootToken, address childToken) external;

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

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

pragma solidity ^0.6.6;

interface IChildToken {
    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;

/**
 * @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.0.0, only sets of type `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];
    }

    // 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(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(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(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(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;

/**
 * @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) {
        // According to EIP-1052, 0x0 is the value returned for not-yet created accounts
        // and 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470 is returned
        // for accounts without code, i.e. `keccak256('')`
        bytes32 codehash;
        bytes32 accountHash = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;
        // solhint-disable-next-line no-inline-assembly
        assembly { codehash := extcodehash(account) }
        return (codehash != accountHash && codehash != 0x0);
    }

    /**
     * @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/GSN/Context.sol

// SPDX-License-Identifier: MIT

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/AccessControl.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.6.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/child/ChildChainManager/ChildChainManager.sol

pragma solidity ^0.6.6;






contract ChildChainManager is IChildChainManager, Initializable, AccessControl {
    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(address => address) public rootToChildToken;
    mapping(address => address) public childToRootToken;

    modifier only(bytes32 role) {
        require(
            hasRole(role, _msgSender()),
            "ChildChainManager: INSUFFICIENT_PERMISSIONS"
        );
        _;
    }

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

    /**
     * @notice Map a token to enable its movement via the PoS Portal, callable only by mappers
     * @param rootToken address of token on root chain
     * @param childToken address of token on child chain
     */
    function mapToken(address rootToken, address childToken)
        external
        override
        only(MAPPER_ROLE)
    {
        _mapToken(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, ) = abi.decode(
                syncData,
                (address, address, bytes32)
            );
            _mapToken(rootToken, childToken);
        } else {
            revert("ChildChainManager: INVALID_SYNC_TYPE");
        }
    }

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

    function _mapToken(address rootToken, address childToken) private {
        rootToChildToken[rootToken] = childToken;
        childToRootToken[childToken] = rootToken;
        emit TokenMapped(rootToken, childToken);
    }
}

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":"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":"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":"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":"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":"address","name":"","type":"address"}],"name":"rootToChildToken","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

608060405260008060006101000a81548160ff02191690831515021790555034801561002a57600080fd5b506117dc8061003a6000396000f3fe608060405234801561001057600080fd5b506004361061010b5760003560e01c8063886a69ba116100a2578063c4d66de811610071578063c4d66de8146104af578063ca15c873146104f3578063d547741f14610535578063d81c8e5214610583578063ea60c7c4146105a15761010b565b8063886a69ba146103955780639010d07c146103b357806391d148541461042b578063a217fddf146104915761010b565b806347400269116100de57806347400269146102715780634dee4498146102d5578063568b80b5146102f35780636e86b770146103115761010b565b8063248a9ca31461011057806326c53bea146101525780632f2ff15d146101d557806336568abe14610223575b600080fd5b61013c6004803603602081101561012657600080fd5b8101908080359060200190929190505050610625565b6040518082815260200191505060405180910390f35b6101d36004803603604081101561016857600080fd5b81019080803590602001909291908035906020019064010000000081111561018f57600080fd5b8201836020820111156101a157600080fd5b803590602001918460018302840111640100000000831117156101c357600080fd5b9091929391929390505050610645565b005b610221600480360360408110156101eb57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506108d6565b005b61026f6004803603604081101561023957600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610960565b005b6102d36004803603604081101561028757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff1690602001909291905050506109f9565b005b6102dd610aa4565b6040518082815260200191505060405180910390f35b6102fb610add565b6040518082815260200191505060405180910390f35b6103536004803603602081101561032757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610b16565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61039d610b49565b6040518082815260200191505060405180910390f35b6103e9600480360360408110156103c957600080fd5b810190808035906020019092919080359060200190929190505050610b82565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6104776004803603604081101561044157600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610bb4565b604051808215151515815260200191505060405180910390f35b610499610be6565b6040518082815260200191505060405180910390f35b6104f1600480360360208110156104c557600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610bed565b005b61051f6004803603602081101561050957600080fd5b8101908080359060200190929190505050610d17565b6040518082815260200191505060405180910390f35b6105816004803603604081101561054b57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610d3e565b005b61058b610dc8565b6040518082815260200191505060405180910390f35b6105e3600480360360208110156105b757600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610e01565b604051808273ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b600060016000838152602001908152602001600020600201549050919050565b60405180807f53544154455f53594e4345525f524f4c450000000000000000000000000000008152506011019050604051809103902061068c81610687610e34565b610bb4565b6106e1576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b81526020018061174d602b913960400191505060405180910390fd5b60006060848460408110156106f557600080fd5b81019080803590602001909291908035906020019064010000000081111561071c57600080fd5b82018360208201111561072e57600080fd5b8035906020019184600183028401116401000000008311171561075057600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f8201169050808301925050505050505091929192905050509150915060405180807f4445504f53495400000000000000000000000000000000000000000000000000815250600701905060405180910390208214156107ec576107e781610e3c565b6108ce565b60405180807f4d41505f544f4b454e00000000000000000000000000000000000000000000008152506009019050604051809103902082141561087c5760008082806020019051606081101561084157600080fd5b8101908080519060200190929190805190602001909291908051906020019092919050505050915091506108758282611126565b50506108cd565b6040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260248152602001806116d66024913960400191505060405180910390fd5b5b505050505050565b6108fd60016000848152602001908152602001600020600201546108f8610e34565b610bb4565b610952576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f8152602001806116a7602f913960400191505060405180910390fd5b61095c8282611280565b5050565b610968610e34565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146109eb576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180611778602f913960400191505060405180910390fd5b6109f58282611314565b5050565b60405180807f4d41505045525f524f4c45000000000000000000000000000000000000000000815250600b0190506040518091039020610a4081610a3b610e34565b610bb4565b610a95576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602b81526020018061174d602b913960400191505060405180910390fd5b610a9f8383611126565b505050565b60405180807f53544154455f53594e4345525f524f4c450000000000000000000000000000008152506011019050604051809103902081565b60405180807f4d41505045525f524f4c45000000000000000000000000000000000000000000815250600b019050604051809103902081565b60036020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60405180807f4d41505f544f4b454e00000000000000000000000000000000000000000000008152506009019050604051809103902081565b6000610bac82600160008681526020019081526020016000206000016113a890919063ffffffff16565b905092915050565b6000610bde82600160008681526020019081526020016000206000016113c290919063ffffffff16565b905092915050565b6000801b81565b6000809054906101000a900460ff1615610c6f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f616c726561647920696e6974656400000000000000000000000000000000000081525060200191505060405180910390fd5b60016000806101000a81548160ff021916908315150217905550610c966000801b826113f2565b610cd560405180807f4d41505045525f524f4c45000000000000000000000000000000000000000000815250600b0190506040518091039020826113f2565b610d1460405180807f53544154455f53594e4345525f524f4c4500000000000000000000000000000081525060110190506040518091039020826113f2565b50565b6000610d3760016000848152602001908152602001600020600001611400565b9050919050565b610d656001600084815260200190815260200160002060020154610d60610e34565b610bb4565b610dba576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603081526020018061171d6030913960400191505060405180910390fd5b610dc48282611314565b5050565b60405180807f4445504f534954000000000000000000000000000000000000000000000000008152506007019050604051809103902081565b60026020528060005260406000206000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600033905090565b6000806060838060200190516060811015610e5657600080fd5b81019080805190602001909291908051906020019092919080516040519392919084640100000000821115610e8a57600080fd5b83820191506020820185811115610ea057600080fd5b8251866001820283011164010000000082111715610ebd57600080fd5b8083526020830192505050908051906020019080838360005b83811015610ef1578082015181840152602081019050610ed6565b50505050905090810190601f168015610f1e5780820380516001836020036101000a031916815260200191505b506040525050509250925092506000600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611015576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260238152602001806116fa6023913960400191505060405180910390fd5b60008190508073ffffffffffffffffffffffffffffffffffffffff1663cf2c52cb86856040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200180602001828103825283818151815260200191508051906020019080838360005b838110156110b957808201518184015260208101905061109e565b50505050905090810190601f1680156110e65780820380516001836020036101000a031916815260200191505b509350505050600060405180830381600087803b15801561110657600080fd5b505af115801561111a573d6000803e3d6000fd5b50505050505050505050565b80600260008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555081600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f85920d35e6c72f6b2affffa04298b0cecfeba86e4a9f407df661f1cb8ab5e61760405160405180910390a35050565b6112a8816001600085815260200190815260200160002060000161141590919063ffffffff16565b15611310576112b5610e34565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b61133c816001600085815260200190815260200160002060000161144590919063ffffffff16565b156113a457611349610e34565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b60006113b78360000183611475565b60001c905092915050565b60006113ea836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6114f8565b905092915050565b6113fc8282611280565b5050565b600061140e8260000161151b565b9050919050565b600061143d836000018373ffffffffffffffffffffffffffffffffffffffff1660001b61152c565b905092915050565b600061146d836000018373ffffffffffffffffffffffffffffffffffffffff1660001b61159c565b905092915050565b6000818360000180549050116114d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806116856022913960400191505060405180910390fd5b8260000182815481106114e557fe5b9060005260206000200154905092915050565b600080836001016000848152602001908152602001600020541415905092915050565b600081600001805490509050919050565b600061153883836114f8565b611591578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050611596565b600090505b92915050565b6000808360010160008481526020019081526020016000205490506000811461167857600060018203905060006001866000018054905003905060008660000182815481106115e757fe5b906000526020600020015490508087600001848154811061160457fe5b906000526020600020018190555060018301876001016000838152602001908152602001600020819055508660000180548061163c57fe5b6001900381819060005260206000200160009055905586600101600087815260200190815260200160002060009055600194505050505061167e565b60009150505b9291505056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e744368696c64436861696e4d616e616765723a20494e56414c49445f53594e435f545950454368696c64436861696e4d616e616765723a20544f4b454e5f4e4f545f4d4150504544416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b654368696c64436861696e4d616e616765723a20494e53554646494349454e545f5045524d495353494f4e53416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a264697066735822122048e44822c0a023e2740ed80367b69b5c32f8438052e5318ea64d1c2a67fc2a7564736f6c63430006060033

Deployed ByteCode Sourcemap

26694:3461:0:-:0;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;26694:3461:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;12:1:-1;9;2:12;23366:114:0;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;23366:114:0;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;28714:676;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;28714:676:0;;;;;;;;;;;;;;;;;;;27:11:-1;14;11:28;8:2;;;52:1;49;42:12;8:2;28714:676:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61;54:12;8:2;28714:676: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;28714:676:0;;;;;;;;;;;;:::i;:::-;;23742:227;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;23742:227:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;24951:209;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;24951:209:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;27803:176;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;27803:176:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;26975:74;;;:::i;:::-;;;;;;;;;;;;;;;;;;;26906:62;;;:::i;:::-;;;;;;;;;;;;;;;;;;;27116:51;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;27116:51:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;26841:58;;;:::i;:::-;;;;;;;;;;;;;;;;;;;23039:138;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;23039:138:0;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;22000:139;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;22000:139:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;20745:49;;;:::i;:::-;;;;;;;;;;;;;;;;;;;27363:204;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;27363:204:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;22313:127;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;22313:127:0;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;24214:230;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;24214:230:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;:::i;:::-;;26780:54;;;:::i;:::-;;;;;;;;;;;;;;;;;;;27058:51;;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;27058:51:0;;;;;;;;;;;;;;;;;;;:::i;:::-;;;;;;;;;;;;;;;;;;;;;;;23366:114;23423:7;23450:6;:12;23457:4;23450:12;;;;;;;;;;;:22;;;23443:29;;23366:114;;;:::o;28714:676::-;27019:30;;;;;;;;;;;;;;;;;;;27237:27;27245:4;27251:12;:10;:12::i;:::-;27237:7;:27::i;:::-;27215:120;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;28854:16:::1;28872:21;28922:4;;15:2:-1;10:3;7:11;4:2;;;31:1;28::::0;21:12:::1;4:2;28897:71:0;;;;;;;;;;;;;;;;;;;27:11:-1;14;11:28;8:2;;;52:1;49::::0;42:12:::1;8:2;28897:71:0;;41:9:-1;34:4;18:14;14:25;11:40;8:2;;;64:1;61::::0;54:12:::1;8:2;28897: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;28897:71:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;30:3:-1;22:6;14;1:33;99:1;93:3;85:6;81:16;74:27;137:4;133:9;126:4;121:3;117:14;113:30;106:37;;169:3;161:6;157:16;147:26;;28897:71:0;;;;;;;;;;;;;;28853:115;;;;26814:20;;;;;;;::::0;::::1;;;;;;;;;;;28985:8;:19;28981:402;;;29021:22;29034:8;29021:12;:22::i;:::-;28981:402;;;26877:22;;;;;;;::::0;::::1;;;;;;;;;;;29065:8;:21;29061:322;;;29104:17;29123:18:::0;29176:8:::1;29147:98;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28::::0;21:12:::1;4:2;29147:98:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29103:142;;;;;29260:32;29270:9;29281:10;29260:9;:32::i;:::-;29061:322;;;;;29325:46;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29061:322;28981:402;27346:1;;28714:676:::0;;;;:::o;23742:227::-;23826:45;23834:6;:12;23841:4;23834:12;;;;;;;;;;;:22;;;23858:12;:10;:12::i;:::-;23826:7;:45::i;:::-;23818:105;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23936:25;23947:4;23953:7;23936:10;:25::i;:::-;23742:227;;:::o;24951:209::-;25049:12;:10;:12::i;:::-;25038:23;;:7;:23;;;25030:83;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;25126:26;25138:4;25144:7;25126:11;:26::i;:::-;24951:209;;:::o;27803:176::-;26944:24;;;;;;;;;;;;;;;;;;;27237:27;27245:4;27251:12;:10;:12::i;:::-;27237:7;:27::i;:::-;27215:120;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;27939:32:::1;27949:9;27960:10;27939:9;:32::i;:::-;27803:176:::0;;;:::o;26975:74::-;27019:30;;;;;;;;;;;;;;;;;;;26975:74;:::o;26906:62::-;26944:24;;;;;;;;;;;;;;;;;;;26906:62;:::o;27116:51::-;;;;;;;;;;;;;;;;;;;;;;:::o;26841:58::-;26877:22;;;;;;;;;;;;;;;;;;;26841:58;:::o;23039:138::-;23112:7;23139:30;23163:5;23139:6;:12;23146:4;23139:12;;;;;;;;;;;:20;;:23;;:30;;;;:::i;:::-;23132:37;;23039:138;;;;:::o;22000:139::-;22069:4;22093:38;22123:7;22093:6;:12;22100:4;22093:12;;;;;;;;;;;:20;;:29;;:38;;;;:::i;:::-;22086:45;;22000:139;;;;:::o;20745:49::-;20790:4;20745:49;;;:::o;27363:204::-;3555:6;;;;;;;;;;;3554:7;3546:34;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;3600:4;3591:6;;:13;;;;;;;;;;;;;;;;;;27431:38:::1;20790:4;27442:18:::0;::::1;27462:6;27431:10;:38::i;:::-;27480:31;26944:24;;;;;;;::::0;::::1;;;;;;;;;;;27504:6;27480:10;:31::i;:::-;27522:37;27019:30;;;;;;;::::0;::::1;;;;;;;;;;;27552:6;27522:10;:37::i;:::-;27363:204:::0;:::o;22313:127::-;22376:7;22403:29;:6;:12;22410:4;22403:12;;;;;;;;;;;:20;;:27;:29::i;:::-;22396:36;;22313:127;;;:::o;24214:230::-;24299:45;24307:6;:12;24314:4;24307:12;;;;;;;;;;;:22;;;24331:12;:10;:12::i;:::-;24299:7;:45::i;:::-;24291:106;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;24410:26;24422:4;24428:7;24410:11;:26::i;:::-;24214:230;;:::o;26780:54::-;26814:20;;;;;;;;;;;;;;;;;;;26780:54;:::o;27058:51::-;;;;;;;;;;;;;;;;;;;;;;:::o;18655:106::-;18708:15;18743:10;18736:17;;18655:106;:::o;29398:520::-;29463:12;29477:17;29496:24;29549:8;29524:61;;;;;15:2:-1;10:3;7:11;4:2;;;31:1;28;21:12;4:2;29524:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;19:11:-1;14:3;11:20;8:2;;;44:1;41;34:12;8:2;71:11;66:3;62:21;55:28;;123:4;118:3;114:14;159:9;141:16;138:31;135:2;;;182:1;179;172:12;135:2;219:3;213:10;330:9;325:1;311:12;307:20;289:16;285:43;282:58;261:11;247:12;244:29;233:115;230:2;;;361:1;358;351:12;230:2;384:12;379:3;372:25;420:4;415:3;411:14;404:21;;0:432;;29524:61:0;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;29524:61:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29462:123;;;;;;29596:25;29624:16;:27;29641:9;29624:27;;;;;;;;;;;;;;;;;;;;;;;;;29596:55;;29713:3;29684:33;;:17;:33;;;;29662:118;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;29791:30;29836:17;29791:63;;29865:18;:26;;;29892:4;29898:11;29865:45;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;23:1:-1;8:100;33:3;30:1;27:10;8:100;;;99:1;94:3;90:11;84:18;80:1;75:3;71:11;64:39;52:2;49:1;45:10;40:15;;8:100;;;12:14;29865:45:0;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;5:9:-1;2:2;;;27:1;24;17:12;2:2;29865:45:0;;;;8:9:-1;5:2;;;45:16;42:1;39;24:38;77:16;74:1;67:27;5:2;29865:45:0;;;;29398:520;;;;;;:::o;29926:226::-;30033:10;30003:16;:27;30020:9;30003:27;;;;;;;;;;;;;;;;:40;;;;;;;;;;;;;;;;;;30085:9;30054:16;:28;30071:10;30054:28;;;;;;;;;;;;;;;;:40;;;;;;;;;;;;;;;;;;30133:10;30110:34;;30122:9;30110:34;;;;;;;;;;;;29926:226;;:::o;26194:188::-;26268:33;26293:7;26268:6;:12;26275:4;26268:12;;;;;;;;;;;:20;;:24;;:33;;;;:::i;:::-;26264:111;;;26350:12;:10;:12::i;:::-;26323:40;;26341:7;26323:40;;26335:4;26323:40;;;;;;;;;;26264:111;26194:188;;:::o;26390:192::-;26465:36;26493:7;26465:6;:12;26472:4;26465:12;;;;;;;;;;;:20;;:27;;:36;;;;:::i;:::-;26461:114;;;26550:12;:10;:12::i;:::-;26523:40;;26541:7;26523:40;;26535:4;26523:40;;;;;;;;;;26461:114;26390:192;;:::o;9960:149::-;10034:7;10077:22;10081:3;:10;;10093:5;10077:3;:22::i;:::-;10069:31;;10054:47;;9960:149;;;;:::o;9255:158::-;9335:4;9359:46;9369:3;:10;;9397:5;9389:14;;9381:23;;9359:9;:46::i;:::-;9352:53;;9255:158;;;;:::o;25743:112::-;25822:25;25833:4;25839:7;25822:10;:25::i;:::-;25743:112;;:::o;9499:117::-;9562:7;9589:19;9597:3;:10;;9589:7;:19::i;:::-;9582:26;;9499:117;;;:::o;8701:143::-;8771:4;8795:41;8800:3;:10;;8828:5;8820:14;;8812:23;;8795:4;:41::i;:::-;8788:48;;8701:143;;;;:::o;9020:149::-;9093:4;9117:44;9125:3;:10;;9153:5;9145:14;;9137:23;;9117:7;:44::i;:::-;9110:51;;9020:149;;;;:::o;8243:204::-;8310:7;8359:5;8338:3;:11;;:18;;;;:26;8330:73;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8421:3;:11;;8433:5;8421:18;;;;;;;;;;;;;;;;8414:25;;8243:204;;;;:::o;7575:129::-;7648:4;7695:1;7672:3;:12;;:19;7685:5;7672:19;;;;;;;;;;;;:24;;7665:31;;7575:129;;;;:::o;7790:109::-;7846:7;7873:3;:11;;:18;;;;7866:25;;7790:109;;;:::o;5355:414::-;5418:4;5440:21;5450:3;5455:5;5440:9;:21::i;:::-;5435:327;;5478:3;:11;;5495:5;5478:23;;39:1:-1;33:3;27:10;23:18;57:10;52:3;45:23;79:10;72:17;;0:93;5478:23:0;;;;;;;;;;;;;;;;;;;5661:3;:11;;:18;;;;5639:3;:12;;:19;5652:5;5639:19;;;;;;;;;;;:40;;;;5701:4;5694:11;;;;5435:327;5745:5;5738:12;;5355:414;;;;;:::o;5945:1544::-;6011:4;6129:18;6150:3;:12;;:19;6163:5;6150:19;;;;;;;;;;;;6129:40;;6200:1;6186:10;:15;6182:1300;;6548:21;6585:1;6572:10;:14;6548:38;;6601:17;6642:1;6621:3;:11;;:18;;;;:22;6601:42;;6888:17;6908:3;:11;;6920:9;6908:22;;;;;;;;;;;;;;;;6888:42;;7054:9;7025:3;:11;;7037:13;7025:26;;;;;;;;;;;;;;;:38;;;;7173:1;7157:13;:17;7131:3;:12;;:23;7144:9;7131:23;;;;;;;;;;;:43;;;;7283:3;:11;;:17;;;;;;;;;;;;;;;;;;;;;;;;7378:3;:12;;:19;7391:5;7378:19;;;;;;;;;;;7371:26;;;7421:4;7414:11;;;;;;;;6182:1300;7465:5;7458:12;;;5945:1544;;;;;:::o

Swarm Source

ipfs://48e44822c0a023e2740ed80367b69b5c32f8438052e5318ea64d1c2a67fc2a75
Block Transaction Gas Used Reward
Age Block Fee Address BC Fee Address Voting Power Jailed Incoming
Block Uncle Number Difficulty Gas Used Reward
Loading