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 ) {
@@ -64,7 +64,7 @@ contract OperatorStateRetriever {
64
64
* @return 2d array of Operators. For each quorum, an ordered list of Operators
65
65
*/
66
66
function getOperatorState (
67
- IRegistryCoordinator registryCoordinator ,
67
+ ISlashingRegistryCoordinator registryCoordinator ,
68
68
bytes memory quorumNumbers ,
69
69
uint32 blockNumber
70
70
) public view returns (Operator[][] memory ) {
@@ -104,7 +104,7 @@ contract OperatorStateRetriever {
104
104
* 4) the indices of the quorum apks for each of the provided quorums at the given blocknumber
105
105
*/
106
106
function getCheckSignaturesIndices (
107
- IRegistryCoordinator registryCoordinator ,
107
+ ISlashingRegistryCoordinator registryCoordinator ,
108
108
uint32 referenceBlockNumber ,
109
109
bytes calldata quorumNumbers ,
110
110
bytes32 [] calldata nonSignerOperatorIds
@@ -169,7 +169,7 @@ contract OperatorStateRetriever {
169
169
* @param blockNumber is the block number to get the quorumBitmaps for
170
170
*/
171
171
function getQuorumBitmapsAtBlockNumber (
172
- IRegistryCoordinator registryCoordinator ,
172
+ ISlashingRegistryCoordinator registryCoordinator ,
173
173
bytes32 [] memory operatorIds ,
174
174
uint32 blockNumber
175
175
) external view returns (uint256 [] memory ) {
@@ -188,7 +188,7 @@ contract OperatorStateRetriever {
188
188
* @dev if an operator is not registered, the operatorId will be 0
189
189
*/
190
190
function getBatchOperatorId (
191
- IRegistryCoordinator registryCoordinator ,
191
+ ISlashingRegistryCoordinator registryCoordinator ,
192
192
address [] memory operators
193
193
) external view returns (bytes32 [] memory operatorIds ) {
194
194
operatorIds = new bytes32 [](operators.length );
@@ -204,7 +204,7 @@ contract OperatorStateRetriever {
204
204
* @dev if an operator is not registered, the operator address will be 0
205
205
*/
206
206
function getBatchOperatorFromId (
207
- IRegistryCoordinator registryCoordinator ,
207
+ ISlashingRegistryCoordinator registryCoordinator ,
208
208
bytes32 [] memory operatorIds
209
209
) external view returns (address [] memory operators ) {
210
210
operators = new address [](operatorIds.length );
0 commit comments