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

contracts: clean up deploy script abstractions #12336

Merged
merged 3 commits into from
Oct 5, 2024

Conversation

tynes
Copy link
Contributor

@tynes tynes commented Oct 5, 2024

Description

Move the implementation deployments into deployImplementations
and the initializations into the initizer function so that things
are grouped more logically. Even though we use OPSM for modern
deployments, the legacy code is still in the repo. This change
makes it easier to implement Standard L2 Genesis, where we depend
on the OptimismPortal being initialized before the SystemConfig,
since the SystemConfig makes calls to the portal during its
initialize call.

Move the implementation deployments into `deployImplementations`
and the initializations into the initizer function so that things
are grouped more logically. Even though we use OPSM for modern
deployments, the legacy code is still in the repo. This change
makes it easier to implement Standard L2 Genesis, where we depend
on the `OptimismPortal` being initialized before the `SystemConfig`,
since the `SystemConfig` makes calls to the portal during its
`initialize` call.
@tynes tynes requested a review from a team as a code owner October 5, 2024 00:01
@tynes
Copy link
Contributor Author

tynes commented Oct 5, 2024

Looks like a failing e2e test

    validity_test.go:334: 
                Error Trace:    /root/project/op-e2e/system/bridge/validity_test.go:334
                Error:          Received unexpected error:
                                no contract code at given address
                Test:           TestMixedWithdrawalValidity_Standard/withdrawal_test#3

Modularizes the functionality more
@tynes tynes requested review from a team as code owners October 5, 2024 00:50
@tynes tynes requested a review from protolambda October 5, 2024 00:50
@tynes tynes added this pull request to the merge queue Oct 5, 2024
Merged via the queue into develop with commit e165a7e Oct 5, 2024
61 checks passed
@tynes tynes deleted the contracts/fix-abstraction branch October 5, 2024 21:06
protolambda pushed a commit that referenced this pull request Oct 7, 2024
* contracts: clean up deploy script abstractions

Move the implementation deployments into `deployImplementations`
and the initializations into the initizer function so that things
are grouped more logically. Even though we use OPSM for modern
deployments, the legacy code is still in the repo. This change
makes it easier to implement Standard L2 Genesis, where we depend
on the `OptimismPortal` being initialized before the `SystemConfig`,
since the `SystemConfig` makes calls to the portal during its
`initialize` call.

* op-e2e: remove dependency on contracts existing

Modularizes the functionality more

* lint: fix
tynes added a commit that referenced this pull request Oct 7, 2024
It began to error after #12336
@tynes tynes mentioned this pull request Oct 7, 2024
github-merge-queue bot pushed a commit that referenced this pull request Oct 8, 2024
It began to error after #12336
samlaf pushed a commit to samlaf/optimism that referenced this pull request Nov 10, 2024
* contracts: clean up deploy script abstractions

Move the implementation deployments into `deployImplementations`
and the initializations into the initizer function so that things
are grouped more logically. Even though we use OPSM for modern
deployments, the legacy code is still in the repo. This change
makes it easier to implement Standard L2 Genesis, where we depend
on the `OptimismPortal` being initialized before the `SystemConfig`,
since the `SystemConfig` makes calls to the portal during its
`initialize` call.

* op-e2e: remove dependency on contracts existing

Modularizes the functionality more

* lint: fix
samlaf pushed a commit to samlaf/optimism that referenced this pull request Nov 10, 2024
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