ETH Price: $3,388.52 (-3.72%)
Gas: 8 Gwei

Contract

0xE926F01953c3B94222FcAC7474b31e3F8eAfb308
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Value
Add Keys182716952023-10-03 18:09:47258 days ago1696356587IN
Tranchess: Node Operator Registry
0 ETH0.6009620725.60122705
Add Keys176045142023-07-02 6:21:47352 days ago1688278907IN
Tranchess: Node Operator Registry
0 ETH0.078531813.59301951
Add Keys176044722023-07-02 6:13:23352 days ago1688278403IN
Tranchess: Node Operator Registry
0 ETH0.0757451812.599325
Add Keys174658152023-06-12 18:41:47371 days ago1686595307IN
Tranchess: Node Operator Registry
0 ETH0.2056965517.5003195
Add Keys174650702023-06-12 16:11:23371 days ago1686586283IN
Tranchess: Node Operator Registry
0 ETH0.1243173721.090445
Add Keys173548202023-05-28 3:22:59387 days ago1685244179IN
Tranchess: Node Operator Registry
0 ETH0.0824424223.21646834
Add Keys173475822023-05-27 3:00:35388 days ago1685156435IN
Tranchess: Node Operator Registry
0 ETH0.0641531226.96328733
Update Deposit L...173416902023-05-26 7:07:47389 days ago1685084867IN
Tranchess: Node Operator Registry
0 ETH0.0012561135.23278899
Add Keys173416862023-05-26 7:06:59389 days ago1685084819IN
Tranchess: Node Operator Registry
0 ETH0.200040233.93558029
Transfer Ownersh...168174392023-03-13 6:59:23463 days ago1678690763IN
Tranchess: Node Operator Registry
0 ETH0.0005359818.60802313
Update Operator ...167967482023-03-10 9:07:35466 days ago1678439255IN
Tranchess: Node Operator Registry
0 ETH0.0005926118
Update Operator ...167967482023-03-10 9:07:35466 days ago1678439255IN
Tranchess: Node Operator Registry
0 ETH0.0005923918
Add Keys167967482023-03-10 9:07:35466 days ago1678439255IN
Tranchess: Node Operator Registry
0 ETH0.0154103718
Add Keys167967482023-03-10 9:07:35466 days ago1678439255IN
Tranchess: Node Operator Registry
0 ETH0.0157173118
Initialize167964522023-03-10 8:06:47466 days ago1678435607IN
Tranchess: Node Operator Registry
0 ETH0.0122844218
0x60a06040167963712023-03-10 7:50:35466 days ago1678434635IN
 Create: NodeOperatorRegistry
0 ETH0.0624134923

View more zero value Internal Transactions in Advanced View mode

Advanced mode:
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
NodeOperatorRegistry

Compiler Version
v0.6.12+commit.27d51765

Optimization Enabled:
Yes with 200 runs

Other Settings:
default evmVersion
File 1 of 8 : NodeOperatorRegistry.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity >=0.6.10 <0.8.0;
pragma experimental ABIEncoderV2;

import "@openzeppelin/contracts/access/Ownable.sol";

import "./IWithdrawalManager.sol";
import "./WithdrawalManagerFactory.sol";

interface IEthStakingStrategy {
    function safeStaking() external view returns (address);

    function registry() external view returns (address);

    function depositContract() external view returns (address);

    function deposit(uint256 amount) external;
}

