-
Notifications
You must be signed in to change notification settings - Fork 3.9k
feat: add L2ProxyAdmin #19135
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
Merged
maurelian
merged 5 commits into
ethereum-optimism:develop
from
defi-wonderland:sc-feat/l2cm-l2-proxy-admin
Feb 17, 2026
Merged
feat: add L2ProxyAdmin #19135
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
11bc819
feat(l2cm ): add L2ProxyAdmin
0xniha 8f01da1
refactor: rename l2cm interface
0xniha 8e9c8de
fix: semgrep issues
0xniha 7eb5488
fix: revert proxy admin renaming
0xniha 061749b
fix: proxy admin predeploy getName, label and refactor tests & TODO
0xniha 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
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
packages/contracts-bedrock/interfaces/L2/IL2ContractsManager.sol
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 |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| // SPDX-License-Identifier: MIT | ||
| pragma solidity ^0.8.0; | ||
|
|
||
| /// @title IL2ContractsManager | ||
| /// @notice Interface for the L2ContractsManager contract. | ||
| interface IL2ContractsManager { | ||
| /// @notice Executes the upgrade for all predeploys. | ||
| /// @dev This function MUST be called via DELEGATECALL from the L2ProxyAdmin. | ||
| function upgrade() external; | ||
| } |
24 changes: 24 additions & 0 deletions
24
packages/contracts-bedrock/interfaces/L2/IL2ProxyAdmin.sol
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 |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| // SPDX-License-Identifier: MIT | ||
| pragma solidity ^0.8.0; | ||
|
|
||
| // Interfaces | ||
| import { IProxyAdmin } from "interfaces/universal/IProxyAdmin.sol"; | ||
| import { ISemver } from "interfaces/universal/ISemver.sol"; | ||
|
|
||
| /// @title IL2ProxyAdmin | ||
| interface IL2ProxyAdmin is IProxyAdmin, ISemver { | ||
| /// @notice Emitted when the predeploys are upgraded. | ||
| /// @param l2ContractsManager Address of the L2ContractsManager contract. | ||
| event PredeploysUpgraded(address indexed l2ContractsManager); | ||
|
|
||
| /// @notice Thrown when the caller is not the depositor account. | ||
| error L2ProxyAdmin__Unauthorized(); | ||
|
|
||
| /// @notice Thrown when the upgrade fails. | ||
| error L2ProxyAdmin__UpgradeFailed(bytes data); | ||
|
|
||
| function __constructor__(address _owner) external; | ||
| /// @notice Upgrades the predeploys via delegatecall to the L2ContractsManager contract. | ||
| /// @param _l2ContractsManager Address of the L2ContractsManager contract. | ||
| function upgradePredeploys(address _l2ContractsManager) external; | ||
| } |
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
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.
Uh oh!
There was an error while loading. Please reload this page.