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

docs: arbitrum updates #1490

Merged
merged 47 commits into from
Apr 2, 2024
Merged

docs: arbitrum updates #1490

merged 47 commits into from
Apr 2, 2024

Conversation

jcstein
Copy link
Member

@jcstein jcstein commented Mar 20, 2024

Overview

Resolves #1488

Todos:

Orbit docs to learn from:

Checklist

  • New and updated code has appropriate documentation
  • New and updated code has new and/or updated testing
  • Required CI checks are passing
  • Visual proof for any user facing features like CLI or documentation updates
  • Linked issues closed with keywords

Summary by CodeRabbit

  • New Features

    • Updated sidebar navigation with new and renamed links for developers.
    • Added a comprehensive guide for bridging in and out of the Arbitrum Orbit L3 rollup.
    • Provided a detailed guide on running a full node or validating a full node on the Orbit rollup.
    • Enhanced integration between Celestia and Arbitrum Orbit to improve data availability and security for L2 solutions settling on Ethereum.
  • Documentation

    • Updated link references in developer documentation to reflect the new "Quickstart: Deploy an Orbit rollup" terminology.

Copy link
Contributor

coderabbitai bot commented Mar 20, 2024

Walkthrough

The updates mainly focus on enhancing the Arbitrum documentation and integration with Celestia, reflecting a shift towards the Orbit rollup. New guides for bridging, running a full node, and deploying dApps within the Arbitrum ecosystem are introduced. Additionally, the integration with Celestia for data availability alongside the Ethereum fallback mechanism signals a significant improvement in the reliability and security of L2 solutions.

Changes

Files Change Summary
.vitepress/config.ts Renamed and added new sidebar links for Orbit rollup
developers/arbitrum-bridge.md Added guide for bridging in and out of the Orbit rollup
developers/arbitrum-dapp-deploy.md Updated link reference for deploying a dApp on Orbit rollup
developers/arbitrum-full-node.md New guide on running a full Orbit rollup node
developers/arbitrum-integration.md Enhanced Celestia and Arbitrum Orbit integration for improved data availability and security

Assessment against linked issues

