Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: deploy EL middleware upgrade script #314

Merged
merged 4 commits into from
Oct 24, 2024

Conversation

merklefruit
Copy link
Collaborator

@merklefruit merklefruit commented Oct 24, 2024

Added script to deploy a new version of the EigenLayer middleware contract.

Since storage layouts are the same, the upgrade has been carried out on Holesky.
Contract deployed at 0xA053dedd4F94DeD42B30487fFD6ABb9d2C4EB17F

❯ forge inspect BoltEigenLayerMiddlewareV1 storage-layout --pretty
| Name               | Type                                  | Slot | Offset | Bytes | Contract                                                                |
|--------------------|---------------------------------------|------|--------|-------|-------------------------------------------------------------------------|
| START_TIMESTAMP    | uint48                                | 0    | 0      | 6     | src/contracts/BoltEigenLayerMiddlewareV1.sol:BoltEigenLayerMiddlewareV1 |
| parameters         | contract IBoltParametersV1            | 0    | 6      | 20    | src/contracts/BoltEigenLayerMiddlewareV1.sol:BoltEigenLayerMiddlewareV1 |
| manager            | contract IBoltManagerV1               | 1    | 0      | 20    | src/contracts/BoltEigenLayerMiddlewareV1.sol:BoltEigenLayerMiddlewareV1 |
| strategies         | struct EnumerableMap.AddressToUintMap | 2    | 0      | 96    | src/contracts/BoltEigenLayerMiddlewareV1.sol:BoltEigenLayerMiddlewareV1 |
| AVS_DIRECTORY      | contract IAVSDirectory                | 5    | 0      | 20    | src/contracts/BoltEigenLayerMiddlewareV1.sol:BoltEigenLayerMiddlewareV1 |
| DELEGATION_MANAGER | contract DelegationManagerStorage     | 6    | 0      | 20    | src/contracts/BoltEigenLayerMiddlewareV1.sol:BoltEigenLayerMiddlewareV1 |
| STRATEGY_MANAGER   | contract StrategyManagerStorage       | 7    | 0      | 20    | src/contracts/BoltEigenLayerMiddlewareV1.sol:BoltEigenLayerMiddlewareV1 |
| NAME_HASH          | bytes32                               | 8    | 0      | 32    | src/contracts/BoltEigenLayerMiddlewareV1.sol:BoltEigenLayerMiddlewareV1 |
| __gap              | uint256[41]                           | 9    | 0      | 1312  | src/contracts/BoltEigenLayerMiddlewareV1.sol:BoltEigenLayerMiddlewareV1 |

❯ forge inspect BoltEigenLayerMiddlewareV2 storage-layout --pretty
| Name               | Type                                  | Slot | Offset | Bytes | Contract                                                                |
|--------------------|---------------------------------------|------|--------|-------|-------------------------------------------------------------------------|
| START_TIMESTAMP    | uint48                                | 0    | 0      | 6     | src/contracts/BoltEigenLayerMiddlewareV2.sol:BoltEigenLayerMiddlewareV2 |
| parameters         | contract IBoltParametersV1            | 0    | 6      | 20    | src/contracts/BoltEigenLayerMiddlewareV2.sol:BoltEigenLayerMiddlewareV2 |
| manager            | contract IBoltManagerV1               | 1    | 0      | 20    | src/contracts/BoltEigenLayerMiddlewareV2.sol:BoltEigenLayerMiddlewareV2 |
| strategies         | struct EnumerableMap.AddressToUintMap | 2    | 0      | 96    | src/contracts/BoltEigenLayerMiddlewareV2.sol:BoltEigenLayerMiddlewareV2 |
| AVS_DIRECTORY      | contract IAVSDirectory                | 5    | 0      | 20    | src/contracts/BoltEigenLayerMiddlewareV2.sol:BoltEigenLayerMiddlewareV2 |
| DELEGATION_MANAGER | contract DelegationManagerStorage     | 6    | 0      | 20    | src/contracts/BoltEigenLayerMiddlewareV2.sol:BoltEigenLayerMiddlewareV2 |
| STRATEGY_MANAGER   | contract StrategyManagerStorage       | 7    | 0      | 20    | src/contracts/BoltEigenLayerMiddlewareV2.sol:BoltEigenLayerMiddlewareV2 |
| NAME_HASH          | bytes32                               | 8    | 0      | 32    | src/contracts/BoltEigenLayerMiddlewareV2.sol:BoltEigenLayerMiddlewareV2 |
| __gap              | uint256[41]                           | 9    | 0      | 1312  | src/contracts/BoltEigenLayerMiddlewareV2.sol:BoltEigenLayerMiddlewareV2 |

Copy link
Contributor

@mempirate mempirate left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pls update EigenLayer middleware contract titles and then we can merge

@merklefruit merklefruit merged commit 650628a into jonas/feat/periphery-deploy Oct 24, 2024
3 checks passed
@merklefruit merklefruit deleted the nico/chore/el-upgrade branch October 24, 2024 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants