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

adding op-deployer callouts #1016

Merged
merged 2 commits into from
Oct 22, 2024
Merged

adding op-deployer callouts #1016

merged 2 commits into from
Oct 22, 2024

Conversation

sbvegan
Copy link
Collaborator

@sbvegan sbvegan commented Oct 22, 2024

Description

These pages are out of date. As a stop gap, I've added callouts to point users to use the op-deployer tool.

@sbvegan sbvegan requested a review from a team as a code owner October 22, 2024 20:32
Copy link

netlify bot commented Oct 22, 2024

Deploy Preview for docs-optimism ready!

Name Link
🔨 Latest commit df0ee41
🔍 Latest deploy log https://app.netlify.com/sites/docs-optimism/deploys/671811da1195e00008f16fcc
😎 Deploy Preview https://deploy-preview-1016--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 Oct 22, 2024

Walkthrough

The pull request updates three documentation files: "genesis.mdx", "smart-contracts.mdx", and "rollup.mdx". The first two documents now include a warning callout at the beginning, indicating that the information regarding legacy methods for genesis file creation and smart contract deployment is outdated. Users are advised to refer to the op-deployer tool for the most current methods. The "rollup.mdx" document has been significantly restructured and refined to clarify and update the deployment configuration for OP Stack blockchains, including new sections and parameters.

Changes

File Path Change Summary
pages/builders/chain-operators/deploy/genesis.mdx Added a warning callout about outdated information regarding legacy genesis file creation methods.
pages/builders/chain-operators/deploy/smart-contracts.mdx Added a warning callout about outdated information regarding legacy smart contract deployment methods.
pages/builders/chain-operators/configuration/rollup.mdx Restructured and updated content for clarity; added new sections and parameters related to deployment configuration. Deprecated fields marked.

Possibly related issues

Possibly related PRs

  • Deploy section #729: This PR updates "rollup.mdx", which is relevant as it discusses deployment configurations that are closely related to the changes made in the "genesis.mdx" file regarding the creation of genesis files for OP Stack.
  • Update genesis.mdx #791: This PR updates "genesis.mdx", which directly relates to the main PR as it also focuses on the creation and configuration of genesis files for L2 state dumps.
  • Add genesis callout #833: This PR adds a callout in "genesis.mdx", emphasizing the importance of using the correct version of op-contracts for L1 deployments, which is relevant to the main PR's focus on updating the genesis creation documentation.
  • contracts: update standard version to v1.6.0, CGT to v2.0.0-beta.3 #895: This PR updates the recommended deployment version in "smart-contracts.mdx", which is related to the overall deployment process discussed in the main PR.
  • Fixed errors in RPC and typos in docs #1014: This PR addresses errors and typos in "rollup.mdx" and "genesis.mdx", which are relevant to the main PR's focus on improving documentation clarity and accuracy.

Suggested reviewers

  • bradleycamacho

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>, please review it.
    • 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 gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @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 using 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.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

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

🧹 Outside diff range and nitpick comments (3)
pages/builders/chain-operators/deploy/genesis.mdx (1)

17-18: Consider using more formal language in the documentation.

Replace personal pronouns with more formal, directive language:

-The following guide shows you how to generate the L2 genesis file `genesis.json`. This is a JSON
-file that represents the L2 genesis. You will provide this file to the
+The following guide describes how to generate the L2 genesis file `genesis.json`. This is a JSON
+file that represents the L2 genesis. This file must be provided to the
pages/builders/chain-operators/deploy/smart-contracts.mdx (2)

11-14: Enhance the warning message clarity.

While the warning effectively directs users to the new tool, consider providing more context about the legacy method:

 <Callout type="warning">
-This page is out of date and shows the legacy method for smart contract deployment.
-For the latest recommended method, use [op-deployer](/builders/chain-operators/tools/op-deployer).
+This page describes the manual deployment method, which has been deprecated in favor of automated tooling.
+Please use [op-deployer](/builders/chain-operators/tools/op-deployer) for a more reliable and streamlined deployment process.
 </Callout>

16-16: Replace personal pronouns with imperative form.

To maintain consistency in communal documentation, consider revising the following text:

