ETH Price: $1,515.41 (+2.11%)
 

Overview

ETH Balance

0 ETH

Eth Value

$0.00

Multichain Info

No addresses found
Transaction Hash
Method
Block
From
To
Register Validat...138594232021-12-23 4:54:491204 days ago1640235289IN
StakeWise: Solos
0 ETH0.007514961.035714
Add Deposit138594052021-12-23 4:50:291204 days ago1640235029IN
StakeWise: Solos
32 ETH0.0034309858.88579833
Register Validat...138532762021-12-22 6:07:341205 days ago1640153254IN
StakeWise: Solos
0 ETH0.0053964446.04674967
Add Deposit138532372021-12-22 5:57:401205 days ago1640152660IN
StakeWise: Solos
32 ETH0.0037632864.58917563
Register Validat...138465822021-12-21 5:06:001206 days ago1640063160IN
StakeWise: Solos
0 ETH0.0062593152.09191994
Add Deposit138465672021-12-21 5:02:241206 days ago1640062944IN
StakeWise: Solos
32 ETH0.0047394649.69031917
Register Validat...138179372021-12-16 18:57:061210 days ago1639681026IN
StakeWise: Solos
0 ETH0.01539445131.35764985
Add Deposit138179282021-12-16 18:54:581210 days ago1639680898IN
StakeWise: Solos
32 ETH0.01196358125.43078754
Register Validat...136890132021-11-26 9:47:021231 days ago1637920022IN
StakeWise: Solos
0 ETH0.01741697131.86988504
Add Deposit136890072021-11-26 9:45:481231 days ago1637919948IN
StakeWise: Solos
32 ETH0.01258857132
Register Validat...136537942021-11-20 19:37:221236 days ago1637437042IN
StakeWise: Solos
0 ETH0.0119033999.06372423
Register Validat...136537802021-11-20 19:35:041236 days ago1637436904IN
StakeWise: Solos
0 ETH0.0122085100.08364188
Register Validat...136537712021-11-20 19:33:331236 days ago1637436813IN
StakeWise: Solos
0 ETH0.0131783103.00779716
Register Validat...136537612021-11-20 19:30:581236 days ago1637436658IN
StakeWise: Solos
0 ETH0.01268349103.97754638
Register Validat...136537542021-11-20 19:29:351236 days ago1637436575IN
StakeWise: Solos
0 ETH0.01311046104.90804553
Register Validat...136537472021-11-20 19:28:021236 days ago1637436482IN
StakeWise: Solos
0 ETH0.01287825105.58455144
Register Validat...136537392021-11-20 19:26:331236 days ago1637436393IN
StakeWise: Solos
0 ETH0.01431669109.36117778
Register Validat...136537332021-11-20 19:24:311236 days ago1637436271IN
StakeWise: Solos
0 ETH0.010845888.91242896
Register Validat...136525882021-11-20 15:06:591237 days ago1637420819IN
StakeWise: Solos
0 ETH0.0111951887.50685429
Add Deposit136525512021-11-20 14:58:421237 days ago1637420322IN
StakeWise: Solos
288 ETH0.0048812383.77649091
Register Validat...136520052021-11-20 12:52:451237 days ago1637412765IN
StakeWise: Solos
0 ETH0.0090106574.98191643
Add Deposit136519972021-11-20 12:51:131237 days ago1637412673IN
StakeWise: Solos
32 ETH0.0077215680.9558083
Register Validat...136374522021-11-18 5:25:361239 days ago1637213136IN
StakeWise: Solos
0 ETH0.01637901129.87675389
Add Deposit136374442021-11-18 5:24:061239 days ago1637213046IN
StakeWise: Solos
32 ETH0.01076585112.87329964
Register Validat...136213972021-11-15 16:28:441241 days ago1636993724IN
StakeWise: Solos
0 ETH0.019353165.18579084
View all transactions

Latest 25 internal transactions (View All)

Advanced mode:
Parent Transaction Hash Method Block
From
To
-138594232021-12-23 4:54:491204 days ago1640235289
StakeWise: Solos
32 ETH
-138532762021-12-22 6:07:341205 days ago1640153254
StakeWise: Solos
32 ETH
-138465822021-12-21 5:06:001206 days ago1640063160
StakeWise: Solos
32 ETH
-138179372021-12-16 18:57:061210 days ago1639681026
StakeWise: Solos
32 ETH
-136890132021-11-26 9:47:021231 days ago1637920022
StakeWise: Solos
32 ETH
-136537942021-11-20 19:37:221236 days ago1637437042
StakeWise: Solos
32 ETH
-136537802021-11-20 19:35:041236 days ago1637436904
StakeWise: Solos
32 ETH
-136537712021-11-20 19:33:331236 days ago1637436813
StakeWise: Solos
32 ETH
-136537612021-11-20 19:30:581236 days ago1637436658
StakeWise: Solos
32 ETH
-136537542021-11-20 19:29:351236 days ago1637436575
StakeWise: Solos
32 ETH
-136537472021-11-20 19:28:021236 days ago1637436482
StakeWise: Solos
32 ETH
-136537392021-11-20 19:26:331236 days ago1637436393
StakeWise: Solos
32 ETH
-136537332021-11-20 19:24:311236 days ago1637436271
StakeWise: Solos
32 ETH
-136525882021-11-20 15:06:591237 days ago1637420819
StakeWise: Solos
32 ETH
-136520052021-11-20 12:52:451237 days ago1637412765
StakeWise: Solos
32 ETH
-136374522021-11-18 5:25:361239 days ago1637213136
StakeWise: Solos
32 ETH
-136213972021-11-15 16:28:441241 days ago1636993724
StakeWise: Solos
32 ETH
-136156092021-11-14 18:38:241242 days ago1636915104
StakeWise: Solos
32 ETH
-136106532021-11-13 23:49:381243 days ago1636847378
StakeWise: Solos
32 ETH
-136106452021-11-13 23:47:541243 days ago1636847274
StakeWise: Solos
32 ETH
-136106232021-11-13 23:42:341243 days ago1636846954
StakeWise: Solos
32 ETH
-136105052021-11-13 23:11:421243 days ago1636845102
StakeWise: Solos
32 ETH
-136104862021-11-13 23:08:171243 days ago1636844897
StakeWise: Solos
32 ETH
-136104762021-11-13 23:06:091243 days ago1636844769
StakeWise: Solos
32 ETH
-136104652021-11-13 23:03:211243 days ago1636844601
StakeWise: Solos
32 ETH
View All Internal Transactions
Loading...
Loading

Contract Source Code Verified (Exact Match)

Contract Name:
Solos

Compiler Version
v0.7.5+commit.eb77ed08

Optimization Enabled:
Yes with 1000000 runs

Other Settings:
default evmVersion
File 1 of 13 : Solos.sol
// SPDX-License-Identifier: AGPL-3.0-only

pragma solidity 0.7.5;
pragma abicoder v2;

import "@openzeppelin/contracts/math/SafeMath.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/ReentrancyGuard.sol";
import "../presets/OwnablePausable.sol";
import "../interfaces/IDepositContract.sol";
import "../interfaces/IValidators.sol";
import "../interfaces/ISolos.sol";

