Skip to content

Conversation

@nicholaspai
Copy link
Member

@nicholaspai nicholaspai commented Jan 7, 2024

Upload latest deployed storage layouts for comparison with potential new contracts

Other potential tools we could use as an alternative to forge are listed here FYI: https://proxies.yacademy.dev/pages/proxies-storage/

Example of comparing latest (commit hash 339bafa) storage layout for Arbitrum_SpokePool (right file) with the latest deployed storage layout (commit hash b41fcee) (left file). You can see that the new state variable mapping fillStatuses is added to the right file while the __gap size is decremented such that the Arbitrum_SpokePool specific state variable l2GatewayRouter starts at the same slot 3162

Screenshot 2024-01-07 at 08 42 02

mrice32 and others added 4 commits January 5, 2024 16:40
Signed-off-by: Matt Rice <matthewcrice32@gmail.com>
Upload latest deployed storage layouts for comparison with potential new contracts
@nicholaspai nicholaspai marked this pull request as ready for review January 7, 2024 15:46
@socket-security
Copy link

socket-security bot commented Jan 7, 2024

No top level dependency changes detected. Learn more about Socket for GitHub ↗︎

nicholaspai and others added 9 commits January 7, 2024 08:55
@nicholaspai nicholaspai changed the base branch from mrice32/minimal_foundry to master January 7, 2024 15:56
@nicholaspai nicholaspai changed the base branch from master to mrice32/minimal_foundry January 7, 2024 15:57
Copy link
Contributor

@mrice32 mrice32 left a comment

Choose a reason for hiding this comment

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

Should we add the tool to regenerate these on demand?

Base automatically changed from mrice32/minimal_foundry to master January 8, 2024 02:47
@nicholaspai nicholaspai changed the title feat: Snapshot deployed storage layouts feat: Snapshot latest deployed storage layouts Jan 8, 2024
@nicholaspai nicholaspai requested a review from mrice32 January 8, 2024 15:36
Copy link
Contributor

@mrice32 mrice32 left a comment

Choose a reason for hiding this comment

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

LGTM! Great script

@nicholaspai nicholaspai merged commit e9a9e8b into master Jan 10, 2024
@nicholaspai nicholaspai deleted the npai/storage-layouts branch January 10, 2024 14:01
pxrl pushed a commit that referenced this pull request Feb 20, 2024
* WIP

Signed-off-by: Matt Rice <matthewcrice32@gmail.com>

* feat: Snapshot deployed storage layouts

Upload latest deployed storage layouts for comparison with potential new contracts

* Add latest storage layouts

* Update foundry.toml

* Update foundry.toml

* WIP

Signed-off-by: Matt Rice <matthewcrice32@gmail.com>

* feat: Snapshot deployed storage layouts

Upload latest deployed storage layouts for comparison with potential new contracts

* Add latest storage layouts

* WIP

Signed-off-by: Matt Rice <matthewcrice32@gmail.com>

* Update foundry.toml

* Update foundry.toml

* Add latest deployed snapshots and script to snapshot

* Update .gitignore

---------

Signed-off-by: Matt Rice <matthewcrice32@gmail.com>
Co-authored-by: Matt Rice <matthewcrice32@gmail.com>
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.

3 participants