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

fix: Remove wait for finalization for create2 factory deployment #60

Merged
merged 11 commits into from
Aug 22, 2024

Conversation

clabby
Copy link
Contributor

@clabby clabby commented Aug 17, 2024

Overview

Removes the need to wait for the finalization of the L1 chain before deploying the create2 factory.

TODO

  • Update the config.sh in the OP monorepo's getting-started dir to allow for fetching an L1 block other than the finalized tag (context)

@clabby clabby marked this pull request as draft August 17, 2024 23:07
@clabby clabby marked this pull request as ready for review August 18, 2024 04:54
Comment on lines -34 to -35
# Install web3 cli
RUN curl -LSs https://raw.githubusercontent.com/gochain/web3/master/install.sh | sh

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gud, this installation has occasionally failed for my setup

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh really?

@@ -1,4 +1,4 @@
IMAGE = "ethpandaops/optimism-contract-deployer:latest"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we prob want to ask PandaOps team to rebuild this

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be able to rebuild, once the PR branch (cl/latest-getting-started) is merged in.

@barnabasbusa
Copy link
Contributor

I'm getting

Error:
server returned an error response: error code -32000: replacement transaction underpriced

for the contract deployment.

Dockerfile Outdated
# Install foundry
RUN curl -L https://foundry.paradigm.xyz | bash
ENV PATH="/root/.foundry/bin:${PATH}"
RUN foundryup -v nightly-626221f5ef44b4af950a08e09bd714650d9eb77d
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there something new in the nightly foundry that we need?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing specific; The OP monorepo pins the version of foundry it uses, see here. Just pinned it to the same in case there are any changes in artifact format, etc., as to not break op-node's expectations for reading from the artifacts during L2 genesis generation.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^ Same with the go version btw; Monorepo currently pins 1.21.1

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should probably try to query the version rather than rely on manual updates from our side

Co-authored-by: Barnabas Busa <barnabas.busa@ethereum.org>
Signed-off-by: clabby <ben@clab.by>
Dockerfile Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
src/contracts/contract_deployer.star Outdated Show resolved Hide resolved
Dockerfile Outdated Show resolved Hide resolved
@barnabasbusa
Copy link
Contributor

op geth has been rebased on geth, which defaults to path based storage (which is currently incompatible with archive mode). Therefore, #61 has to be first merged before the CI would pass on this PR.

barnabasbusa and others added 8 commits August 20, 2024 08:42
Signed-off-by: Barnabas Busa <barnabas.busa@ethereum.org>
Signed-off-by: Barnabas Busa <barnabas.busa@ethereum.org>
Signed-off-by: Barnabas Busa <barnabas.busa@ethereum.org>
Signed-off-by: Barnabas Busa <barnabas.busa@ethereum.org>
@barnabasbusa barnabasbusa merged commit d4c37f0 into ethpandaops:main Aug 22, 2024
5 checks passed
barnabasbusa added a commit that referenced this pull request Nov 22, 2024
🤖 I have created a release *beep* *boop*
---


##
[1.1.0](1.0.0...1.1.0)
(2024-11-21)


### Features

* add additional configuration options for participants
([#81](#81))
([05d0fe9](05d0fe9))
* add custom configurable forks
([#59](#59))
([878906a](878906a))
* add hildr
([#42](#42))
([e1ce08e](e1ce08e))
* add k8s tests
([#45](#45))
([168f062](168f062))
* add op_contract_deployer_params/image
([#63](#63))
([9416a86](9416a86))
* add op-besu
([#58](#58))
([08e7548](08e7548))
* add op-erigon - mininny
([#38](#38))
([c69bf34](c69bf34))
* add sanity check
([#50](#50))
([ceaa9a9](ceaa9a9))
* Add support for op-deployer, fix multiple L2s
([#74](#74))
([eb59380](eb59380))
* add version.txt
([#36](#36))
([1d10311](1d10311))
* add wait for sync for non kurtosis chains
([#49](#49))
([0452e11](0452e11))
* Adding op-nethermind
([#46](#46))
([fba71dd](fba71dd))
* op-deployer upgrade, fix fork support
([#88](#88))
([f8d9089](f8d9089))
* Output Admin Private Key
([#71](#71))
([95abc10](95abc10))


### Bug Fixes

* ci jobs only notify if discord secret available
([#48](#48))
([9473f89](9473f89))
* contract string
([#82](#82))
([c062de0](c062de0))
* count for participant was not calculated with
([#89](#89))
([f511988](f511988))
* DNS-1035 label
([#44](#44))
([1bf8541](1bf8541))
* erigon perms issue
([#76](#76))
([0328314](0328314))
* explicitly set client contexts0
([30017f2](30017f2))
* force offset time to be int
([#64](#64))
([74b6417](74b6417))
* github action should fail if any jobs fail
([#78](#78))
([577ca3b](577ca3b))
* grammar in docs
([#33](#33))
([d6fb36f](d6fb36f))
* handling of config options
([#85](#85))
([5b085c8](5b085c8))
* image label name too long, truncate at 63 chars
([#90](#90))
([5bd687c](5bd687c))
* l2 contract deployment
([#35](#35))
([3f2b16d](3f2b16d))
* Provide default participants
([#77](#77))
([a7d72da](a7d72da))
* Remove wait for finalization for create2 factory deployment
([#60](#60))
([d4c37f0](d4c37f0))
* test k8s
([#47](#47))
([ac17e89](ac17e89))
* trust l1 rpc in op-node
([#41](#41))
([05dcd2e](05dcd2e))
* Update neth image; improve genesis tool
([#73](#73))
([71e61c8](71e61c8))
* update op-geth hash based storage
([#61](#61))
([f0b5b23](f0b5b23))
* Validate root params
([#79](#79))
([914a808](914a808))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: Barnabas Busa <barnabas.busa@ethereum.org>
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.

3 participants