S Price: $0.451221 (+5.43%)

Contract

0x2350Ea954113B1a1EeBAaCCC47f3a4985F709913

Overview

S Balance

Sonic LogoSonic LogoSonic Logo0 S

S Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To

There are no matching entries

Please try again later

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

Contract Source Code Verified (Exact Match)

Contract Name:
EqbConfig

Compiler Version
v0.8.17+commit.8df45f5f

Optimization Enabled:
Yes with 1000 runs

Other Settings:
default evmVersion
File 1 of 11 : EqbConfig.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;

import "@openzeppelin/contracts-upgradeable/access/AccessControlUpgradeable.sol";

import "./CrossChain/LayerZeroHelper.sol";
import "./Interfaces/IEqbConfig.sol";

contract EqbConfig is IEqbConfig, AccessControlUpgradeable {
    mapping(bytes32 => address) public contractMap;

    mapping(uint256 => uint16) public originalToLzChainIdMap;
    mapping(uint16 => uint256) public lzToOriginalChainIdMap;

    /// @custom:oz-upgrades-unsafe-allow constructor
    constructor() {
        _disableInitializers();
    }

    function initialize() public initializer {
        __AccessControl_init();

        _grantRole(DEFAULT_ADMIN_ROLE, msg.sender);
    }

    function setContract(
        bytes32 _contractKey,
        address _contractAddress
    ) external onlyRole(DEFAULT_ADMIN_ROLE) {
        require(_contractAddress != address(0), "invalid _contractAddress!");
        require(
            contractMap[_contractKey] != _contractAddress,
            "_contractAddress already set!"
        );

        contractMap[_contractKey] = _contractAddress;
        emit ContractSet(_contractKey, _contractAddress);
    }

    function getContract(
        bytes32 _contractKey
    ) public view override returns (address) {
        return contractMap[_contractKey];
    }

    function setLayerZeroChainId(
        uint256 _chainId,
        uint16 _lzChainId
    ) external onlyRole(DEFAULT_ADMIN_ROLE) {
        require(
            _chainId != 0 && _lzChainId != 0,
            "invalid chainId or lzChainId!"
        );
        require(
            lzToOriginalChainIdMap[_lzChainId] == 0 &&
                originalToLzChainIdMap[_chainId] == 0,
            "chainId already set!"
        );

        lzToOriginalChainIdMap[_lzChainId] = _chainId;
        originalToLzChainIdMap[_chainId] = _lzChainId;

        emit LayerZeroChainIdSet(_chainId, _lzChainId);
    }

    function removeByChainId(
        uint256 _chainId
    ) external onlyRole(DEFAULT_ADMIN_ROLE) {
        require(_chainId != 0, "invalid chainId!");

        uint16 lzChainId = originalToLzChainIdMap[_chainId];
        require(lzChainId != 0, "chainId not set!");

        delete originalToLzChainIdMap[_chainId];
        delete lzToOriginalChainIdMap[lzChainId];

        emit LayerZeroChainIdRemoved(_chainId, lzChainId);
    }

    function removeByLzChainId(
        uint16 _lzChainId
    ) external onlyRole(DEFAULT_ADMIN_ROLE) {
        require(_lzChainId != 0, "invalid lzChainId!");

        uint256 chainId = lzToOriginalChainIdMap[_lzChainId];
        require(chainId != 0, "lzChainId not set!");

        delete originalToLzChainIdMap[chainId];
        delete lzToOriginalChainIdMap[_lzChainId];

        emit LayerZeroChainIdRemoved(chainId, _lzChainId);
    }

    function getLayerZeroChainId(
        uint256 _chainId
    ) external view returns (uint16) {
        if (originalToLzChainIdMap[_chainId] != 0) {
            return originalToLzChainIdMap[_chainId];
        } else {
            return LayerZeroHelper.getLayerZeroChainId(_chainId);
        }
    }

    function getOriginalChainId(
        uint16 _chainId
    ) external view returns (uint256) {
        if (lzToOriginalChainIdMap[_chainId] != 0) {
            return lzToOriginalChainIdMap[_chainId];
        } else {
            return LayerZeroHelper.getOriginalChainId(_chainId);
        }
    }
}

