@@ -238,10 +238,9 @@ contract RegistryCoordinator is
238
238
}
239
239
240
240
/// @inheritdoc IRegistryCoordinator
241
- function deregisterOperator (bytes memory quorumNumbers )
242
- external
243
- onlyWhenNotPaused (PAUSED_DEREGISTER_OPERATOR)
244
- {
241
+ function deregisterOperator (
242
+ bytes memory quorumNumbers
243
+ ) external onlyWhenNotPaused (PAUSED_DEREGISTER_OPERATOR) {
245
244
// Check that either:
246
245
// 1. The AVS hasn't migrated to operator sets yet (!isOperatorSetAVS), or
247
246
// 2. The AVS has migrated but this is an M2 quorum
@@ -275,7 +274,11 @@ contract RegistryCoordinator is
275
274
address operator ,
276
275
uint32 [] memory operatorSetIds ,
277
276
bytes memory data
278
- ) external override (IRegistryCoordinator, AVSRegistrar) onlyWhenNotPaused (PAUSED_REGISTER_OPERATOR) {
277
+ )
278
+ external
279
+ override (IRegistryCoordinator, AVSRegistrar)
280
+ onlyWhenNotPaused (PAUSED_REGISTER_OPERATOR)
281
+ {
279
282
require (isUsingOperatorSets (), OperatorSetsNotEnabled ());
280
283
for (uint256 i = 0 ; i < operatorSetIds.length ; i++ ) {
281
284
require (! isM2Quorum[uint8 (operatorSetIds[i])], OperatorSetsNotSupported ());
@@ -306,7 +309,11 @@ contract RegistryCoordinator is
306
309
function deregisterOperator (
307
310
address operator ,
308
311
uint32 [] memory operatorSetIds
309
- ) external override (IRegistryCoordinator, AVSRegistrar) onlyWhenNotPaused (PAUSED_REGISTER_OPERATOR) {
312
+ )
313
+ external
314
+ override (IRegistryCoordinator, AVSRegistrar)
315
+ onlyWhenNotPaused (PAUSED_REGISTER_OPERATOR)
316
+ {
310
317
require (isUsingOperatorSets (), OperatorSetsNotEnabled ());
311
318
for (uint256 i = 0 ; i < operatorSetIds.length ; i++ ) {
312
319
require (! isM2Quorum[uint8 (operatorSetIds[i])], OperatorSetsNotSupported ());
@@ -321,10 +328,9 @@ contract RegistryCoordinator is
321
328
}
322
329
323
330
/// @inheritdoc IRegistryCoordinator
324
- function updateOperators (address [] memory operators )
325
- external
326
- onlyWhenNotPaused (PAUSED_UPDATE_OPERATOR)
327
- {
331
+ function updateOperators (
332
+ address [] memory operators
333
+ ) external onlyWhenNotPaused (PAUSED_UPDATE_OPERATOR) {
328
334
for (uint256 i = 0 ; i < operators.length ; i++ ) {
329
335
address operator = operators[i];
330
336
OperatorInfo memory operatorInfo = _operatorInfo[operator];
@@ -393,11 +399,10 @@ contract RegistryCoordinator is
393
399
}
394
400
395
401
/// @inheritdoc IRegistryCoordinator
396
- function updateSocket (string memory socket ) external override (IRegistryCoordinator, ISocketUpdater) {
397
- require (
398
- _operatorInfo[msg .sender ].status == OperatorStatus.REGISTERED,
399
- NotRegistered ()
400
- );
402
+ function updateSocket (
403
+ string memory socket
404
+ ) external override (IRegistryCoordinator, ISocketUpdater) {
405
+ require (_operatorInfo[msg .sender ].status == OperatorStatus.REGISTERED, NotRegistered ());
401
406
emit OperatorSocketUpdate (_operatorInfo[msg .sender ].operatorId, socket);
402
407
}
403
408
@@ -465,17 +470,23 @@ contract RegistryCoordinator is
465
470
}
466
471
467
472
/// @inheritdoc IRegistryCoordinator
468
- function setChurnApprover (address _churnApprover ) external onlyOwner {
473
+ function setChurnApprover (
474
+ address _churnApprover
475
+ ) external onlyOwner {
469
476
_setChurnApprover (_churnApprover);
470
477
}
471
478
472
479
/// @inheritdoc IRegistryCoordinator
473
- function setEjector (address _ejector ) external onlyOwner {
480
+ function setEjector (
481
+ address _ejector
482
+ ) external onlyOwner {
474
483
_setEjector (_ejector);
475
484
}
476
485
477
486
/// @inheritdoc IRegistryCoordinator
478
- function setEjectionCooldown (uint256 _ejectionCooldown ) external onlyOwner {
487
+ function setEjectionCooldown (
488
+ uint256 _ejectionCooldown
489
+ ) external onlyOwner {
479
490
ejectionCooldown = _ejectionCooldown;
480
491
}
481
492
@@ -484,7 +495,6 @@ contract RegistryCoordinator is
484
495
* INTERNAL FUNCTIONS
485
496
*
486
497
*/
487
-
488
498
struct RegisterResults {
489
499
uint32 [] numOperatorsPerQuorum;
490
500
uint96 [] operatorStakes;
@@ -931,35 +941,37 @@ contract RegistryCoordinator is
931
941
*/
932
942
933
943
/// @inheritdoc IRegistryCoordinator
934
- function getOperatorSetParams (uint8 quorumNumber )
935
- external
936
- view
937
- returns (OperatorSetParam memory )
938
- {
944
+ function getOperatorSetParams (
945
+ uint8 quorumNumber
946
+ ) external view returns (OperatorSetParam memory ) {
939
947
return _quorumParams[quorumNumber];
940
948
}
941
949
942
950
/// @inheritdoc IRegistryCoordinator
943
- function getOperator (address operator ) external view returns (OperatorInfo memory ) {
951
+ function getOperator (
952
+ address operator
953
+ ) external view returns (OperatorInfo memory ) {
944
954
return _operatorInfo[operator];
945
955
}
946
956
947
957
/// @inheritdoc IRegistryCoordinator
948
- function getOperatorId (address operator ) external view returns (bytes32 ) {
958
+ function getOperatorId (
959
+ address operator
960
+ ) external view returns (bytes32 ) {
949
961
return _operatorInfo[operator].operatorId;
950
962
}
951
963
952
964
/// @inheritdoc IRegistryCoordinator
953
- function getOperatorFromId (bytes32 operatorId ) external view returns (address ) {
965
+ function getOperatorFromId (
966
+ bytes32 operatorId
967
+ ) external view returns (address ) {
954
968
return blsApkRegistry.getOperatorFromPubkeyHash (operatorId);
955
969
}
956
970
957
971
/// @inheritdoc IRegistryCoordinator
958
- function getOperatorStatus (address operator )
959
- external
960
- view
961
- returns (IRegistryCoordinator.OperatorStatus)
962
- {
972
+ function getOperatorStatus (
973
+ address operator
974
+ ) external view returns (IRegistryCoordinator.OperatorStatus) {
963
975
return _operatorInfo[operator].status;
964
976
}
965
977
@@ -993,12 +1005,16 @@ contract RegistryCoordinator is
993
1005
}
994
1006
995
1007
/// @inheritdoc IRegistryCoordinator
996
- function getCurrentQuorumBitmap (bytes32 operatorId ) external view returns (uint192 ) {
1008
+ function getCurrentQuorumBitmap (
1009
+ bytes32 operatorId
1010
+ ) external view returns (uint192 ) {
997
1011
return _currentOperatorBitmap (operatorId);
998
1012
}
999
1013
1000
1014
/// @inheritdoc IRegistryCoordinator
1001
- function getQuorumBitmapHistoryLength (bytes32 operatorId ) external view returns (uint256 ) {
1015
+ function getQuorumBitmapHistoryLength (
1016
+ bytes32 operatorId
1017
+ ) external view returns (uint256 ) {
1002
1018
return _operatorBitmapHistory[operatorId].length ;
1003
1019
}
1004
1020
@@ -1031,11 +1047,9 @@ contract RegistryCoordinator is
1031
1047
}
1032
1048
1033
1049
/// @inheritdoc IRegistryCoordinator
1034
- function pubkeyRegistrationMessageHash (address operator )
1035
- public
1036
- view
1037
- returns (BN254.G1Point memory )
1038
- {
1050
+ function pubkeyRegistrationMessageHash (
1051
+ address operator
1052
+ ) public view returns (BN254.G1Point memory ) {
1039
1053
return BN254.hashToG1 (
1040
1054
_hashTypedDataV4 (keccak256 (abi.encode (PUBKEY_REGISTRATION_TYPEHASH, operator)))
1041
1055
);
0 commit comments