Skip to content

Commit

Permalink
chore: compilation & bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
ypatil12 committed Aug 12, 2024
1 parent 76f43d9 commit f2a7515
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 29 deletions.
2 changes: 1 addition & 1 deletion pkg/bindings/DelegationManager/binding.go

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions pkg/bindings/EigenPod/binding.go

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions pkg/bindings/EigenPodManager/binding.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pkg/bindings/EigenStrategy/binding.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pkg/bindings/RewardsCoordinator/binding.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pkg/bindings/StrategyBase/binding.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pkg/bindings/StrategyBaseTVLLimits/binding.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pkg/bindings/StrategyManager/binding.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion script/deploy/mainnet/Deploy_Strategy_Factory.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ contract MainnetStrategyFactoryDeploy is ExistingDeploymentParser {
// Sanity Checks
_verifyContractPointers();
_verifyImplementations();
_verifyContractsInitialized({isInitialDeployment: true});
_verifyContractsInitialized();
_verifyInitializationParams();

logAndOutputContractAddresses("script/output/mainnet/v0.3.2-mainnet-strategy-factory.output.json");
Expand Down
4 changes: 1 addition & 3 deletions src/test/integration/IntegrationDeployer.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,7 @@ abstract contract IntegrationDeployer is ExistingDeploymentParser {
slasher,
delegationManager
);
delayedWithdrawalRouterImplementation = new DelayedWithdrawalRouter(eigenPodManager);
avsDirectoryImplementation = new AVSDirectory(delegationManager, strategyManager);
avsDirectoryImplementation = new AVSDirectory(delegationManager);

// Second, upgrade the proxy contracts to point to the implementations
// DelegationManager
Expand Down Expand Up @@ -504,7 +503,6 @@ abstract contract IntegrationDeployer is ExistingDeploymentParser {
slasher,
delegationManager
);
delayedWithdrawalRouterImplementation = new DelayedWithdrawalRouter(eigenPodManager);
avsDirectoryImplementation = new AVSDirectory(delegationManager);

// Second, upgrade the proxy contracts to point to the implementations
Expand Down
14 changes: 0 additions & 14 deletions src/test/unit/AVSDirectoryUnit.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -1364,20 +1364,6 @@ contract AVSDirectoryUnitTests_legacyOperatorAVSRegistration is AVSDirectoryUnit
avsDirectory.registerOperatorToAVS(operator, operatorSignature);
}

/// @notice Verifies that an operator cannot cancel the same salt twice
function testFuzz_revert_whenSaltCancelledTwice(bytes32 salt) public {
address operator = cheats.addr(delegationSignerPrivateKey);
assertFalse(delegationManager.isOperator(operator), "bad test setup");
_registerOperatorWithBaseDetails(operator);

cheats.startPrank(operator);
avsDirectory.cancelSalt(salt);

cheats.expectRevert("AVSDirectory.cancelSalt: cannot cancel spent salt");
avsDirectory.cancelSalt(salt);
cheats.stopPrank();
}

/// @notice Verifies that an operator cannot cancel the same salt twice
function testFuzz_revert_whenCancellingSaltUsedToRegister(bytes32 salt) public {
address operator = cheats.addr(delegationSignerPrivateKey);
Expand Down
2 changes: 1 addition & 1 deletion src/test/utils/EigenLayerUnitTestSetup.sol
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ abstract contract EigenLayerUnitTestSetup is EigenLayerUnitTestBase {
strategyManagerMock = new StrategyManagerMock();
delegationManagerMock = new DelegationManagerMock();
slasherMock = new SlasherMock();
eigenPodManagerMock = new EigenPodManagerMock();
eigenPodManagerMock = new EigenPodManagerMock(pauserRegistry);
avsDirectoryMock = new AVSDirectoryMock();

addressIsExcludedFromFuzzedInputs[address(0)] = true;
Expand Down

0 comments on commit f2a7515

Please sign in to comment.