contract NodeOperatorRegistry is Ownable {
    event OperatorAdded(uint256 indexed id, string name, address operatorOwner);
    event OperatorOwnerUpdated(uint256 indexed id, address newOperatorOwner);
    event RewardAddressUpdated(uint256 indexed id, address newRewardAddress);
    event VerifiedCountUpdated(uint256 indexed id, uint256 newVerifiedCount);
    event DepositLimitUpdated(uint256 indexed id, uint256 newDepositLimit);
    event KeyAdded(uint256 indexed id, bytes pubkey, uint256 index);
    event KeyUsed(uint256 indexed id, uint256 count);
    event KeyTruncated(uint256 indexed id, uint256 newTotalCount);
    event StrategyUpdated(address newStrategy);

    /// @notice Statistics of validator pubkeys from a node operator.
    /// @param totalCount Total number of validator pubkeys uploaded to this contract
    /// @param usedCount Number of validator pubkeys that are already used
    /// @param verifiedCount Number of validator pubkeys that are verified by the contract owner
    /// @param depositLimit Maximum number of usable validator pubkeys, set by the node operator
    struct KeyStat {
        uint64 totalCount;
        uint64 usedCount;
        uint64 verifiedCount;
        uint64 depositLimit;
    }

    /// @notice Node operator parameters and internal state
    /// @param operatorOwner Admin address of the node operator
    /// @param name Human-readable name
    /// @param withdrawalAddress Address receiving withdrawals and execution layer rewards
    /// @param rewardAddress Address receiving performance rewards
    struct Operator {
        address operatorOwner;
        string name;
        address rewardAddress;
        address withdrawalAddress;
        KeyStat keyStat;
    }

    struct Key {
        bytes32 pubkey0;
        bytes32 pubkey1; // Only the higher 16 bytes of the second slot are used
        bytes32 signature0;
        bytes32 signature1;
        bytes32 signature2;
    }

    uint256 private constant PUBKEY_LENGTH = 48;
    uint256 private constant SIGNATURE_LENGTH = 96;

    WithdrawalManagerFactory public immutable factory;

    address public strategy;

    /// @notice Number of node operators.
    uint256 public operatorCount;

    /// @dev Mapping of node operator ID => node operator.
    mapping(uint256 => Operator) private _operators;

    /// @dev Mapping of node operator ID => index => validator pubkey and deposit signature.
    mapping(uint256 => mapping(uint256 => Key)) private _keys;

    uint256 public registryVersion;

    constructor(address strategy_, address withdrawalManagerFactory_) public {
        _updateStrategy(strategy_);
        factory = WithdrawalManagerFactory(withdrawalManagerFactory_);
    }

    function initialize(address oldRegistry) external onlyOwner {
        require(operatorCount == 0);

        operatorCount = NodeOperatorRegistry(oldRegistry).operatorCount();
        for (uint256 i = 0; i < operatorCount; i++) {
            Operator memory operator = NodeOperatorRegistry(oldRegistry).getOperator(i);
            operator.operatorOwner = msg.sender;
            uint64 usedCount = operator.keyStat.usedCount;
            operator.keyStat.totalCount = usedCount;
            operator.keyStat.verifiedCount = usedCount;
            _operators[i] = operator;
            emit OperatorAdded(i, operator.name, msg.sender);
            if (operator.rewardAddress != msg.sender) {
                emit RewardAddressUpdated(i, operator.rewardAddress);
            }
            emit DepositLimitUpdated(i, operator.keyStat.depositLimit);

            Key[] memory keys = NodeOperatorRegistry(oldRegistry).getKeys(i, 0, usedCount);
            for (uint256 j = 0; j < usedCount; j++) {
                bytes32 pk0 = keys[j].pubkey0;
                bytes32 pk1 = keys[j].pubkey1;
                _keys[i][j].pubkey0 = pk0;
                _keys[i][j].pubkey1 = pk1;
                emit KeyAdded(i, abi.encodePacked(pk0, bytes16(pk1)), j);
            }
            emit VerifiedCountUpdated(i, usedCount);
            emit KeyUsed(i, usedCount);
        }
    }

    function getOperator(uint256 id) external view returns (Operator memory) {
        return _operators[id];
    }

    function getOperators() external view returns (Operator[] memory operators) {
        uint256 count = operatorCount;
        operators = new Operator[](count);
        for (uint256 i = 0; i < count; i++) {
            operators[i] = _operators[i];
        }
    }

    function getRewardAddress(uint256 id) external view returns (address) {
        return _operators[id].rewardAddress;
    }

    function getRewardAddresses() external view returns (address[] memory addresses) {
        uint256 count = operatorCount;
        addresses = new address[](count);
        for (uint256 i = 0; i < count; i++) {
            addresses[i] = _operators[i].rewardAddress;
        }
    }

    function getWithdrawalAddress(uint256 id) external view returns (address) {
        return _operators[id].withdrawalAddress;
    }

    function getWithdrawalAddresses() external view returns (address[] memory addresses) {
        uint256 count = operatorCount;
        addresses = new address[](count);
        for (uint256 i = 0; i < count; i++) {
            addresses[i] = _operators[i].withdrawalAddress;
        }
    }

    function getWithdrawalCredential(uint256 id) external view returns (bytes32) {
        return IWithdrawalManager(_operators[id].withdrawalAddress).getWithdrawalCredential();
    }

    function getKeyStat(uint256 id) external view returns (KeyStat memory) {
        return _operators[id].keyStat;
    }

    function getKeyStats() external view returns (KeyStat[] memory keyStats) {
        uint256 count = operatorCount;
        keyStats = new KeyStat[](count);
        for (uint256 i = 0; i < count; i++) {
            keyStats[i] = _operators[i].keyStat;
        }
    }

    function getKey(uint256 id, uint256 index) external view returns (Key memory) {
        return _keys[id][index];
    }

    function getKeys(
        uint256 id,
        uint256 start,
        uint256 count
    ) external view returns (Key[] memory keys) {
        keys = new Key[](count);
        mapping(uint256 => Key) storage operatorKeys = _keys[id];
        for (uint256 i = 0; i < count; i++) {
            keys[i] = operatorKeys[start + i];
        }
    }

    function getPubkeys(
        uint256 id,
        uint256 start,
        uint256 count
    ) external view returns (bytes[] memory pubkeys) {
        pubkeys = new bytes[](count);
        mapping(uint256 => Key) storage operatorKeys = _keys[id];
        for (uint256 i = 0; i < count; i++) {
            Key storage key = operatorKeys[start + i];
            pubkeys[i] = abi.encodePacked(key.pubkey0, bytes16(key.pubkey1));
        }
    }

    function getSignatures(
        uint256 id,
        uint256 start,
        uint256 count
    ) external view returns (bytes[] memory signatures) {
        signatures = new bytes[](count);
        mapping(uint256 => Key) storage operatorKeys = _keys[id];
        for (uint256 i = 0; i < count; i++) {
            Key storage key = operatorKeys[start + i];
            signatures[i] = abi.encode(key.signature0, key.signature1, key.signature2);
        }
    }

    function addKeys(
        uint256 id,
        bytes calldata pubkeys,
        bytes calldata signatures
    ) external onlyOperatorOwner(id) {
        uint256 count = pubkeys.length / PUBKEY_LENGTH;
        require(
            pubkeys.length == count * PUBKEY_LENGTH &&
                signatures.length == count * SIGNATURE_LENGTH,
            "Invalid param length"
        );
        mapping(uint256 => Key) storage operatorKeys = _keys[id];
        Operator storage operator = _operators[id];
        KeyStat memory stat = operator.keyStat;
        for (uint256 i = 0; i < count; ++i) {
            Key memory key;
            key.pubkey0 = abi.decode(pubkeys[i * PUBKEY_LENGTH:i * PUBKEY_LENGTH + 32], (bytes32));
            key.pubkey1 = abi.decode(
                pubkeys[i * PUBKEY_LENGTH + 16:i * PUBKEY_LENGTH + 48],
                (bytes32)
            );
            key.pubkey1 = bytes32(uint256(key.pubkey1) << 128);
            (key.signature0, key.signature1, key.signature2) = abi.decode(
                signatures[i * SIGNATURE_LENGTH:(i + 1) * SIGNATURE_LENGTH],
                (bytes32, bytes32, bytes32)
            );
            require(
                key.pubkey0 | key.pubkey1 != 0 &&
                    key.signature0 | key.signature1 | key.signature2 != 0,
                "Empty pubkey or signature"
            );
            operatorKeys[stat.totalCount + i] = key;
            emit KeyAdded(
                id,
                abi.encodePacked(key.pubkey0, bytes16(key.pubkey1)),
                stat.totalCount + i
            );
        }
        stat.totalCount += uint64(count);
        operator.keyStat = stat;
        registryVersion++;
    }

    function truncateUnusedKeys(uint256 id) external onlyOperatorOwner(id) {
        _truncateUnusedKeys(id);
    }

    function updateRewardAddress(uint256 id, address newRewardAddress)
        external
        onlyOperatorOwner(id)
    {
        _operators[id].rewardAddress = newRewardAddress;
        emit RewardAddressUpdated(id, newRewardAddress);
    }

    function updateDepositLimit(uint256 id, uint64 newDepositLimit) external onlyOperatorOwner(id) {
        _operators[id].keyStat.depositLimit = newDepositLimit;
        registryVersion++;
        emit DepositLimitUpdated(id, newDepositLimit);
    }

    function useKeys(uint256 id, uint256 count)
        external
        onlyStrategy
        returns (Key[] memory keys, bytes32 withdrawalCredential)
    {
        Operator storage operator = _operators[id];
        KeyStat memory stat = operator.keyStat;
        mapping(uint256 => Key) storage operatorKeys = _keys[id];
        uint256 usedCount = stat.usedCount;
        uint256 newUsedCount = usedCount + count;
        require(
            newUsedCount <= stat.totalCount &&
                newUsedCount <= stat.depositLimit &&
                newUsedCount <= stat.verifiedCount,
            "No enough pubkeys"
        );
        keys = new Key[](count);
        for (uint256 i = 0; i < count; i++) {
            Key storage k = operatorKeys[usedCount + i];
            keys[i] = k;
            // Clear storage for gas refund
            k.signature0 = 0;
            k.signature1 = 0;
            k.signature2 = 0;
        }
        stat.usedCount = uint64(newUsedCount);
        operator.keyStat = stat;
        withdrawalCredential = IWithdrawalManager(operator.withdrawalAddress)
            .getWithdrawalCredential();
        registryVersion++;
        emit KeyUsed(id, count);
    }

    function addOperator(string calldata name, address operatorOwner)
        external
        onlyOwner
        returns (uint256 id, address withdrawalAddress)
    {
        id = operatorCount++;
        withdrawalAddress = factory.deployContract(id);
        Operator storage operator = _operators[id];
        operator.operatorOwner = operatorOwner;
        operator.name = name;
        operator.withdrawalAddress = withdrawalAddress;
        operator.rewardAddress = operatorOwner;
        emit OperatorAdded(id, name, operatorOwner);
    }

    function updateOperatorOwner(uint256 id, address newOperatorOwner) external onlyOwner {
        require(id < operatorCount, "Invalid operator ID");
        _operators[id].operatorOwner = newOperatorOwner;
        emit OperatorOwnerUpdated(id, newOperatorOwner);
    }

    function updateVerifiedCount(
        uint256 id,
        uint64 newVerifiedCount,
        uint256 offchainregistryVersion
    ) external {
        require(msg.sender == IEthStakingStrategy(strategy).safeStaking(), "Only safe staking");
        require(registryVersion == offchainregistryVersion, "Registry version changed");

        _operators[id].keyStat.verifiedCount = newVerifiedCount;
        registryVersion++;
        emit VerifiedCountUpdated(id, newVerifiedCount);
    }

    function truncateAllUnusedKeys() external onlyOwner {
        uint256 count = operatorCount;
        for (uint256 i = 0; i < count; i++) {
            _truncateUnusedKeys(i);
        }
    }

    function _truncateUnusedKeys(uint256 id) private {
        Operator storage operator = _operators[id];
        KeyStat memory stat = operator.keyStat;
        stat.totalCount = stat.usedCount;
        stat.verifiedCount = stat.usedCount;
        operator.keyStat = stat;
        emit KeyTruncated(id, stat.totalCount);
    }

    function updateStrategy(address newStrategy) external onlyOwner {
        _updateStrategy(newStrategy);
    }

    function _updateStrategy(address newStrategy) private {
        strategy = newStrategy;
        emit StrategyUpdated(newStrategy);
    }

    modifier onlyOperatorOwner(uint256 id) {
        require(msg.sender == _operators[id].operatorOwner, "Only operator owner");
        _;
    }

    modifier onlyStrategy() {
        require(msg.sender == strategy, "Only strategy");
        _;
    }
}

File 2 of 8 : Ownable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "../utils/Context.sol";
/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () internal {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), msgSender);
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        emit OwnershipTransferred(_owner, address(0));
        _owner = address(0);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}

File 3 of 8 : IWithdrawalManager.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity >=0.6.10 <0.8.0;

interface IWithdrawalManager {
    function getWithdrawalCredential() external view returns (bytes32);

    function transferToStrategy(uint256 amount) external;
}

File 4 of 8 : WithdrawalManagerFactory.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity >=0.6.10 <0.8.0;

import "@openzeppelin/contracts/access/Ownable.sol";

import "./WithdrawalManagerProxy.sol";

contract WithdrawalManagerFactory is Ownable {
    event ImplementationUpdated(address indexed newImplementation);

    address public implementation;

    constructor(address implementation_) public {
        _updateImplementation(implementation_);
    }

    function deployContract(uint256 id) external returns (address) {
        WithdrawalManagerProxy proxy = new WithdrawalManagerProxy(this, id);
        return address(proxy);
    }

    function updateImplementation(address newImplementation) external onlyOwner {
        _updateImplementation(newImplementation);
    }

    function _updateImplementation(address newImplementation) private {
        implementation = newImplementation;
        emit ImplementationUpdated(newImplementation);
    }
}

File 5 of 8 : Context.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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

File 6 of 8 : WithdrawalManagerProxy.sol
// SPDX-License-Identifier: GPL-3.0-or-later
pragma solidity >=0.6.10 <0.8.0;

import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/proxy/Proxy.sol";

import "./WithdrawalManagerFactory.sol";

// An individual withdraw maanger for a node operator

contract WithdrawalManagerProxy is Proxy {
    using Address for address;

    WithdrawalManagerFactory internal immutable withdrawalManagerFactory;

    constructor(WithdrawalManagerFactory withdrawalManagerFactory_, uint256 operatorID_) public {
        // Initialize withdrawalManagerFactory
        require(address(withdrawalManagerFactory_) != address(0x0), "Invalid factory address");
        withdrawalManagerFactory = withdrawalManagerFactory_;
        // Check for contract existence
        address implAddress = withdrawalManagerFactory_.implementation();
        require(implAddress.isContract(), "Delegate contract does not exist");
        // Call Initialize on delegate
        (bool success, ) =
            implAddress.delegatecall(abi.encodeWithSignature("initialize(uint256)", operatorID_));
        if (!success) {
            revert("Failed delegatecall");
        }
    }

    function _implementation() internal view override returns (address) {
        return withdrawalManagerFactory.implementation();
    }
}

