@@ -23,7 +23,7 @@ interface IStakingModule {
2323
2424 /// @notice Returns all-validators summary belonging to the node operator with the given id
2525 /// @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)
2727 /// @return targetValidatorsCount relative target active validators limit for operator
2828 /// @return stuckValidatorsCount number of validators with an expired request to exit time
2929 /// @return refundedValidatorsCount number of validators that can't be withdrawn, but deposit
@@ -37,7 +37,7 @@ interface IStakingModule {
3737 /// EXITED state this counter is not decreasing
3838 /// @return depositableValidatorsCount number of validators in the set available for deposit
3939 function getNodeOperatorSummary (uint256 _nodeOperatorId ) external view returns (
40- bool isTargetLimitActive ,
40+ uint256 targetLimitMode ,
4141 uint256 targetValidatorsCount ,
4242 uint256 stuckValidatorsCount ,
4343 uint256 refundedValidatorsCount ,
@@ -86,6 +86,14 @@ interface IStakingModule {
8686 /// Details about error data: https://docs.soliditylang.org/en/v0.8.9/control-structures.html#error-handling-assert-require-revert-and-exceptions
8787 function onRewardsMinted (uint256 _totalShares ) external ;
8888
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+
8997 /// @notice Updates the number of the validators of the given node operator that were requested
9098 /// to exit but failed to do so in the max allowed time
9199 /// @param _nodeOperatorIds bytes packed array of the node operators id
@@ -97,10 +105,10 @@ interface IStakingModule {
97105
98106 /// @notice Updates the number of the validators in the EXITED state for node operator with given id
99107 /// @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
101109 function updateExitedValidatorsCount (
102110 bytes calldata _nodeOperatorIds ,
103- bytes calldata _stuckValidatorsCounts
111+ bytes calldata _exitedValidatorsCounts
104112 ) external ;
105113
106114 /// @notice Updates the number of the refunded validators for node operator with the given id
@@ -110,11 +118,11 @@ interface IStakingModule {
110118
111119 /// @notice Updates the limit of the validators that can be used for deposit
112120 /// @param _nodeOperatorId Id of the node operator
113- /// @param _isTargetLimitActive Active flag
121+ /// @param _targetLimitMode target limit mode
114122 /// @param _targetLimit Target limit of the node operator
115123 function updateTargetValidatorsLimits (
116124 uint256 _nodeOperatorId ,
117- bool _isTargetLimitActive ,
125+ uint256 _targetLimitMode ,
118126 uint256 _targetLimit
119127 ) external ;
120128
@@ -163,4 +171,10 @@ interface IStakingModule {
163171
164172 /// @dev Event to be emitted on StakingModule's nonce change
165173 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 );
166180}
0 commit comments