Skip to content

feat: refactor l2cm conditional deployer predeploy and add L2CM dev flag #836

Merged
0xniha merged 6 commits intosc-feat/l2cm-conditional-deployerfrom
refactor/l2cm-conditional-deployer
Feb 6, 2026
Merged

feat: refactor l2cm conditional deployer predeploy and add L2CM dev flag #836
0xniha merged 6 commits intosc-feat/l2cm-conditional-deployerfrom
refactor/l2cm-conditional-deployer

Conversation

@0xniha
Copy link
Copy Markdown

@0xniha 0xniha commented Feb 5, 2026

Closes OPT-1426

@0xniha 0xniha requested review from 0xOneTony and 0xiamflux February 5, 2026 22:18
@0xniha 0xniha self-assigned this Feb 5, 2026
@linear
Copy link
Copy Markdown

linear Bot commented Feb 5, 2026

@0xniha
Copy link
Copy Markdown
Author

0xniha commented Feb 5, 2026

TODOs using L2Genesis' new useL2CM input:

Comment thread packages/contracts-bedrock/src/L2/ConditionalDeployer.sol Outdated
Comment thread packages/contracts-bedrock/src/L2/ConditionalDeployer.sol Outdated
@0xniha 0xniha merged commit 8c1fa94 into sc-feat/l2cm-conditional-deployer Feb 6, 2026
1 check passed
@0xniha 0xniha deleted the refactor/l2cm-conditional-deployer branch February 6, 2026 15:36
0xOneTony added a commit that referenced this pull request Feb 13, 2026
* feat: add ConditionalDeployer (#687)

* feat: refactor l2cm conditional deployer predeploy and add L2CM dev flag  (#836)

* refactor: replace create2 deployer for arachnid

* feat: add ConditionalDeployer as predeploy and add L2CM dev flag

* fix: add pre-pr fix

* fix: remove unnecessary auth in conditional deployer

* feat: add custom error for deployment revert

* test: add l2cm e2e apply test case

* fix: conditional deployer tests and match style guide

* fix: remove fork test

* feat: add common test to cond deployer test

* fix: follow constant style guide

* fix: comments and add msg.value to ConditionalDeployer

* fix: conditional deployer comment in apply test

* fix: arachnid reference comment

* fix: add msg.value to conditional deployer

* fix: deterministic deployment proxy comment

* fix: add code length check after deploy

* fix: add code length check after deploy

* fix: pre pr fix

* refactor: remove useL2CM bool initialization

* fix: make deploy non payable and add tests

* fix: make deploy non payable

* test: add missing getters test

* fix: add missing natspec

* feat: add todo issue for devfeatures cyclic import

* chore: pre pr run

* refactor: add returned address check in deploy

* fix: use encodePacked for return address test

* fix: unify getters in a single test contract

* fix: variables naming and mutability

* fix: remove underscore from local variable

* fix: remove address payable from deterministicDeploymentProxy

* refactor: rename dummy storage variable in test and add internal getExpectedImplementation helper

---------

Co-authored-by: niha <205694301+0xniha@users.noreply.github.com>
Co-authored-by: OneTony <onetony@defi.sucks>
Co-authored-by: 0xOneTony <112496816+0xOneTony@users.noreply.github.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.

2 participants