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

feat(devnet): makes nonL1 conts start #6

Open
wants to merge 18 commits into
base: rsk/poc-v0
Choose a base branch
from

Conversation

jurajpiar
Copy link
Member

@jurajpiar jurajpiar commented Jan 24, 2024

Allows developers and CI to run the system with built-in devnet process.

Removes the generated regtest deployments and deploy-config as the devnet process creates the config from a template and the deployment files are not needed to run devnet.

The devnet python script has been heavily modified to accommodate for the differences between rsk and ethereum genesis and block dump.
In addition it uses a our own op-geth as a dependency instead of go-ethereum (see go.mod), and builds an op-geth and rskj images in the docker compose process.

Resolves ROLLUP-521

details

The op-geth PR should be merged first. Once it is, we should change references to it from the PR branch (optimism_genesis) to rsk/poc-v0.

Screenshot 2024-03-05 at 09 08 20
Screenshot 2024-03-05 at 09 08 45
this one will require to run git rev-parse rsk/poc-v0 once updated.

Known issues:

When depositing and withdrawing using the op SDK, the logs-check (get event and compare hash) fails. Although it may be related to some changes in this PR, in order to move on, I've created a bug issue for this instead of fixing it here.

@jurajpiar jurajpiar force-pushed the rsk/juraj/devnet branch 8 times, most recently from 4b113ef to 82bbd0f Compare February 5, 2024 16:58
@jurajpiar jurajpiar requested a review from a team March 4, 2024 16:10
@jurajpiar jurajpiar marked this pull request as ready for review March 4, 2024 16:10
Makefile Show resolved Hide resolved
Makefile Show resolved Hide resolved
bedrock-devnet/devnet/__init__.py Outdated Show resolved Hide resolved
bedrock-devnet/devnet/__init__.py Outdated Show resolved Hide resolved
ops-bedrock/Dockerfile.l1_deployer Outdated Show resolved Hide resolved
ops-bedrock/entrypoint-l1.sh Show resolved Hide resolved
ops-bedrock/rskj.node.conf Outdated Show resolved Hide resolved
packages/contracts-bedrock/deploy-config/regtest.json Outdated Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
bedrock-devnet/devnet/__init__.py Outdated Show resolved Hide resolved
bedrock-devnet/devnet/__init__.py Outdated Show resolved Hide resolved
@jurajpiar jurajpiar requested a review from illuque March 6, 2024 11:06
@jurajpiar jurajpiar force-pushed the rsk/juraj/devnet branch 4 times, most recently from 71be2ac to e9311ae Compare March 6, 2024 11:48
@@ -22,7 +18,7 @@ def update_mod(project):
'mod',
'edit',
'-replace',
f'github.com/ethereum/go-ethereum@{GETH_VERSION}=github.com/ethereum-optimism/op-geth@optimism'
f'github.com/ethereum/go-ethereum=github.com/rsksmart/op-geth@11a70c76751354d7e82def14a56f89f08e59d7b7' # represents tip of github.com/rsksmart/op-geth#rsk/poc-v0
Copy link
Collaborator

Choose a reason for hiding this comment

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

Here we use the commit while in other parts we just use the branch. Let's use the same approach if possible

Copy link
Member Author

@jurajpiar jurajpiar Mar 6, 2024

Choose a reason for hiding this comment

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

that's just the thing. it's not possible to use the branch here and that is why we use the commit (see PR description). Although, according to this doc it should be possible. However, when we try it it gives us:

go.mod:216: replace github.com/rsksmart/op-geth: version "rsk/poc-v0" invalid: version "rsk/poc-v0" invalid: disallowed version string

Copy link
Member Author

@jurajpiar jurajpiar Mar 6, 2024

Choose a reason for hiding this comment

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

having said that, I can create a tag and we set it to that?

@@ -4,6 +4,7 @@ pragma solidity ^0.8.0;
/// @notice Chain IDs for the various networks.
library Chains {
uint256 internal constant RootstockRegtest = 33;
uint256 internal constant OPRootstockRegtest = 42069;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Out of curiosity: is this an arbitrary number?

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't know where it came from. I copied it from somewhere, I think Francisco used it first.

Copy link
Collaborator

Choose a reason for hiding this comment

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

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