-
Notifications
You must be signed in to change notification settings - Fork 260
TESTING DO NOT MERGE #1582
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
base: main
Are you sure you want to change the base?
TESTING DO NOT MERGE #1582
Conversation
✅ Deploy Preview for docs-optimism ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
📝 WalkthroughWalkthroughA new documentation guide titled "Chain upgrade guide: Using superchain-ops" has been added as a Markdown file within the project. This guide provides detailed instructions for protocol developers and chain operators on upgrading Optimism chains using the Suggested labels
Suggested reviewers
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
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)
Other keywords and placeholders
Documentation and Community
|
There was a problem hiding this 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
🧹 Nitpick comments (7)
pages/stack/superchain-ops-guide.mdx (7)
24-24
: Sentence case in H1
Headings should use sentence case, capitalizing only the first word (and proper nouns). Update to:- # Chain upgrade guide: Using superchain-ops + # Chain upgrade guide: using superchain-ops
46-48
: Fix Markdown link syntax
The inline code and link brackets are inverted. Use the[text](URL)
format, for example:- (`/src/improvements/template`)[https://github.com/ethereum-optimism/superchain-ops/tree/main/src/improvements/template] + [`/src/improvements/template`](https://github.com/ethereum-optimism/superchain-ops/tree/main/src/improvements/template)Apply the same correction to the
tasks
directory link.
80-80
: Correct link formatting for config example
Use proper markdown link syntax for theconfig.toml
path:- (`src/improvements/tasks/eth/002-opcm-upgrade-v200/config.toml`)[https://github.com/ethereum-optimism/superchain-ops/blob/main/src/improvements/tasks/eth/002-opcm-upgrade-v200/config.toml] + [`src/improvements/tasks/eth/002-opcm-upgrade-v200/config.toml`](https://github.com/ethereum-optimism/superchain-ops/blob/main/src/improvements/tasks/eth/002-opcm-upgrade-v200/config.toml)
72-76
: Specify code fence language
For the TOML snippet, add a language identifier for clarity:- ``` + ```toml l2chains = [] # e.g. [{name = "OP Mainnet", chainId = 10}] templateName = "OPCMUpgradeV200" ...
78-78
: Step numbering consistency
The guide skips “Step 3” and mislabels subsequent steps. Rename “Step 4: Configure the task” to “Step 3: Configure the task”.
107-107
: Step numbering consistency
Rename “Step 5: Simulate the task” to “Step 4: Simulate the task” to maintain sequential order.
120-120
: Step numbering consistency
Rename “Step 6: Execute or submit for review” to “Step 5: Execute or submit for review”.
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
pages/stack/_meta.json
(1 hunks)pages/stack/superchain-ops-guide.mdx
(1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
`**/*.mdx`: "ALWAYS review Markdown content THOROUGHLY with the following criteria: - First, check the frontmatter section at the top of the file: 1. For regular pages, ensure AL...
**/*.mdx
: "ALWAYS review Markdown content THOROUGHLY with the following criteria:
- First, check the frontmatter section at the top of the file:
- For regular pages, ensure ALL these fields are present and not empty:
--- title: [non-empty] lang: [non-empty] description: [non-empty] topic: [non-empty] personas: [non-empty array] categories: [non-empty array] content_type: [valid type] ---
- For landing pages (index.mdx or files with ), only these fields are required:
--- title: [non-empty] lang: [non-empty] description: [non-empty] topic: [non-empty] ---
- If any required fields are missing or empty, comment:
'This file appears to be missing required metadata. Please check keywords.config.yaml for valid options and add the required fields manually. You can validate your changes by running:pnpm validate-metadata ```'
- 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 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).
- For H1, H2, and H3 headers:
- Use sentence case, capitalizing only the first word.
- Preserve the capitalization of proper nouns, technical terms, and acronyms as defined in the 'nouns.txt' file located in the root directory of the project.
- Do not automatically lowercase words that appear in the 'nouns.txt' file, regardless of their position in the header.
- Flag any headers that seem to inconsistently apply these rules for manual review.
- When reviewing capitalization, always refer to the 'nouns.txt' file for the correct capitalization of proper nouns and technical terms specific to the project.
"
pages/stack/superchain-ops-guide.mdx
🪛 LanguageTool
pages/stack/superchain-ops-guide.mdx
[style] ~38-~38: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...ould go through superchain-ops
. 3. **Chains requiring a highly secure and manual pr...
(ENGLISH_WORD_REPEAT_BEGINNING_RULE)
🔇 Additional comments (2)
pages/stack/_meta.json (1)
13-13
: Navigation metadata updated correctly
The new entry forsuperchain-ops-guide
is properly added and follows the existing naming and labeling conventions.pages/stack/superchain-ops-guide.mdx (1)
1-19
: Frontmatter completeness check
All required metadata fields (title
,lang
,description
,topic
,personas
,categories
,content_type
) are present and non-empty, aligning with the documentation guidelines.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This just syntax issues
pages/stack/superchain-ops-guide.mdx
Outdated
- **Templates**: Define what the upgrade is and contain the code for specific upgrade paths (e.g., 1.8 to 2.0). Templates are version-specific and live in the (`/src/improvements/template`)[https://github.com/ethereum-optimism/superchain-ops/tree/main/src/improvements/template] directory. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- **Templates**: Define what the upgrade is and contain the code for specific upgrade paths (e.g., 1.8 to 2.0). Templates are version-specific and live in the (`/src/improvements/template`)[https://github.com/ethereum-optimism/superchain-ops/tree/main/src/improvements/template] directory. | |
* **Templates**: Define what the upgrade is and contain the code for specific upgrade paths (e.g., 1.8 to 2.0). Templates are version-specific and live in the [/src/improvements/template](https://github.com/ethereum-optimism/superchain-ops/tree/main/src/improvements/template) directory. | |
pages/stack/superchain-ops-guide.mdx
Outdated
- **Tasks**: Chain-specific implementations of templates. Multiple tasks can use the same template for different chains. Tasks are organized by network (mainnet or testnet) in the (`/src/improvements/tasks`)[https://github.com/ethereum-optimism/superchain-ops/tree/main/src/improvements/tasks] directory. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- **Tasks**: Chain-specific implementations of templates. Multiple tasks can use the same template for different chains. Tasks are organized by network (mainnet or testnet) in the (`/src/improvements/tasks`)[https://github.com/ethereum-optimism/superchain-ops/tree/main/src/improvements/tasks] directory. | |
* **Tasks**: Chain-specific implementations of templates. Multiple tasks can use the same template for different chains. Tasks are organized by network (mainnet or testnet) in the [/src/improvements/tasks](https://github.com/ethereum-optimism/superchain-ops/tree/main/src/improvements/tasks) directory. | |
pages/stack/superchain-ops-guide.mdx
Outdated
1. **Chains in the Superchain**: For standard chains officially part of the Superchain, upgrades are typically handled through `superchain-ops`. | ||
|
||
2. **Chains with Foundation or Security Council as signers**: If your chain has the Foundation multi-sig or Security Council as signers, your upgrade tasks should go through `superchain-ops`. | ||
|
||
3. **Chains requiring a highly secure and manual process**: For chains that prioritize security over automation, `superchain-ops` provides an intentionally manual workflow with thorough verification steps. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1. **Chains in the Superchain**: For standard chains officially part of the Superchain, upgrades are typically handled through `superchain-ops`. | |
2. **Chains with Foundation or Security Council as signers**: If your chain has the Foundation multi-sig or Security Council as signers, your upgrade tasks should go through `superchain-ops`. | |
3. **Chains requiring a highly secure and manual process**: For chains that prioritize security over automation, `superchain-ops` provides an intentionally manual workflow with thorough verification steps. | |
1. **Chains in the Superchain**: For standard chains officially part of the Superchain, upgrades are typically handled through `superchain-ops`. | |
2. **Chains with Foundation or Security Council as signers**: If your chain has the Foundation multi-sig or Security Council as signers, your upgrade tasks should go through `superchain-ops`. | |
3. **Chains requiring a highly secure and manual process**: For chains that prioritize security over automation, `superchain-ops` provides an intentionally manual workflow with thorough verification steps. |
pages/stack/superchain-ops-guide.mdx
Outdated
|
||
``` | ||
l2chains = [] # e.g. [{name = "OP Mainnet", chainId = 10}] | ||
templateName = "OPCMUpgradeV200" | ||
|
||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
``` | |
l2chains = [] # e.g. [{name = "OP Mainnet", chainId = 10}] | |
templateName = "OPCMUpgradeV200" | |
``` | |
```bash | |
l2chains = [] # e.g. [{name = "OP Mainnet", chainId = 10}] | |
templateName = "OPCMUpgradeV200" | |
pages/stack/superchain-ops-guide.mdx
Outdated
### Step 4: Configure the task | ||
|
||
Look through other tasks in the directory to find the information necessary for your upgrade. For example, when upgrading from 1.8 to 2.0, you can look at the (`src/improvements/tasks/eth/002-opcm-upgrade-v200/config.toml`)[https://github.com/ethereum-optimism/superchain-ops/blob/main/src/improvements/tasks/eth/002-opcm-upgrade-v200/config.toml] file to see that your config file should look like the following: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
### Step 4: Configure the task | |
Look through other tasks in the directory to find the information necessary for your upgrade. For example, when upgrading from 1.8 to 2.0, you can look at the (`src/improvements/tasks/eth/002-opcm-upgrade-v200/config.toml`)[https://github.com/ethereum-optimism/superchain-ops/blob/main/src/improvements/tasks/eth/002-opcm-upgrade-v200/config.toml] file to see that your config file should look like the following: | |
### Step 3: Configure the task | |
Look through other tasks in the directory to find the information necessary for your upgrade. For example, when upgrading from 1.8 to 2.0, you can look at the [src/improvements/tasks/eth/002-opcm-upgrade-v200/config.toml](https://github.com/ethereum-optimism/superchain-ops/blob/main/src/improvements/tasks/eth/002-opcm-upgrade-v200/config.toml) file to see that your config file should look like the following: | |
pages/stack/superchain-ops-guide.mdx
Outdated
``` | ||
l2chains = [ | ||
{name = "Unichain", chainId = 130} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
``` | |
l2chains = [ | |
{name = "Unichain", chainId = 130} | |
```bash | |
l2chains = [ | |
{name = "Unichain", chainId = 130} |
pages/stack/superchain-ops-guide.mdx
Outdated
|
||
``` | ||
# Nested |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
``` | |
# Nested | |
```bash | |
# Nested |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🔭 Outside diff range comments (1)
pages/stack/superchain-ops-guide.mdx (1)
53-122
:⚠️ Potential issueFix the step numbering — Step 4 is missing
The document jumps from Step 3: Configure the task directly to Step 5: Simulate the task. Please renumber or insert the missing Step 4 to keep the sequence logical.
🧹 Nitpick comments (2)
pages/stack/superchain-ops-guide.mdx (2)
23-23
: Use sentence case for the H1 header
Per the MDX style guide, only the first word of H1/H2/H3 headers should be capitalized (aside from proper nouns and acronyms). The current H1 reads:# Chain upgrade guide: Using superchain-ops
It should be updated to:
# Chain upgrade guide: using superchain-ops
--- pages/stack/superchain-ops-guide.mdx @@ -# Chain upgrade guide: Using superchain-ops +# Chain upgrade guide: using superchain-ops
71-75
: Update code block language totoml
for configuration snippets
The examples under Step 2 and Step 3 are TOML files, not Bash scripts. Labeling them astoml
will enable proper syntax highlighting.--- pages/stack/superchain-ops-guide.mdx @@ 71,75 -```bash +```toml l2chains = [] # e.g. [{name = "OP Mainnet", chainId = 10}] templateName = "OPCMUpgradeV200" -``` +``` @@ 85,90 -```bash +```toml l2chains = [ {name = "Unichain", chainId = 130} ]Also applies to: 85-90 </blockquote></details> </blockquote></details> <details> <summary>📜 Review details</summary> **Configuration used: .coderabbit.yaml** **Review profile: CHILL** **Plan: Pro** <details> <summary>📥 Commits</summary> Reviewing files that changed from the base of the PR and between 4602733e99a9b825b133f36dc0d6d30b72616151 and cd6730ccf73713984cfc6d6ef50649eb00b77694. </details> <details> <summary>📒 Files selected for processing (1)</summary> * `pages/stack/superchain-ops-guide.mdx` (1 hunks) </details> <details> <summary>🧰 Additional context used</summary> <details> <summary>📓 Path-based instructions (1)</summary> <details> <summary>`**/*.mdx`: "ALWAYS review Markdown content THOROUGHLY with the following criteria: - First, check the frontmatter section at the top of the file: 1. For regular pages, ensure AL...</summary> > `**/*.mdx`: "ALWAYS review Markdown content THOROUGHLY with the following criteria: > - First, check the frontmatter section at the top of the file: > 1. For regular pages, ensure ALL these fields are present and not empty: > ```yaml > --- > title: [non-empty] > lang: [non-empty] > description: [non-empty] > topic: [non-empty] > personas: [non-empty array] > categories: [non-empty array] > content_type: [valid type] > --- > ``` > 2. For landing pages (index.mdx or files with <Cards>), only these fields are required: > ```yaml > --- > title: [non-empty] > lang: [non-empty] > description: [non-empty] > topic: [non-empty] > --- > ``` > 3. If any required fields are missing or empty, comment: > 'This file appears to be missing required metadata. Please check keywords.config.yaml for valid options and add the required fields manually. You can validate your changes by running: > ```bash > pnpm validate-metadata > ```' > - 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 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). > - For H1, H2, and H3 headers: > 1. Use sentence case, capitalizing only the first word. > 2. Preserve the capitalization of proper nouns, technical terms, and acronyms as defined in the 'nouns.txt' file located in the root directory of the project. > 3. Do not automatically lowercase words that appear in the 'nouns.txt' file, regardless of their position in the header. > - Flag any headers that seem to inconsistently apply these rules for manual review. > - When reviewing capitalization, always refer to the 'nouns.txt' file for the correct capitalization of proper nouns and technical terms specific to the project. > " > - `pages/stack/superchain-ops-guide.mdx` </details> </details><details> <summary>🪛 LanguageTool</summary> <details> <summary>pages/stack/superchain-ops-guide.mdx</summary> [style] ~37-~37: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym. Context: ...uld go through `superchain-ops`. 3. **Chains requiring a highly secure and manual pr... (ENGLISH_WORD_REPEAT_BEGINNING_RULE) </details> </details> </details> <details> <summary>⏰ Context from checks skipped due to timeout of 90000ms (4)</summary> * GitHub Check: Redirect rules - docs-optimism * GitHub Check: Header rules - docs-optimism * GitHub Check: Pages changed - docs-optimism * GitHub Check: pr-workflow </details> </details> <!-- This is an auto-generated comment by CodeRabbit for review status -->
title: Chain upgrade guide Using superchain-ops | ||
description: Learn about using superchain-ops to upgrade your chain |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix frontmatter title to match the H1 heading
The title
in the frontmatter is missing the colon and does not exactly match the H1. This inconsistency can break navigation and indexing.
Apply this diff:
--- pages/stack/superchain-ops-guide.mdx
@@
-title: Chain upgrade guide Using superchain-ops
+title: Chain upgrade guide: Using superchain-ops
📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
title: Chain upgrade guide Using superchain-ops | |
description: Learn about using superchain-ops to upgrade your chain | |
title: Chain upgrade guide: Using superchain-ops | |
description: Learn about using superchain-ops to upgrade your chain |
No description provided.