1
1
// SPDX-License-Identifier: BUSL-1.1
2
2
pragma solidity ^ 0.8.27 ;
3
3
4
- import {IRegistryCoordinator } from "./interfaces/IRegistryCoordinator .sol " ;
4
+ import {ISlashingRegistryCoordinator } from "./interfaces/ISlashingRegistryCoordinator .sol " ;
5
5
import {IBLSApkRegistry} from "./interfaces/IBLSApkRegistry.sol " ;
6
6
import {IStakeRegistry} from "./interfaces/IStakeRegistry.sol " ;
7
7
import {IIndexRegistry} from "./interfaces/IIndexRegistry.sol " ;
@@ -40,7 +40,7 @@ contract OperatorStateRetriever {
40
40
* was a part of at `blockNumber`, an ordered list of operators.
41
41
*/
42
42
function getOperatorState (
43
- IRegistryCoordinator registryCoordinator ,
43
+ ISlashingRegistryCoordinator registryCoordinator ,
44
44
bytes32 operatorId ,
45
45
uint32 blockNumber
46
46
) external view returns (uint256 , Operator[][] memory ) {
@@ -66,7 +66,7 @@ contract OperatorStateRetriever {
66
66
* @return 2d array of Operators. For each quorum, an ordered list of Operators
67
67
*/
68
68
function getOperatorState (
69
- IRegistryCoordinator registryCoordinator ,
69
+ ISlashingRegistryCoordinator registryCoordinator ,
70
70
bytes memory quorumNumbers ,
71
71
uint32 blockNumber
72
72
) public view returns (Operator[][] memory ) {
@@ -109,7 +109,7 @@ contract OperatorStateRetriever {
109
109
* 4) the indices of the quorum apks for each of the provided quorums at the given blocknumber
110
110
*/
111
111
function getCheckSignaturesIndices (
112
- IRegistryCoordinator registryCoordinator ,
112
+ ISlashingRegistryCoordinator registryCoordinator ,
113
113
uint32 referenceBlockNumber ,
114
114
bytes calldata quorumNumbers ,
115
115
bytes32 [] calldata nonSignerOperatorIds
@@ -185,7 +185,7 @@ contract OperatorStateRetriever {
185
185
* @param blockNumber is the block number to get the quorumBitmaps for
186
186
*/
187
187
function getQuorumBitmapsAtBlockNumber (
188
- IRegistryCoordinator registryCoordinator ,
188
+ ISlashingRegistryCoordinator registryCoordinator ,
189
189
bytes32 [] memory operatorIds ,
190
190
uint32 blockNumber
191
191
) external view returns (uint256 [] memory ) {
@@ -207,7 +207,7 @@ contract OperatorStateRetriever {
207
207
* @dev if an operator is not registered, the operatorId will be 0
208
208
*/
209
209
function getBatchOperatorId (
210
- IRegistryCoordinator registryCoordinator ,
210
+ ISlashingRegistryCoordinator registryCoordinator ,
211
211
address [] memory operators
212
212
) external view returns (bytes32 [] memory operatorIds ) {
213
213
operatorIds = new bytes32 [](operators.length );
@@ -223,7 +223,7 @@ contract OperatorStateRetriever {
223
223
* @dev if an operator is not registered, the operator address will be 0
224
224
*/
225
225
function getBatchOperatorFromId (
226
- IRegistryCoordinator registryCoordinator ,
226
+ ISlashingRegistryCoordinator registryCoordinator ,
227
227
bytes32 [] memory operatorIds
228
228
) external view returns (address [] memory operators ) {
229
229
operators = new address [](operatorIds.length );
0 commit comments