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

Support baking contracts in the L1 genesis #21

Closed
norswap opened this issue Aug 18, 2023 · 0 comments
Closed

Support baking contracts in the L1 genesis #21

norswap opened this issue Aug 18, 2023 · 0 comments
Labels
enhancement New feature or request question Further information is requested

Comments

@norswap
Copy link
Member

norswap commented Aug 18, 2023

The Optimism monorepo used to support to modes of "deploying" the rollup contracts to L1:

  1. Deploying them to L1 directly
  2. Deploying them to a temporary L1, then extracting data from the deployment artifacts, and baking the contracts into a new L1 genesis file.

In newer versions of the repo, option (1) has disappeared. That being said, the logic to deploy to the temporary or actual L1 should be almost entirely identical.

We need to support a generic version of (1) anyway, because we'll need supporting deploying to existing L1 (fixing the genesis file only works for nodes we spin ourselves).

The benefit of (2) is that if we're spinning new devnets often (e.g. to dev test a feature), then we cut off on the time (~30s?) it takes to deploy rollup contracts to L1. This is probably most relevant to people hacking on the node, which can use the built-in devnet from the Optimism repo instead.

Still, would be nice to support just in case, just probably not a huge priority.

@norswap norswap added enhancement New feature or request question Further information is requested labels Aug 18, 2023
@norswap norswap closed this as completed Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant