Skip to content
This repository was archived by the owner on Jun 15, 2026. It is now read-only.

refactor: storage layout in MachServiceManager - #194

Open
neutiyoo wants to merge 1 commit into
m2-devfrom
fix/storage
Open

neutiyoo wants to merge 1 commit into
m2-devfrom
fix/storage

Conversation

@neutiyoo

@neutiyoo neutiyoo commented May 2, 2025

Copy link
Copy Markdown
Collaborator

This pull request includes updates to the storage layout of the MachServiceManager contract and documentation changes for AVS configuration details across multiple files. The most significant changes involve introducing a new deprecated storage slot in the contract and updating documentation to reflect new block generation details and contract addresses.

Contract Changes:

  • Updated the storage layout in MachServiceManager by replacing the __GAP array of size 50 with a new __DEPRECATED_SLOT204 and a reduced __GAP array of size 49 to maintain compatibility while marking a specific storage slot as deprecated. (contracts/docs/storage/MachServiceManager.txt, contracts/src/core/MachServiceManager.sol) [1] [2]

Documentation Updates:

  • Updated block generation details from block 22244692 to 22395872 and corresponding timestamps in AVS configuration files. (docs/avs-details/mainnet/altlayer.md, docs/avs-details/mainnet/cyber.md, docs/avs-details/mainnet/dodochain.md, docs/avs-details/mainnet/gm-network.md, docs/avs-details/mainnet/soneium.md, docs/avs-details/mainnet/xterio.md) [1] [2] [3] [4] [5] [6]
  • Updated contract implementation addresses in the altlayer.md file to reflect the latest deployed versions. (docs/avs-details/mainnet/altlayer.md)

@neutiyoo
neutiyoo requested review from bb111189 and Copilot May 2, 2025 13:15
@neutiyoo
neutiyoo marked this pull request as ready for review May 2, 2025 13:15
@github-actions github-actions Bot added bug Something isn't working XL labels May 2, 2025

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors the storage layout of the MachServiceManager contract and updates AVS configuration documentation across multiple files. The key changes include:

  • Replacing the __GAP[50] with a new __DEPRECATED_SLOT204 and a reduced __GAP[49] in the storage layout.
  • Updating generation block numbers and timestamps in AVS configuration details for multiple networks.
  • Refreshing contract addresses in the altlayer documentation to reflect the latest deployment.

Reviewed Changes

Copilot reviewed 10 out of 11 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
docs/avs-details/mainnet/xterio.md Updated block number and timestamp
docs/avs-details/mainnet/soneium.md Updated block number and timestamp
docs/avs-details/mainnet/gm-network.md Updated block number and timestamp
docs/avs-details/mainnet/dodochain.md Updated block number and timestamp
docs/avs-details/mainnet/cyber.md Updated block number and timestamp
docs/avs-details/mainnet/altlayer.md Updated block number, timestamp, and contract addresses
contracts/docs/storage/MachServiceManager.txt Updated storage layout: introduced __DEPRECATED_SLOT204 and reduced __GAP array size
Files not reviewed (1)
  • contracts/src/core/MachServiceManager.sol: Language not supported

Comment on lines 44 to +46
|---------------------------+-----------------------------------------------------+------+--------+-------+----------------------------------------------------|
| __GAP | uint256[50] | 204 | 0 | 1600 | src/core/MachServiceManager.sol:MachServiceManager |
| __DEPRECATED_SLOT204 | uint256 | 204 | 0 | 32 | src/core/MachServiceManager.sol:MachServiceManager |
|---------------------------+-----------------------------------------------------+------+--------+-------+----------------------------------------------------|

Copilot AI May 2, 2025

Copy link

Choose a reason for hiding this comment

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

[nitpick] Consider adding an inline comment explaining the introduction of __DEPRECATED_SLOT204 and the rationale behind reducing the __GAP array size. This additional context will help maintainers understand the storage layout changes.

Copilot uses AI. Check for mistakes.

@renlulu renlulu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No high-confidence PR-introduced issues found.

I reviewed the storage layout refactor with forge build, forge inspect ... storage-layout, targeted forge test --match-contract MachServiceManagerTest (38 tests), and EIP-1967 proxy implementation slot checks for the documented AltLayer addresses at block 22395872. The storage layout matches the checked-in report, with pauserRegistry still at slot 254. I did not run the full test suite beyond the targeted MachServiceManager tests.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants