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(genesis): use OPCM for deployments #176

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

jakim929
Copy link
Contributor

@jakim929 jakim929 commented Sep 26, 2024

uses OPCM and interopgen to generate genesis files.

  • created Worldgen fn and a corresponding CLI
  • generation is much faster (1~2s vs. 20s previously) - we can prob start doing this at runtime if necessary
  • makes it easier to stay up to date with contract versions in monorepo - all it requires is updating the artifacts url
  • removed the python script 😄

Note:

  • it is possible for our ethereum-optimism/optimism go library version to get out of sync with the contract artifacts.
    • this will result in OPCM using outdated bindings to attempt to deploy & fail.
    • ideal flow is we specify the commit hash of the monorepo and that autogenerates the contracts artifacts URL - can look into this later - UPDATE: this is done
  • the genesis timestamp is based on time the script was run at - will update this to be more stable

Copy link

cloudflare-workers-and-pages bot commented Sep 26, 2024

Deploying supersim with  Cloudflare Pages  Cloudflare Pages

Latest commit: 6d78548
Status: ✅  Deploy successful!
Preview URL: https://1d88dfd5.supersim.pages.dev
Branch Preview URL: https://09-26-feat-genesis-use-opcm.supersim.pages.dev

View logs

@jakim929
Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @jakim929 and the rest of your teammates on Graphite Graphite

@jakim929 jakim929 force-pushed the 09-26-feat_genesis_use_opcm_for_deployments branch 5 times, most recently from 0d67716 to 7b8012d Compare September 27, 2024 15:41
@jakim929 jakim929 marked this pull request as ready for review September 27, 2024 15:43
@jakim929 jakim929 requested a review from a team as a code owner September 27, 2024 15:43
genesis/cmd/main.go Outdated Show resolved Hide resolved
@jakim929 jakim929 force-pushed the 09-26-feat_genesis_use_opcm_for_deployments branch from 7b8012d to 8a748d8 Compare September 27, 2024 16:24
monorepo-artifacts-url Outdated Show resolved Hide resolved
@jakim929 jakim929 force-pushed the 09-26-feat_genesis_use_opcm_for_deployments branch 3 times, most recently from 864acd8 to c5df7cb Compare October 7, 2024 21:18
@jakim929 jakim929 force-pushed the 09-26-feat_genesis_use_opcm_for_deployments branch from c5df7cb to 6d78548 Compare October 7, 2024 22:09
@jakim929 jakim929 merged commit 25efe39 into main Oct 7, 2024
5 checks passed
@jakim929 jakim929 deleted the 09-26-feat_genesis_use_opcm_for_deployments branch October 7, 2024 22:15
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