Skip to content

Commit 58772b4

Browse files
committed
chore: forge fmt
1 parent f2134de commit 58772b4

File tree

2 files changed

+14
-17
lines changed

2 files changed

+14
-17
lines changed

src/IndexRegistry.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// SPDX-License-Identifier: BUSL-1.1
22
pragma solidity ^0.8.27;
33

4-
import {IIndexRegistry,IndexRegistryStorage} from "./IndexRegistryStorage.sol";
4+
import {IIndexRegistry, IndexRegistryStorage} from "./IndexRegistryStorage.sol";
55
import {IRegistryCoordinator} from "./interfaces/IRegistryCoordinator.sol";
66

77
/**
@@ -268,7 +268,7 @@ contract IndexRegistry is IndexRegistryStorage {
268268
/**
269269
* @return operatorId at the given `operatorIndex` at the given `blockNumber` for the given `quorumNumber`
270270
* Precondition: requires that the operatorIndex was used active at the given block number for quorum
271-
*/
271+
*/
272272
function _operatorIdForIndexAtBlockNumber(
273273
uint8 quorumNumber,
274274
uint32 operatorIndex,

src/interfaces/IIndexRegistry.sol

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ interface IIndexRegistryEvents is IIndexRegistryTypes {
3434
/// @param quorumNumber The identifier of the quorum.
3535
/// @param newOperatorIndex The new index assigned to the operator.
3636
event QuorumIndexUpdate(
37-
bytes32 indexed operatorId,
38-
uint8 quorumNumber,
39-
uint32 newOperatorIndex
37+
bytes32 indexed operatorId, uint8 quorumNumber, uint32 newOperatorIndex
4038
);
4139
}
4240

@@ -49,18 +47,18 @@ interface IIndexRegistry is IIndexRegistryErrors, IIndexRegistryEvents {
4947
/// @return The address of the RegistryCoordinator.
5048
function registryCoordinator() external view returns (address);
5149

52-
/// @notice Returns the current index of an operator with ID `operatorId` in quorum `quorumNumber`.
50+
/// @notice Returns the current index of an operator with ID `operatorId` in quorum `quorumNumber`.
5351
/// @dev This mapping is NOT updated when an operator is deregistered,
5452
/// so it's possible that an index retrieved from this mapping is inaccurate.
5553
/// If you're querying for an operator that might be deregistered, ALWAYS
5654
/// check this index against the latest `_operatorIndexHistory` entry.
5755
/// @param quorumNumber The identifier of the quorum.
5856
/// @param operatorId The unique identifier of the operator.
5957
/// @return The current index of the operator.
60-
function currentOperatorIndex(uint8 quorumNumber, bytes32 operatorId)
61-
external
62-
view
63-
returns (uint32);
58+
function currentOperatorIndex(
59+
uint8 quorumNumber,
60+
bytes32 operatorId
61+
) external view returns (uint32);
6462

6563
// ACTIONS
6664

@@ -89,17 +87,16 @@ interface IIndexRegistry is IIndexRegistryErrors, IIndexRegistryEvents {
8987
/// 3) `quorumNumbers` is ordered in ascending order
9088
/// 4) the operator is not already deregistered
9189
/// 5) `quorumNumbers` is a subset of the quorumNumbers that the operator is registered for
92-
function deregisterOperator(
93-
bytes32 operatorId,
94-
bytes calldata quorumNumbers
95-
) external;
90+
function deregisterOperator(bytes32 operatorId, bytes calldata quorumNumbers) external;
9691

9792
/// @notice Initializes a new quorum `quorumNumber`.
9893
/// @param quorumNumber The identifier of the quorum to initialize.
99-
function initializeQuorum(uint8 quorumNumber) external;
94+
function initializeQuorum(
95+
uint8 quorumNumber
96+
) external;
10097

10198
// VIEW
102-
99+
103100
/// @notice Returns the operator update at index `arrayIndex` for operator at index `operatorIndex` in quorum `quorumNumber`.
104101
/// @param quorumNumber The identifier of the quorum.
105102
/// @param operatorIndex The index of the operator.
@@ -151,4 +148,4 @@ interface IIndexRegistry is IIndexRegistryErrors, IIndexRegistryEvents {
151148
function totalOperatorsForQuorum(
152149
uint8 quorumNumber
153150
) external view returns (uint32);
154-
}
151+
}

0 commit comments

Comments
 (0)