Skip to content

Commit 4116d1d

Browse files
committed
chore: fmt
1 parent ffb05d1 commit 4116d1d

11 files changed

+88
-35
lines changed

test/fork/EigenDA.t.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ contract EigenDATest is Test {
787787
serviceManager.setAppointee(
788788
address(registryCoordinator),
789789
allocationManagerAddr,
790-
bytes4(keccak256("createOperatorSets(address,(uint32,address[],address)[])"))
790+
bytes4(keccak256("createOperatorSets(address,(uint32,address[],address)[])"))
791791
);
792792
serviceManager.setAppointee(
793793
serviceManagerOwner,

test/fork/End2End.t.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ contract End2EndForkTest is Test {
205205
address(middlewareDeployment.serviceManager),
206206
address(middlewareDeployment.registryCoordinator),
207207
coreDeployment.allocationManager,
208-
bytes4(keccak256("createOperatorSets(address,(uint32,address[],address)[])"))
208+
bytes4(keccak256("createOperatorSets(address,(uint32,address[],address)[])"))
209209
);
210210
vm.stopPrank();
211211
}

test/integration/IntegrationDeployer.t.sol

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,9 @@ abstract contract IntegrationDeployer is Test, IUserDeployer {
234234
IStrategy eigenStrategy =
235235
IStrategy(new EigenStrategy(strategyManager, pauserRegistry, "v0.0.1"));
236236

237-
AllocationManagerView allocationManagerView = new AllocationManagerView(delegationManager, eigenStrategy, uint32(7 days), uint32(1 days));
237+
AllocationManagerView allocationManagerView = new AllocationManagerView(
238+
delegationManager, eigenStrategy, uint32(7 days), uint32(1 days)
239+
);
238240

239241
AllocationManager allocationManagerImplementation = new AllocationManager(
240242
allocationManagerView,
@@ -503,7 +505,7 @@ abstract contract IntegrationDeployer is Test, IUserDeployer {
503505
serviceManager.setAppointee({
504506
appointee: address(registryCoordinator),
505507
target: address(allocationManager),
506-
selector:bytes4(keccak256("createOperatorSets(address,(uint32,address[],address)[])"))
508+
selector: bytes4(keccak256("createOperatorSets(address,(uint32,address[],address)[])"))
507509
});
508510
// 4. deregister operator from operator sets
509511
serviceManager.setAppointee({
@@ -540,7 +542,7 @@ abstract contract IntegrationDeployer is Test, IUserDeployer {
540542
account: avsAccountIdentifier,
541543
appointee: address(slashingRegistryCoordinator),
542544
target: address(allocationManager),
543-
selector:bytes4(keccak256("createOperatorSets(address,(uint32,address[],address)[])"))
545+
selector: bytes4(keccak256("createOperatorSets(address,(uint32,address[],address)[])"))
544546
});
545547
permissionController.setAppointee({
546548
account: avsAccountIdentifier,

test/mocks/AllocationManagerMock.sol

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ import {IAVSRegistrar} from "eigenlayer-contracts/src/contracts/interfaces/IAVSR
99
import {IStrategy} from "eigenlayer-contracts/src/contracts/interfaces/IStrategy.sol";
1010
import {IPauserRegistry} from "eigenlayer-contracts/src/contracts/interfaces/IPauserRegistry.sol";
1111
import {ISemVerMixin} from "eigenlayer-contracts/src/contracts/interfaces/ISemVerMixin.sol";
12-
import {IDelegationManager} from "eigenlayer-contracts/src/contracts/interfaces/IDelegationManager.sol";
12+
import {IDelegationManager} from
13+
"eigenlayer-contracts/src/contracts/interfaces/IDelegationManager.sol";
1314

1415
contract AllocationManagerIntermediate is IAllocationManager {
1516
mapping(address avs => address avsRegistrar) internal _avsRegistrar;
@@ -59,7 +60,10 @@ contract AllocationManagerIntermediate is IAllocationManager {
5960

6061
function createOperatorSets(address avs, CreateSetParams[] calldata params) external virtual {}
6162

62-
function createOperatorSets(address avs, CreateSetParamsV2[] calldata params) external virtual {}
63+
function createOperatorSets(
64+
address avs,
65+
CreateSetParamsV2[] calldata params
66+
) external virtual {}
6367

6468
function createRedistributingOperatorSets(
6569
address avs,
@@ -234,22 +238,34 @@ contract AllocationManagerIntermediate is IAllocationManager {
234238

235239
function eigenStrategy() external pure virtual returns (IStrategy) {}
236240

237-
function getPendingSlasher(OperatorSet memory operatorSet) external view virtual returns (address pendingSlasher, uint32 effectBlock) {}
241+
function getPendingSlasher(
242+
OperatorSet memory operatorSet
243+
) external view virtual returns (address pendingSlasher, uint32 effectBlock) {}
238244

239-
function migrateSlashers(OperatorSet[] memory operatorSets) external virtual {}
245+
function migrateSlashers(
246+
OperatorSet[] memory operatorSets
247+
) external virtual {}
240248

241249
function updateSlasher(OperatorSet memory operatorSet, address slasher) external virtual {}
242250

243-
function getSlasher(OperatorSet memory operatorSet) external view virtual returns (address slasher) {}
251+
function getSlasher(
252+
OperatorSet memory operatorSet
253+
) external view virtual returns (address slasher) {}
244254

245255
// Pause functions
246-
function pause(uint256 newPausedStatus) external virtual {}
256+
function pause(
257+
uint256 newPausedStatus
258+
) external virtual {}
247259

248-
function unpause(uint256 newPausedStatus) external virtual {}
260+
function unpause(
261+
uint256 newPausedStatus
262+
) external virtual {}
249263

250264
function paused() external view virtual returns (uint256) {}
251265

252-
function paused(uint8 index) external view virtual returns (bool) {}
266+
function paused(
267+
uint8 index
268+
) external view virtual returns (bool) {}
253269

254270
function pauseAll() external virtual {}
255271

test/mocks/KeyRegistrarMock.sol

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,28 @@ contract KeyRegistrarMock is IKeyRegistrar {
3232

3333
function configureOperatorSet(OperatorSet memory operatorSet, CurveType curveType) external {}
3434

35-
function configureOperatorSetWithMinDelay(OperatorSet memory operatorSet, CurveType curveType, uint64 minDelaySeconds) external {}
35+
function configureOperatorSetWithMinDelay(
36+
OperatorSet memory operatorSet,
37+
CurveType curveType,
38+
uint64 minDelaySeconds
39+
) external {}
3640

37-
function finalizeScheduledRotation(address operator, OperatorSet memory operatorSet) external returns (bool) {}
41+
function finalizeScheduledRotation(
42+
address operator,
43+
OperatorSet memory operatorSet
44+
) external returns (bool) {}
3845

39-
function rotateKey(address operator, OperatorSet memory operatorSet, bytes calldata pubkey, bytes calldata signature) external {}
46+
function rotateKey(
47+
address operator,
48+
OperatorSet memory operatorSet,
49+
bytes calldata pubkey,
50+
bytes calldata signature
51+
) external {}
4052

41-
function setMinKeyRotationDelay(OperatorSet memory operatorSet, uint64 minDelaySeconds) external {}
53+
function setMinKeyRotationDelay(
54+
OperatorSet memory operatorSet,
55+
uint64 minDelaySeconds
56+
) external {}
4257

4358
function registerKey(
4459
address operator,
@@ -146,7 +161,6 @@ contract KeyRegistrarMock is IKeyRegistrar {
146161
{
147162
return (address(0), false);
148163
}
149-
150164

151165
receive() external payable {}
152166
fallback() external payable {}

test/unit/InstantSlasher.t.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,9 @@ contract InstantSlasherTest is Test {
199199
address(serviceManager),
200200
address(slashingRegistryCoordinator),
201201
coreDeployment.allocationManager,
202-
bytes4(keccak256("createOperatorSets(address,(uint32,address[],address)[])"))
202+
bytes4(keccak256("createOperatorSets(address,(uint32,address[],address)[])"))
203203
);
204-
204+
205205
PermissionController(coreDeployment.permissionController).setAppointee(
206206
address(serviceManager),
207207
address(slashingRegistryCoordinator),

test/unit/RegistryCoordinatorUnit.t.sol

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2417,7 +2417,11 @@ contract RegistryCoordinatorUnitTests_BeforeMigration is RegistryCoordinatorUnit
24172417
// Attempt to create quorum with slashable stake type before enabling operator sets
24182418
cheats.prank(registryCoordinatorOwner);
24192419
registryCoordinator.createSlashableStakeQuorum(
2420-
operatorSetParams, minimumStake, strategyParams, lookAheadPeriod, registryCoordinatorOwner
2420+
operatorSetParams,
2421+
minimumStake,
2422+
strategyParams,
2423+
lookAheadPeriod,
2424+
registryCoordinatorOwner
24212425
);
24222426
assertEq(registryCoordinator.quorumCount(), 1, "New quorum 0 should be created");
24232427
assertFalse(registryCoordinator.isM2Quorum(0), "Quorum created should not be an M2 quorum");
@@ -2523,7 +2527,11 @@ contract RegistryCoordinatorUnitTests_AfterMigration is RegistryCoordinatorUnitT
25232527
// Create slashable stake quorum
25242528
cheats.prank(registryCoordinatorOwner);
25252529
registryCoordinator.createSlashableStakeQuorum(
2526-
operatorSetParams, minimumStake, strategyParams, lookAheadPeriod, registryCoordinatorOwner
2530+
operatorSetParams,
2531+
minimumStake,
2532+
strategyParams,
2533+
lookAheadPeriod,
2534+
registryCoordinatorOwner
25272535
);
25282536
}
25292537

test/unit/SlashingRegistryCoordinatorUnit.t.sol

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ contract SlashingRegistryCoordinatorUnitTestSetup is
279279
address(serviceManager),
280280
address(slashingRegistryCoordinator),
281281
coreDeployment.allocationManager,
282-
bytes4(keccak256("createOperatorSets(address,(uint32,address[],address)[])"))
282+
bytes4(keccak256("createOperatorSets(address,(uint32,address[],address)[])"))
283283
);
284284

285285
PermissionController(coreDeployment.permissionController).setAppointee(
@@ -719,7 +719,11 @@ contract SlashingRegistryCoordinator_CreateSlashableStakeQuorum is
719719
// So we need to create 191 more
720720
for (uint8 i = 0; i < 191; i++) {
721721
slashingRegistryCoordinator.createSlashableStakeQuorum(
722-
operatorSetParams, minimumStake, getStrategyParams(), lookAheadPeriod, proxyAdminOwner
722+
operatorSetParams,
723+
minimumStake,
724+
getStrategyParams(),
725+
lookAheadPeriod,
726+
proxyAdminOwner
723727
);
724728
}
725729

@@ -740,7 +744,11 @@ contract SlashingRegistryCoordinator_CreateSlashableStakeQuorum is
740744
vm.prank(proxyAdminOwner);
741745
vm.expectRevert(LookAheadPeriodTooLong.selector);
742746
slashingRegistryCoordinator.createSlashableStakeQuorum(
743-
operatorSetParams, minimumStake, getStrategyParams(), tooLongLookAheadPeriod, proxyAdminOwner
747+
operatorSetParams,
748+
minimumStake,
749+
getStrategyParams(),
750+
tooLongLookAheadPeriod,
751+
proxyAdminOwner
744752
);
745753
}
746754
}

test/unit/VetoableSlasher.t.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ contract VetoableSlasherTest is Test {
228228
address(serviceManager),
229229
address(slashingRegistryCoordinator),
230230
coreDeployment.allocationManager,
231-
bytes4(keccak256("createOperatorSets(address,(uint32,address[],address)[])"))
231+
bytes4(keccak256("createOperatorSets(address,(uint32,address[],address)[])"))
232232
);
233233

234234
PermissionController(coreDeployment.permissionController).setAppointee(

test/utils/CoreDeployLib.sol

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import {stdJson} from "forge-std/StdJson.sol";
66
import {ProxyAdmin} from "@openzeppelin/contracts/proxy/transparent/ProxyAdmin.sol";
77
import {TransparentUpgradeableProxy} from
88
"@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol";
9-
import {AllocationManagerView} from "eigenlayer-contracts/src/contracts/core/AllocationManagerView.sol";
9+
import {AllocationManagerView} from
10+
"eigenlayer-contracts/src/contracts/core/AllocationManagerView.sol";
1011
import {UpgradeableBeacon} from "@openzeppelin/contracts/proxy/beacon/UpgradeableBeacon.sol";
1112
import {DelegationManager} from "eigenlayer-contracts/src/contracts/core/DelegationManager.sol";
1213
import {StrategyManager} from "eigenlayer-contracts/src/contracts/core/StrategyManager.sol";
@@ -28,7 +29,8 @@ import {
2829
import {IDelegationManager} from
2930
"eigenlayer-contracts/src/contracts/interfaces/IDelegationManager.sol";
3031
import {IBeacon} from "@openzeppelin/contracts/proxy/beacon/IBeacon.sol";
31-
import {IAllocationManagerView} from "eigenlayer-contracts/src/contracts/interfaces/IAllocationManager.sol";
32+
import {IAllocationManagerView} from
33+
"eigenlayer-contracts/src/contracts/interfaces/IAllocationManager.sol";
3234
import {IStrategyManager} from "eigenlayer-contracts/src/contracts/interfaces/IStrategyManager.sol";
3335
import {IEigenPodManager} from "eigenlayer-contracts/src/contracts/interfaces/IEigenPodManager.sol";
3436
import {IAVSDirectory} from "eigenlayer-contracts/src/contracts/interfaces/IAVSDirectory.sol";
@@ -178,12 +180,14 @@ library CoreDeployLib {
178180
)
179181
);
180182

181-
address allocationManagerView = address(new AllocationManagerView(
182-
IDelegationManager(deployments.delegationManager),
183-
IStrategy(deployments.eigenStrategy),
184-
config.allocationManager.deallocationDelay,
185-
config.allocationManager.allocationConfigurationDelay
186-
));
183+
address allocationManagerView = address(
184+
new AllocationManagerView(
185+
IDelegationManager(deployments.delegationManager),
186+
IStrategy(deployments.eigenStrategy),
187+
config.allocationManager.deallocationDelay,
188+
config.allocationManager.allocationConfigurationDelay
189+
)
190+
);
187191

188192
address allocationManagerImpl = address(
189193
new AllocationManager(

0 commit comments

Comments
 (0)