File 7 of 8 : Address.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.2 <0.8.0;

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

        uint256 size;
        // solhint-disable-next-line no-inline-assembly
        assembly { size := extcodesize(account) }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (bool success, ) = recipient.call{ value: amount }("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain`call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
      return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

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

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

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

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

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

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

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

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

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

File 8 of 8 : Proxy.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM
 * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to
 * be specified by overriding the virtual {_implementation} function.
 *
 * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a
 * different contract through the {_delegate} function.
 *
 * The success and return data of the delegated call will be returned back to the caller of the proxy.
 */
abstract contract Proxy {
    /**
     * @dev Delegates the current call to `implementation`.
     *
     * This function does not return to its internall call site, it will return directly to the external caller.
     */
    function _delegate(address implementation) internal virtual {
        // solhint-disable-next-line no-inline-assembly
        assembly {
            // Copy msg.data. We take full control of memory in this inline assembly
            // block because it will not return to Solidity code. We overwrite the
            // Solidity scratch pad at memory position 0.
            calldatacopy(0, 0, calldatasize())

            // Call the implementation.
            // out and outsize are 0 because we don't know the size yet.
            let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)

            // Copy the returned data.
            returndatacopy(0, 0, returndatasize())

            switch result
            // delegatecall returns 0 on error.
            case 0 { revert(0, returndatasize()) }
            default { return(0, returndatasize()) }
        }
    }

    /**
     * @dev This is a virtual function that should be overriden so it returns the address to which the fallback function
     * and {_fallback} should delegate.
     */
    function _implementation() internal view virtual returns (address);

    /**
     * @dev Delegates the current call to the address returned by `_implementation()`.
     *
     * This function does not return to its internall call site, it will return directly to the external caller.
     */
    function _fallback() internal virtual {
        _beforeFallback();
        _delegate(_implementation());
    }

    /**
     * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other
     * function in the contract matches the call data.
     */
    fallback () external payable virtual {
        _fallback();
    }

    /**
     * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data
     * is empty.
     */
    receive () external payable virtual {
        _fallback();
    }

    /**
     * @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback`
     * call, or as part of the Solidity `fallback` or `receive` functions.
     *
     * If overriden should call `super._beforeFallback()`.
     */
    function _beforeFallback() internal virtual {
    }
}

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

Contract Security Audit

Contract ABI

