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

add ASR upgrade script #163

Merged
merged 5 commits into from
Jan 17, 2025
Merged

add ASR upgrade script #163

merged 5 commits into from
Jan 17, 2025

Conversation

blockchaindevsh
Copy link
Collaborator

@blockchaindevsh blockchaindevsh commented Jan 13, 2025

This PR provides a rust-foundry style script to upgrade ASR implementation.

Storage layout of ASR

% forge inspect src/dispute/AnchorStateRegistry.sol:AnchorStateRegistry storageLayout

╭------------------+----------------------------------------+------+--------+-------+---------------------------------------------------------╮
| Name             | Type                                   | Slot | Offset | Bytes | Contract                                                |
+=============================================================================================================================================+
| _initialized     | uint8                                  | 0    | 0      | 1     | src/dispute/AnchorStateRegistry.sol:AnchorStateRegistry |
|------------------+----------------------------------------+------+--------+-------+---------------------------------------------------------|
| _initializing    | bool                                   | 0    | 1      | 1     | src/dispute/AnchorStateRegistry.sol:AnchorStateRegistry |
|------------------+----------------------------------------+------+--------+-------+---------------------------------------------------------|
| anchors          | mapping(GameType => struct OutputRoot) | 1    | 0      | 32    | src/dispute/AnchorStateRegistry.sol:AnchorStateRegistry |
|------------------+----------------------------------------+------+--------+-------+---------------------------------------------------------|
| superchainConfig | contract ISuperchainConfig             | 2    | 0      | 20    | src/dispute/AnchorStateRegistry.sol:AnchorStateRegistry |
╰------------------+----------------------------------------+------+--------+-------+---------------------------------------------------------╯

@blockchaindevsh blockchaindevsh marked this pull request as ready for review January 14, 2025 12:44
@blockchaindevsh blockchaindevsh changed the title add ASR upgrade function to op-deployer add ASR upgrade script Jan 14, 2025
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