File 2 of 11 : AccessControlUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;

import "./IAccessControlUpgradeable.sol";
import "../utils/ContextUpgradeable.sol";
import "../utils/StringsUpgradeable.sol";
import "../utils/introspection/ERC165Upgradeable.sol";
import "../proxy/utils/Initializable.sol";

/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * 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 AccessControlUpgradeable is Initializable, ContextUpgradeable, IAccessControlUpgradeable, ERC165Upgradeable {
    function __AccessControl_init() internal onlyInitializing {
    }

    function __AccessControl_init_unchained() internal onlyInitializing {
    }
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IAccessControlUpgradeable).interfaceId || super.supportsInterface(interfaceId);
    }

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

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        StringsUpgradeable.toHexString(uint160(account), 20),
                        " is missing role ",
                        StringsUpgradeable.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @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 virtual override 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.
     *
     * May emit a {RoleGranted} event.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _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.
     *
     * May emit a {RoleRevoked} event.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _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 revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     *
     * May emit a {RoleRevoked} event.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        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.
     *
     * May emit a {RoleGranted} event.
     *
     * [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}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    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 {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleGranted} event.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[49] private __gap;
}

File 3 of 11 : IAccessControlUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControlUpgradeable {
    /**
     * @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 {AccessControl-_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) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @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) external;

    /**
     * @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) external;

    /**
     * @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) external;
}

File 4 of 11 : Initializable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (proxy/utils/Initializable.sol)

pragma solidity ^0.8.2;

import "../../utils/AddressUpgradeable.sol";

/**
 * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
 * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an
 * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer
 * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.
 *
 * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be
 * reused. This mechanism prevents re-execution of each "step" but allows the creation of new initialization steps in
 * case an upgrade adds a module that needs to be initialized.
 *
 * For example:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * contract MyToken is ERC20Upgradeable {
 *     function initialize() initializer public {
 *         __ERC20_init("MyToken", "MTK");
 *     }
 * }
 * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {
 *     function initializeV2() reinitializer(2) public {
 *         __ERC20Permit_init("MyToken");
 *     }
 * }
 * ```
 *
 * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as
 * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.
 *
 * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure
 * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.
 *
 * [CAUTION]
 * ====
 * Avoid leaving a contract uninitialized.
 *
 * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation
 * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke
 * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:
 *
 * [.hljs-theme-light.nopadding]
 * ```
 * /// @custom:oz-upgrades-unsafe-allow constructor
 * constructor() {
 *     _disableInitializers();
 * }
 * ```
 * ====
 */
abstract contract Initializable {
    /**
     * @dev Indicates that the contract has been initialized.
     * @custom:oz-retyped-from bool
     */
    uint8 private _initialized;

    /**
     * @dev Indicates that the contract is in the process of being initialized.
     */
    bool private _initializing;

    /**
     * @dev Triggered when the contract has been initialized or reinitialized.
     */
    event Initialized(uint8 version);

    /**
     * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,
     * `onlyInitializing` functions can be used to initialize parent contracts. Equivalent to `reinitializer(1)`.
     */
    modifier initializer() {
        bool isTopLevelCall = !_initializing;
        require(
            (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.isContract(address(this)) && _initialized == 1),
            "Initializable: contract is already initialized"
        );
        _initialized = 1;
        if (isTopLevelCall) {
            _initializing = true;
        }
        _;
        if (isTopLevelCall) {
            _initializing = false;
            emit Initialized(1);
        }
    }

    /**
     * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the
     * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be
     * used to initialize parent contracts.
     *
     * `initializer` is equivalent to `reinitializer(1)`, so a reinitializer may be used after the original
     * initialization step. This is essential to configure modules that are added through upgrades and that require
     * initialization.
     *
     * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in
     * a contract, executing them in the right order is up to the developer or operator.
     */
    modifier reinitializer(uint8 version) {
        require(!_initializing && _initialized < version, "Initializable: contract is already initialized");
        _initialized = version;
        _initializing = true;
        _;
        _initializing = false;
        emit Initialized(version);
    }

    /**
     * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the
     * {initializer} and {reinitializer} modifiers, directly or indirectly.
     */
    modifier onlyInitializing() {
        require(_initializing, "Initializable: contract is not initializing");
        _;
    }

    /**
     * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.
     * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized
     * to any version. It is recommended to use this to lock implementation contracts that are designed to be called
     * through proxies.
     */
    function _disableInitializers() internal virtual {
        require(!_initializing, "Initializable: contract is initializing");
        if (_initialized < type(uint8).max) {
            _initialized = type(uint8).max;
            emit Initialized(type(uint8).max);
        }
    }
}

File 5 of 11 : AddressUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library AddressUpgradeable {
    /**
     * @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
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 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");

        (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");

        (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");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal 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
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

File 6 of 11 : ContextUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;
import "../proxy/utils/Initializable.sol";

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract ContextUpgradeable is Initializable {
    function __Context_init() internal onlyInitializing {
    }

    function __Context_init_unchained() internal onlyInitializing {
    }
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

File 7 of 11 : ERC165Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165Upgradeable.sol";
import "../../proxy/utils/Initializable.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165Upgradeable is Initializable, IERC165Upgradeable {
    function __ERC165_init() internal onlyInitializing {
    }

    function __ERC165_init_unchained() internal onlyInitializing {
    }
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165Upgradeable).interfaceId;
    }

    /**
     * @dev This empty reserved space is put in place to allow future versions to add new
     * variables without shifting down storage in the inheritance chain.
     * See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
     */
    uint256[50] private __gap;
}

File 8 of 11 : IERC165Upgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

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

File 9 of 11 : StringsUpgradeable.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library StringsUpgradeable {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}

File 10 of 11 : LayerZeroHelper.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;

library LayerZeroHelper {
    uint256 constant EVM_ADDRESS_SIZE = 20;

    function getLayerZeroChainId(
        uint256 chainId
    ) internal pure returns (uint16) {
        if (chainId == 1) {
            // ethereum
            return 101;
        } else if (chainId == 42161) {
            // arbitrum one
            return 110;
        } else if (chainId == 43113) {
            // fuji testnet
            return 10106;
        } else if (chainId == 80001) {
            // mumbai testnet
            return 10109;
        } else if (chainId == 56) {
            // binance smart chain
            return 102;
        } else if (chainId == 5000) {
            // mantle
            return 181;
        } else if (chainId == 10) {
            // optimism
            return 111;
        } else if (chainId == 8453) {
            // base
            return 184;
        }
        assert(false);
    }

    function getOriginalChainId(
        uint16 chainId
    ) internal pure returns (uint256) {
        if (chainId == 101) {
            // ethereum
            return 1;
        } else if (chainId == 110) {
            // arbitrum one
            return 42161;
        } else if (chainId == 10106) {
            // fuji testnet
            return 43113;
        } else if (chainId == 10109) {
            // mumbai testnet
            return 80001;
        } else if (chainId == 102) {
            // binance smart chain
            return 56;
        } else if (chainId == 181) {
            // mantle
            return 5000;
        } else if (chainId == 111) {
            // optimism
            return 10;
        } else if (chainId == 184) {
            // base
            return 8453;
        }
        assert(false);
    }

    function getFirstAddressFromPath(
        bytes memory path
    ) internal pure returns (address dst) {
        assembly {
            dst := mload(add(add(path, EVM_ADDRESS_SIZE), 0))
        }
    }
}

File 11 of 11 : IEqbConfig.sol
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;

interface IEqbConfig {
    function getContract(bytes32 _contractKey) external view returns (address);

    function getLayerZeroChainId(
        uint256 _chainId
    ) external view returns (uint16);

    function getOriginalChainId(
        uint16 _chainId
    ) external view returns (uint256);

    event ContractSet(
        bytes32 indexed _contractKey,
        address indexed _contractAddress
    );

    event LayerZeroChainIdSet(
        uint256 indexed _chainId,
        uint16 indexed _lzChainId
    );

    event LayerZeroChainIdRemoved(
        uint256 indexed _chainId,
        uint16 indexed _lzChainId
    );
}

Settings
{
  "optimizer": {
    "enabled": true,
    "runs": 1000
  },
  "outputSelection": {
    "*": {
      "*": [
        "evm.bytecode",
        "evm.deployedBytecode",
        "devdoc",
        "userdoc",
        "metadata",
        "abi"
      ]
    }
  },
  "libraries": {}
}

Contract Security Audit

Contract ABI

API
[{"inputs":[],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"_contractKey","type":"bytes32"},{"indexed":true,"internalType":"address","name":"_contractAddress","type":"address"}],"name":"ContractSet","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint8","name":"version","type":"uint8"}],"name":"Initialized","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_chainId","type":"uint256"},{"indexed":true,"internalType":"uint16","name":"_lzChainId","type":"uint16"}],"name":"LayerZeroChainIdRemoved","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"_chainId","type":"uint256"},{"indexed":true,"internalType":"uint16","name":"_lzChainId","type":"uint16"}],"name":"LayerZeroChainIdSet","type":"event"},{"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"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"contractMap","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_contractKey","type":"bytes32"}],"name":"getContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_chainId","type":"uint256"}],"name":"getLayerZeroChainId","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint16","name":"_chainId","type":"uint16"}],"name":"getOriginalChainId","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"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":"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":[],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"","type":"uint16"}],"name":"lzToOriginalChainIdMap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"originalToLzChainIdMap","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"_chainId","type":"uint256"}],"name":"removeByChainId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint16","name":"_lzChainId","type":"uint16"}],"name":"removeByLzChainId","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":"bytes32","name":"_contractKey","type":"bytes32"},{"internalType":"address","name":"_contractAddress","type":"address"}],"name":"setContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_chainId","type":"uint256"},{"internalType":"uint16","name":"_lzChainId","type":"uint16"}],"name":"setLayerZeroChainId","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"}]