/**
 * @title Solos
 *
 * @dev Users can create standalone validators with their own withdrawal key using this contract.
 * The validator can be registered as soon as deposit is added.
 */
contract Solos is ISolos, ReentrancyGuard, OwnablePausable {
    using Address for address payable;
    using SafeMath for uint256;

    // @dev Validator deposit amount.
    uint256 public constant VALIDATOR_DEPOSIT = 32 ether;

    // @dev Maps ID of the solo to its information.
    mapping(bytes32 => Solo) public override solos;

    // @dev Address of the ETH2 Deposit Contract (deployed by Ethereum).
    IDepositContract public override validatorRegistration;

    // @dev Solo validator price per month.
    uint256 public override validatorPrice;

    // @dev Solo validator deposit cancel lock duration.
    uint256 public override cancelLockDuration;

    // @dev Address of the Validators contract.
    IValidators private validators;

    /**
    * @dev Constructor for initializing the Solos contract.
    * @param _admin - address of the contract admin.
    * @param _validatorRegistration - address of the VRC (deployed by Ethereum).
    * @param _validators - address of the Validators contract.
    * @param _validatorPrice - validator price.
    * @param _cancelLockDuration - cancel lock duration in seconds.
    */
    constructor(
        address _admin,
        address _validatorRegistration,
        address _validators,
        uint256 _validatorPrice,
        uint256 _cancelLockDuration
    )
        OwnablePausable(_admin)
    {
        validatorRegistration = IDepositContract(_validatorRegistration);
        validators = IValidators(_validators);

        // set validator price
        validatorPrice = _validatorPrice;
        emit ValidatorPriceUpdated(_validatorPrice);

        // set cancel lock duration
        cancelLockDuration = _cancelLockDuration;
        emit CancelLockDurationUpdated(_cancelLockDuration);
    }

    /**
     * @dev See {ISolos-addDeposit}.
     */
    function addDeposit(bytes32 _withdrawalCredentials) external payable override whenNotPaused {
        require(_withdrawalCredentials != "" && _withdrawalCredentials[0] == 0x00, "Solos: invalid credentials");
        require(msg.value > 0 && msg.value.mod(VALIDATOR_DEPOSIT) == 0, "Solos: invalid deposit amount");

        bytes32 soloId = keccak256(abi.encodePacked(address(this), msg.sender, _withdrawalCredentials));
        Solo storage solo = solos[soloId];

        // update solo data
        solo.amount = solo.amount.add(msg.value);
        if (solo.withdrawalCredentials == "") {
            solo.withdrawalCredentials = _withdrawalCredentials;
        }
        // the deposit can be canceled after lock has expired and it was not yet sent for staking
        // solhint-disable-next-line not-rely-on-time
        solo.releaseTime = block.timestamp.add(cancelLockDuration);

        // emit event
        emit DepositAdded(soloId, msg.sender, msg.value, _withdrawalCredentials);
    }

    /**
     * @dev See {ISolos-cancelDeposit}.
     */
    function cancelDeposit(bytes32 _withdrawalCredentials, uint256 _amount) external override nonReentrant {
        // update balance
        bytes32 soloId = keccak256(abi.encodePacked(address(this), msg.sender, _withdrawalCredentials));
        Solo storage solo = solos[soloId];

        // solhint-disable-next-line not-rely-on-time
        require(block.timestamp >= solo.releaseTime, "Solos: too early cancel");

        uint256 newAmount = solo.amount.sub(_amount, "Solos: insufficient balance");
        require(newAmount.mod(VALIDATOR_DEPOSIT) == 0, "Solos: invalid cancel amount");

        // emit event
        emit DepositCanceled(soloId, msg.sender, _amount, solo.withdrawalCredentials);

        if (newAmount > 0) {
            solo.amount = newAmount;
            // solhint-disable-next-line not-rely-on-time
            solo.releaseTime = block.timestamp.add(cancelLockDuration);
        } else {
            delete solos[soloId];
        }

        // transfer canceled amount to the recipient
        msg.sender.sendValue(_amount);
    }

    /**
     * @dev See {ISolos-setValidatorPrice}.
     */
    function setValidatorPrice(uint256 _validatorPrice) external override onlyAdmin {
        validatorPrice = _validatorPrice;
        emit ValidatorPriceUpdated(_validatorPrice);
    }

    /**
     * @dev See {ISolos-setCancelLockDuration}.
     */
    function setCancelLockDuration(uint256 _cancelLockDuration) external override onlyAdmin {
        cancelLockDuration = _cancelLockDuration;
        emit CancelLockDurationUpdated(_cancelLockDuration);
    }

    /**
     * @dev See {ISolos-registerValidator}.
     */
    function registerValidator(Validator calldata _validator) external override whenNotPaused {
        require(validators.isOperator(msg.sender), "Solos: access denied");

        // update solo balance
        Solo storage solo = solos[_validator.soloId];
        solo.amount = solo.amount.sub(VALIDATOR_DEPOSIT, "Solos: insufficient balance");

        // register validator
        validators.register(keccak256(abi.encodePacked(_validator.publicKey)));
        emit ValidatorRegistered(_validator.soloId, _validator.publicKey, validatorPrice, msg.sender);

        validatorRegistration.deposit{value : VALIDATOR_DEPOSIT}(
            _validator.publicKey,
            abi.encodePacked(solo.withdrawalCredentials),
            _validator.signature,
            _validator.depositDataRoot
        );
    }
}

File 2 of 13 : SafeMath.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        uint256 c = a + b;
        require(c >= a, "SafeMath: addition overflow");

        return c;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return sub(a, b, "SafeMath: subtraction overflow");
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b <= a, errorMessage);
        uint256 c = a - b;

        return c;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
        // benefit is lost if 'b' is also tested.
        // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
        if (a == 0) {
            return 0;
        }

        uint256 c = a * b;
        require(c / a == b, "SafeMath: multiplication overflow");

        return c;
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return div(a, b, "SafeMath: division by zero");
    }

    /**
     * @dev Returns the integer division of two unsigned integers. Reverts with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b > 0, errorMessage);
        uint256 c = a / b;
        // assert(a == b * c + a % b); // There is no case in which this doesn't hold

        return c;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return mod(a, b, "SafeMath: modulo by zero");
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * Reverts with custom message when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
        require(b != 0, errorMessage);
        return a % b;
    }
}

File 3 of 13 : 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);
    }

    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 4 of 13 : ReentrancyGuard.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor () internal {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and make it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}

File 5 of 13 : OwnablePausable.sol
// SPDX-License-Identifier: AGPL-3.0-only

pragma solidity 0.7.5;

import "@openzeppelin/contracts/access/AccessControl.sol";
import "@openzeppelin/contracts/utils/Pausable.sol";
import "../interfaces/IOwnablePausable.sol";

/**
 * @title OwnablePausable
 *
 * @dev Bundles Access Control and Pausable contracts in one.
 *
 */
