Skip to content

Commit 8aa50be

Browse files
committed
chore: format
1 parent 0ccc246 commit 8aa50be

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

src/RegistryCoordinator.sol

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import {SlashingRegistryCoordinator} from "./SlashingRegistryCoordinator.sol";
1515
import {ISlashingRegistryCoordinator} from "./interfaces/ISlashingRegistryCoordinator.sol";
1616
import {OwnableUpgradeable} from "@openzeppelin-upgrades/contracts/access/OwnableUpgradeable.sol";
1717

18-
1918
/**
2019
* @title A `RegistryCoordinator` that has three registries:
2120
* 1) a `StakeRegistry` that keeps track of operators' stakes
@@ -150,8 +149,7 @@ contract RegistryCoordinator is IRegistryCoordinator, SlashingRegistryCoordinato
150149
// Check that the quorum numbers are M2 quorums
151150
for (uint256 i = 0; i < quorumNumbers.length; i++) {
152151
require(
153-
!operatorSetsEnabled || _isM2Quorum(uint8(quorumNumbers[i])),
154-
OperatorSetQuorum()
152+
!operatorSetsEnabled || _isM2Quorum(uint8(quorumNumbers[i])), OperatorSetQuorum()
155153
);
156154
}
157155
_deregisterOperator({operator: msg.sender, quorumNumbers: quorumNumbers});

src/interfaces/IRegistryCoordinator.sol

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ interface IRegistryCoordinatorErrors is ISlashingRegistryCoordinatorErrors {
2222

2323
interface IRegistryCoordinatorTypes is ISlashingRegistryCoordinatorTypes {}
2424

25-
interface IRegistryCoordinatorEvents is ISlashingRegistryCoordinatorEvents, IRegistryCoordinatorTypes {
25+
interface IRegistryCoordinatorEvents is
26+
ISlashingRegistryCoordinatorEvents,
27+
IRegistryCoordinatorTypes
28+
{
2629
/**
2730
* @notice Emitted when operator sets mode is enabled.
2831
* @dev Emitted in enableOperatorSets().
@@ -36,8 +39,11 @@ interface IRegistryCoordinatorEvents is ISlashingRegistryCoordinatorEvents, IReg
3639
event M2QuorumsDisabled();
3740
}
3841

39-
interface IRegistryCoordinator is IRegistryCoordinatorErrors, IRegistryCoordinatorEvents, ISlashingRegistryCoordinator {
40-
42+
interface IRegistryCoordinator is
43+
IRegistryCoordinatorErrors,
44+
IRegistryCoordinatorEvents,
45+
ISlashingRegistryCoordinator
46+
{
4147
/**
4248
* @notice Reference to the ServiceManager contract.
4349
* @return The ServiceManager contract interface.

src/interfaces/ISlashingRegistryCoordinator.sol

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ interface ISlashingRegistryCoordinatorErrors {
5555
}
5656

5757
interface ISlashingRegistryCoordinatorTypes {
58-
5958
/// @notice Core data structure for tracking operator information.
6059
/// @dev Links an operator's unique identifier with their current registration status.
6160
/// @param operatorId Unique identifier for the operator, typically derived from their BLS public key.
@@ -133,8 +132,7 @@ interface ISlashingRegistryCoordinatorTypes {
133132
}
134133
}
135134

136-
interface ISlashingRegistryCoordinatorEvents is ISlashingRegistryCoordinatorTypes
137-
{
135+
interface ISlashingRegistryCoordinatorEvents is ISlashingRegistryCoordinatorTypes {
138136
/**
139137
* @notice Emitted when an operator registers for service in one or more quorums.
140138
* @dev Emitted in _registerOperator() and _registerOperatorToOperatorSet().
@@ -236,7 +234,7 @@ interface ISlashingRegistryCoordinator is
236234
*/
237235
function allocationManager() external view returns (IAllocationManager);
238236

239-
/// STORAGE
237+
/// STORAGE
240238

241239
/**
242240
* @notice The total number of quorums that have been created.
@@ -315,7 +313,7 @@ interface ISlashingRegistryCoordinator is
315313

316314
/// ACTIONS
317315

318-
/**
316+
/**
319317
* @notice Registers an operator through the allocation manager for operator set quorums.
320318
* @param operator The operator address to register.
321319
* @param operatorSetIds The operator set IDs to register for (corresponds to quorum numbers).

0 commit comments

Comments
 (0)