-
Notifications
You must be signed in to change notification settings - Fork 409
fix: enable automatic upgrades on the server side (#1981) #1983
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
Open
kelemeno
wants to merge
22
commits into
draft-v31
Choose a base branch
from
kl/automatic-upgrades
base: draft-v31
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 15 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
96116ea
fix: foundry fixes (#1981)
kelemeno fea9b2a
get upgradeTimstamp from chainAdmin
kelemeno 0f0ddcf
add upgrader role to ValidatorTimelock
kelemeno 1b0c83f
fixes
tomg10 6bb00a4
revert invalid change
tomg10 340cfac
Merge branch 'draft-v31' of ssh://github.com/matter-labs/era-contract…
kelemeno 379df1d
update interface
kelemeno 7be1633
selectors
kelemeno 8b9045b
fix selectors mismatch
kelemeno 8dfb89b
selectors
kelemeno 0262c7a
test(l1-contracts): upgradeChainFromVersion propagates to diamond proxy
kelemeno 8d5f6f7
Merge branch 'draft-v31' of ssh://github.com/matter-labs/era-contract…
kelemeno a50fa6d
small lint fixes
kelemeno 1a9e432
zkstack out
kelemeno d793c6c
Merge branch 'draft-v31' of ssh://github.com/matter-labs/era-contract…
kelemeno 76ef038
Merge branch 'draft-v31' of ssh://github.com/matter-labs/era-contract…
kelemeno 1b7d8b5
selectors
kelemeno 3f91df8
Merge branch 'draft-v31' of ssh://github.com/matter-labs/era-contract…
kelemeno 1652902
deduplicate empty upgrade
kelemeno 94ae8f2
cleanup
kelemeno 274421a
fix test
kelemeno b042901
Merge branch 'draft-v31' of ssh://github.com/matter-labs/era-contract…
kelemeno File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -52,9 +52,14 @@ interface IAdmin is IZKChainBase { | |
| function allowEvmEmulation() external returns (bytes32 canonicalTxHash); | ||
|
|
||
| /// @notice Perform the upgrade from the current protocol version with the corresponding upgrade data | ||
| /// @param _chainAddress The address of the chain being upgraded | ||
| /// @param _protocolVersion The current protocol version from which upgrade is executed | ||
| /// @param _cutData The diamond cut parameters that is executed in the upgrade | ||
| function upgradeChainFromVersion(uint256 _protocolVersion, Diamond.DiamondCutData calldata _cutData) external; | ||
| function upgradeChainFromVersion( | ||
| address _chainAddress, | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I know that you have not yet worked on this change on the server side, but this is a breaking change for zkstack cli etc |
||
| uint256 _protocolVersion, | ||
| Diamond.DiamondCutData calldata _cutData | ||
| ) external; | ||
|
|
||
| /// @notice Executes a proposed governor upgrade | ||
| /// @dev Only the ChainTypeManager contract can execute the upgrade | ||
|
|
||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why did we introduce so many changes in this file?