-The following guide shows you how to deploy the OP Stack L1 smart contracts.
-The primary development branch is `develop`, however **you should only deploy
-official contract releases**. You can visit the see the [smart contract overview](/stack/smart-contracts#official-releases)
+This guide describes the deployment process for OP Stack L1 smart contracts.
+The primary development branch is `develop`, however **only deploy
+official contract releases**. Visit the [smart contract overview](/stack/smart-contracts#official-releases)

Also applies to: 17-19

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between fd3524f and dbbe614.

📒 Files selected for processing (2)
  • pages/builders/chain-operators/deploy/genesis.mdx (1 hunks)
  • pages/builders/chain-operators/deploy/smart-contracts.mdx (1 hunks)
🧰 Additional context used
📓 Path-based instructions (2)
pages/builders/chain-operators/deploy/genesis.mdx (1)

Pattern **/*.mdx: "ALWAYS review Markdown content THOROUGHLY with the following criteria:

  • Use proper nouns in place of personal pronouns like 'We' and 'Our' to maintain consistency in communal documentation.
  • Avoid gender-specific language and use the imperative form.
  • Monitor capitalization for emphasis. Avoid using all caps, italics, or bold for emphasis.
  • Ensure proper nouns are capitalized in sentences.
  • Apply the Oxford comma.
  • Use proper title case for headers, buttons, tab names, page names, and links. Sentence case should be used for body content and short phrases, even in links.
  • Use correct spelling and grammar at all times (IMPORTANT).
  • Use sentence case for H1, H2, and H3 headers, capitalizing only the first word and any proper nouns.
  • For all headers (H1, H2, H3), do not change the capitalization of proper nouns; keep them as they are.
    "
pages/builders/chain-operators/deploy/smart-contracts.mdx (1)

Pattern **/*.mdx: "ALWAYS review Markdown content THOROUGHLY with the following criteria:

  • Use proper nouns in place of personal pronouns like 'We' and 'Our' to maintain consistency in communal documentation.
  • Avoid gender-specific language and use the imperative form.
  • Monitor capitalization for emphasis. Avoid using all caps, italics, or bold for emphasis.
  • Ensure proper nouns are capitalized in sentences.
  • Apply the Oxford comma.
  • Use proper title case for headers, buttons, tab names, page names, and links. Sentence case should be used for body content and short phrases, even in links.
  • Use correct spelling and grammar at all times (IMPORTANT).
  • Use sentence case for H1, H2, and H3 headers, capitalizing only the first word and any proper nouns.
  • For all headers (H1, H2, H3), do not change the capitalization of proper nouns; keep them as they are.
    "
🔇 Additional comments (1)
pages/builders/chain-operators/deploy/genesis.mdx (1)

11-14: LGTM! The warning callout is well-placed and properly formatted.

The callout effectively communicates:

  1. The current status of the documentation
  2. A clear alternative solution with a proper link

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

🧹 Outside diff range and nitpick comments (3)
pages/builders/chain-operators/configuration/rollup.mdx (3)

Line range hint 32-38: Consider adding recommended values for offset parameters.

The network upgrade offset parameters (Regolith, Canyon, Delta, Ecotone, Fjord) would benefit from having specific recommended values, especially since they're required for Standard Config.


Line range hint 1008-1024: Fix inconsistent formatting in Alt-DA Mode section.

The formatting in the Alt-DA Mode section differs from other sections:

  • Missing horizontal rule before the first parameter
  • Inconsistent spacing after section description

Line range hint 1166-1186: Consider removing deprecated fields section.

The deprecated fields section contains parameters that are no longer in use. Consider:

  1. Moving this information to a separate "Migration Guide" document
  2. Adding deprecation dates to help users understand when these fields were deprecated
  3. Providing clear migration paths for each deprecated field
📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between dbbe614 and df0ee41.

📒 Files selected for processing (1)
  • pages/builders/chain-operators/configuration/rollup.mdx (1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
pages/builders/chain-operators/configuration/rollup.mdx (1)

Pattern **/*.mdx: "ALWAYS review Markdown content THOROUGHLY with the following criteria:

  • Use proper nouns in place of personal pronouns like 'We' and 'Our' to maintain consistency in communal documentation.
  • Avoid gender-specific language and use the imperative form.
  • Monitor capitalization for emphasis. Avoid using all caps, italics, or bold for emphasis.
  • Ensure proper nouns are capitalized in sentences.
  • Apply the Oxford comma.
  • Use proper title case for headers, buttons, tab names, page names, and links. Sentence case should be used for body content and short phrases, even in links.
  • Use correct spelling and grammar at all times (IMPORTANT).
  • Use sentence case for H1, H2, and H3 headers, capitalizing only the first word and any proper nouns.
  • For all headers (H1, H2, H3), do not change the capitalization of proper nouns; keep them as they are.
    "
🔇 Additional comments (2)
pages/builders/chain-operators/configuration/rollup.mdx (2)

Line range hint 1-1186: Overall documentation review looks good.

The documentation is well-structured, comprehensive, and provides valuable information for configuring OP Stack rollups. The suggested improvements are minor and focused on enhancing clarity and maintainability.


1007-1008: ⚠️ Potential issue

Fix the broken link in Alt-DA Mode section.

The link to the Alt-DA Mode documentation appears to be broken. The line break in the middle of the URL will cause rendering issues.

-for sustainably low costs. Learn more [here](/stack/beta-features/alt-da-mode).
+for sustainably low costs. Learn more [here](/stack/beta-features/alt-da-mode).

Likely invalid or redundant comment.

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