abstract contract OwnablePausable is IOwnablePausable, Pausable, AccessControl {
    bytes32 public constant PAUSER_ROLE = keccak256("PAUSER_ROLE");

    /**
    * @dev Modifier for checking whether the caller is an admin.
    */
    modifier onlyAdmin() {
        require(hasRole(DEFAULT_ADMIN_ROLE, msg.sender), "OwnablePausable: access denied");
        _;
    }

    /**
    * @dev Modifier for checking whether the caller is a pauser.
    */
    modifier onlyPauser() {
        require(hasRole(PAUSER_ROLE, msg.sender), "OwnablePausable: access denied");
        _;
    }

    /**
     * @dev Grants `DEFAULT_ADMIN_ROLE`, `PAUSER_ROLE` to the admin account.
     */
    constructor(address _admin) {
        _setupRole(DEFAULT_ADMIN_ROLE, _admin);
        _setupRole(PAUSER_ROLE, _admin);
    }

    /**
     * @dev See {IOwnablePausable-isAdmin}.
     */
    function isAdmin(address _account) external override view returns (bool) {
        return hasRole(DEFAULT_ADMIN_ROLE, _account);
    }

    /**
     * @dev See {IOwnablePausable-addAdmin}.
     */
    function addAdmin(address _account) external override {
        grantRole(DEFAULT_ADMIN_ROLE, _account);
    }

    /**
     * @dev See {IOwnablePausable-removeAdmin}.
     */
    function removeAdmin(address _account) external override {
        revokeRole(DEFAULT_ADMIN_ROLE, _account);
    }

    /**
     * @dev See {IOwnablePausable-isPauser}.
     */
    function isPauser(address _account) external override view returns (bool) {
        return hasRole(PAUSER_ROLE, _account);
    }

    /**
     * @dev See {IOwnablePausable-addPauser}.
     */
    function addPauser(address _account) external override {
        grantRole(PAUSER_ROLE, _account);
    }

    /**
     * @dev See {IOwnablePausable-removePauser}.
     */
    function removePauser(address _account) external override {
        revokeRole(PAUSER_ROLE, _account);
    }

    /**
     * @dev See {IOwnablePausable-pause}.
     */
    function pause() external override onlyPauser {
        _pause();
    }

    /**
     * @dev See {IOwnablePausable-unpause}.
     */
    function unpause() external override onlyPauser {
        _unpause();
    }
}

File 6 of 13 : IDepositContract.sol
// SPDX-License-Identifier: AGPL-3.0-only

pragma solidity 0.7.5;

// This interface is designed to be compatible with the Vyper version.
/// @notice This is the Ethereum 2.0 deposit contract interface.
/// For more information see the Phase 0 specification under https://github.com/ethereum/eth2.0-specs
/// https://github.com/ethereum/eth2.0-specs/blob/dev/solidity_deposit_contract/deposit_contract.sol
interface IDepositContract {
    /// @notice A processed deposit event.
    event DepositEvent(
        bytes pubkey,
        bytes withdrawal_credentials,
        bytes amount,
        bytes signature,
        bytes index
    );

    /// @notice Submit a Phase 0 DepositData object.
    /// @param pubkey A BLS12-381 public key.
    /// @param withdrawal_credentials Commitment to a public key for withdrawals.
    /// @param signature A BLS12-381 signature.
    /// @param deposit_data_root The SHA-256 hash of the SSZ-encoded DepositData object.
    /// Used as a protection against malformed input.
    function deposit(
        bytes calldata pubkey,
        bytes calldata withdrawal_credentials,
        bytes calldata signature,
        bytes32 deposit_data_root
    ) external payable;

    /// @notice Query the current deposit root hash.
    /// @return The deposit root hash.
    function get_deposit_root() external view returns (bytes32);

    /// @notice Query the current deposit count.
    /// @return The deposit count encoded as a little endian 64-bit number.
    function get_deposit_count() external view returns (bytes memory);
}

File 7 of 13 : IValidators.sol
// SPDX-License-Identifier: AGPL-3.0-only

pragma solidity 0.7.5;

/**
 * @dev Interface of the Validators contract.
 */
interface IValidators {
    /**
    * @dev Constructor for initializing the Validators contract.
    * @param _admin - address of the contract admin.
    * @param _pool - address of the Pool contract.
    * @param _solos - address of the Solos contract.
    */
    function initialize(address _admin, address _pool, address _solos) external;

    /**
    * @dev Function for checking whether an account has an operator role.
    * @param _account - account to check.
    */
    function isOperator(address _account) external view returns (bool);

    /**
    * @dev Function for adding an operator role to the account.
    * Can only be called by an account with an admin role.
    * @param _account - account to assign an operator role to.
    */
    function addOperator(address _account) external;

    /**
    * @dev Function for removing an operator role from the account.
    * Can only be called by an account with an admin role.
    * @param _account - account to remove an operator role from.
    */
    function removeOperator(address _account) external;

    /**
    * @dev Function for checking whether public key was already used.
    * @param _publicKey - hash of public key to check.
    */
    function publicKeys(bytes32 _publicKey) external view returns (bool);

    /**
    * @dev Function for registering validators. Can only be called by collectors.
    * @param _validatorId - ID of the validator.
    */
    function register(bytes32 _validatorId) external;
}

File 8 of 13 : ISolos.sol
// SPDX-License-Identifier: AGPL-3.0-only

pragma solidity 0.7.5;
pragma abicoder v2;

import "./IDepositContract.sol";

/**
 * @dev Interface of the Solos contract.
 */
interface ISolos {
    /**
    * @dev Structure for storing information about the solo deposits.
    * @param amount - amount deposited.
    * @param withdrawalCredentials - withdrawal credentials of the validators.
    * @param releaseTime - the time when the deposit amount can be canceled.
    */
    struct Solo {
        uint256 amount;
        bytes32 withdrawalCredentials;
        uint256 releaseTime;
    }

    /**
    * @dev Structure for passing information about new Validator.
    * @param publicKey - BLS public key of the validator, generated by the operator.
    * @param signature - BLS signature of the validator, generated by the operator.
    * @param depositDataRoot - hash tree root of the deposit data, generated by the operator.
    * @param soloId - ID of the solo to register validator for.
    */
    struct Validator {
        bytes publicKey;
        bytes signature;
        bytes32 depositDataRoot;
        bytes32 soloId;
    }

    /**
    * @dev Event for tracking added deposits.
    * @param soloId - ID of the solo.
    * @param sender - address of the deposit sender.
    * @param amount - amount added.
    * @param withdrawalCredentials - withdrawal credentials submitted by deposit owner.
    */
    event DepositAdded(
        bytes32 indexed soloId,
        address indexed sender,
        uint256 amount,
        bytes32 withdrawalCredentials
    );

    /**
    * @dev Event for tracking canceled deposits.
    * @param soloId - ID of the solo.
    * @param sender - address of the deposit sender.
    * @param amount - amount canceled.
    * @param withdrawalCredentials - withdrawal credentials submitted by deposit owner.
    */
    event DepositCanceled(
        bytes32 indexed soloId,
        address indexed sender,
        uint256 amount,
        bytes32 withdrawalCredentials
    );

    /**
    * @dev Event for tracking new cancel lock duration time.
    * @param cancelLockDuration - new cancel lock duration for solo deposits.
    */
    event CancelLockDurationUpdated(uint256 cancelLockDuration);

    /**
    * @dev Event for tracking solo validator price updates.
    * @param validatorPrice - new price for the solo validators.
    */
    event ValidatorPriceUpdated(uint256 validatorPrice);