[{"inputs":[{"internalType":"address","name":"strategy_","type":"address"},{"internalType":"address","name":"withdrawalManagerFactory_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newDepositLimit","type":"uint256"}],"name":"DepositLimitUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"pubkey","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"index","type":"uint256"}],"name":"KeyAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newTotalCount","type":"uint256"}],"name":"KeyTruncated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"count","type":"uint256"}],"name":"KeyUsed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"string","name":"name","type":"string"},{"indexed":false,"internalType":"address","name":"operatorOwner","type":"address"}],"name":"OperatorAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"address","name":"newOperatorOwner","type":"address"}],"name":"OperatorOwnerUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"address","name":"newRewardAddress","type":"address"}],"name":"RewardAddressUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"newStrategy","type":"address"}],"name":"StrategyUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"id","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"newVerifiedCount","type":"uint256"}],"name":"VerifiedCountUpdated","type":"event"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"bytes","name":"pubkeys","type":"bytes"},{"internalType":"bytes","name":"signatures","type":"bytes"}],"name":"addKeys","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"address","name":"operatorOwner","type":"address"}],"name":"addOperator","outputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"withdrawalAddress","type":"address"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"contract WithdrawalManagerFactory","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getKey","outputs":[{"components":[{"internalType":"bytes32","name":"pubkey0","type":"bytes32"},{"internalType":"bytes32","name":"pubkey1","type":"bytes32"},{"internalType":"bytes32","name":"signature0","type":"bytes32"},{"internalType":"bytes32","name":"signature1","type":"bytes32"},{"internalType":"bytes32","name":"signature2","type":"bytes32"}],"internalType":"struct NodeOperatorRegistry.Key","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getKeyStat","outputs":[{"components":[{"internalType":"uint64","name":"totalCount","type":"uint64"},{"internalType":"uint64","name":"usedCount","type":"uint64"},{"internalType":"uint64","name":"verifiedCount","type":"uint64"},{"internalType":"uint64","name":"depositLimit","type":"uint64"}],"internalType":"struct NodeOperatorRegistry.KeyStat","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getKeyStats","outputs":[{"components":[{"internalType":"uint64","name":"totalCount","type":"uint64"},{"internalType":"uint64","name":"usedCount","type":"uint64"},{"internalType":"uint64","name":"verifiedCount","type":"uint64"},{"internalType":"uint64","name":"depositLimit","type":"uint64"}],"internalType":"struct NodeOperatorRegistry.KeyStat[]","name":"keyStats","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"getKeys","outputs":[{"components":[{"internalType":"bytes32","name":"pubkey0","type":"bytes32"},{"internalType":"bytes32","name":"pubkey1","type":"bytes32"},{"internalType":"bytes32","name":"signature0","type":"bytes32"},{"internalType":"bytes32","name":"signature1","type":"bytes32"},{"internalType":"bytes32","name":"signature2","type":"bytes32"}],"internalType":"struct NodeOperatorRegistry.Key[]","name":"keys","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getOperator","outputs":[{"components":[{"internalType":"address","name":"operatorOwner","type":"address"},{"internalType":"string","name":"name","type":"string"},{"internalType":"address","name":"rewardAddress","type":"address"},{"internalType":"address","name":"withdrawalAddress","type":"address"},{"components":[{"internalType":"uint64","name":"totalCount","type":"uint64"},{"internalType":"uint64","name":"usedCount","type":"uint64"},{"internalType":"uint64","name":"verifiedCount","type":"uint64"},{"internalType":"uint64","name":"depositLimit","type":"uint64"}],"internalType":"struct NodeOperatorRegistry.KeyStat","name":"keyStat","type":"tuple"}],"internalType":"struct NodeOperatorRegistry.Operator","name":"","type":"tuple"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getOperators","outputs":[{"components":[{"internalType":"address","name":"operatorOwner","type":"address"},{"internalType":"string","name":"name","type":"string"},{"internalType":"address","name":"rewardAddress","type":"address"},{"internalType":"address","name":"withdrawalAddress","type":"address"},{"components":[{"internalType":"uint64","name":"totalCount","type":"uint64"},{"internalType":"uint64","name":"usedCount","type":"uint64"},{"internalType":"uint64","name":"verifiedCount","type":"uint64"},{"internalType":"uint64","name":"depositLimit","type":"uint64"}],"internalType":"struct NodeOperatorRegistry.KeyStat","name":"keyStat","type":"tuple"}],"internalType":"struct NodeOperatorRegistry.Operator[]","name":"operators","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"getPubkeys","outputs":[{"internalType":"bytes[]","name":"pubkeys","type":"bytes[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getRewardAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRewardAddresses","outputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"start","type":"uint256"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"getSignatures","outputs":[{"internalType":"bytes[]","name":"signatures","type":"bytes[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getWithdrawalAddress","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getWithdrawalAddresses","outputs":[{"internalType":"address[]","name":"addresses","type":"address[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"getWithdrawalCredential","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"oldRegistry","type":"address"}],"name":"initialize","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"operatorCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"registryVersion","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"strategy","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"truncateAllUnusedKeys","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"}],"name":"truncateUnusedKeys","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint64","name":"newDepositLimit","type":"uint64"}],"name":"updateDepositLimit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"newOperatorOwner","type":"address"}],"name":"updateOperatorOwner","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"address","name":"newRewardAddress","type":"address"}],"name":"updateRewardAddress","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newStrategy","type":"address"}],"name":"updateStrategy","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint64","name":"newVerifiedCount","type":"uint64"},{"internalType":"uint256","name":"offchainregistryVersion","type":"uint256"}],"name":"updateVerifiedCount","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"id","type":"uint256"},{"internalType":"uint256","name":"count","type":"uint256"}],"name":"useKeys","outputs":[{"components":[{"internalType":"bytes32","name":"pubkey0","type":"bytes32"},{"internalType":"bytes32","name":"pubkey1","type":"bytes32"},{"internalType":"bytes32","name":"signature0","type":"bytes32"},{"internalType":"bytes32","name":"signature1","type":"bytes32"},{"internalType":"bytes32","name":"signature2","type":"bytes32"}],"internalType":"struct NodeOperatorRegistry.Key[]","name":"keys","type":"tuple[]"},{"internalType":"bytes32","name":"withdrawalCredential","type":"bytes32"}],"stateMutability":"nonpayable","type":"function"}]

60a06040523480156200001157600080fd5b50604051620030bb380380620030bb833981016040819052620000349162000108565b600062000040620000ac565b600080546001600160a01b0319166001600160a01b0383169081178255604051929350917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a3506200009582620000b0565b60601b6001600160601b0319166080525062000173565b3390565b600180546001600160a01b0319166001600160a01b0383161790556040517f4da9c22c924692646a21cf1f423781ae3285198dc22e8a6912835d3272b90b3c90620000fd90839062000146565b60405180910390a150565b600080604083850312156200011b578182fd5b825162000128816200015a565b60208401519092506200013b816200015a565b809150509250929050565b6001600160a01b0391909116815260200190565b6001600160a01b03811681146200017057600080fd5b50565b60805160601c612f256200019660003980610cac52806116a15250612f256000f3fe608060405234801561001057600080fd5b50600436106101e55760003560e01c8063a681c80c1161010f578063c8fcf4d6116100a2578063daccaf6311610071578063daccaf6314610426578063eb5e8c6f14610439578063f2fde38b14610441578063fbc60ded14610454576101e5565b8063c8fcf4d6146103e5578063cb418d8c146103f8578063d3ee4b1314610400578063d9422fcd14610413576101e5565b8063b0db1964116100de578063b0db1964146103a4578063b54137fc146103b7578063c45a0155146103ca578063c4d66de8146103d2576101e5565b8063a681c80c14610349578063a8c62e761461035c578063a92d07a914610364578063aadc672b14610384576101e5565b806354e5e4fa116101875780637c6f3158116101565780637c6f3158146103045780638da5cb5b1461030c578063980fd8ab14610321578063a271519514610336576101e5565b806354e5e4fa146102a85780636c81f035146102bb578063715018a6146102dc57806377f43a05146102e4576101e5565b806327a099d8116101c357806327a099d81461023d5780632e5c5ebc146102525780634a00fcbe1461026757806350545d2f14610287576101e5565b806305f63c8a146101ea5780630dc9b607146102135780630f9be51c14610228575b600080fd5b6101fd6101f83660046125af565b610467565b60405161020a9190612dcb565b60405180910390f35b61021b6105ad565b60405161020a9190612a5a565b610230610692565b60405161020a9190612b24565b610245610698565b60405161020a9190612ad1565b610265610260366004612740565b610855565b005b61027a6102753660046127d7565b610b5f565b60405161020a9190612a9c565b61029a61029536600461260a565b610c45565b60405161020a929190612dde565b6102656102b6366004612711565b610de7565b6102ce6102c93660046127b6565b610eac565b60405161020a929190612aaf565b6102656111e6565b6102f76102f23660046125af565b61126f565b60405161020a9190612daf565b6102306112d6565b6103146112dc565b60405161020a9190612999565b6103296112eb565b60405161020a91906129ad565b6103146103443660046125af565b61138c565b6102656103573660046125af565b6113ab565b6103146113f0565b6103776103723660046127d7565b6113ff565b60405161020a91906129fa565b6103976103923660046127b6565b6114ce565b60405161020a9190612dbd565b6103146103b23660046125af565b61152e565b6102656103c536600461280f565b61154c565b61031461169f565b6102656103e03660046124ce565b6116c3565b6102656103f3366004612711565b611bfb565b610329611c8f565b61023061040e3660046125af565b611d2f565b6103776104213660046127d7565b611db8565b6102656104343660046124ce565b611e7a565b610265611ec5565b61026561044f3660046124ce565b611f23565b6102656104623660046127eb565b611fe3565b61046f6121b9565b600082815260036020908152604091829020825160a08101845281546001600160a01b03168152600180830180548651600261010094831615949094026000190190911692909204601f81018690048602830186019096528582529194929385810193919291908301828280156105275780601f106104fc57610100808354040283529160200191610527565b820191906000526020600020905b81548152906001019060200180831161050a57829003601f168201915b505050918352505060028201546001600160a01b03908116602080840191909152600384015490911660408084019190915280516080810182526004909401546001600160401b038082168652600160401b8204811693860193909352600160801b8104831691850191909152600160c01b900416606080840191909152015292915050565b600254606090806001600160401b03811180156105c957600080fd5b5060405190808252806020026020018201604052801561060357816020015b6105f0612208565b8152602001906001900390816105e85790505b50915060005b8181101561068d5760008181526003602090815260409182902082516080810184526004909101546001600160401b038082168352600160401b8204811693830193909352600160801b8104831693820193909352600160c01b909204166060820152835184908390811061067a57fe5b6020908102919091010152600101610609565b505090565b60055481565b600254606090806001600160401b03811180156106b457600080fd5b506040519080825280602002602001820160405280156106ee57816020015b6106db6121b9565b8152602001906001900390816106d35790505b50915060005b8181101561068d57600081815260036020908152604091829020825160a08101845281546001600160a01b03168152600180830180548651600261010094831615949094026000190190911692909204601f81018690048602830186019096528582529194929385810193919291908301828280156107b45780601f10610789576101008083540402835291602001916107b4565b820191906000526020600020905b81548152906001019060200180831161079757829003601f168201915b505050918352505060028201546001600160a01b03908116602080840191909152600384015490911660408084019190915280516080810182526004909401546001600160401b038082168652600160401b8204811693860193909352600160801b8104831691850191909152600160c01b9004166060838101919091520152835184908390811061084257fe5b60209081029190910101526001016106f4565b60008581526003602052604090205485906001600160a01b031633146108965760405162461bcd60e51b815260040161088d90612c8d565b60405180910390fd5b6030808504908102851480156108ae57506060810283145b6108ca5760405162461bcd60e51b815260040161088d90612bec565b600087815260046020908152604080832060039092529091206108eb612208565b506040805160808101825260048301546001600160401b038082168352600160401b820481166020840152600160801b8204811693830193909352600160c01b9004909116606082015260005b84811015610ac25761094861222f565b61095b6030830260208101908c8e612e6d565b81019061096891906125af565b81526109806030838102908101906010018c8e612e6d565b81019061098d91906125af565b60801b60208201526109aa60606001840181029084028a8c612e6d565b8101906109b791906125df565b6080840152606083015260408201526020810151815117158015906109eb5750608081015160608201516040830151171715155b610a075760405162461bcd60e51b815260040161088d90612d16565b82516001600160401b03168201600090815260208681526040918290208351808255828501516001830181905584860151600284015560608601516003840155608086015160049093019290925592518f937fb56fb5426d4c9d04c3e9192f4a565931612ac78a7dc339e471744ba6f5cb5af393610a8793919201612978565b60408051601f19818403018152908290528651610ab1926001600160401b03909116870190612b43565b60405180910390a250600101610938565b5080516001600160401b039401841680825260049092018054602083015160408401516060909401518716600160c01b026001600160c01b03948816600160801b0267ffffffffffffffff60801b1992909816600160401b0267ffffffffffffffff60401b1967ffffffffffffffff1990941690961792909216949094179390931694909417161790915550506005805460010190555050505050565b6060816001600160401b0381118015610b7757600080fd5b50604051908082528060200260200182016040528015610bb157816020015b610b9e61222f565b815260200190600190039081610b965790505b5060008581526004602052604081209192505b83811015610c3c5781600082870181526020019081526020016000206040518060a001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482015481525050838281518110610c2957fe5b6020908102919091010152600101610bc4565b50509392505050565b600080610c50612085565b6001600160a01b0316610c616112dc565b6001600160a01b031614610c875760405162461bcd60e51b815260040161088d90612ce1565b6002805460018101909155604051631cf41a8160e01b81529092506001600160a01b037f00000000000000000000000000000000000000000000000000000000000000001690631cf41a8190610ce1908590600401612b24565b602060405180830381600087803b158015610cfb57600080fd5b505af1158015610d0f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d3391906124f1565b600083815260036020526040902080546001600160a01b0319166001600160a01b038616178155909150610d6b60018201878761225d565b506003810180546001600160a01b038085166001600160a01b0319928316179092556002830180549287169290911691909117905560405183907fc22ec753a623c56bd5943299a8993578abc8f26b9d4edb8dcf5765f21de93e2190610dd690899089908990612b56565b60405180910390a250935093915050565b610def612085565b6001600160a01b0316610e006112dc565b6001600160a01b031614610e265760405162461bcd60e51b815260040161088d90612ce1565b6002548210610e475760405162461bcd60e51b815260040161088d90612c60565b6000828152600360205260409081902080546001600160a01b0319166001600160a01b0384161790555182907f7415c19516e416f2bb44b7808912c3c83f37782a5f943753be2a91f02234f62c90610ea0908490612999565b60405180910390a25050565b6001546060906000906001600160a01b03163314610edc5760405162461bcd60e51b815260040161088d90612cba565b6000848152600360205260409020610ef2612208565b50604080516080810182526004808401546001600160401b038082168452600160401b820481166020808601918252600160801b8404831686880152600160c01b9093048216606086015260008b8152939092529390912090518251929391929082169188830191168111801590610f77575083606001516001600160401b03168111155b8015610f90575083604001516001600160401b03168111155b610fac5760405162461bcd60e51b815260040161088d90612d4d565b876001600160401b0381118015610fc257600080fd5b50604051908082528060200260200182016040528015610ffc57816020015b610fe961222f565b815260200190600190039081610fe15790505b50965060005b8881101561108c5782810160009081526020858152604091829020825160a08101845281548152600182015492810192909252600281015492820192909252600382015460608201526004820154608082015289518a908490811061106357fe5b602090810291909101015260006002820181905560038201819055600490910155600101611002565b506001600160401b03808216602080870182905286516004808a0180546040808c015160608d01518916600160c01b026001600160c01b03918a16600160801b0267ffffffffffffffff60801b19600160401b909a0267ffffffffffffffff60401b1998909b1667ffffffffffffffff199095169490941796909616989098179690961617959095169190911790935560038801548251634231265760e01b815292516001600160a01b039091169363423126579380820193929190829003018186803b15801561115c57600080fd5b505afa158015611170573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061119491906125c7565b60058054600101905560405190965089907ffc637b06d6fb827fa062d63fa3a907eacae3b7b56ff08382f07c089c85e431bc906111d2908b90612b24565b60405180910390a250505050509250929050565b6111ee612085565b6001600160a01b03166111ff6112dc565b6001600160a01b0316146112255760405162461bcd60e51b815260040161088d90612ce1565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b611277612208565b5060009081526003602090815260409182902082516080810184526004909101546001600160401b038082168352600160401b8204811693830193909352600160801b8104831693820193909352600160c01b90920416606082015290565b60025481565b6000546001600160a01b031690565b600254606090806001600160401b038111801561130757600080fd5b50604051908082528060200260200182016040528015611331578160200160208202803683370190505b50915060005b8181101561068d576000818152600360208190526040909120015483516001600160a01b039091169084908390811061136c57fe5b6001600160a01b0390921660209283029190910190910152600101611337565b600090815260036020819052604090912001546001600160a01b031690565b60008181526003602052604090205481906001600160a01b031633146113e35760405162461bcd60e51b815260040161088d90612c8d565b6113ec82612089565b5050565b6001546001600160a01b031681565b6060816001600160401b038111801561141757600080fd5b5060405190808252806020026020018201604052801561144b57816020015b60608152602001906001900390816114365790505b5060008581526004602052604081209192505b83811015610c3c5760008260008388018152602001908152602001600020905080600201548160030154826004015460405160200161149f93929190612b2d565b6040516020818303038152906040528483815181106114ba57fe5b60209081029190910101525060010161145e565b6114d661222f565b506000828152600460208181526040808420858552825292839020835160a081018552815481526001820154928101929092526002810154938201939093526003830154606082015291015460808201525b92915050565b6000908152600360205260409020600201546001600160a01b031690565b600160009054906101000a90046001600160a01b03166001600160a01b031663b325331b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561159a57600080fd5b505afa1580156115ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115d291906124f1565b6001600160a01b0316336001600160a01b0316146116025760405162461bcd60e51b815260040161088d90612bc1565b80600554146116235760405162461bcd60e51b815260040161088d90612d78565b60008381526003602052604090819020600401805467ffffffffffffffff60801b1916600160801b6001600160401b038616021790556005805460010190555183907f2a2a71b13711c4016bd62546912290b4716738240386fecd7b224f8e2b8a27dc90611692908590612e14565b60405180910390a2505050565b7f000000000000000000000000000000000000000000000000000000000000000081565b6116cb612085565b6001600160a01b03166116dc6112dc565b6001600160a01b0316146117025760405162461bcd60e51b815260040161088d90612ce1565b6002541561170f57600080fd5b806001600160a01b0316637c6f31586040518163ffffffff1660e01b815260040160206040518083038186803b15801561174857600080fd5b505afa15801561175c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061178091906125c7565b60025560005b6002548110156113ec576117986121b9565b6040516302fb1e4560e11b81526001600160a01b038416906305f63c8a906117c4908590600401612b24565b60006040518083038186803b1580156117dc57600080fd5b505afa1580156117f0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611818919081019061265e565b3381526080810180516020808201516001600160401b03811692839052925160409081019290925260008681526003825291909120835181546001600160a01b0319166001600160a01b039091161781558184015180519495509293859391926118899260018501929101906122db565b506040828101516002830180546001600160a01b03199081166001600160a01b0393841617909155606080860151600386018054909316931692909217905560809093015180516004909301805460208084015184860151949097015167ffffffffffffffff199092166001600160401b039687161767ffffffffffffffff60401b1916600160401b978716979097029690961767ffffffffffffffff60801b1916600160801b93861693909302929092176001600160c01b0316600160c01b94909216939093021790915590830151905184917fc22ec753a623c56bd5943299a8993578abc8f26b9d4edb8dcf5765f21de93e219161198b91903390612b97565b60405180910390a260408201516001600160a01b031633146119e457827f0fd52a84c7f1d881bfae9637fce57846ea9d3b91d2558ebc4295cb8b54a1b87583604001516040516119db9190612999565b60405180910390a25b827f88d01455e50f0b0da01a455a4547346410a2fd66ffdc7241a4c280d6089c4257836080015160600151604051611a1c9190612e14565b60405180910390a26040516325007e5f60e11b81526060906001600160a01b03861690634a00fcbe90611a589087906000908790600401612df5565b60006040518083038186803b158015611a7057600080fd5b505afa158015611a84573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611aac919081019061250d565b905060005b826001600160401b0316811015611b7f576000828281518110611ad057fe5b60200260200101516000015190506000838381518110611aec57fe5b60209081029190910181015181015160008981526004835260408082208783528452908190208581556001018290555190925088917fb56fb5426d4c9d04c3e9192f4a565931612ac78a7dc339e471744ba6f5cb5af391611b51918691869101612978565b60408051601f1981840301815290829052611b6d918790612b43565b60405180910390a25050600101611ab1565b50837f2a2a71b13711c4016bd62546912290b4716738240386fecd7b224f8e2b8a27dc83604051611bb09190612e14565b60405180910390a2837ffc637b06d6fb827fa062d63fa3a907eacae3b7b56ff08382f07c089c85e431bc83604051611be89190612e14565b60405180910390a2505050600101611786565b60008281526003602052604090205482906001600160a01b03163314611c335760405162461bcd60e51b815260040161088d90612c8d565b6000838152600360205260409081902060020180546001600160a01b0319166001600160a01b0385161790555183907f0fd52a84c7f1d881bfae9637fce57846ea9d3b91d2558ebc4295cb8b54a1b87590611692908590612999565b600254606090806001600160401b0381118015611cab57600080fd5b50604051908082528060200260200182016040528015611cd5578160200160208202803683370190505b50915060005b8181101561068d5760008181526003602052604090206002015483516001600160a01b0390911690849083908110611d0f57fe5b6001600160a01b0390921660209283029190910190910152600101611cdb565b6000818152600360208181526040808420909201548251634231265760e01b815292516001600160a01b03909116926342312657926004808301939192829003018186803b158015611d8057600080fd5b505afa158015611d94573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061152891906125c7565b6060816001600160401b0381118015611dd057600080fd5b50604051908082528060200260200182016040528015611e0457816020015b6060815260200190600190039081611def5790505b5060008581526004602052604081209192505b83811015610c3c57848101600090815260208381526040918290208054600182015493519193611e4b939192909101612978565b604051602081830303815290604052848381518110611e6657fe5b602090810291909101015250600101611e17565b611e82612085565b6001600160a01b0316611e936112dc565b6001600160a01b031614611eb95760405162461bcd60e51b815260040161088d90612ce1565b611ec281612163565b50565b611ecd612085565b6001600160a01b0316611ede6112dc565b6001600160a01b031614611f045760405162461bcd60e51b815260040161088d90612ce1565b60025460005b818110156113ec57611f1b81612089565b600101611f0a565b611f2b612085565b6001600160a01b0316611f3c6112dc565b6001600160a01b031614611f625760405162461bcd60e51b815260040161088d90612ce1565b6001600160a01b038116611f885760405162461bcd60e51b815260040161088d90612c1a565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60008281526003602052604090205482906001600160a01b0316331461201b5760405162461bcd60e51b815260040161088d90612c8d565b6000838152600360205260409081902060040180546001600160c01b0316600160c01b6001600160401b038616021790556005805460010190555183907f88d01455e50f0b0da01a455a4547346410a2fd66ffdc7241a4c280d6089c425790611692908590612e14565b3390565b600081815260036020526040902061209f612208565b50604080516080810182526004830180546001600160401b03600160401b808304821660208601819052600160c01b8085049093166060870181905281875286880182905267ffffffffffffffff19909416811767ffffffffffffffff60401b19169181029190911767ffffffffffffffff60801b1916600160801b8202176001600160c01b031692909102919091179091559151909184917fc25c241ebd25b7adbc10a6e20feaba2b2ad0fabcff3df0e8c217eb01238e38b29161169291612e14565b600180546001600160a01b0319166001600160a01b0383161790556040517f4da9c22c924692646a21cf1f423781ae3285198dc22e8a6912835d3272b90b3c906121ae908390612999565b60405180910390a150565b6040518060a0016040528060006001600160a01b031681526020016060815260200160006001600160a01b0316815260200160006001600160a01b03168152602001612203612208565b905290565b60408051608081018252600080825260208201819052918101829052606081019190915290565b6040805160a08101825260008082526020820181905291810182905260608101829052608081019190915290565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061229e5782800160ff198235161785556122cb565b828001600101855582156122cb579182015b828111156122cb5782358255916020019190600101906122b0565b506122d7929150612349565b5090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061231c57805160ff19168380011785556122cb565b828001600101855582156122cb579182015b828111156122cb57825182559160200191906001019061232e565b5b808211156122d7576000815560010161234a565b805161152881612ec5565b60008083601f84011261237a578182fd5b5081356001600160401b03811115612390578182fd5b6020830191508360208285010111156123a857600080fd5b9250929050565b600082601f8301126123bf578081fd5b81516001600160401b038111156123d4578182fd5b6123e7601f8201601f1916602001612e28565b91508082528360208285010111156123fe57600080fd5b61240f816020840160208601612e95565b5092915050565b600060808284031215612427578081fd5b6124316080612e28565b9050815161243e81612eda565b8152602082015161244e81612eda565b6020820152604082015161246181612eda565b6040820152606082015161247481612eda565b606082015292915050565b600060a08284031215612490578081fd5b61249a60a0612e28565b9050815181526020820151602082015260408201516040820152606082015160608201526080820151608082015292915050565b6000602082840312156124df578081fd5b81356124ea81612ec5565b9392505050565b600060208284031215612502578081fd5b81516124ea81612ec5565b6000602080838503121561251f578182fd5b82516001600160401b03811115612534578283fd5b8301601f81018513612544578283fd5b805161255761255282612e4e565b612e28565b8181528381019083850160a0808502860187018a1015612575578788fd5b8795505b848610156125a15761258b8a8361247f565b8452600195909501949286019290810190612579565b509098975050505050505050565b6000602082840312156125c0578081fd5b5035919050565b6000602082840312156125d8578081fd5b5051919050565b6000806000606084860312156125f3578182fd5b505081359360208301359350604090920135919050565b60008060006040848603121561261e578283fd5b83356001600160401b03811115612633578384fd5b61263f86828701612369565b909450925050602084013561265381612ec5565b809150509250925092565b60006020828403121561266f578081fd5b81516001600160401b0380821115612685578283fd5b908301906101008286031215612699578283fd5b6126a360a0612e28565b6126ad868461235e565b81526020830151828111156126c0578485fd5b6126cc878286016123af565b6020830152506126df866040850161235e565b60408201526126f1866060850161235e565b60608201526127038660808501612416565b608082015295945050505050565b60008060408385031215612723578182fd5b82359150602083013561273581612ec5565b809150509250929050565b600080600080600060608688031215612757578283fd5b8535945060208601356001600160401b0380821115612774578485fd5b61278089838a01612369565b90965094506040880135915080821115612798578283fd5b506127a588828901612369565b969995985093965092949392505050565b600080604083850312156127c8578182fd5b50508035926020909101359150565b6000806000606084860312156125f3578081fd5b600080604083850312156127fd578182fd5b82359150602083013561273581612eda565b600080600060608486031215612823578081fd5b83359250602084013561283581612eda565b929592945050506040919091013590565b6000815180845260208085019450808401835b8381101561287f5761286c8783516128e9565b60a0969096019590820190600101612859565b509495945050505050565b600081518084526128a2816020860160208601612e95565b601f01601f19169290920160200192915050565b80516001600160401b03908116835260208083015182169084015260408083015182169084015260609182015116910152565b80518252602081015160208301526040810151604083015260608101516060830152608081015160808301525050565b600061010060018060a01b0380845116855260208401518260208701526129428387018261288a565b92505080604085015116604086015280606085015116606086015250608083015161297060808601826128b6565b509392505050565b9182526fffffffffffffffffffffffffffffffff1916602082015260300190565b6001600160a01b0391909116815260200190565b6020808252825182820181905260009190848201906040850190845b818110156129ee5783516001600160a01b0316835292840192918401916001016129c9565b50909695505050505050565b6000602080830181845280855180835260408601915060408482028701019250838701855b82811015612a4d57603f19888603018452612a3b85835161288a565b94509285019290850190600101612a1f565b5092979650505050505050565b6020808252825182820181905260009190848201906040850190845b818110156129ee57612a898385516128b6565b9284019260809290920191600101612a76565b6000602082526124ea6020830184612846565b600060408252612ac26040830185612846565b90508260208301529392505050565b6000602080830181845280855180835260408601915060408482028701019250838701855b82811015612a4d57603f19888603018452612b12858351612919565b94509285019290850190600101612af6565b90815260200190565b9283526020830191909152604082015260600190565b600060408252612ac2604083018561288a565b6000604082528360408301528385606084013760608483018101919091526001600160a01b03929092166020820152601f909201601f191690910101919050565b600060408252612baa604083018561288a565b905060018060a01b03831660208301529392505050565b6020808252601190820152704f6e6c792073616665207374616b696e6760781b604082015260600190565b602080825260149082015273092dcecc2d8d2c840e0c2e4c2da40d8cadccee8d60631b604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b602080825260139082015272125b9d985b1a59081bdc195c985d1bdc881251606a1b604082015260600190565b60208082526013908201527227b7363c9037b832b930ba37b91037bbb732b960691b604082015260600190565b6020808252600d908201526c4f6e6c7920737472617465677960981b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526019908201527f456d707479207075626b6579206f72207369676e617475726500000000000000604082015260600190565b6020808252601190820152704e6f20656e6f756768207075626b65797360781b604082015260600190565b60208082526018908201527f52656769737472792076657273696f6e206368616e6765640000000000000000604082015260600190565b6080810161152882846128b6565b60a0810161152882846128e9565b6000602082526124ea6020830184612919565b9182526001600160a01b0316602082015260400190565b92835260208301919091526001600160401b0316604082015260600190565b6001600160401b0391909116815260200190565b6040518181016001600160401b0381118282101715612e4657600080fd5b604052919050565b60006001600160401b03821115612e63578081fd5b5060209081020190565b60008085851115612e7c578182fd5b83861115612e88578182fd5b5050820193919092039150565b60005b83811015612eb0578181015183820152602001612e98565b83811115612ebf576000848401525b50505050565b6001600160a01b0381168114611ec257600080fd5b6001600160401b0381168114611ec257600080fdfea26469706673582212201b384a234c4f41873a0a739ee01f321d35c9d928d6bcad7ce45f974b950d9d3064736f6c634300060c0033000000000000000000000000f737012c83c0ac5cc55df3bbcda7d82dd8c4081b00000000000000000000000016d0ff163e6430b99c3e23b8eecbf840a029dd88

Deployed Bytecode

0x608060405234801561001057600080fd5b50600436106101e55760003560e01c8063a681c80c1161010f578063c8fcf4d6116100a2578063daccaf6311610071578063daccaf6314610426578063eb5e8c6f14610439578063f2fde38b14610441578063fbc60ded14610454576101e5565b8063c8fcf4d6146103e5578063cb418d8c146103f8578063d3ee4b1314610400578063d9422fcd14610413576101e5565b8063b0db1964116100de578063b0db1964146103a4578063b54137fc146103b7578063c45a0155146103ca578063c4d66de8146103d2576101e5565b8063a681c80c14610349578063a8c62e761461035c578063a92d07a914610364578063aadc672b14610384576101e5565b806354e5e4fa116101875780637c6f3158116101565780637c6f3158146103045780638da5cb5b1461030c578063980fd8ab14610321578063a271519514610336576101e5565b806354e5e4fa146102a85780636c81f035146102bb578063715018a6146102dc57806377f43a05146102e4576101e5565b806327a099d8116101c357806327a099d81461023d5780632e5c5ebc146102525780634a00fcbe1461026757806350545d2f14610287576101e5565b806305f63c8a146101ea5780630dc9b607146102135780630f9be51c14610228575b600080fd5b6101fd6101f83660046125af565b610467565b60405161020a9190612dcb565b60405180910390f35b61021b6105ad565b60405161020a9190612a5a565b610230610692565b60405161020a9190612b24565b610245610698565b60405161020a9190612ad1565b610265610260366004612740565b610855565b005b61027a6102753660046127d7565b610b5f565b60405161020a9190612a9c565b61029a61029536600461260a565b610c45565b60405161020a929190612dde565b6102656102b6366004612711565b610de7565b6102ce6102c93660046127b6565b610eac565b60405161020a929190612aaf565b6102656111e6565b6102f76102f23660046125af565b61126f565b60405161020a9190612daf565b6102306112d6565b6103146112dc565b60405161020a9190612999565b6103296112eb565b60405161020a91906129ad565b6103146103443660046125af565b61138c565b6102656103573660046125af565b6113ab565b6103146113f0565b6103776103723660046127d7565b6113ff565b60405161020a91906129fa565b6103976103923660046127b6565b6114ce565b60405161020a9190612dbd565b6103146103b23660046125af565b61152e565b6102656103c536600461280f565b61154c565b61031461169f565b6102656103e03660046124ce565b6116c3565b6102656103f3366004612711565b611bfb565b610329611c8f565b61023061040e3660046125af565b611d2f565b6103776104213660046127d7565b611db8565b6102656104343660046124ce565b611e7a565b610265611ec5565b61026561044f3660046124ce565b611f23565b6102656104623660046127eb565b611fe3565b61046f6121b9565b600082815260036020908152604091829020825160a08101845281546001600160a01b03168152600180830180548651600261010094831615949094026000190190911692909204601f81018690048602830186019096528582529194929385810193919291908301828280156105275780601f106104fc57610100808354040283529160200191610527565b820191906000526020600020905b81548152906001019060200180831161050a57829003601f168201915b505050918352505060028201546001600160a01b03908116602080840191909152600384015490911660408084019190915280516080810182526004909401546001600160401b038082168652600160401b8204811693860193909352600160801b8104831691850191909152600160c01b900416606080840191909152015292915050565b600254606090806001600160401b03811180156105c957600080fd5b5060405190808252806020026020018201604052801561060357816020015b6105f0612208565b8152602001906001900390816105e85790505b50915060005b8181101561068d5760008181526003602090815260409182902082516080810184526004909101546001600160401b038082168352600160401b8204811693830193909352600160801b8104831693820193909352600160c01b909204166060820152835184908390811061067a57fe5b6020908102919091010152600101610609565b505090565b60055481565b600254606090806001600160401b03811180156106b457600080fd5b506040519080825280602002602001820160405280156106ee57816020015b6106db6121b9565b8152602001906001900390816106d35790505b50915060005b8181101561068d57600081815260036020908152604091829020825160a08101845281546001600160a01b03168152600180830180548651600261010094831615949094026000190190911692909204601f81018690048602830186019096528582529194929385810193919291908301828280156107b45780601f10610789576101008083540402835291602001916107b4565b820191906000526020600020905b81548152906001019060200180831161079757829003601f168201915b505050918352505060028201546001600160a01b03908116602080840191909152600384015490911660408084019190915280516080810182526004909401546001600160401b038082168652600160401b8204811693860193909352600160801b8104831691850191909152600160c01b9004166060838101919091520152835184908390811061084257fe5b60209081029190910101526001016106f4565b60008581526003602052604090205485906001600160a01b031633146108965760405162461bcd60e51b815260040161088d90612c8d565b60405180910390fd5b6030808504908102851480156108ae57506060810283145b6108ca5760405162461bcd60e51b815260040161088d90612bec565b600087815260046020908152604080832060039092529091206108eb612208565b506040805160808101825260048301546001600160401b038082168352600160401b820481166020840152600160801b8204811693830193909352600160c01b9004909116606082015260005b84811015610ac25761094861222f565b61095b6030830260208101908c8e612e6d565b81019061096891906125af565b81526109806030838102908101906010018c8e612e6d565b81019061098d91906125af565b60801b60208201526109aa60606001840181029084028a8c612e6d565b8101906109b791906125df565b6080840152606083015260408201526020810151815117158015906109eb5750608081015160608201516040830151171715155b610a075760405162461bcd60e51b815260040161088d90612d16565b82516001600160401b03168201600090815260208681526040918290208351808255828501516001830181905584860151600284015560608601516003840155608086015160049093019290925592518f937fb56fb5426d4c9d04c3e9192f4a565931612ac78a7dc339e471744ba6f5cb5af393610a8793919201612978565b60408051601f19818403018152908290528651610ab1926001600160401b03909116870190612b43565b60405180910390a250600101610938565b5080516001600160401b039401841680825260049092018054602083015160408401516060909401518716600160c01b026001600160c01b03948816600160801b0267ffffffffffffffff60801b1992909816600160401b0267ffffffffffffffff60401b1967ffffffffffffffff1990941690961792909216949094179390931694909417161790915550506005805460010190555050505050565b6060816001600160401b0381118015610b7757600080fd5b50604051908082528060200260200182016040528015610bb157816020015b610b9e61222f565b815260200190600190039081610b965790505b5060008581526004602052604081209192505b83811015610c3c5781600082870181526020019081526020016000206040518060a001604052908160008201548152602001600182015481526020016002820154815260200160038201548152602001600482015481525050838281518110610c2957fe5b6020908102919091010152600101610bc4565b50509392505050565b600080610c50612085565b6001600160a01b0316610c616112dc565b6001600160a01b031614610c875760405162461bcd60e51b815260040161088d90612ce1565b6002805460018101909155604051631cf41a8160e01b81529092506001600160a01b037f00000000000000000000000016d0ff163e6430b99c3e23b8eecbf840a029dd881690631cf41a8190610ce1908590600401612b24565b602060405180830381600087803b158015610cfb57600080fd5b505af1158015610d0f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d3391906124f1565b600083815260036020526040902080546001600160a01b0319166001600160a01b038616178155909150610d6b60018201878761225d565b506003810180546001600160a01b038085166001600160a01b0319928316179092556002830180549287169290911691909117905560405183907fc22ec753a623c56bd5943299a8993578abc8f26b9d4edb8dcf5765f21de93e2190610dd690899089908990612b56565b60405180910390a250935093915050565b610def612085565b6001600160a01b0316610e006112dc565b6001600160a01b031614610e265760405162461bcd60e51b815260040161088d90612ce1565b6002548210610e475760405162461bcd60e51b815260040161088d90612c60565b6000828152600360205260409081902080546001600160a01b0319166001600160a01b0384161790555182907f7415c19516e416f2bb44b7808912c3c83f37782a5f943753be2a91f02234f62c90610ea0908490612999565b60405180910390a25050565b6001546060906000906001600160a01b03163314610edc5760405162461bcd60e51b815260040161088d90612cba565b6000848152600360205260409020610ef2612208565b50604080516080810182526004808401546001600160401b038082168452600160401b820481166020808601918252600160801b8404831686880152600160c01b9093048216606086015260008b8152939092529390912090518251929391929082169188830191168111801590610f77575083606001516001600160401b03168111155b8015610f90575083604001516001600160401b03168111155b610fac5760405162461bcd60e51b815260040161088d90612d4d565b876001600160401b0381118015610fc257600080fd5b50604051908082528060200260200182016040528015610ffc57816020015b610fe961222f565b815260200190600190039081610fe15790505b50965060005b8881101561108c5782810160009081526020858152604091829020825160a08101845281548152600182015492810192909252600281015492820192909252600382015460608201526004820154608082015289518a908490811061106357fe5b602090810291909101015260006002820181905560038201819055600490910155600101611002565b506001600160401b03808216602080870182905286516004808a0180546040808c015160608d01518916600160c01b026001600160c01b03918a16600160801b0267ffffffffffffffff60801b19600160401b909a0267ffffffffffffffff60401b1998909b1667ffffffffffffffff199095169490941796909616989098179690961617959095169190911790935560038801548251634231265760e01b815292516001600160a01b039091169363423126579380820193929190829003018186803b15801561115c57600080fd5b505afa158015611170573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061119491906125c7565b60058054600101905560405190965089907ffc637b06d6fb827fa062d63fa3a907eacae3b7b56ff08382f07c089c85e431bc906111d2908b90612b24565b60405180910390a250505050509250929050565b6111ee612085565b6001600160a01b03166111ff6112dc565b6001600160a01b0316146112255760405162461bcd60e51b815260040161088d90612ce1565b600080546040516001600160a01b03909116907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3600080546001600160a01b0319169055565b611277612208565b5060009081526003602090815260409182902082516080810184526004909101546001600160401b038082168352600160401b8204811693830193909352600160801b8104831693820193909352600160c01b90920416606082015290565b60025481565b6000546001600160a01b031690565b600254606090806001600160401b038111801561130757600080fd5b50604051908082528060200260200182016040528015611331578160200160208202803683370190505b50915060005b8181101561068d576000818152600360208190526040909120015483516001600160a01b039091169084908390811061136c57fe5b6001600160a01b0390921660209283029190910190910152600101611337565b600090815260036020819052604090912001546001600160a01b031690565b60008181526003602052604090205481906001600160a01b031633146113e35760405162461bcd60e51b815260040161088d90612c8d565b6113ec82612089565b5050565b6001546001600160a01b031681565b6060816001600160401b038111801561141757600080fd5b5060405190808252806020026020018201604052801561144b57816020015b60608152602001906001900390816114365790505b5060008581526004602052604081209192505b83811015610c3c5760008260008388018152602001908152602001600020905080600201548160030154826004015460405160200161149f93929190612b2d565b6040516020818303038152906040528483815181106114ba57fe5b60209081029190910101525060010161145e565b6114d661222f565b506000828152600460208181526040808420858552825292839020835160a081018552815481526001820154928101929092526002810154938201939093526003830154606082015291015460808201525b92915050565b6000908152600360205260409020600201546001600160a01b031690565b600160009054906101000a90046001600160a01b03166001600160a01b031663b325331b6040518163ffffffff1660e01b815260040160206040518083038186803b15801561159a57600080fd5b505afa1580156115ae573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115d291906124f1565b6001600160a01b0316336001600160a01b0316146116025760405162461bcd60e51b815260040161088d90612bc1565b80600554146116235760405162461bcd60e51b815260040161088d90612d78565b60008381526003602052604090819020600401805467ffffffffffffffff60801b1916600160801b6001600160401b038616021790556005805460010190555183907f2a2a71b13711c4016bd62546912290b4716738240386fecd7b224f8e2b8a27dc90611692908590612e14565b60405180910390a2505050565b7f00000000000000000000000016d0ff163e6430b99c3e23b8eecbf840a029dd8881565b6116cb612085565b6001600160a01b03166116dc6112dc565b6001600160a01b0316146117025760405162461bcd60e51b815260040161088d90612ce1565b6002541561170f57600080fd5b806001600160a01b0316637c6f31586040518163ffffffff1660e01b815260040160206040518083038186803b15801561174857600080fd5b505afa15801561175c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061178091906125c7565b60025560005b6002548110156113ec576117986121b9565b6040516302fb1e4560e11b81526001600160a01b038416906305f63c8a906117c4908590600401612b24565b60006040518083038186803b1580156117dc57600080fd5b505afa1580156117f0573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611818919081019061265e565b3381526080810180516020808201516001600160401b03811692839052925160409081019290925260008681526003825291909120835181546001600160a01b0319166001600160a01b039091161781558184015180519495509293859391926118899260018501929101906122db565b506040828101516002830180546001600160a01b03199081166001600160a01b0393841617909155606080860151600386018054909316931692909217905560809093015180516004909301805460208084015184860151949097015167ffffffffffffffff199092166001600160401b039687161767ffffffffffffffff60401b1916600160401b978716979097029690961767ffffffffffffffff60801b1916600160801b93861693909302929092176001600160c01b0316600160c01b94909216939093021790915590830151905184917fc22ec753a623c56bd5943299a8993578abc8f26b9d4edb8dcf5765f21de93e219161198b91903390612b97565b60405180910390a260408201516001600160a01b031633146119e457827f0fd52a84c7f1d881bfae9637fce57846ea9d3b91d2558ebc4295cb8b54a1b87583604001516040516119db9190612999565b60405180910390a25b827f88d01455e50f0b0da01a455a4547346410a2fd66ffdc7241a4c280d6089c4257836080015160600151604051611a1c9190612e14565b60405180910390a26040516325007e5f60e11b81526060906001600160a01b03861690634a00fcbe90611a589087906000908790600401612df5565b60006040518083038186803b158015611a7057600080fd5b505afa158015611a84573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052611aac919081019061250d565b905060005b826001600160401b0316811015611b7f576000828281518110611ad057fe5b60200260200101516000015190506000838381518110611aec57fe5b60209081029190910181015181015160008981526004835260408082208783528452908190208581556001018290555190925088917fb56fb5426d4c9d04c3e9192f4a565931612ac78a7dc339e471744ba6f5cb5af391611b51918691869101612978565b60408051601f1981840301815290829052611b6d918790612b43565b60405180910390a25050600101611ab1565b50837f2a2a71b13711c4016bd62546912290b4716738240386fecd7b224f8e2b8a27dc83604051611bb09190612e14565b60405180910390a2837ffc637b06d6fb827fa062d63fa3a907eacae3b7b56ff08382f07c089c85e431bc83604051611be89190612e14565b60405180910390a2505050600101611786565b60008281526003602052604090205482906001600160a01b03163314611c335760405162461bcd60e51b815260040161088d90612c8d565b6000838152600360205260409081902060020180546001600160a01b0319166001600160a01b0385161790555183907f0fd52a84c7f1d881bfae9637fce57846ea9d3b91d2558ebc4295cb8b54a1b87590611692908590612999565b600254606090806001600160401b0381118015611cab57600080fd5b50604051908082528060200260200182016040528015611cd5578160200160208202803683370190505b50915060005b8181101561068d5760008181526003602052604090206002015483516001600160a01b0390911690849083908110611d0f57fe5b6001600160a01b0390921660209283029190910190910152600101611cdb565b6000818152600360208181526040808420909201548251634231265760e01b815292516001600160a01b03909116926342312657926004808301939192829003018186803b158015611d8057600080fd5b505afa158015611d94573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061152891906125c7565b6060816001600160401b0381118015611dd057600080fd5b50604051908082528060200260200182016040528015611e0457816020015b6060815260200190600190039081611def5790505b5060008581526004602052604081209192505b83811015610c3c57848101600090815260208381526040918290208054600182015493519193611e4b939192909101612978565b604051602081830303815290604052848381518110611e6657fe5b602090810291909101015250600101611e17565b611e82612085565b6001600160a01b0316611e936112dc565b6001600160a01b031614611eb95760405162461bcd60e51b815260040161088d90612ce1565b611ec281612163565b50565b611ecd612085565b6001600160a01b0316611ede6112dc565b6001600160a01b031614611f045760405162461bcd60e51b815260040161088d90612ce1565b60025460005b818110156113ec57611f1b81612089565b600101611f0a565b611f2b612085565b6001600160a01b0316611f3c6112dc565b6001600160a01b031614611f625760405162461bcd60e51b815260040161088d90612ce1565b6001600160a01b038116611f885760405162461bcd60e51b815260040161088d90612c1a565b600080546040516001600160a01b03808516939216917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e091a3600080546001600160a01b0319166001600160a01b0392909216919091179055565b60008281526003602052604090205482906001600160a01b0316331461201b5760405162461bcd60e51b815260040161088d90612c8d565b6000838152600360205260409081902060040180546001600160c01b0316600160c01b6001600160401b038616021790556005805460010190555183907f88d01455e50f0b0da01a455a4547346410a2fd66ffdc7241a4c280d6089c425790611692908590612e14565b3390565b600081815260036020526040902061209f612208565b50604080516080810182526004830180546001600160401b03600160401b808304821660208601819052600160c01b8085049093166060870181905281875286880182905267ffffffffffffffff19909416811767ffffffffffffffff60401b19169181029190911767ffffffffffffffff60801b1916600160801b8202176001600160c01b031692909102919091179091559151909184917fc25c241ebd25b7adbc10a6e20feaba2b2ad0fabcff3df0e8c217eb01238e38b29161169291612e14565b600180546001600160a01b0319166001600160a01b0383161790556040517f4da9c22c924692646a21cf1f423781ae3285198dc22e8a6912835d3272b90b3c906121ae908390612999565b60405180910390a150565b6040518060a0016040528060006001600160a01b031681526020016060815260200160006001600160a01b0316815260200160006001600160a01b03168152602001612203612208565b905290565b60408051608081018252600080825260208201819052918101829052606081019190915290565b6040805160a08101825260008082526020820181905291810182905260608101829052608081019190915290565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061229e5782800160ff198235161785556122cb565b828001600101855582156122cb579182015b828111156122cb5782358255916020019190600101906122b0565b506122d7929150612349565b5090565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f1061231c57805160ff19168380011785556122cb565b828001600101855582156122cb579182015b828111156122cb57825182559160200191906001019061232e565b5b808211156122d7576000815560010161234a565b805161152881612ec5565b60008083601f84011261237a578182fd5b5081356001600160401b03811115612390578182fd5b6020830191508360208285010111156123a857600080fd5b9250929050565b600082601f8301126123bf578081fd5b81516001600160401b038111156123d4578182fd5b6123e7601f8201601f1916602001612e28565b91508082528360208285010111156123fe57600080fd5b61240f816020840160208601612e95565b5092915050565b600060808284031215612427578081fd5b6124316080612e28565b9050815161243e81612eda565b8152602082015161244e81612eda565b6020820152604082015161246181612eda565b6040820152606082015161247481612eda565b606082015292915050565b600060a08284031215612490578081fd5b61249a60a0612e28565b9050815181526020820151602082015260408201516040820152606082015160608201526080820151608082015292915050565b6000602082840312156124df578081fd5b81356124ea81612ec5565b9392505050565b600060208284031215612502578081fd5b81516124ea81612ec5565b6000602080838503121561251f578182fd5b82516001600160401b03811115612534578283fd5b8301601f81018513612544578283fd5b805161255761255282612e4e565b612e28565b8181528381019083850160a0808502860187018a1015612575578788fd5b8795505b848610156125a15761258b8a8361247f565b8452600195909501949286019290810190612579565b509098975050505050505050565b6000602082840312156125c0578081fd5b5035919050565b6000602082840312156125d8578081fd5b5051919050565b6000806000606084860312156125f3578182fd5b505081359360208301359350604090920135919050565b60008060006040848603121561261e578283fd5b83356001600160401b03811115612633578384fd5b61263f86828701612369565b909450925050602084013561265381612ec5565b809150509250925092565b60006020828403121561266f578081fd5b81516001600160401b0380821115612685578283fd5b908301906101008286031215612699578283fd5b6126a360a0612e28565b6126ad868461235e565b81526020830151828111156126c0578485fd5b6126cc878286016123af565b6020830152506126df866040850161235e565b60408201526126f1866060850161235e565b60608201526127038660808501612416565b608082015295945050505050565b60008060408385031215612723578182fd5b82359150602083013561273581612ec5565b809150509250929050565b600080600080600060608688031215612757578283fd5b8535945060208601356001600160401b0380821115612774578485fd5b61278089838a01612369565b90965094506040880135915080821115612798578283fd5b506127a588828901612369565b969995985093965092949392505050565b600080604083850312156127c8578182fd5b50508035926020909101359150565b6000806000606084860312156125f3578081fd5b600080604083850312156127fd578182fd5b82359150602083013561273581612eda565b600080600060608486031215612823578081fd5b83359250602084013561283581612eda565b929592945050506040919091013590565b6000815180845260208085019450808401835b8381101561287f5761286c8783516128e9565b60a0969096019590820190600101612859565b509495945050505050565b600081518084526128a2816020860160208601612e95565b601f01601f19169290920160200192915050565b80516001600160401b03908116835260208083015182169084015260408083015182169084015260609182015116910152565b80518252602081015160208301526040810151604083015260608101516060830152608081015160808301525050565b600061010060018060a01b0380845116855260208401518260208701526129428387018261288a565b92505080604085015116604086015280606085015116606086015250608083015161297060808601826128b6565b509392505050565b9182526fffffffffffffffffffffffffffffffff1916602082015260300190565b6001600160a01b0391909116815260200190565b6020808252825182820181905260009190848201906040850190845b818110156129ee5783516001600160a01b0316835292840192918401916001016129c9565b50909695505050505050565b6000602080830181845280855180835260408601915060408482028701019250838701855b82811015612a4d57603f19888603018452612a3b85835161288a565b94509285019290850190600101612a1f565b5092979650505050505050565b6020808252825182820181905260009190848201906040850190845b818110156129ee57612a898385516128b6565b9284019260809290920191600101612a76565b6000602082526124ea6020830184612846565b600060408252612ac26040830185612846565b90508260208301529392505050565b6000602080830181845280855180835260408601915060408482028701019250838701855b82811015612a4d57603f19888603018452612b12858351612919565b94509285019290850190600101612af6565b90815260200190565b9283526020830191909152604082015260600190565b600060408252612ac2604083018561288a565b6000604082528360408301528385606084013760608483018101919091526001600160a01b03929092166020820152601f909201601f191690910101919050565b600060408252612baa604083018561288a565b905060018060a01b03831660208301529392505050565b6020808252601190820152704f6e6c792073616665207374616b696e6760781b604082015260600190565b602080825260149082015273092dcecc2d8d2c840e0c2e4c2da40d8cadccee8d60631b604082015260600190565b60208082526026908201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160408201526564647265737360d01b606082015260800190565b602080825260139082015272125b9d985b1a59081bdc195c985d1bdc881251606a1b604082015260600190565b60208082526013908201527227b7363c9037b832b930ba37b91037bbb732b960691b604082015260600190565b6020808252600d908201526c4f6e6c7920737472617465677960981b604082015260600190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526019908201527f456d707479207075626b6579206f72207369676e617475726500000000000000604082015260600190565b6020808252601190820152704e6f20656e6f756768207075626b65797360781b604082015260600190565b60208082526018908201527f52656769737472792076657273696f6e206368616e6765640000000000000000604082015260600190565b6080810161152882846128b6565b60a0810161152882846128e9565b6000602082526124ea6020830184612919565b9182526001600160a01b0316602082015260400190565b92835260208301919091526001600160401b0316604082015260600190565b6001600160401b0391909116815260200190565b6040518181016001600160401b0381118282101715612e4657600080fd5b604052919050565b60006001600160401b03821115612e63578081fd5b5060209081020190565b60008085851115612e7c578182fd5b83861115612e88578182fd5b5050820193919092039150565b60005b83811015612eb0578181015183820152602001612e98565b83811115612ebf576000848401525b50505050565b6001600160a01b0381168114611ec257600080fd5b6001600160401b0381168114611ec257600080fdfea26469706673582212201b384a234c4f41873a0a739ee01f321d35c9d928d6bcad7ce45f974b950d9d3064736f6c634300060c0033

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

000000000000000000000000f737012c83c0ac5cc55df3bbcda7d82dd8c4081b00000000000000000000000016d0ff163e6430b99c3e23b8eecbf840a029dd88

-----Decoded View---------------
Arg [0] : strategy_ (address): 0xf737012C83c0AC5CC55df3bbCdA7d82dd8c4081b
Arg [1] : withdrawalManagerFactory_ (address): 0x16d0fF163E6430b99c3E23b8EeCbF840A029dd88

-----Encoded View---------------
2 Constructor Arguments found :
Arg [0] : 000000000000000000000000f737012c83c0ac5cc55df3bbcda7d82dd8c4081b
Arg [1] : 00000000000000000000000016d0ff163e6430b99c3e23b8eecbf840a029dd88


Block Transaction Difficulty 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
Loading...
Loading
[ Download: CSV Export  ]

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