@@ -23,7 +23,7 @@ interface IStakingModule {
23
23
24
24
/// @notice Returns all-validators summary belonging to the node operator with the given id
25
25
/// @param _nodeOperatorId id of the operator to return report for
26
- /// @return isTargetLimitActive shows whether the current target limit applied to the node operator
26
+ /// @return targetLimitMode shows whether the current target limit applied to the node operator (0 = disabled, 1 = soft mode, 2 = forced mode)
27
27
/// @return targetValidatorsCount relative target active validators limit for operator
28
28
/// @return stuckValidatorsCount number of validators with an expired request to exit time
29
29
/// @return refundedValidatorsCount number of validators that can't be withdrawn, but deposit
@@ -37,7 +37,7 @@ interface IStakingModule {
37
37
/// EXITED state this counter is not decreasing
38
38
/// @return depositableValidatorsCount number of validators in the set available for deposit
39
39
function getNodeOperatorSummary (uint256 _nodeOperatorId ) external view returns (
40
- bool isTargetLimitActive ,
40
+ uint256 targetLimitMode ,
41
41
uint256 targetValidatorsCount ,
42
42
uint256 stuckValidatorsCount ,
43
43
uint256 refundedValidatorsCount ,
@@ -86,6 +86,14 @@ interface IStakingModule {
86
86
/// Details about error data: https://docs.soliditylang.org/en/v0.8.9/control-structures.html#error-handling-assert-require-revert-and-exceptions
87
87
function onRewardsMinted (uint256 _totalShares ) external ;
88
88
89
+ /// @notice Called by StakingRouter to decrease the number of vetted keys for node operator with given id
90
+ /// @param _nodeOperatorIds bytes packed array of the node operators id
91
+ /// @param _vettedSigningKeysCounts bytes packed array of the new number of vetted keys for the node operators
92
+ function decreaseVettedSigningKeysCount (
93
+ bytes calldata _nodeOperatorIds ,
94
+ bytes calldata _vettedSigningKeysCounts
95
+ ) external ;
96
+
89
97
/// @notice Updates the number of the validators of the given node operator that were requested
90
98
/// to exit but failed to do so in the max allowed time
91
99
/// @param _nodeOperatorIds bytes packed array of the node operators id
@@ -97,10 +105,10 @@ interface IStakingModule {
97
105
98
106
/// @notice Updates the number of the validators in the EXITED state for node operator with given id
99
107
/// @param _nodeOperatorIds bytes packed array of the node operators id
100
- /// @param _stuckValidatorsCounts bytes packed array of the new number of EXITED validators for the node operators
108
+ /// @param _exitedValidatorsCounts bytes packed array of the new number of EXITED validators for the node operators
101
109
function updateExitedValidatorsCount (
102
110
bytes calldata _nodeOperatorIds ,
103
- bytes calldata _stuckValidatorsCounts
111
+ bytes calldata _exitedValidatorsCounts
104
112
) external ;
105
113
106
114
/// @notice Updates the number of the refunded validators for node operator with the given id
@@ -110,11 +118,11 @@ interface IStakingModule {
110
118
111
119
/// @notice Updates the limit of the validators that can be used for deposit
112
120
/// @param _nodeOperatorId Id of the node operator
113
- /// @param _isTargetLimitActive Active flag
121
+ /// @param _targetLimitMode target limit mode
114
122
/// @param _targetLimit Target limit of the node operator
115
123
function updateTargetValidatorsLimits (
116
124
uint256 _nodeOperatorId ,
117
- bool _isTargetLimitActive ,
125
+ uint256 _targetLimitMode ,
118
126
uint256 _targetLimit
119
127
) external ;
120
128
@@ -163,4 +171,10 @@ interface IStakingModule {
163
171
164
172
/// @dev Event to be emitted on StakingModule's nonce change
165
173
event NonceChanged (uint256 nonce );
174
+
175
+ /// @dev Event to be emitted when a signing key is added to the StakingModule
176
+ event SigningKeyAdded (uint256 indexed nodeOperatorId , bytes pubkey );
177
+
178
+ /// @dev Event to be emitted when a signing key is removed from the StakingModule
179
+ event SigningKeyRemoved (uint256 indexed nodeOperatorId , bytes pubkey );
166
180
}
0 commit comments