608060405234801561001057600080fd5b5061001961001e565b6100de565b600054610100900460ff161561008a5760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60005460ff90811610156100dc576000805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b611301806100ed6000396000f3fe608060405234801561001057600080fd5b50600436106101365760003560e01c80637ed77c9c116100b2578063a923a30711610081578063d35794fd11610066578063d35794fd146102fc578063d547741f1461030f578063e16c7d981461032257600080fd5b8063a923a307146102a8578063cac39a05146102bb57600080fd5b80637ed77c9c1461024c5780638129fc1c1461025f57806391d1485414610267578063a217fddf146102a057600080fd5b80632f2ff15d1161010957806335582ff5116100ee57806335582ff51461021357806336568abe146102265780634895614b1461023957600080fd5b80632f2ff15d146101de5780633472b5fe146101f357600080fd5b806301ffc9a71461013b5780631e1227cd14610163578063248a9ca31461019a578063248f5aea146101cb575b600080fd5b61014e61014936600461106a565b61034b565b60405190151581526020015b60405180910390f35b6101876101713660046110ac565b60986020526000908152604090205461ffff1681565b60405161ffff909116815260200161015a565b6101bd6101a83660046110ac565b60009081526065602052604090206001015490565b60405190815260200161015a565b6101bd6101d93660046110d7565b6103e4565b6101f16101ec3660046110f2565b610422565b005b6101bd6102013660046110d7565b60996020526000908152604090205481565b6101876102213660046110ac565b61044c565b6101f16102343660046110f2565b610484565b6101f16102473660046110d7565b610515565b6101f161025a3660046110f2565b610633565b6101f161076f565b61014e6102753660046110f2565b60009182526065602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6101bd600081565b6101f16102b63660046110ac565b61089a565b6102e46102c93660046110ac565b6097602052600090815260409020546001600160a01b031681565b6040516001600160a01b03909116815260200161015a565b6101f161030a36600461112e565b6109b3565b6101f161031d3660046110f2565b610af3565b6102e46103303660046110ac565b6000908152609760205260409020546001600160a01b031690565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b0000000000000000000000000000000000000000000000000000000014806103de57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b61ffff811660009081526099602052604081205415610414575061ffff1660009081526099602052604090205490565b6103de82610b18565b919050565b60008281526065602052604090206001015461043d81610bca565b6104478383610bd4565b505050565b60008181526098602052604081205461ffff161561047b575060009081526098602052604090205461ffff1690565b6103de82610c76565b6001600160a01b03811633146105075760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084015b60405180910390fd5b6105118282610d00565b5050565b600061052081610bca565b8161ffff166000036105745760405162461bcd60e51b815260206004820152601260248201527f696e76616c6964206c7a436861696e496421000000000000000000000000000060448201526064016104fe565b61ffff8216600090815260996020526040812054908190036105d85760405162461bcd60e51b815260206004820152601260248201527f6c7a436861696e4964206e6f742073657421000000000000000000000000000060448201526064016104fe565b6000818152609860209081526040808320805461ffff1916905561ffff8616808452609990925280832083905551909183917fa12667b16c2a7b1eaeaa01068813e6b1d7bb062ece2c16c96068ae65c82d4f569190a3505050565b600061063e81610bca565b6001600160a01b0382166106945760405162461bcd60e51b815260206004820152601960248201527f696e76616c6964205f636f6e747261637441646472657373210000000000000060448201526064016104fe565b6000838152609760205260409020546001600160a01b038084169116036106fd5760405162461bcd60e51b815260206004820152601d60248201527f5f636f6e74726163744164647265737320616c7265616479207365742100000060448201526064016104fe565b60008381526097602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0386169081179091559051909185917f976b583415f136f0af17eb6bf6ff3c7748bc61f8e9374a5559644839bbb30e2f9190a3505050565b600054610100900460ff161580801561078f5750600054600160ff909116105b806107a95750303b1580156107a9575060005460ff166001145b61081b5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a656400000000000000000000000000000000000060648201526084016104fe565b6000805460ff19166001179055801561083e576000805461ff0019166101001790555b610846610d83565b610851600033610bd4565b8015610897576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50565b60006108a581610bca565b816000036108f55760405162461bcd60e51b815260206004820152601060248201527f696e76616c696420636861696e4964210000000000000000000000000000000060448201526064016104fe565b60008281526098602052604081205461ffff16908190036109585760405162461bcd60e51b815260206004820152601060248201527f636861696e4964206e6f7420736574210000000000000000000000000000000060448201526064016104fe565b6000838152609860209081526040808320805461ffff1916905561ffff8416808452609990925280832083905551909185917fa12667b16c2a7b1eaeaa01068813e6b1d7bb062ece2c16c96068ae65c82d4f569190a3505050565b60006109be81610bca565b82158015906109d0575061ffff821615155b610a1c5760405162461bcd60e51b815260206004820152601d60248201527f696e76616c696420636861696e4964206f72206c7a436861696e49642100000060448201526064016104fe565b61ffff8216600090815260996020526040902054158015610a4d575060008381526098602052604090205461ffff16155b610a995760405162461bcd60e51b815260206004820152601460248201527f636861696e496420616c7265616479207365742100000000000000000000000060448201526064016104fe565b61ffff821660008181526099602090815260408083208790558683526098909152808220805461ffff1916841790555185917fa51f0b4ec175b5bcd05e1dfff3bac4a47454a5b2bae58e440c736a77f6117cb791a3505050565b600082815260656020526040902060010154610b0e81610bca565b6104478383610d00565b60008161ffff16606503610b2e57506001919050565b8161ffff16606e03610b43575061a4b1919050565b8161ffff1661277a03610b59575061a869919050565b8161ffff1661277d03610b70575062013881919050565b8161ffff16606603610b8457506038919050565b8161ffff1660b503610b995750611388919050565b8161ffff16606f03610bad5750600a919050565b8161ffff1660b803610bc25750612105919050565b61041d61115a565b6108978133610e02565b60008281526065602090815260408083206001600160a01b038516845290915290205460ff166105115760008281526065602090815260408083206001600160a01b03851684529091529020805460ff19166001179055610c323390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600081600103610c8857506065919050565b8161a4b103610c995750606e919050565b8161a86903610cab575061277a919050565b816201388103610cbe575061277d919050565b81603803610cce57506066919050565b8161138803610cdf575060b5919050565b81600a03610cef5750606f919050565b8161210503610bc2575060b8919050565b60008281526065602090815260408083206001600160a01b038516845290915290205460ff16156105115760008281526065602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600054610100900460ff16610e005760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e6700000000000000000000000000000000000000000060648201526084016104fe565b565b60008281526065602090815260408083206001600160a01b038516845290915290205460ff1661051157610e40816001600160a01b03166014610e82565b610e4b836020610e82565b604051602001610e5c929190611194565b60408051601f198184030181529082905262461bcd60e51b82526104fe91600401611215565b60606000610e9183600261125e565b610e9c906002611275565b67ffffffffffffffff811115610eb457610eb4611288565b6040519080825280601f01601f191660200182016040528015610ede576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110610f1557610f1561129e565b60200101906001600160f81b031916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110610f6057610f6061129e565b60200101906001600160f81b031916908160001a9053506000610f8484600261125e565b610f8f906001611275565b90505b6001811115611014577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110610fd057610fd061129e565b1a60f81b828281518110610fe657610fe661129e565b60200101906001600160f81b031916908160001a90535060049490941c9361100d816112b4565b9050610f92565b5083156110635760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016104fe565b9392505050565b60006020828403121561107c57600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461106357600080fd5b6000602082840312156110be57600080fd5b5035919050565b803561ffff8116811461041d57600080fd5b6000602082840312156110e957600080fd5b611063826110c5565b6000806040838503121561110557600080fd5b8235915060208301356001600160a01b038116811461112357600080fd5b809150509250929050565b6000806040838503121561114157600080fd5b82359150611151602084016110c5565b90509250929050565b634e487b7160e01b600052600160045260246000fd5b60005b8381101561118b578181015183820152602001611173565b50506000910152565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516111cc816017850160208801611170565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351611209816028840160208801611170565b01602801949350505050565b6020815260008251806020840152611234816040850160208701611170565b601f01601f19169190910160400192915050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176103de576103de611248565b808201808211156103de576103de611248565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000816112c3576112c3611248565b50600019019056fea26469706673582212207415e143c8b1ae8677139f18458b8fe302aa40cc59b09f42962c926d7761cd3364736f6c63430008110033

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101365760003560e01c80637ed77c9c116100b2578063a923a30711610081578063d35794fd11610066578063d35794fd146102fc578063d547741f1461030f578063e16c7d981461032257600080fd5b8063a923a307146102a8578063cac39a05146102bb57600080fd5b80637ed77c9c1461024c5780638129fc1c1461025f57806391d1485414610267578063a217fddf146102a057600080fd5b80632f2ff15d1161010957806335582ff5116100ee57806335582ff51461021357806336568abe146102265780634895614b1461023957600080fd5b80632f2ff15d146101de5780633472b5fe146101f357600080fd5b806301ffc9a71461013b5780631e1227cd14610163578063248a9ca31461019a578063248f5aea146101cb575b600080fd5b61014e61014936600461106a565b61034b565b60405190151581526020015b60405180910390f35b6101876101713660046110ac565b60986020526000908152604090205461ffff1681565b60405161ffff909116815260200161015a565b6101bd6101a83660046110ac565b60009081526065602052604090206001015490565b60405190815260200161015a565b6101bd6101d93660046110d7565b6103e4565b6101f16101ec3660046110f2565b610422565b005b6101bd6102013660046110d7565b60996020526000908152604090205481565b6101876102213660046110ac565b61044c565b6101f16102343660046110f2565b610484565b6101f16102473660046110d7565b610515565b6101f161025a3660046110f2565b610633565b6101f161076f565b61014e6102753660046110f2565b60009182526065602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6101bd600081565b6101f16102b63660046110ac565b61089a565b6102e46102c93660046110ac565b6097602052600090815260409020546001600160a01b031681565b6040516001600160a01b03909116815260200161015a565b6101f161030a36600461112e565b6109b3565b6101f161031d3660046110f2565b610af3565b6102e46103303660046110ac565b6000908152609760205260409020546001600160a01b031690565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f7965db0b0000000000000000000000000000000000000000000000000000000014806103de57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff000000000000000000000000000000000000000000000000000000008316145b92915050565b61ffff811660009081526099602052604081205415610414575061ffff1660009081526099602052604090205490565b6103de82610b18565b919050565b60008281526065602052604090206001015461043d81610bca565b6104478383610bd4565b505050565b60008181526098602052604081205461ffff161561047b575060009081526098602052604090205461ffff1690565b6103de82610c76565b6001600160a01b03811633146105075760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201527f20726f6c657320666f722073656c66000000000000000000000000000000000060648201526084015b60405180910390fd5b6105118282610d00565b5050565b600061052081610bca565b8161ffff166000036105745760405162461bcd60e51b815260206004820152601260248201527f696e76616c6964206c7a436861696e496421000000000000000000000000000060448201526064016104fe565b61ffff8216600090815260996020526040812054908190036105d85760405162461bcd60e51b815260206004820152601260248201527f6c7a436861696e4964206e6f742073657421000000000000000000000000000060448201526064016104fe565b6000818152609860209081526040808320805461ffff1916905561ffff8616808452609990925280832083905551909183917fa12667b16c2a7b1eaeaa01068813e6b1d7bb062ece2c16c96068ae65c82d4f569190a3505050565b600061063e81610bca565b6001600160a01b0382166106945760405162461bcd60e51b815260206004820152601960248201527f696e76616c6964205f636f6e747261637441646472657373210000000000000060448201526064016104fe565b6000838152609760205260409020546001600160a01b038084169116036106fd5760405162461bcd60e51b815260206004820152601d60248201527f5f636f6e74726163744164647265737320616c7265616479207365742100000060448201526064016104fe565b60008381526097602052604080822080547fffffffffffffffffffffffff0000000000000000000000000000000000000000166001600160a01b0386169081179091559051909185917f976b583415f136f0af17eb6bf6ff3c7748bc61f8e9374a5559644839bbb30e2f9190a3505050565b600054610100900460ff161580801561078f5750600054600160ff909116105b806107a95750303b1580156107a9575060005460ff166001145b61081b5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a656400000000000000000000000000000000000060648201526084016104fe565b6000805460ff19166001179055801561083e576000805461ff0019166101001790555b610846610d83565b610851600033610bd4565b8015610897576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50565b60006108a581610bca565b816000036108f55760405162461bcd60e51b815260206004820152601060248201527f696e76616c696420636861696e4964210000000000000000000000000000000060448201526064016104fe565b60008281526098602052604081205461ffff16908190036109585760405162461bcd60e51b815260206004820152601060248201527f636861696e4964206e6f7420736574210000000000000000000000000000000060448201526064016104fe565b6000838152609860209081526040808320805461ffff1916905561ffff8416808452609990925280832083905551909185917fa12667b16c2a7b1eaeaa01068813e6b1d7bb062ece2c16c96068ae65c82d4f569190a3505050565b60006109be81610bca565b82158015906109d0575061ffff821615155b610a1c5760405162461bcd60e51b815260206004820152601d60248201527f696e76616c696420636861696e4964206f72206c7a436861696e49642100000060448201526064016104fe565b61ffff8216600090815260996020526040902054158015610a4d575060008381526098602052604090205461ffff16155b610a995760405162461bcd60e51b815260206004820152601460248201527f636861696e496420616c7265616479207365742100000000000000000000000060448201526064016104fe565b61ffff821660008181526099602090815260408083208790558683526098909152808220805461ffff1916841790555185917fa51f0b4ec175b5bcd05e1dfff3bac4a47454a5b2bae58e440c736a77f6117cb791a3505050565b600082815260656020526040902060010154610b0e81610bca565b6104478383610d00565b60008161ffff16606503610b2e57506001919050565b8161ffff16606e03610b43575061a4b1919050565b8161ffff1661277a03610b59575061a869919050565b8161ffff1661277d03610b70575062013881919050565b8161ffff16606603610b8457506038919050565b8161ffff1660b503610b995750611388919050565b8161ffff16606f03610bad5750600a919050565b8161ffff1660b803610bc25750612105919050565b61041d61115a565b6108978133610e02565b60008281526065602090815260408083206001600160a01b038516845290915290205460ff166105115760008281526065602090815260408083206001600160a01b03851684529091529020805460ff19166001179055610c323390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600081600103610c8857506065919050565b8161a4b103610c995750606e919050565b8161a86903610cab575061277a919050565b816201388103610cbe575061277d919050565b81603803610cce57506066919050565b8161138803610cdf575060b5919050565b81600a03610cef5750606f919050565b8161210503610bc2575060b8919050565b60008281526065602090815260408083206001600160a01b038516845290915290205460ff16156105115760008281526065602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600054610100900460ff16610e005760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e6700000000000000000000000000000000000000000060648201526084016104fe565b565b60008281526065602090815260408083206001600160a01b038516845290915290205460ff1661051157610e40816001600160a01b03166014610e82565b610e4b836020610e82565b604051602001610e5c929190611194565b60408051601f198184030181529082905262461bcd60e51b82526104fe91600401611215565b60606000610e9183600261125e565b610e9c906002611275565b67ffffffffffffffff811115610eb457610eb4611288565b6040519080825280601f01601f191660200182016040528015610ede576020820181803683370190505b5090507f300000000000000000000000000000000000000000000000000000000000000081600081518110610f1557610f1561129e565b60200101906001600160f81b031916908160001a9053507f780000000000000000000000000000000000000000000000000000000000000081600181518110610f6057610f6061129e565b60200101906001600160f81b031916908160001a9053506000610f8484600261125e565b610f8f906001611275565b90505b6001811115611014577f303132333435363738396162636465660000000000000000000000000000000085600f1660108110610fd057610fd061129e565b1a60f81b828281518110610fe657610fe661129e565b60200101906001600160f81b031916908160001a90535060049490941c9361100d816112b4565b9050610f92565b5083156110635760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016104fe565b9392505050565b60006020828403121561107c57600080fd5b81357fffffffff000000000000000000000000000000000000000000000000000000008116811461106357600080fd5b6000602082840312156110be57600080fd5b5035919050565b803561ffff8116811461041d57600080fd5b6000602082840312156110e957600080fd5b611063826110c5565b6000806040838503121561110557600080fd5b8235915060208301356001600160a01b038116811461112357600080fd5b809150509250929050565b6000806040838503121561114157600080fd5b82359150611151602084016110c5565b90509250929050565b634e487b7160e01b600052600160045260246000fd5b60005b8381101561118b578181015183820152602001611173565b50506000910152565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516111cc816017850160208801611170565b7f206973206d697373696e6720726f6c65200000000000000000000000000000006017918401918201528351611209816028840160208801611170565b01602801949350505050565b6020815260008251806020840152611234816040850160208701611170565b601f01601f19169190910160400192915050565b634e487b7160e01b600052601160045260246000fd5b80820281158282048414176103de576103de611248565b808201808211156103de576103de611248565b634e487b7160e01b600052604160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b6000816112c3576112c3611248565b50600019019056fea26469706673582212207415e143c8b1ae8677139f18458b8fe302aa40cc59b09f42962c926d7761cd3364736f6c63430008110033

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

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.