    /**
    * @dev Event for tracking registered validators.
    * @param soloId - ID of the solo where the deposit was accumulated.
    * @param publicKey - validator public key.
    * @param price - validator monthly price.
    * @param operator - address of the validator operator.
    */
    event ValidatorRegistered(bytes32 indexed soloId, bytes publicKey, uint256 price, address operator);

    /**
    * @dev Function for getting solo's details.
    * @param _soloId - ID of the solo to retrieve data for.
    */
    function solos(bytes32 _soloId) external view returns (
        uint256 amount,
        bytes32 withdrawalCredentials,
        uint256 releaseTime
    );

    /**
    * @dev Function for retrieving the validator registration contract address.
    */
    function validatorRegistration() external view returns (IDepositContract);

    /**
    * @dev Function for getting solo validator price per month.
    */
    function validatorPrice() external view returns (uint256);

    /**
    * @dev Function for updating solo validator price.
    * @param _validatorPrice - new validator price.
    */
    function setValidatorPrice(uint256 _validatorPrice) external;

    /**
    * @dev Function for getting cancel lock duration in seconds.
    */
    function cancelLockDuration() external view returns (uint256);

    /**
    * @dev Function for updating cancel lock duration in seconds.
    * @param newCancelLockDuration - new cancel lock duration in seconds.
    */
    function setCancelLockDuration(uint256 newCancelLockDuration) external;

    /**
    * @dev Function for adding solo deposits.
    * The deposit amount must be divisible by the validator deposit amount.
    * @param _withdrawalCredentials - withdrawal credentials for performing validator withdrawal.
    */
    function addDeposit(bytes32 _withdrawalCredentials) external payable;

    /**
    * @dev Function for canceling solo deposits.
    * The deposit amount can only be canceled before it will be registered as a validator.
    * @param _withdrawalCredentials - withdrawal credentials of solo validators.
    * @param _amount - amount to cancel.
    */
    function cancelDeposit(bytes32 _withdrawalCredentials, uint256 _amount) external;

    /**
    * @dev Function for registering new solo validator.
    * @param _validator - validator to register.
    */
    function registerValidator(Validator calldata _validator) external;
}

File 9 of 13 : AccessControl.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "../utils/EnumerableSet.sol";
import "../utils/Address.sol";
import "../GSN/Context.sol";

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

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

    mapping (bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

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

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

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

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

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

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

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

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

        _grantRole(role, account);
    }

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

        _revokeRole(role, account);
    }

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

        _revokeRole(role, account);
    }

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

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

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

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

File 10 of 13 : Pausable.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

import "../GSN/Context.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor () internal {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!_paused, "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(_paused, "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

File 11 of 13 : IOwnablePausable.sol
// SPDX-License-Identifier: AGPL-3.0-only

pragma solidity 0.7.5;

/**
 * @dev Interface of the OwnablePausableUpgradeable and OwnablePausable contracts.
 */
interface IOwnablePausable {
    /**
    * @dev Function for checking whether an account has an admin role.
    * @param _account - account to check.
    */
    function isAdmin(address _account) external view returns (bool);

    /**
    * @dev Function for assigning an admin role to the account.
    * Can only be called by an account with an admin role.
    * @param _account - account to assign an admin role to.
    */
    function addAdmin(address _account) external;

    /**
    * @dev Function for removing an admin role from the account.
    * Can only be called by an account with an admin role.
    * @param _account - account to remove an admin role from.
    */
    function removeAdmin(address _account) external;

    /**
    * @dev Function for checking whether an account has a pauser role.
    * @param _account - account to check.
    */
    function isPauser(address _account) external view returns (bool);

    /**
    * @dev Function for adding a pauser role to the account.
    * Can only be called by an account with an admin role.
    * @param _account - account to assign a pauser role to.
    */
    function addPauser(address _account) external;

    /**
    * @dev Function for removing a pauser role from the account.
    * Can only be called by an account with an admin role.
    * @param _account - account to remove a pauser role from.
    */
    function removePauser(address _account) external;

    /**
    * @dev Function for pausing the contract.
    */
    function pause() external;

    /**
    * @dev Function for unpausing the contract.
    */
    function unpause() external;
}

File 12 of 13 : EnumerableSet.sol
// SPDX-License-Identifier: MIT

pragma solidity >=0.6.0 <0.8.0;

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

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

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

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

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

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

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

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

            bytes32 lastvalue = set._values[lastIndex];

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

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

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

            return true;
        } else {
            return false;
        }
    }

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

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

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

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

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

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

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

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

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

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

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

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

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

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

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


    // UintSet

    struct UintSet {
        Set _inner;
    }

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

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

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

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

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

File 13 of 13 : 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;
    }
}

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

Contract Security Audit

Contract ABI

