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

Initial refactor of OP Mainnet -> OP Stack #1243

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

bradleycamacho
Copy link
Member

@bradleycamacho bradleycamacho commented Jan 13, 2025

Still needs various fixes and nav work.

Closes https://github.com/ethereum-optimism/devrel/issues/371

Ensure we add redirects

Still needs various nav fixes an a second eye on necessary changes
@bradleycamacho bradleycamacho requested a review from a team as a code owner January 13, 2025 17:18
Copy link

netlify bot commented Jan 13, 2025

Deploy Preview for docs-optimism ready!

Name Link
🔨 Latest commit bacb90f
🔍 Latest deploy log https://app.netlify.com/sites/docs-optimism/deploys/6786c758bf6d70000899d79e
😎 Deploy Preview https://deploy-preview-1243--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.

@@ -11,7 +11,7 @@ import { SuperchainContractTable } from '@/components/SuperchainContractTable'

# Contract Addresses

This reference guide lists all the contract addresses for Mainnet and Testnet, as found on the [superchain-registry](https://github.com/ethereum-optimism/superchain-registry/tree/main).
This reference guide lists all the contract addresses for OP Stack chains, as found on the [superchain-registry](https://github.com/ethereum-optimism/superchain-registry/tree/main).
Copy link
Member Author

Choose a reason for hiding this comment

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

What do we do with this file? Is there a way to expand it to include all contract addresses across the Superchain?

@bradleycamacho bradleycamacho marked this pull request as draft January 13, 2025 17:19
Copy link
Contributor

coderabbitai bot commented Jan 13, 2025

📝 Walkthrough

Walkthrough

This pull request involves a comprehensive terminology update across multiple documentation pages, shifting the focus from "OP Mainnet" to "OP Stack chains". The changes are primarily semantic, updating titles, descriptions, and references to reflect a broader perspective on the Optimism ecosystem. The modifications span several documentation files including addresses, getting started, networks, security FAQ, privileged roles, security policy, testing, and token list pages. The updates aim to emphasize the scalable and flexible nature of the OP Stack, presenting it as a framework for multiple blockchain implementations rather than a single mainnet.

Sequence Diagram

sequenceDiagram
    participant Docs as Documentation
    participant OPStack as OP Stack Chains
    participant Ethereum as Ethereum L1

    Docs->>OPStack: Update terminology
    Docs->>OPStack: Broaden scope from Mainnet
    Docs->>Ethereum: Maintain contextual references
    OPStack-->>Docs: Reflect comprehensive framework
Loading

Possibly related issues

Possibly related PRs

Suggested labels

flag:merge-pending-release

Suggested reviewers

  • sbvegan

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 generate docstrings to generate docstrings for this PR. (Beta)
  • @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

🧹 Nitpick comments (10)
pages/chain/addresses.mdx (1)

14-14: Consider rephrasing for clarity and conciseness.

The sentence repeats information about the superchain-registry that's already mentioned in the following callout. Consider:

-This reference guide lists all the contract addresses for OP Stack chains, as found on the [superchain-registry](https://github.com/ethereum-optimism/superchain-registry/tree/main). 
+This reference guide lists all the contract addresses for OP Stack chains.
pages/chain/testing/testing-apps.mdx (2)

15-15: Improve text formatting and clarity.

The italicized word placement within "could" makes the sentence awkward. Consider:

-In those cases, while you *could* test everything on an OP Stack chain or a test network, that would normally be inefficient.
+In those cases, while you could test everything on an OP Stack chain or a test network, this would normally be inefficient.

21-21: Break down the complex sentence for better readability.

The sentence is too long and could be split for clarity:

-Running proper testing is key to identifying fringe cases where the equivalence between OP Stack chains and Ethereum breaks down (or where Ethereum mainnet itself and the development stack may be non-equivalent in a production environment).
+Running proper testing is key to identifying fringe cases where the equivalence between OP Stack chains and Ethereum breaks down. This testing can also reveal cases where Ethereum mainnet itself and the development stack may be non-equivalent in a production environment.
pages/chain/security/security-policy.mdx (1)

31-31: Improve sentence structure and conciseness.

The sentence contains redundant phrasing and missing punctuation:

-If you think you have found a significant bug or vulnerabilities in OP Stack smart contracts, infrastructure, etc., even if that component is not covered by an existing bug bounty, please report it via the [Immunefi program](https://immunefi.com/bounty/optimism/). The impact of any and all reported issues will be considered and the program has previously rewarded security researchers for bugs not within its stated scope.
+If you think you have found a significant bug or vulnerabilities in OP Stack smart contracts, infrastructure, etc., even if that component is not covered by an existing bug bounty, please report it via the [Immunefi program](https://immunefi.com/bounty/optimism/). The impact of all reported issues will be considered, and the program has previously rewarded security researchers for bugs not within its stated scope.
🧰 Tools
🪛 LanguageTool

[style] ~31-~31: ‘any and all’ might be wordy. Consider a shorter alternative.
Context: ...fi.com/bounty/optimism/). The impact of any and all reported issues will be considered and ...

(EN_WORDINESS_PREMIUM_ANY_AND_ALL)


[uncategorized] ~31-~31: Use a comma before “and” if it connects two independent clauses (unless they are closely connected and short).
Context: ...d all reported issues will be considered and the program has previously rewarded sec...

(COMMA_COMPOUND_SENTENCE_2)

pages/chain/getting-started.mdx (1)

55-55: Add missing comma before "such as".

-This lets you debug parts that are OP Stack chains specific such as calls to bridges to transfer ETH or tokens between layers.
+This lets you debug parts that are OP Stack chains specific, such as calls to bridges to transfer ETH or tokens between layers.
🧰 Tools
🪛 LanguageTool

[uncategorized] ~55-~55: A comma might be missing here.
Context: ...ou debug parts that are OP Stack chains specific such as calls to bridges to transfer ET...

(AI_EN_LECTOR_MISSING_PUNCTUATION_COMMA)

pages/chain/security/faq.mdx (2)

18-19: Consider using a callout for critical security information.

This critical security information about the multisig dependency and potential risks should be more prominent. Consider using the Callout component:

-At the moment, **it's important to understand that the security of OP Stack chains is dependent on a [multisig](https://etherscan.io/address/0x5a0Aae59D09fccBdDb6C6CcEB07B7279367C3d2A)** managed jointly by the [Optimism Security Council](https://gov.optimism.io/t/intro-to-optimisms-security-council/6885) and the Optimism Foundation.
-OP Stack chains **may also contain unknown bugs that could lead to the loss of some or all of the ETH or tokens held within the system**.
+<Callout type="warning">
+  The security of OP Stack chains is dependent on a [multisig](https://etherscan.io/address/0x5a0Aae59D09fccBdDb6C6CcEB07B7279367C3d2A) managed jointly by the [Optimism Security Council](https://gov.optimism.io/t/intro-to-optimisms-security-council/6885) and the Optimism Foundation.
+
+  OP Stack chains may contain unknown bugs that could lead to the loss of some or all of the ETH or tokens held within the system.
+</Callout>

72-72: Add context for archived link.

The web.archive.org link should include a note about when it was archived for better context and transparency.

pages/chain/security/privileged-roles.mdx (3)

11-12: Improve conciseness in the introduction

Consider rephrasing for better clarity and conciseness:

-In their current state, OP Stack chains still include some "privileged" roles that give certain addresses the ability to carry out specific actions.
+OP Stack chains currently include privileged roles that grant specific capabilities to designated addresses.

41-41: Remove redundant phrase

The phrase "on OP Stack chains" is redundant in this context.

-No one has the private key for `0x6B1BAE59D09fCcbdDB6C6cceb07B7279367C4E3b` on OP Stack chains, which means the only way for the L2 ProxyAdmin owner to send transactions is via deposit transactions from the L1 `0x5a0Aae59D09fccBdDb6C6CcEB07B7279367C3d2A` address.
+No one has the private key for `0x6B1BAE59D09fCcbdDB6C6cceb07B7279367C4E3b`, which means the only way for the L2 ProxyAdmin owner to send transactions is via deposit transactions from the L1 `0x5a0Aae59D09fccBdDb6C6CcEB07B7279367C3d2A` address.

191-191: Improve sentence structure

The current sentence structure is complex and could be simplified.

-The Mint Manager Owner is an address that controls the [`MintManager`](https://github.com/ethereum-optimism/optimism/blob/62c7f3b05a70027b30054d4c8974f44000606fb7/packages/contracts-bedrock/contracts/governance/MintManager.sol) contract that can be used to mint new OP tokens on OP Stack chains.
+The Mint Manager Owner controls the [`MintManager`](https://github.com/ethereum-optimism/optimism/blob/62c7f3b05a70027b30054d4c8974f44000606fb7/packages/contracts-bedrock/contracts/governance/MintManager.sol) contract, which can mint new OP tokens on OP Stack chains.
📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 2c03602 and e01ae14.

📒 Files selected for processing (8)
  • pages/chain/addresses.mdx (1 hunks)
  • pages/chain/getting-started.mdx (4 hunks)
  • pages/chain/networks.mdx (1 hunks)
  • pages/chain/security/faq.mdx (2 hunks)
  • pages/chain/security/privileged-roles.mdx (6 hunks)
  • pages/chain/security/security-policy.mdx (2 hunks)
  • pages/chain/testing/testing-apps.mdx (2 hunks)
  • pages/chain/tokenlist.mdx (2 hunks)
✅ Files skipped from review due to trivial changes (2)
  • pages/chain/tokenlist.mdx
  • pages/chain/networks.mdx
🧰 Additional context used
📓 Path-based instructions (6)
pages/chain/addresses.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 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/chain/security/security-policy.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 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/chain/testing/testing-apps.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 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/chain/security/faq.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 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/chain/getting-started.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 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/chain/security/privileged-roles.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 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.
    "
🪛 LanguageTool
pages/chain/security/security-policy.mdx

[style] ~31-~31: ‘any and all’ might be wordy. Consider a shorter alternative.
Context: ...fi.com/bounty/optimism/). The impact of any and all reported issues will be considered and ...

(EN_WORDINESS_PREMIUM_ANY_AND_ALL)


[uncategorized] ~31-~31: Use a comma before “and” if it connects two independent clauses (unless they are closely connected and short).
Context: ...d all reported issues will be considered and the program has previously rewarded sec...

(COMMA_COMPOUND_SENTENCE_2)

pages/chain/security/faq.mdx

[grammar] ~10-~10: Possible agreement error. The noun OP seems to be uncountable; consider using: “much OP”, “a good deal of OP”.
Context: ...components' # OP Stack security model Many OP Stack chains, such as OP Mainnet, are a...

(MANY_NN_U)


[style] ~17-~17: For conciseness, consider replacing this expression with an adverb.
Context: ...trong as its lowest common denominator. At the moment, **it's important to understand that th...

(AT_THE_MOMENT)


[style] ~36-~36: This phrase is redundant. Consider using “inside”.
Context: ...ws the withdrawal was actually included inside of the OP Stack chain. Withdrawals are pro...

(OUTSIDE_OF)

pages/chain/getting-started.mdx

[uncategorized] ~55-~55: A comma might be missing here.
Context: ...ou debug parts that are OP Stack chains specific such as calls to bridges to transfer ET...

(AI_EN_LECTOR_MISSING_PUNCTUATION_COMMA)

⏰ Context from checks skipped due to timeout of 90000ms (4)
  • GitHub Check: Redirect rules - docs-optimism
  • GitHub Check: Header rules - docs-optimism
  • GitHub Check: Pages changed - docs-optimism
  • GitHub Check: pr-workflow
🔇 Additional comments (4)
pages/chain/getting-started.mdx (1)

12-12: Consider archiving external links.

The Medium article link is already using web.archive.org, which is good practice. However, consider adding a note about the archive date for context.

pages/chain/security/privileged-roles.mdx (3)

17-17: LGTM!

The description is clear and maintains proper terminology.


89-90: LGTM!

The description accurately explains the Batcher's role and maintains consistent terminology.


165-171: LGTM!

The Guardian's description and capabilities are clearly explained with consistent terminology.

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.

1 participant