Skip to content

feat: add L2ProxyAdmin#19135

Merged
maurelian merged 5 commits intoethereum-optimism:developfrom
defi-wonderland:sc-feat/l2cm-l2-proxy-admin
Feb 17, 2026
Merged

feat: add L2ProxyAdmin#19135
maurelian merged 5 commits intoethereum-optimism:developfrom
defi-wonderland:sc-feat/l2cm-l2-proxy-admin

Conversation

@0xniha
Copy link
Contributor

@0xniha 0xniha commented Feb 10, 2026

Description

Extends the existing ProxyAdmin predeploy at 0x4200000000000000000000000000000000000018 (now named L2ProxyAdmin) to support batch upgrades of L2 predeploy contracts through the xFork L2ContractsManager.

Closes #18829

Changes

  • Extended ProxyAdmin:
    • Extends standard ProxyAdmin with batch upgrades.
    • Adds upgradePredeploys() function that delegates to an xForkL2ContractsManager contract (restricted to depositor account).
    • Includes semantic versioning.
  • Naming Consistency: Renamed all references from generic ProxyAdmin to L2ProxyAdmin.

Tests
Added unit tests for L2ProxyAdmin functionality in test/L2/L2ProxyAdmin.t.sol

* feat: initial l2proxyadmin implementation

* feat: add semver and event

* test: add L2ProxyAdmin unit tests

* refactor: rename proxyAdmin to L2ProxyAdmin inside packages

* refactor: rename proxyAdmin to L2ProxyAdmin in go side
@0xniha 0xniha requested review from a team as code owners February 10, 2026 19:45
@0xniha 0xniha requested a review from mslipper February 10, 2026 19:45
@almanax-ai
Copy link
Contributor

almanax-ai bot commented Feb 10, 2026

Plan expired

Your subscription has expired. Please renew your subscription to continue using CI/CD integration and other features.

@0xniha 0xniha marked this pull request as draft February 10, 2026 19:46
@0xniha 0xniha marked this pull request as ready for review February 11, 2026 19:52
@0xniha
Copy link
Contributor Author

0xniha commented Feb 11, 2026

/ci authorize 8f01da1

@0xniha 0xniha changed the title feat(l2cm ): add L2ProxyAdmin feat: add L2ProxyAdmin Feb 12, 2026
@0xniha
Copy link
Contributor Author

0xniha commented Feb 12, 2026

/ci authorize 8e9c8de

* fix: revert proxy admin renaming in packages

* fix: revert proxy admin renaming in go

* fix: add missing natspec in l2pa constructor

* fix: natspec proxied true

* fix: run pre-pr
* fix: proxy admin predeploy getName, label and refactor tests

* feat: add todo for l2pa refactor to be initializable
@0xniha
Copy link
Contributor Author

0xniha commented Feb 12, 2026

/ci authorize 061749b

@maurelian maurelian enabled auto-merge February 13, 2026 21:15
@maurelian maurelian added this pull request to the merge queue Feb 17, 2026
Merged via the queue into ethereum-optimism:develop with commit 42fc404 Feb 17, 2026
210 checks passed
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.

[L2CM Upgrades] Add upgradePredeploys() function to L2 ProxyAdmin

6 participants