API
[{"inputs":[{"internalType":"address","name":"_admin","type":"address"},{"internalType":"address","name":"_validatorRegistration","type":"address"},{"internalType":"address","name":"_validators","type":"address"},{"internalType":"uint256","name":"_validatorPrice","type":"uint256"},{"internalType":"uint256","name":"_cancelLockDuration","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"cancelLockDuration","type":"uint256"}],"name":"CancelLockDurationUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"soloId","type":"bytes32"},{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"withdrawalCredentials","type":"bytes32"}],"name":"DepositAdded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"soloId","type":"bytes32"},{"indexed":true,"internalType":"address","name":"sender","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount","type":"uint256"},{"indexed":false,"internalType":"bytes32","name":"withdrawalCredentials","type":"bytes32"}],"name":"DepositCanceled","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Paused","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"previousAdminRole","type":"bytes32"},{"indexed":true,"internalType":"bytes32","name":"newAdminRole","type":"bytes32"}],"name":"RoleAdminChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleGranted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"role","type":"bytes32"},{"indexed":true,"internalType":"address","name":"account","type":"address"},{"indexed":true,"internalType":"address","name":"sender","type":"address"}],"name":"RoleRevoked","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"address","name":"account","type":"address"}],"name":"Unpaused","type":"event"},{"anonymous":false,"inputs":[{"indexed":false,"internalType":"uint256","name":"validatorPrice","type":"uint256"}],"name":"ValidatorPriceUpdated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"soloId","type":"bytes32"},{"indexed":false,"internalType":"bytes","name":"publicKey","type":"bytes"},{"indexed":false,"internalType":"uint256","name":"price","type":"uint256"},{"indexed":false,"internalType":"address","name":"operator","type":"address"}],"name":"ValidatorRegistered","type":"event"},{"inputs":[],"name":"DEFAULT_ADMIN_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PAUSER_ROLE","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"VALIDATOR_DEPOSIT","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"addAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_withdrawalCredentials","type":"bytes32"}],"name":"addDeposit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"addPauser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"_withdrawalCredentials","type":"bytes32"},{"internalType":"uint256","name":"_amount","type":"uint256"}],"name":"cancelDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"cancelLockDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleAdmin","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"getRoleMember","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"}],"name":"getRoleMemberCount","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"grantRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"hasRole","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"isAdmin","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"isPauser","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"pause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"paused","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"bytes","name":"publicKey","type":"bytes"},{"internalType":"bytes","name":"signature","type":"bytes"},{"internalType":"bytes32","name":"depositDataRoot","type":"bytes32"},{"internalType":"bytes32","name":"soloId","type":"bytes32"}],"internalType":"struct ISolos.Validator","name":"_validator","type":"tuple"}],"name":"registerValidator","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"removeAdmin","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"_account","type":"address"}],"name":"removePauser","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"renounceRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"role","type":"bytes32"},{"internalType":"address","name":"account","type":"address"}],"name":"revokeRole","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_cancelLockDuration","type":"uint256"}],"name":"setCancelLockDuration","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"_validatorPrice","type":"uint256"}],"name":"setValidatorPrice","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"solos","outputs":[{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"bytes32","name":"withdrawalCredentials","type":"bytes32"},{"internalType":"uint256","name":"releaseTime","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"unpause","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"validatorPrice","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"validatorRegistration","outputs":[{"internalType":"contract IDepositContract","name":"","type":"address"}],"stateMutability":"view","type":"function"}]

60806040523480156200001157600080fd5b50604051620023023803806200230283398101604081905262000034916200026b565b60016000818155815460ff1916909155859062000052908262000138565b6200007e7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a8262000138565b50600480546001600160a01b038087166001600160a01b031992831617909255600780549286169290911691909117905560058290556040517f0159d684f691e5aab10b9f2be79f6db0c86c939728b8fd0e86f119b223ff60c690620000e6908490620002c7565b60405180910390a160068190556040517f266684a856a3a859b798b99068beb0d72ec6c3159c7eeb3d962f751d44ee8ae49062000125908390620002c7565b60405180910390a15050505050620002d0565b62000144828262000148565b5050565b60008281526002602090815260409091206200016f918390620012a4620001c3821b17901c565b1562000144576200017f620001e3565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000620001da836001600160a01b038416620001e7565b90505b92915050565b3390565b6000620001f5838362000236565b6200022d57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155620001dd565b506000620001dd565b60009081526001919091016020526040902054151590565b80516001600160a01b03811681146200026657600080fd5b919050565b600080600080600060a0868803121562000283578081fd5b6200028e866200024e565b94506200029e602087016200024e565b9350620002ae604087016200024e565b6060870151608090970151959894975095949392505050565b90815260200190565b61202280620002e06000396000f3fe6080604052600436106101b75760003560e01c806370480275116100ec578063b19343ac1161008a578063d547741f11610064578063d547741f146104a3578063e63ab1e9146104c3578063f44e383f146104d8578063f89e13a3146104ed576101b7565b8063b19343ac14610443578063becabbe314610463578063ca15c87314610483576101b7565b80638456cb59116100c65780638456cb59146103cc5780639010d07c146103e157806391d148541461040e578063a217fddf1461042e576101b7565b8063704802751461035d5780637bb73bdb1461037d57806382dc1ec4146103ac576101b7565b806336568abe11610159578063441d92cc11610133578063441d92cc146102f357806346fbf68e146103085780635c975abb146103285780636b2c0f551461033d576101b7565b806336568abe1461029e5780633bb39f2e146102be5780633f4ba83a146102de576101b7565b806321527f581161019557806321527f581461021c578063248a9ca31461023157806324d7806c146102515780632f2ff15d1461027e576101b7565b806308975904146101bc5780631785f53c146101e75780631c32d98214610209575b600080fd5b3480156101c857600080fd5b506101d161050d565b6040516101de9190611c35565b60405180910390f35b3480156101f357600080fd5b50610207610202366004611ad6565b610513565b005b610207610217366004611b10565b610521565b34801561022857600080fd5b506101d161072f565b34801561023d57600080fd5b506101d161024c366004611b10565b610735565b34801561025d57600080fd5b5061027161026c366004611ad6565b61074e565b6040516101de9190611c6f565b34801561028a57600080fd5b50610207610299366004611b28565b610760565b3480156102aa57600080fd5b506102076102b9366004611b28565b6107e2565b3480156102ca57600080fd5b506102076102d9366004611b53565b610877565b3480156102ea57600080fd5b50610207610ac3565b3480156102ff57600080fd5b506101d1610b62565b34801561031457600080fd5b50610271610323366004611ad6565b610b6f565b34801561033457600080fd5b50610271610b9b565b34801561034957600080fd5b50610207610358366004611ad6565b610ba4565b34801561036957600080fd5b50610207610378366004611ad6565b610bce565b34801561038957600080fd5b5061039d610398366004611b10565b610bd9565b6040516101de93929190611e82565b3480156103b857600080fd5b506102076103c7366004611ad6565b610bfa565b3480156103d857600080fd5b50610207610c24565b3480156103ed57600080fd5b506104016103fc366004611b53565b610cc1565b6040516101de9190611c4e565b34801561041a57600080fd5b50610271610429366004611b28565b610ce0565b34801561043a57600080fd5b506101d1610cf8565b34801561044f57600080fd5b5061020761045e366004611b10565b610cfd565b34801561046f57600080fd5b5061020761047e366004611b74565b610db3565b34801561048f57600080fd5b506101d161049e366004611b10565b61112e565b3480156104af57600080fd5b506102076104be366004611b28565b611145565b3480156104cf57600080fd5b506101d16111b9565b3480156104e457600080fd5b506104016111dd565b3480156104f957600080fd5b50610207610508366004611b10565b6111f9565b60055481565b61051e600082611145565b50565b60015460ff161561059357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b80158015906105c857508060001a60f81b7fff0000000000000000000000000000000000000000000000000000000000000016155b610607576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105fe90611e06565b60405180910390fd5b6000341180156106275750610625346801bc16d674ec8000006112c6565b155b61065d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105fe90611d61565b600030338360405160200161067493929190611bf4565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815291815281516020928301206000818152600390935291208054919250906106c69034611308565b815560018101546106d957600181018390555b6006546106e7904290611308565b6002820155604051339083907f96c0155493d4d9670b15a36481476e7d6ef444735e05e4d243dc975f11f4474a906107229034908890611e74565b60405180910390a3505050565b60065481565b600081815260026020819052604090912001545b919050565b600061075a8183610ce0565b92915050565b6000828152600260208190526040909120015461077f9061042961137c565b6107d4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180611f25602f913960400191505060405180910390fd5b6107de8282611380565b5050565b6107ea61137c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461086d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180611fbe602f913960400191505060405180910390fd5b6107de8282611403565b600260005414156108e957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600090815560405161090590309033908690602001611bf4565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529181528151602092830120600081815260039093529120600281015491925090421015610989576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105fe90611dcf565b60408051808201909152601b81527f536f6c6f733a20696e73756666696369656e742062616c616e63650000000000602082015281546000916109ce91908690611486565b90506109e3816801bc16d674ec8000006112c6565b15610a1a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105fe90611e3d565b3373ffffffffffffffffffffffffffffffffffffffff16837f9114e92c65bea157e4c35beb392265d0c400ff6887dd20f6a367ea06359c2611868560010154604051610a67929190611e74565b60405180910390a38015610a9057808255600654610a86904290611308565b6002830155610aad565b600083815260036020526040812081815560018101829055600201555b610ab73385611537565b50506001600055505050565b610aed7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a33610ce0565b610b5857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f4f776e61626c655061757361626c653a206163636573732064656e6965640000604482015290519081900360640190fd5b610b60611662565b565b6801bc16d674ec80000081565b600061075a7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a83610ce0565b60015460ff1690565b61051e7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a82611145565b61051e600082610760565b60036020526000908152604090208054600182015460029092015490919083565b61051e7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a82610760565b610c4e7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a33610ce0565b610cb957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f4f776e61626c655061757361626c653a206163636573732064656e6965640000604482015290519081900360640190fd5b610b6061174e565b6000828152600260205260408120610cd99083611813565b9392505050565b6000828152600260205260408120610cd9908361181f565b600081565b610d08600033610ce0565b610d7357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f4f776e61626c655061757361626c653a206163636573732064656e6965640000604482015290519081900360640190fd5b60068190556040517f266684a856a3a859b798b99068beb0d72ec6c3159c7eeb3d962f751d44ee8ae490610da8908390611c35565b60405180910390a150565b60015460ff1615610e2557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b6007546040517f6d70f7ae00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff90911690636d70f7ae90610e7b903390600401611c4e565b60206040518083038186803b158015610e9357600080fd5b505afa158015610ea7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ecb9190611af0565b610f01576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105fe90611d98565b60608101356000908152600360209081526040918290208251808401909352601b83527f536f6c6f733a20696e73756666696369656e742062616c616e636500000000009183019190915280549091610f6591906801bc16d674ec80000090611486565b815560075473ffffffffffffffffffffffffffffffffffffffff1663e1fa8e84610f8f8480611e98565b604051602001610fa0929190611c3e565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b8152600401610fd29190611c35565b600060405180830381600087803b158015610fec57600080fd5b505af1158015611000573d6000803e3d6000fd5b5050505060608201357f8a2676b782a7cf403677a95c1d8a31760667d6eee71f2e2b1647980576490aae6110348480611e98565b600554336040516110489493929190611d20565b60405180910390a260045473ffffffffffffffffffffffffffffffffffffffff1663228951186801bc16d674ec8000006110828580611e98565b85600101546040516020016110979190611c35565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526110d26020890189611e98565b89604001356040518863ffffffff1660e01b81526004016110f896959493929190611c7a565b6000604051808303818588803b15801561111157600080fd5b505af1158015611125573d6000803e3d6000fd5b50505050505050565b600081815260026020526040812061075a90611841565b600082815260026020819052604090912001546111649061042961137c565b61086d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526030815260200180611f8e6030913960400191505060405180910390fd5b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b60045473ffffffffffffffffffffffffffffffffffffffff1681565b611204600033610ce0565b61126f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f4f776e61626c655061757361626c653a206163636573732064656e6965640000604482015290519081900360640190fd5b60058190556040517f0159d684f691e5aab10b9f2be79f6db0c86c939728b8fd0e86f119b223ff60c690610da8908390611c35565b6000610cd98373ffffffffffffffffffffffffffffffffffffffff841661184c565b6000610cd983836040518060400160405280601881526020017f536166654d6174683a206d6f64756c6f206279207a65726f0000000000000000815250611896565b600082820183811015610cd957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b3390565b600082815260026020526040902061139890826112a4565b156107de576113a561137c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600082815260026020526040902061141b9082611912565b156107de5761142861137c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b6000818484111561152f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156114f45781810151838201526020016114dc565b50505050905090810190601f1680156115215780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b804710156115a657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b60405160009073ffffffffffffffffffffffffffffffffffffffff84169083908381818185875af1925050503d80600081146115fe576040519150601f19603f3d011682016040523d82523d6000602084013e611603565b606091505b505090508061165d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603a815260200180611f54603a913960400191505060405180910390fd5b505050565b60015460ff166116d357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604482015290519081900360640190fd5b600180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61172461137c565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190a1565b60015460ff16156117c057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b600180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016811790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861172461137c565b6000610cd98383611934565b6000610cd98373ffffffffffffffffffffffffffffffffffffffff84166119b2565b600061075a826119ca565b600061185883836119b2565b61188e5750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561075a565b50600061075a565b600081836118ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526020600482018181528351602484015283519092839260449091019190850190808383600083156114f45781810151838201526020016114dc565b5082848161190957fe5b06949350505050565b6000610cd98373ffffffffffffffffffffffffffffffffffffffff84166119ce565b81546000908210611990576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180611f036022913960400191505060405180910390fd5b82600001828154811061199f57fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b60008181526001830160205260408120548015611aa85783547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8083019190810190600090879083908110611a1f57fe5b9060005260206000200154905080876000018481548110611a3c57fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080611a6c57fe5b6001900381819060005260206000200160009055905586600101600087815260200190815260200160002060009055600194505050505061075a565b600091505061075a565b803573ffffffffffffffffffffffffffffffffffffffff8116811461074957600080fd5b600060208284031215611ae7578081fd5b610cd982611ab2565b600060208284031215611b01578081fd5b81518015158114610cd9578182fd5b600060208284031215611b21578081fd5b5035919050565b60008060408385031215611b3a578081fd5b82359150611b4a60208401611ab2565b90509250929050565b60008060408385031215611b65578182fd5b50508035926020909101359150565b600060208284031215611b85578081fd5b813567ffffffffffffffff811115611b9b578182fd5b820160808185031215610cd9578182fd5b600082845282826020860137806020848601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f85011685010190509392505050565b7fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606094851b811682529290931b9091166014830152602882015260480190565b90815260200190565b6000828483379101908152919050565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b901515815260200190565b600060808252611c8e60808301888a611bac565b6020838203818501528751808352835b81811015611cb9578981018301518482018401528201611c9e565b81811115611cc957848383860101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091018381038201604085015290611d0b8183018789611bac565b92505050826060830152979650505050505050565b600060608252611d34606083018688611bac565b905083602083015273ffffffffffffffffffffffffffffffffffffffff8316604083015295945050505050565b6020808252601d908201527f536f6c6f733a20696e76616c6964206465706f73697420616d6f756e74000000604082015260600190565b60208082526014908201527f536f6c6f733a206163636573732064656e696564000000000000000000000000604082015260600190565b60208082526017908201527f536f6c6f733a20746f6f206561726c792063616e63656c000000000000000000604082015260600190565b6020808252601a908201527f536f6c6f733a20696e76616c69642063726564656e7469616c73000000000000604082015260600190565b6020808252601c908201527f536f6c6f733a20696e76616c69642063616e63656c20616d6f756e7400000000604082015260600190565b918252602082015260400190565b9283526020830191909152604082015260600190565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112611ecc578283fd5b83018035915067ffffffffffffffff821115611ee6578283fd5b602001915036819003821315611efb57600080fd5b925092905056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e74416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d61792068617665207265766572746564416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b65416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a2646970667358221220eeb538cab1f1a835fbdaf61fce88e46f639fdd6093fee7631dab9c1c082c0b5e64736f6c63430007050033000000000000000000000000144a98cb1cdbb23610501fe6108858d9b7d2493400000000000000000000000000000000219ab540356cbb839cbe05303d7705fa000000000000000000000000aac73d4a26ae6906aa115118b7840b1f19fcd3a50000000000000000000000000000000000000000000000008ac7230489e800000000000000000000000000000000000000000000000000000000000000015180

Deployed Bytecode

0x6080604052600436106101b75760003560e01c806370480275116100ec578063b19343ac1161008a578063d547741f11610064578063d547741f146104a3578063e63ab1e9146104c3578063f44e383f146104d8578063f89e13a3146104ed576101b7565b8063b19343ac14610443578063becabbe314610463578063ca15c87314610483576101b7565b80638456cb59116100c65780638456cb59146103cc5780639010d07c146103e157806391d148541461040e578063a217fddf1461042e576101b7565b8063704802751461035d5780637bb73bdb1461037d57806382dc1ec4146103ac576101b7565b806336568abe11610159578063441d92cc11610133578063441d92cc146102f357806346fbf68e146103085780635c975abb146103285780636b2c0f551461033d576101b7565b806336568abe1461029e5780633bb39f2e146102be5780633f4ba83a146102de576101b7565b806321527f581161019557806321527f581461021c578063248a9ca31461023157806324d7806c146102515780632f2ff15d1461027e576101b7565b806308975904146101bc5780631785f53c146101e75780631c32d98214610209575b600080fd5b3480156101c857600080fd5b506101d161050d565b6040516101de9190611c35565b60405180910390f35b3480156101f357600080fd5b50610207610202366004611ad6565b610513565b005b610207610217366004611b10565b610521565b34801561022857600080fd5b506101d161072f565b34801561023d57600080fd5b506101d161024c366004611b10565b610735565b34801561025d57600080fd5b5061027161026c366004611ad6565b61074e565b6040516101de9190611c6f565b34801561028a57600080fd5b50610207610299366004611b28565b610760565b3480156102aa57600080fd5b506102076102b9366004611b28565b6107e2565b3480156102ca57600080fd5b506102076102d9366004611b53565b610877565b3480156102ea57600080fd5b50610207610ac3565b3480156102ff57600080fd5b506101d1610b62565b34801561031457600080fd5b50610271610323366004611ad6565b610b6f565b34801561033457600080fd5b50610271610b9b565b34801561034957600080fd5b50610207610358366004611ad6565b610ba4565b34801561036957600080fd5b50610207610378366004611ad6565b610bce565b34801561038957600080fd5b5061039d610398366004611b10565b610bd9565b6040516101de93929190611e82565b3480156103b857600080fd5b506102076103c7366004611ad6565b610bfa565b3480156103d857600080fd5b50610207610c24565b3480156103ed57600080fd5b506104016103fc366004611b53565b610cc1565b6040516101de9190611c4e565b34801561041a57600080fd5b50610271610429366004611b28565b610ce0565b34801561043a57600080fd5b506101d1610cf8565b34801561044f57600080fd5b5061020761045e366004611b10565b610cfd565b34801561046f57600080fd5b5061020761047e366004611b74565b610db3565b34801561048f57600080fd5b506101d161049e366004611b10565b61112e565b3480156104af57600080fd5b506102076104be366004611b28565b611145565b3480156104cf57600080fd5b506101d16111b9565b3480156104e457600080fd5b506104016111dd565b3480156104f957600080fd5b50610207610508366004611b10565b6111f9565b60055481565b61051e600082611145565b50565b60015460ff161561059357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b80158015906105c857508060001a60f81b7fff0000000000000000000000000000000000000000000000000000000000000016155b610607576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105fe90611e06565b60405180910390fd5b6000341180156106275750610625346801bc16d674ec8000006112c6565b155b61065d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105fe90611d61565b600030338360405160200161067493929190611bf4565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe081840301815291815281516020928301206000818152600390935291208054919250906106c69034611308565b815560018101546106d957600181018390555b6006546106e7904290611308565b6002820155604051339083907f96c0155493d4d9670b15a36481476e7d6ef444735e05e4d243dc975f11f4474a906107229034908890611e74565b60405180910390a3505050565b60065481565b600081815260026020819052604090912001545b919050565b600061075a8183610ce0565b92915050565b6000828152600260208190526040909120015461077f9061042961137c565b6107d4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180611f25602f913960400191505060405180910390fd5b6107de8282611380565b5050565b6107ea61137c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461086d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180611fbe602f913960400191505060405180910390fd5b6107de8282611403565b600260005414156108e957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015290519081900360640190fd5b6002600090815560405161090590309033908690602001611bf4565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529181528151602092830120600081815260039093529120600281015491925090421015610989576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105fe90611dcf565b60408051808201909152601b81527f536f6c6f733a20696e73756666696369656e742062616c616e63650000000000602082015281546000916109ce91908690611486565b90506109e3816801bc16d674ec8000006112c6565b15610a1a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105fe90611e3d565b3373ffffffffffffffffffffffffffffffffffffffff16837f9114e92c65bea157e4c35beb392265d0c400ff6887dd20f6a367ea06359c2611868560010154604051610a67929190611e74565b60405180910390a38015610a9057808255600654610a86904290611308565b6002830155610aad565b600083815260036020526040812081815560018101829055600201555b610ab73385611537565b50506001600055505050565b610aed7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a33610ce0565b610b5857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f4f776e61626c655061757361626c653a206163636573732064656e6965640000604482015290519081900360640190fd5b610b60611662565b565b6801bc16d674ec80000081565b600061075a7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a83610ce0565b60015460ff1690565b61051e7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a82611145565b61051e600082610760565b60036020526000908152604090208054600182015460029092015490919083565b61051e7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a82610760565b610c4e7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a33610ce0565b610cb957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f4f776e61626c655061757361626c653a206163636573732064656e6965640000604482015290519081900360640190fd5b610b6061174e565b6000828152600260205260408120610cd99083611813565b9392505050565b6000828152600260205260408120610cd9908361181f565b600081565b610d08600033610ce0565b610d7357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f4f776e61626c655061757361626c653a206163636573732064656e6965640000604482015290519081900360640190fd5b60068190556040517f266684a856a3a859b798b99068beb0d72ec6c3159c7eeb3d962f751d44ee8ae490610da8908390611c35565b60405180910390a150565b60015460ff1615610e2557604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b6007546040517f6d70f7ae00000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff90911690636d70f7ae90610e7b903390600401611c4e565b60206040518083038186803b158015610e9357600080fd5b505afa158015610ea7573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ecb9190611af0565b610f01576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016105fe90611d98565b60608101356000908152600360209081526040918290208251808401909352601b83527f536f6c6f733a20696e73756666696369656e742062616c616e636500000000009183019190915280549091610f6591906801bc16d674ec80000090611486565b815560075473ffffffffffffffffffffffffffffffffffffffff1663e1fa8e84610f8f8480611e98565b604051602001610fa0929190611c3e565b604051602081830303815290604052805190602001206040518263ffffffff1660e01b8152600401610fd29190611c35565b600060405180830381600087803b158015610fec57600080fd5b505af1158015611000573d6000803e3d6000fd5b5050505060608201357f8a2676b782a7cf403677a95c1d8a31760667d6eee71f2e2b1647980576490aae6110348480611e98565b600554336040516110489493929190611d20565b60405180910390a260045473ffffffffffffffffffffffffffffffffffffffff1663228951186801bc16d674ec8000006110828580611e98565b85600101546040516020016110979190611c35565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe08184030181529190526110d26020890189611e98565b89604001356040518863ffffffff1660e01b81526004016110f896959493929190611c7a565b6000604051808303818588803b15801561111157600080fd5b505af1158015611125573d6000803e3d6000fd5b50505050505050565b600081815260026020526040812061075a90611841565b600082815260026020819052604090912001546111649061042961137c565b61086d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526030815260200180611f8e6030913960400191505060405180910390fd5b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b60045473ffffffffffffffffffffffffffffffffffffffff1681565b611204600033610ce0565b61126f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601e60248201527f4f776e61626c655061757361626c653a206163636573732064656e6965640000604482015290519081900360640190fd5b60058190556040517f0159d684f691e5aab10b9f2be79f6db0c86c939728b8fd0e86f119b223ff60c690610da8908390611c35565b6000610cd98373ffffffffffffffffffffffffffffffffffffffff841661184c565b6000610cd983836040518060400160405280601881526020017f536166654d6174683a206d6f64756c6f206279207a65726f0000000000000000815250611896565b600082820183811015610cd957604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601b60248201527f536166654d6174683a206164646974696f6e206f766572666c6f770000000000604482015290519081900360640190fd5b3390565b600082815260026020526040902061139890826112a4565b156107de576113a561137c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b600082815260026020526040902061141b9082611912565b156107de5761142861137c565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45050565b6000818484111561152f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825283818151815260200191508051906020019080838360005b838110156114f45781810151838201526020016114dc565b50505050905090810190601f1680156115215780820380516001836020036101000a031916815260200191505b509250505060405180910390fd5b505050900390565b804710156115a657604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015290519081900360640190fd5b60405160009073ffffffffffffffffffffffffffffffffffffffff84169083908381818185875af1925050503d80600081146115fe576040519150601f19603f3d011682016040523d82523d6000602084013e611603565b606091505b505090508061165d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252603a815260200180611f54603a913960400191505060405180910390fd5b505050565b60015460ff166116d357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f5061757361626c653a206e6f7420706175736564000000000000000000000000604482015290519081900360640190fd5b600180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa61172461137c565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190a1565b60015460ff16156117c057604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601060248201527f5061757361626c653a2070617573656400000000000000000000000000000000604482015290519081900360640190fd5b600180547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016811790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861172461137c565b6000610cd98383611934565b6000610cd98373ffffffffffffffffffffffffffffffffffffffff84166119b2565b600061075a826119ca565b600061185883836119b2565b61188e5750815460018181018455600084815260208082209093018490558454848252828601909352604090209190915561075a565b50600061075a565b600081836118ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526020600482018181528351602484015283519092839260449091019190850190808383600083156114f45781810151838201526020016114dc565b5082848161190957fe5b06949350505050565b6000610cd98373ffffffffffffffffffffffffffffffffffffffff84166119ce565b81546000908210611990576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180611f036022913960400191505060405180910390fd5b82600001828154811061199f57fe5b9060005260206000200154905092915050565b60009081526001919091016020526040902054151590565b5490565b60008181526001830160205260408120548015611aa85783547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8083019190810190600090879083908110611a1f57fe5b9060005260206000200154905080876000018481548110611a3c57fe5b600091825260208083209091019290925582815260018981019092526040902090840190558654879080611a6c57fe5b6001900381819060005260206000200160009055905586600101600087815260200190815260200160002060009055600194505050505061075a565b600091505061075a565b803573ffffffffffffffffffffffffffffffffffffffff8116811461074957600080fd5b600060208284031215611ae7578081fd5b610cd982611ab2565b600060208284031215611b01578081fd5b81518015158114610cd9578182fd5b600060208284031215611b21578081fd5b5035919050565b60008060408385031215611b3a578081fd5b82359150611b4a60208401611ab2565b90509250929050565b60008060408385031215611b65578182fd5b50508035926020909101359150565b600060208284031215611b85578081fd5b813567ffffffffffffffff811115611b9b578182fd5b820160808185031215610cd9578182fd5b600082845282826020860137806020848601015260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f85011685010190509392505050565b7fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606094851b811682529290931b9091166014830152602882015260480190565b90815260200190565b6000828483379101908152919050565b73ffffffffffffffffffffffffffffffffffffffff91909116815260200190565b901515815260200190565b600060808252611c8e60808301888a611bac565b6020838203818501528751808352835b81811015611cb9578981018301518482018401528201611c9e565b81811115611cc957848383860101525b50601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016919091018381038201604085015290611d0b8183018789611bac565b92505050826060830152979650505050505050565b600060608252611d34606083018688611bac565b905083602083015273ffffffffffffffffffffffffffffffffffffffff8316604083015295945050505050565b6020808252601d908201527f536f6c6f733a20696e76616c6964206465706f73697420616d6f756e74000000604082015260600190565b60208082526014908201527f536f6c6f733a206163636573732064656e696564000000000000000000000000604082015260600190565b60208082526017908201527f536f6c6f733a20746f6f206561726c792063616e63656c000000000000000000604082015260600190565b6020808252601a908201527f536f6c6f733a20696e76616c69642063726564656e7469616c73000000000000604082015260600190565b6020808252601c908201527f536f6c6f733a20696e76616c69642063616e63656c20616d6f756e7400000000604082015260600190565b918252602082015260400190565b9283526020830191909152604082015260600190565b60008083357fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe1843603018112611ecc578283fd5b83018035915067ffffffffffffffff821115611ee6578283fd5b602001915036819003821315611efb57600080fd5b925092905056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e74416464726573733a20756e61626c6520746f2073656e642076616c75652c20726563697069656e74206d61792068617665207265766572746564416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b65416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a2646970667358221220eeb538cab1f1a835fbdaf61fce88e46f639fdd6093fee7631dab9c1c082c0b5e64736f6c63430007050033

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

000000000000000000000000144a98cb1cdbb23610501fe6108858d9b7d2493400000000000000000000000000000000219ab540356cbb839cbe05303d7705fa000000000000000000000000aac73d4a26ae6906aa115118b7840b1f19fcd3a50000000000000000000000000000000000000000000000008ac7230489e800000000000000000000000000000000000000000000000000000000000000015180

-----Decoded View---------------
Arg [0] : _admin (address): 0x144a98cb1CdBb23610501fE6108858D9B7D24934
Arg [1] : _validatorRegistration (address): 0x00000000219ab540356cBB839Cbe05303d7705Fa
Arg [2] : _validators (address): 0xaAc73D4A26Ae6906aa115118b7840b1F19fcd3A5
Arg [3] : _validatorPrice (uint256): 10000000000000000000
Arg [4] : _cancelLockDuration (uint256): 86400

-----Encoded View---------------
5 Constructor Arguments found :
Arg [0] : 000000000000000000000000144a98cb1cdbb23610501fe6108858d9b7d24934
Arg [1] : 00000000000000000000000000000000219ab540356cbb839cbe05303d7705fa
Arg [2] : 000000000000000000000000aac73d4a26ae6906aa115118b7840b1f19fcd3a5
Arg [3] : 0000000000000000000000000000000000000000000000008ac7230489e80000
Arg [4] : 0000000000000000000000000000000000000000000000000000000000015180


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  ]
[ 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.