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

Run L1 devnet #12

Merged
merged 38 commits into from
Aug 18, 2023
Merged

Run L1 devnet #12

merged 38 commits into from
Aug 18, 2023

Conversation

norswap
Copy link
Member

@norswap norswap commented Aug 15, 2023

cf. #8

Work in progress but getting closer

@norswap norswap marked this pull request as draft August 15, 2023 17:03
@norswap
Copy link
Member Author

norswap commented Aug 16, 2023

99% ready, still want to do one or two cleanups (e.g. want to go back to arrays as parameter to lib.run wherever paths or user-defined args may be passed in and we don't utilize piping etc)

Also, need to rerun the whole thing on a fresh VM to try to shake out a few possible bugs. (I already did this midway, and it caught tons of stuff in the dependency handling, so hopefully not much on the second pass.)


####################################################################################################

class OPPaths:
Copy link
Contributor

Choose a reason for hiding this comment

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

@norswap @ayazabbas @eerkaijun I prefer use a separate dir for our whole deployment structure instead coupled in OP monorepo. I think our tools will focus on deployment so that we just need some files generated for deployment, such as binary, genesis file, key file, config file etc. We can generate directly or move to the specific deployment dir, this step is like a provision process. After that, we can reuse this assets to deploy on various different platform which like our design doc.

Copy link
Member Author

Choose a reason for hiding this comment

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

We discussed this on our call: some of these we could move, some of them, there are things we're used in the monorepo (notably Deploy.sol) that assume fixed paths, so we can't change them without patching these files too.

I'd say it's nice to have but not a priority. Let's open an issue about it.

l1.py Outdated
patch(paths)
generate_devnet_l1_genesis(paths)
start_devnet_l1_node(paths)
generate_devnet_l1_config(paths)
Copy link
Contributor

Choose a reason for hiding this comment

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

can generate config before start L1 node? I think it should be better if we can do provision work before start the service, it will also benefit when we support different deployment platform besides localhost.

Copy link
Member Author

Choose a reason for hiding this comment

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

The "devnet L1 config" is a actually a "devnet" or "network" config and is not used for spinning the L1. I've changed the name to clarify, and changed the order too (but doesn't matter)

Copy link
Member Author

Choose a reason for hiding this comment

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

#24

@norswap norswap mentioned this pull request Aug 18, 2023
@norswap norswap marked this pull request as ready for review August 18, 2023 17:41
@norswap norswap merged commit 780457e into master Aug 18, 2023
2 checks passed
This was referenced Aug 18, 2023
@norswap norswap deleted the ns/exploration branch September 26, 2023 19:17
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