Objective Addressed Explanation
Add high level overview, link to blobstream contract table, context about oracle image (#1488)
Add compatibility table of celestia-node version to nitro version, before install steps (#1488) The compatibility table is not mentioned, which is crucial for ensuring version compatibility.
Remove nitrogen page (#1488) It's unclear if the nitrogen page was removed due to lack of explicit mention.
Add mocha guide into devnet guide, making it 1 guide by default (#1488) There's no mention of integrating the mocha guide into the devnet guide.

🐰 A hop, a skip, a code deploy,
In Orbit's embrace, we find our joy.
🌌 From bridges wide to nodes so deep,
With Celestia's watch, our data sleeps.
💾 To the moon, our code does leap,
In the warren of tech, these changes we keep.

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.

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 a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

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

CodeRabbit Configration 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/coderabbit-overrides.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

github-actions bot commented Mar 20, 2024

PR Preview Action v1.4.7
Preview removed because the pull request was closed.
2024-04-02 21:45 UTC

@jcstein jcstein changed the title docs: initial commit, needs revision docs: arbitrum updates Mar 20, 2024
@jcstein jcstein mentioned this pull request Mar 22, 2024
7 tasks
@jcstein jcstein self-assigned this Mar 22, 2024
@jcstein jcstein requested a review from Bidon15 April 2, 2024 19:08
@jcstein jcstein marked this pull request as ready for review April 2, 2024 19:12
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: 9

Review Status

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 5928279 and c434596.
Files ignored due to path filters (24)
  • public/arbitrum/add-custom-chain-to-bridge.png is excluded by !**/*.png
  • public/arbitrum/blockscout.png is excluded by !**/*.png
  • public/arbitrum/bridge-in-explorer-rollup-tx.png is excluded by !**/*.png
  • public/arbitrum/bridge-in-pending-txs.png is excluded by !**/*.png
  • public/arbitrum/bridge-in-sepolia-tx-explorer.png is excluded by !**/*.png
  • public/arbitrum/bridge-in-settled-txs.png is excluded by !**/*.png
  • public/arbitrum/bridge-in-start.png is excluded by !**/*.png
  • public/arbitrum/bridge-in-success.png is excluded by !**/*.png
  • public/arbitrum/bridge-out-begin-overview.png is excluded by !**/*.png
  • public/arbitrum/bridge-out-begin.png is excluded by !**/*.png
  • public/arbitrum/bridge-out-claim-success-withdrawal.png is excluded by !**/*.png
  • public/arbitrum/bridge-out-claim-withdrawal.png is excluded by !**/*.png
  • public/arbitrum/bridge-out-logs-details-1.png is excluded by !**/*.png
  • public/arbitrum/bridge-out-logs-explorer-2.png is excluded by !**/*.png
  • public/arbitrum/bridge-out-pending.png is excluded by !**/*.png
  • public/arbitrum/bridge-out-rollup-tx-details.png is excluded by !**/*.png
  • public/arbitrum/bridge-out-small-screenshot.png is excluded by !**/*.png
  • public/arbitrum/bridge-overview-deposit-and-withdrawal-l3.png is excluded by !**/*.png
  • public/arbitrum/bridge-settings.png is excluded by !**/*.png
  • public/arbitrum/choose_da.png is excluded by !**/*.png
  • public/arbitrum/configuration.png is excluded by !**/*.png
  • public/arbitrum/download-config.png is excluded by !**/*.png
  • public/arbitrum/explorer-view.png is excluded by !**/*.png
  • public/arbitrum/live-orbit-chains.png is excluded by !**/*.png
Files selected for processing (6)
  • .vitepress/config.ts (1 hunks)
  • developers/arbitrum-bridge.md (1 hunks)
  • developers/arbitrum-dapp-deploy.md (1 hunks)
  • developers/arbitrum-deploy.md (1 hunks)
  • developers/arbitrum-full-node.md (1 hunks)
  • developers/arbitrum-integration.md (2 hunks)
Additional comments not posted (15)
developers/arbitrum-full-node.md (3)

16-20: Ensure the Docker image dfcelestia/nitro-node-dev:latest is publicly available and up-to-date.


22-25: Clarify the usage of config.json for running a full node with Celestia-specific configurations.

Consider adding an example config.json content or a link to a template to help users understand the expected structure and values.


37-39: Highlight the importance of connecting to a DA node and recommend running a Bridge node for managing multiple rollups.

Emphasize the necessity of a DA node connection for validators and suggest best practices for managing multiple rollups efficiently.

developers/arbitrum-dapp-deploy.md (2)

5-11: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [81-81]

Suggest adding a warning about potential gas fees and transaction times.

Consider including a note about potential gas fees and expected transaction times when interacting with the contract on the frontend, to set proper expectations for users.


5-11: > 📝 NOTE

This review was outside the diff hunks, and no overlapping diff hunk was found. Original lines [100-102]

Ensure the chain info matches the Arbitrum rollup configuration.

developers/arbitrum-bridge.md (4)

21-21: Verify the accessibility of the Arbitrum Bridge UI link.

Verification successful

The Arbitrum Bridge UI link (https://bridge.arbitrum.io/) is accessible, as confirmed by the HTTP/2 200 status code received from the server.

Scripts Executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Check if the Arbitrum Bridge UI link is accessible
curl -Is https://bridge.arbitrum.io/ | head -n 1

Length of output: 62


39-42: Emphasize the need for sufficient funds in the wallet before attempting to bridge assets.

Add a note to ensure users have sufficient funds in their wallet for gas fees associated with bridging assets into the rollup.


72-74: Clarify the selection process for the origin and destination chains during the withdrawal process.

Provide additional guidance on how to choose the correct origin and destination chains for withdrawals, especially for new users unfamiliar with the process.


109-111: Highlight the waiting period for claiming withdrawals.

Emphasize the approximate 2-hour waiting period before users can claim their withdrawals, to set clear expectations.

developers/arbitrum-integration.md (4)

33-41: Ensure the DataAvailabilityProvider interface and related Celestia integration code are correctly implemented and accessible.

Verification successful

The DataAvailabilityProvider interface implementation for Celestia DA is accessible, as indicated by the successful HTTP response. However, assessing the correctness of the implementation requires a direct code review or additional context, which is beyond the scope of this verification process.

Scripts Executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Verify the accessibility and correctness of the DataAvailabilityProvider interface implementation
curl -Is https://github.com/celestiaorg/nitro/blob/966e631f1a03b49d49f25bea67a92b275d3bacb9/arbstate/inbox.go#L366-L477

Length of output: 4220


54-61: Clarify the role and operation of the Preimage Oracle in supporting fraud proofs.

Expand on the explanation of how the Preimage Oracle supports fraud proofs, possibly with a simplified example or diagram for better understanding.


65-67: Confirm the integration and functionality of BlobstreamX with the SequencerInbox.sol contract.

Verification successful

To accurately verify the integration of BlobstreamX within the SequencerInbox.sol contract, we need to inspect the content of the specified lines (584-630) in the contract. The previous script only confirmed the availability of the resource but did not provide information about the content. Let's proceed with a more targeted approach to fetch and examine the relevant section of the contract.


The provided script output displays the content of lines 584-630 from the SequencerInbox.sol contract in the celestiaorg/nitro-contracts repository, version celestia-v1.2.1. The code snippet involves processing data with a specific structure, including a data root, and then verifying an attestation using a BLOBSTREAM oracle. This process is consistent with the description provided in the review comment, indicating an integration where data roots are verified for their integrity and authenticity, presumably by BlobstreamX, as referenced by the BLOBSTREAM identifier in the code.

Given the context and the output from the script, it appears that the integration and functionality of BlobstreamX with the SequencerInbox.sol contract, as described, are confirmed by the code snippet. The specific mention of BLOBSTREAM as an oracle for verifying attestations aligns with the expected functionality of integrating BlobstreamX for data root verification.

Based on this analysis, the review comment regarding the confirmation of the integration and functionality of BlobstreamX with the SequencerInbox.sol contract is supported by the evidence from the codebase.

Scripts Executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Verify the integration of BlobstreamX in the SequencerInbox.sol contract
curl -Is https://github.com/celestiaorg/nitro-contracts/blob/celestia-v1.2.1/src/bridge/SequencerInbox.sol#L584-L630

Length of output: 4222



Script:

#!/bin/bash
# Fetch and display the specified lines (584-630) from the SequencerInbox.sol contract
curl https://raw.githubusercontent.com/celestiaorg/nitro-contracts/celestia-v1.2.1/src/bridge/SequencerInbox.sol | sed -n '584,630p'

Length of output: 2336


86-89: Highlight the importance of the Ethereum fallback mechanism for ensuring data availability.

Emphasize the significance of the Ethereum fallback mechanism in maintaining data availability during Celestia downtime, and suggest reviewing the detailed documentation for a deeper understanding.

.vitepress/config.ts (1)

585-598: The updates to the sidebar navigation links for the "Developers" section are well-integrated and align with the PR objectives. Ensure that the external link provided for customizing the Orbit chain's deployment configuration is valid and accessible.

Verification successful

The external link provided for customizing the Orbit chain's deployment configuration has been verified as valid and accessible, with a 200 HTTP status code returned upon access. The updates to the sidebar navigation links are correctly implemented and align with the PR objectives.

Scripts Executed

The following scripts were executed for the analysis:


Script:

#!/bin/bash
# Verify the accessibility of the external link.
curl -o /dev/null -s -w "%{http_code}\n" https://docs.arbitrum.io/launch-orbit-chain/how-tos/customize-deployment-configuration

Length of output: 133

developers/arbitrum-deploy.md (1)

236-238: Ensure the namespace-id is correctly set for Celestia DA in your Arbitrum chain parameters. The provided example uses a specific value (000008e5f679bf7116cb), but it's essential to verify that this value aligns with your deployment requirements.

developers/arbitrum-dapp-deploy.md Outdated Show resolved Hide resolved
developers/arbitrum-integration.md Outdated Show resolved Hide resolved
developers/arbitrum-deploy.md Outdated Show resolved Hide resolved
developers/arbitrum-deploy.md Outdated Show resolved Hide resolved
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: 6

Review Status

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between c434596 and 63ff019.
Files selected for processing (1)
  • developers/arbitrum-deploy.md (1 hunks)

developers/arbitrum-deploy.md Outdated Show resolved Hide resolved
developers/arbitrum-deploy.md Outdated Show resolved Hide resolved
developers/arbitrum-deploy.md Outdated Show resolved Hide resolved
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: 5

Review Status

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 63ff019 and 3c2cdcd.
Files selected for processing (5)
  • .vitepress/config.ts (1 hunks)
  • developers/arbitrum-dapp-deploy.md (2 hunks)
  • developers/arbitrum-deploy.md (1 hunks)
  • developers/arbitrum-full-node.md (1 hunks)
  • developers/arbitrum-integration.md (2 hunks)
Files skipped from review as they are similar to previous changes (1)
  • .vitepress/config.ts
Additional comments not posted (11)
developers/arbitrum-full-node.md (3)

16-20: Ensure the Docker image dfcelestia/nitro-node-dev:latest is the correct and most up-to-date version for running a full node.


22-25: Verify the flags and configuration options provided are up-to-date and align with the latest Celestia package documentation.


37-39: Recommend running a Bridge node for managing multiple rollups to ensure efficient and streamlined operations.

developers/arbitrum-dapp-deploy.md (1)

8-8: Ensure the link "Quickstart: Deploy an Arbitrum Orbit rollup" correctly points to the updated guide reflecting the latest deployment practices.

developers/arbitrum-integration.md (6)

16-17: Confirm that the integration details, including the ability to settle on various EVM chains, are accurately described and up-to-date with the current capabilities of the Celestia and Arbitrum integration.


25-27: Ensure the links to the key components (DA Provider, Preimage Oracle, Blobstream X implementations) are correct and lead to the relevant sections or external documentation.


33-41: Verify that the DataAvailabilityProvider interface implementation and the related Celestia integration code are correctly described and reflect the latest version of the integration.


52-61: Check the accuracy and completeness of the Preimage Oracle implementation description, especially regarding its role in supporting fraud proofs and the integration with Celestia hashes.


63-67: Confirm that the Blobstream X integration description accurately reflects its role in the Celestia and Arbitrum integration, particularly in ensuring data availability.


83-93: > 📝 NOTE

This review was outside the diff hunks and was mapped to the diff hunk with the greatest overlap. Original lines [76-89]

Review the Ethereum fallback mechanism description for accuracy and ensure it aligns with the current implementation in the Celestia and Arbitrum Nitro integration.

developers/arbitrum-deploy.md (1)

256-256: Clarify whether the eth-rpc URL must be a WebSocket (WSS) or HTTP (HTTPS) endpoint.
Given the previous discussion in the comments, it's important to explicitly state in the document that the eth-rpc must be a WebSocket (WSS) URL to subscribe to events for Blobstream.

developers/arbitrum-full-node.md Show resolved Hide resolved
developers/arbitrum-dapp-deploy.md Show resolved Hide resolved
developers/arbitrum-deploy.md Outdated Show resolved Hide resolved
developers/arbitrum-deploy.md Outdated Show resolved Hide resolved
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: 4

Review Status

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 3c2cdcd and 643b9e7.
Files selected for processing (1)
  • developers/arbitrum-deploy.md (1 hunks)

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: 4

Review Status

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 643b9e7 and a2916fb.
Files selected for processing (1)
  • developers/arbitrum-deploy.md (1 hunks)

developers/arbitrum-deploy.md Show resolved Hide resolved
developers/arbitrum-deploy.md Show resolved Hide resolved
developers/arbitrum-deploy.md Show resolved Hide resolved
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: 3

Review Status

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between a2916fb and 2a50d13.
Files selected for processing (1)
  • developers/arbitrum-deploy.md (1 hunks)
Additional comments not posted (2)
developers/arbitrum-deploy.md (2)

2-2: The metadata description is clear and concise.


5-27: The introduction provides a comprehensive overview of deploying an Arbitrum Orbit rollup. Ensure to review the spelling and grammar for a polished document, although most flagged issues seem to be false positives related to technical terms.

developers/arbitrum-deploy.md Show resolved Hide resolved
developers/arbitrum-deploy.md Show resolved Hide resolved
developers/arbitrum-deploy.md Show resolved Hide resolved
@Ferret-san Ferret-san merged commit 96f6821 into main Apr 2, 2024
4 checks passed
@Ferret-san Ferret-san deleted the jcs/arb-update branch April 2, 2024 21:44
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.

docs: arbitrum updates
3 participants