You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @title Interface for a `ServiceManager`-type contract.
9
-
* @author Layr Labs, Inc.
10
-
* @notice Terms of Service: https://docs.eigenlayer.xyz/overview/terms-of-service
11
-
*/
12
-
interfaceIServiceManager {
13
-
14
-
// ServiceManager proxies to the slasher
15
-
function slasher() externalviewreturns (ISlasher);
16
-
17
-
/// @notice Returns the current 'taskNumber' for the middleware
18
-
function taskNumber() externalviewreturns (uint32);
19
-
20
-
/// @notice function that causes the ServiceManager to freeze the operator on EigenLayer, through a call to the Slasher contract
21
-
/// @dev this function should contain slashing logic, to make sure operators are not needlessly being slashed
22
-
function freezeOperator(addressoperator) external;
23
-
24
-
/// @notice proxy call to the slasher, recording an initial stake update (on operator registration)
25
-
function recordFirstStakeUpdate(addressoperator, uint32serveUntilBlock) external;
26
-
27
-
/// @notice proxy call to the slasher, recording a stake update
28
-
function recordStakeUpdate(addressoperator, uint32updateBlock, uint32serveUntilBlock, uint256prevElement) external;
29
-
30
-
/// @notice proxy call to the slasher, recording a final stake update (on operator deregistration)
31
-
function recordLastStakeUpdateAndRevokeSlashingAbility(addressoperator, uint32serveUntilBlock) external;
32
-
33
-
/// @notice Returns the latest block until which operators must serve (could be in the past or future).
34
-
/// @dev this should be called and the response passed to the recordStakeUpdate functionss' serveUntilBlock parameter
35
-
function latestServeUntilBlock() externalviewreturns (uint32);
36
-
37
-
/// @notice required since the registry contract will call this function to permission its upgrades to be done by the same owner as the service manager
0 commit comments