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

Rollup tutorial #657

Closed
wants to merge 9 commits into from
Closed

Rollup tutorial #657

wants to merge 9 commits into from

Conversation

sbvegan
Copy link
Collaborator

@sbvegan sbvegan commented Apr 28, 2024

@sbvegan sbvegan requested a review from a team as a code owner April 28, 2024 19:00
@sbvegan sbvegan requested a review from a team April 28, 2024 19:00
@sbvegan sbvegan marked this pull request as draft April 28, 2024 19:00
Copy link

netlify bot commented Apr 28, 2024

Deploy Preview for docs-optimism ready!

Name Link
🔨 Latest commit 365f123
🔍 Latest deploy log https://app.netlify.com/sites/docs-optimism/deploys/662e9cd6fd954c000816023c
😎 Deploy Preview https://deploy-preview-657--docs-optimism.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

coderabbitai bot commented Apr 28, 2024

Walkthrough

The modifications in the documentation primarily involve renaming sections to clarify access to Layer 1 and emphasize the creation of new addresses. There is a systematic effort to update terminology and structure to enhance clarity and user understanding in the context of setting up a Layer 2 rollup.

Changes

File Path Change Summary
.../create-l2-rollup.mdx Renamed sections for clarity and added steps for generating new addresses and configuring the network.

Possibly related issues

  • ethereum-optimism/docs#627: This issue calls for an update to make the tutorial more evergreen and verify the tutorial works as expected. The changes in this PR seem to address updating the tutorial, potentially making it align better with current practices.
  • ethereum-optimism/docs#549: Although this issue focuses on syncing documentation with software updates post v1.7.0, the PR's effort to update and clarify sections might indirectly contribute to making the documentation more consistent with recent changes in the build/run processes.

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 8

You will need access to the Layer 1 execution and consensus layers.
</Callout>

## Layer 1
Copy link
Contributor

Choose a reason for hiding this comment

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

Consider expanding on the benefits and drawbacks of using source code over Docker
The section "Layer 1" mentions the choice of using source code over Docker but only briefly touches on the benefits. It could be enhanced by detailing why this approach might be preferable, including potential drawbacks for a more balanced view.

@@ -242,16 +209,14 @@

{<h3>Fill out the environment variable file</h3>}

Open up the environment variable file and fill out the following variables:
Open up the layer 1 environment variable file and fill out the following variables:
Copy link
Contributor

Choose a reason for hiding this comment

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

Review and possibly expand the description of L1_RPC_KIND
The table under "Fill Out Environment Variables" includes L1_RPC_KIND with various options like alchemy, quicknode, etc. It would be beneficial to provide a brief description or link to documentation about what these options mean and how they affect the connection to the L1 node.

## Deploy the L1 contracts
### Configure your network

todo: figure out a good configuration process for this release
Copy link
Contributor

Choose a reason for hiding this comment

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

Address the placeholder text regarding network configuration
The section "Configure your network" contains a placeholder text "todo: figure out a good configuration process for this release". This should be completed or updated with actual content before the tutorial is finalized to avoid confusion.




### Generate the L2 config files
Copy link
Contributor

Choose a reason for hiding this comment

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

Complete the section on generating L2 config files
The "Generate the L2 config files" section is marked with a todo to rewrite it. This section is crucial for setting up the L2 configuration and should be detailed and clear to avoid setup errors.

@@ -588,6 +627,8 @@
It's important that you've already initialized the geth node at this point as per the previous section. Failure to do this will cause startup issues between `op-geth` and `op-node`.
</Callout>

Copy link
Contributor

Choose a reason for hiding this comment

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

Clarify the configuration verification step for op-geth
The section starting op-geth includes a todo to verify configuration. It's important to ensure that all configurations are verified and correctly documented to prevent operational issues.

@@ -633,6 +674,8 @@
cd ~/optimism/op-node
```

Copy link
Contributor

Choose a reason for hiding this comment

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

Ensure configuration verification for op-node
Similar to op-geth, the op-node section includes a todo for verifying configuration. Completing this verification is essential for ensuring the stability and correctness of the node operations.

@@ -698,6 +742,8 @@
cd ~/optimism/op-batcher
```

Copy link
Contributor

Choose a reason for hiding this comment

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

Verify configuration for op-batcher
The section to start op-batcher also mentions a need to verify configuration. This step is critical to ensure that transactions are batched and published to L1 correctly.

@@ -744,6 +790,8 @@

{<h3>Run op-proposer</h3>}

Copy link
Contributor

Choose a reason for hiding this comment

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

Complete configuration verification for op-proposer
The op-proposer section has a todo for verifying configuration. Since this component is responsible for proposing new state roots, its correct configuration is vital for the integrity of the L2 rollup.


## Build the Source Code
<Callout>
You will need access to the Layer 1 execution and consensus layers.
Copy link

Choose a reason for hiding this comment

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

the consensus layer requirement is for OP Node posting blobs?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, I'm pretty sure the l1.beacon endpoint is a hard requirement. Although this testnet rollup will be calldata. At the end, there should be call outs for how to enable op stack features: snap sync, span batches, and how to switch to using blobs.

@sbvegan
Copy link
Collaborator Author

sbvegan commented May 29, 2024

More context on the latest best practices: ethereum-optimism/optimism#10678

@cpengilly cpengilly added the documentation Improvements or additions to documentation label Aug 20, 2024
@sbvegan
Copy link
Collaborator Author

sbvegan commented Sep 13, 2024

This tutorial... i think we're in a better state with the monorepo tooling to take a much better approach here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants