Skip to content

Make tiny updates to the fjord calculator #965

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

Merged
merged 1 commit into from
Oct 7, 2024
Merged

Make tiny updates to the fjord calculator #965

merged 1 commit into from
Oct 7, 2024

Conversation

krofax
Copy link
Collaborator

@krofax krofax commented Oct 7, 2024

Description

Tests

Additional context

Metadata

@krofax krofax requested a review from a team as a code owner October 7, 2024 17:06
Copy link

netlify bot commented Oct 7, 2024

Deploy Preview for docs-optimism ready!

Name Link
🔨 Latest commit 4ed6e92
🔍 Latest deploy log https://app.netlify.com/sites/docs-optimism/deploys/6704152fec44c70008ea0899
😎 Deploy Preview https://deploy-preview-965--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 7, 2024

Walkthrough

This pull request introduces new documentation files for the op-deployer tool and the OP Contracts Manager, along with updates to existing documentation regarding the deprecation of the Optimism SDK and modifications to the fee calculator documentation. The changes aim to provide comprehensive guidance for developers on deploying and configuring the OP Stack, transitioning to the viem library, and estimating transaction fees.

Changes

File Path Change Summary
pages/builders/chain-operators/tools/op-deployer 2.mdx New documentation file introducing the op-deployer tool, its installation, usage, and configuration details.
pages/builders/notices/sdk-deprecation 2.mdx New documentation file detailing the deprecation of the Optimism SDK and migration to the viem library.
pages/stack/opcm 2.mdx New documentation file introducing the OP Contracts Manager for deploying Layer 1 contracts.
pages/builders/tools/fee-calculator.mdx Modified content to remove references to the Fjord network and improve clarity in the fee estimation process.

Possibly related issues

  • [DOCS] Update chain-deployment docs #728: The changes in this PR address the need for updated chain-deployment documentation, as they provide new guidance on deploying the OP Stack and configuring chains.

Possibly related PRs

Suggested labels

documentation

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

🧹 Outside diff range and nitpick comments (18)
pages/builders/tools/fee-calculator.mdx (1)

13-14: LGTM: Bullet points reformatted for consistency

The bullet points have been appropriately reformatted using asterisks, which is a common Markdown syntax. This change improves consistency in the document. The content remains clear and concise, using sentence case as recommended for short phrases.

For further consistency, consider adding a period at the end of each bullet point.

-*   Calculate potential fees for different transaction types.
-*   Understand how network parameters affect fee calculations.
+*   Calculate potential fees for different transaction types.
+*   Understand how network parameters affect fee calculations.
pages/stack/opcm 2.mdx (3)

12-14: Improve capitalization and clarity

The introduction paragraph is informative, but there's a minor inconsistency in capitalization and a small opportunity to improve clarity.

Please apply the following changes:

  1. Capitalize "Monorepo" in "Optimism Monorepo releases page" for consistency with proper nouns.
  2. Consider adding "respectively" to clarify the naming convention:
-The version deployed is always a governance-approved contract release. The set of governance approved contract releases can be found on the Optimism Monorepo releases page, and is the set of releases named `op-contracts/vX.Y.Z`.
+The version deployed is always a governance-approved contract release. The set of governance-approved contract releases can be found on the Optimism Monorepo releases page and is the set of releases named `op-contracts/vX.Y.Z`, respectively.

16-24: Improve language and formatting in the Purpose section

The Purpose section is informative and well-structured. However, there are some minor issues with language and formatting that should be addressed for consistency and clarity.

Please apply the following changes:

  1. Use sentence case for the section title:
-## Purpose
+## Purpose
  1. Capitalize "Superchain" consistently:
-1.  **Deploy Superchain Contracts.** Superchain contracts are shared between many OP chains, so this occurs only occasionally in production.
+1.  **Deploy Superchain Contracts.** Superchain contracts are shared between many OP chains, so this occurs only occasionally in production.
  1. Use singular form for "contract" after "per" in point 2:
-2.  **Deploy Shared Implementation Contracts.** This occurs once per contracts release in production.
+2.  **Deploy Shared Implementation Contracts.** This occurs once per contract release in production.
  1. Rephrase the last sentence to avoid repetition and improve clarity:
-In a future iteration, it also is meant to handle upgrading the smart contracts.
+Future iterations are intended to handle upgrading the smart contracts.
🧰 Tools
🪛 LanguageTool

[uncategorized] ~21-~21: Did you mean “contract”? If following ‘per’, nouns are often singular.
Context: ...ation Contracts.** This occurs once per contracts release in production. 3. **Deploy OP ...

(CONFUSION_OF_NNS_NN_UN)


[style] ~22-~22: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ... contracts release in production. 3. Deploy OP Chain Contracts. This occurs for e...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)


26-29: Improve language in the "Learn more" section

The "Learn more" section provides valuable resources, but the language can be improved for clarity and consistency with technical writing best practices.

Please apply the following changes:

  1. Use sentence case for the section title:
-## Learn more
+## Learn more
  1. Replace "Checkout" with "Read" or "Review" for a more professional tone:
-*   Checkout the [OPCM specs](https://specs.optimism.io/experimental/op-contracts-manager.html)
-*   Checkout the [OPCM design document](https://github.com/ethereum-optimism/design-docs/blob/main/protocol/op-contracts-manager-arch.md)
+*   Read the [OPCM specs](https://specs.optimism.io/experimental/op-contracts-manager.html)
+*   Review the [OPCM design document](https://github.com/ethereum-optimism/design-docs/blob/main/protocol/op-contracts-manager-arch.md)
🧰 Tools
🪛 LanguageTool

[grammar] ~28-~28: This sentence should probably be started with a verb instead of the noun ‘Checkout’. If not, consider inserting a comma for better clarity.
Context: ...he smart contracts. ## Learn more * Checkout the [OPCM specs](https://specs.optimism...

(SENT_START_NN_DT)

pages/builders/chain-operators/tools/op-deployer 2.mdx (7)

1-7: Consider a more specific title for better clarity.

The current title "Deployer" is concise but might not be immediately clear to users. Consider a more descriptive title that includes the tool's name, such as "OP Deployer" or "op-deployer: Simplifying OP Stack Deployment".


16-47: Add a note about Go toolchain prerequisites.

The installation instructions are clear and well-structured. However, consider adding a note at the beginning of this section about the prerequisite of having the Go toolchain installed. This will ensure that users have all the necessary tools before starting the installation process.


49-63: Clarify the significance of chain IDs in the example command.

The instructions for generating an intent file are clear and helpful. However, consider adding a brief explanation of the chain IDs used in the example command (11155111 for L1 and 12345 for L2). Clarify whether these are specific test networks or arbitrary examples, and guide users on how to choose appropriate chain IDs for their use case.


65-88: Enhance security warnings and provide more details on configuration overrides.

The intent file example and explanations are comprehensive. However, consider the following improvements:

  1. Add a prominent security warning about the placeholder addresses used in the example. Emphasize that these should never be used in production environments.

  2. Provide more information or a link to documentation about overriding default configurations. This will help users who need to customize their deployments beyond the standard config.

🧰 Tools
🪛 Gitleaks

79-79: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)


90-103: Provide more context for Superchain-related concepts.

The instructions for applying the intent are clear and concise. The note about hardware wallets is important for security considerations. However, the mentions of Superchain configuration, Superchain pause, and protocol versions might be unfamiliar to some users. Consider adding brief explanations or links to relevant documentation for these concepts to help users understand their significance in the deployment process.


105-118: Clarify the expected working directory for file generation commands.

The instructions for generating genesis and rollup files are clear and provide helpful examples. However, the commands use relative paths (./bin/op-deployer), which assumes the user is in a specific directory. Consider adding a note specifying the expected working directory for these commands or use absolute paths to avoid potential confusion.


120-122: Add a link or brief explanation for OP Contracts Manager (OPCM).

While mentioning that op-deployer uses OPCM under the hood is informative, consider adding a brief explanation of what OPCM is or providing a link to its documentation. This will help users understand the underlying technology and its role in the deployment process.

pages/builders/notices/sdk-deprecation 2.mdx (7)

1-5: Improve description clarity and consistency.

The frontmatter is well-structured, but consider refining the description for better clarity and consistency:

Apply this change to the description:

-description: This page outlines the details of the Optimism SDK deprecation and guides developers to migrate to using `viem` library.
+description: This page outlines the details of the Optimism SDK deprecation and guides developers on migrating to the `viem` library.

This change improves readability and maintains consistency in referring to the viem library.


9-9: Ensure consistent capitalization of "Q1".

Apply this change for consistency:

-The Optimism SDK will officially be deprecated in Q1 2025. The project is shifting to the `viem` library for a more modern, efficient, and flexible development experience. This change affects all tutorials and resources that previously relied on the Optimism SDK, and relevant documentation has been updated accordingly.
+The Optimism SDK will officially be deprecated in Q1 2025. The project is shifting to the `viem` library for a more modern, efficient, and flexible development experience. This change affects all tutorials and resources that previously relied on the Optimism SDK, and relevant documentation has been updated accordingly.

This ensures consistent capitalization of "Q1" throughout the document.


22-53: Improve consistency in the commented-out tutorials section.

Although this section is commented out, consider the following improvements for future use:

  1. Use consistent formatting for tutorial links and descriptions.
  2. Use the Oxford comma consistently in descriptions.
  3. Capitalize "Ethereum" consistently.

For example:

-*   [Estimating Transaction Costs on OP Mainnet](../tutorials/transaction-cost-estimation)\
-    Estimation of transaction costs now uses the `viem` gas estimation utilities.
+* [Estimating Transaction Costs on OP Mainnet](../tutorials/transaction-cost-estimation)
+  Estimation of transaction costs now uses the `viem` gas estimation utilities.

-*   [Triggering OP Mainnet Transactions from Ethereum](../tutorials/trigger-op-transactions)\
-    Learn how to trigger transactions using `viem` to interact with the OP Mainnet.
+* [Triggering OP Mainnet Transactions from Ethereum](../tutorials/trigger-op-transactions)
+  Learn how to trigger transactions using `viem` to interact with the OP Mainnet.

-*   [Tracing Deposits and Withdrawals](../tutorials/tracing-deposits-withdrawals)\
-    The tracing functionalities have been adapted to use `opstack` for efficient results.
+* [Tracing Deposits and Withdrawals](../tutorials/tracing-deposits-withdrawals)
+  The tracing functionalities have been adapted to use `opstack` for efficient results.

Apply similar formatting to the remaining tutorials in this section.


55-72: Enhance clarity and consistency in the app developers section.

The section provides valuable guidance for app developers. Consider the following improvements:

  1. Use consistent capitalization for "Optimism SDK" throughout the section.
  2. Add the Oxford comma in the list of key points.
  3. Use sentence case for the bullet points under "Here are some key points to consider:".

Apply these changes:

-If your application currently depends on the Optimism SDK, you will need to migrate to using the `viem` library.
+If your application currently depends on the Optimism SDK, you will need to migrate to using the `viem` library.

 Here are some key points to consider:

-Install new dependencies: Replace the Optimism SDK with `viem` in your project.
+* Install new dependencies: Replace the Optimism SDK with `viem` in your project.

 ```bash
     pnpm remove @eth-optimism/sdk
     pnpm add viem 

-* Update imports: Replace Optimism SDK imports with viem imports.
-* Migrate SDK methods: Refactor your code to use equivalent viem methods. Refer to the viem documentation and opstack documentation for guidance.
-* Test thoroughly: After migration, extensively test your application to ensure all functionality works as expected.
+* Update imports: Replace Optimism SDK imports with viem imports.
+* Migrate SDK methods: Refactor your code to use equivalent viem methods. Refer to the viem documentation and opstack documentation for guidance.
+* Test thoroughly: After migration, extensively test your application to ensure all functionality works as expected.


These changes improve readability and maintain consistency throughout the section.

---

`73-83`: **Improve consistency and clarity in the chain operators section.**

The section provides valuable information for chain operators. Consider the following improvements:


1. Use consistent formatting for bullet points.
2. Add the Oxford comma in the list of operations.
3. Capitalize "Optimism SDK" consistently.

Apply these changes:

```diff
-Chain operators utilizing the SDK for cross-chain operations, bridging, or other functions should switch to the `viem` library.
+Chain operators utilizing the Optimism SDK for cross-chain operations, bridging, or other functions should switch to the `viem` library.
 The `viem` library offers more efficient methods to handle these operations.

 Chain operators should be aware of the following:

-*   SDK removal: Remove any dependencies on the Optimism SDK in your infrastructure.
-*   Update tooling: Ensure all tools and scripts are updated to use `viem`.
-*   Monitor performance: After migration, closely monitor your chain's performance to ensure smooth operation.
+* SDK removal: Remove any dependencies on the Optimism SDK in your infrastructure.
+* Update tooling: Ensure all tools and scripts are updated to use `viem`.
+* Monitor performance: After migration, closely monitor your chain's performance to ensure smooth operation.

These changes improve readability and maintain consistency throughout the section.


84-94: Enhance consistency and clarity in the node operators section.

The section provides valuable guidance for node operators. Consider the following improvements:

  1. Use consistent formatting for bullet points.
  2. Capitalize "Optimism SDK" consistently.
  3. Use the Oxford comma in the list of steps.

Apply these changes:

-Node operators will need to ensure that any scripts or services relying on the Optimism SDK are updated to use `viem` library.
+Node operators will need to ensure that any scripts or services relying on the Optimism SDK are updated to use the `viem` library.
 These updates will help align with future improvements and scalability efforts across the OP Stack.

 Node operators should take the following steps:

-*   Update node software: Ensure your node software is compatible with the latest `viem` libraries.
-*   Review configuration: Check and update any configuration files that may reference the Optimism SDK.
-*   Test thoroughly: Perform comprehensive testing in a staging environment before updating production nodes.
+* Update node software: Ensure your node software is compatible with the latest `viem` libraries.
+* Review configuration: Check and update any configuration files that may reference the Optimism SDK.
+* Test thoroughly: Perform comprehensive testing in a staging environment before updating production nodes.

These changes improve readability and maintain consistency throughout the section.


95-101: Improve consistency and clarity in the "Need Help?" section.

The section provides valuable information on support channels. Consider the following improvements:

  1. Use consistent formatting for bullet points.
  2. Use the Oxford comma in the introductory sentence.
  3. Ensure consistent punctuation at the end of each bullet point.

Apply these changes:

-For further assistance or questions about this migration, feel free to reach through the following channels:
+For further assistance or questions about this migration, feel free to reach out through the following channels:

-*   Join our [community forum](https://community.optimism.io/) for discussions and support
-*   Connect with us on [Discord](https://discord.gg/optimism) for community support
-*   Open an [issue on our GitHub repository](https://github.com/ethereum-optimism/docs/issues) for documentation-related concerns
+* Join our [community forum](https://community.optimism.io/) for discussions and support.
+* Connect with us on [Discord](https://discord.gg/optimism) for community support.
+* Open an [issue on our GitHub repository](https://github.com/ethereum-optimism/docs/issues) for documentation-related concerns.

These changes improve readability and maintain consistency throughout the section.

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between 9c569f8 and 4ed6e92.

📒 Files selected for processing (4)
  • pages/builders/chain-operators/tools/op-deployer 2.mdx (1 hunks)
  • pages/builders/notices/sdk-deprecation 2.mdx (1 hunks)
  • pages/builders/tools/fee-calculator.mdx (1 hunks)
  • pages/stack/opcm 2.mdx (1 hunks)
🧰 Additional context used
📓 Path-based instructions (4)
pages/builders/chain-operators/tools/op-deployer 2.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. Use bold for prominence instead of all caps or italics.
  • 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).
    "
pages/builders/notices/sdk-deprecation 2.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. Use bold for prominence instead of all caps or italics.
  • 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).
    "
pages/builders/tools/fee-calculator.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. Use bold for prominence instead of all caps or italics.
  • 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).
    "
pages/stack/opcm 2.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. Use bold for prominence instead of all caps or italics.
  • 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).
    "
🪛 Gitleaks
pages/builders/chain-operators/tools/op-deployer 2.mdx

79-79: Detected a Generic API Key, potentially exposing access to various services and sensitive operations.

(generic-api-key)

🪛 LanguageTool
pages/stack/opcm 2.mdx

[uncategorized] ~21-~21: Did you mean “contract”? If following ‘per’, nouns are often singular.
Context: ...ation Contracts.** This occurs once per contracts release in production. 3. **Deploy OP ...

(CONFUSION_OF_NNS_NN_UN)


[style] ~22-~22: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ... contracts release in production. 3. Deploy OP Chain Contracts. This occurs for e...

(ENGLISH_WORD_REPEAT_BEGINNING_RULE)


[grammar] ~28-~28: This sentence should probably be started with a verb instead of the noun ‘Checkout’. If not, consider inserting a comma for better clarity.
Context: ...he smart contracts. ## Learn more * Checkout the [OPCM specs](https://specs.optimism...

(SENT_START_NN_DT)

🔇 Additional comments (6)
pages/builders/tools/fee-calculator.mdx (2)

4-4: LGTM: Description updated for conciseness

The description has been appropriately shortened while maintaining clarity and relevance to the Fjord Fee Parameter Calculator. The removal of "on the Fjord network" reduces redundancy as "Fjord" is already mentioned in the title.


11-11: LGTM: Introductory paragraph simplified

The introductory paragraph has been effectively simplified while maintaining its core message. The removal of the redundant reference to the Fjord network improves conciseness without losing context, as "Fjord" is already mentioned in the title. The sentence structure adheres to the coding guidelines by using the imperative form and avoiding personal pronouns.

pages/stack/opcm 2.mdx (1)

8-10: LGTM: Import statement and main title

The import statement and main title are correctly formatted and follow the coding guidelines.

pages/builders/chain-operators/tools/op-deployer 2.mdx (3)

8-10: LGTM: Import statement and main header are correct.

The import statement and main header are appropriate for the document structure.


12-14: Well-written introduction that effectively explains op-deployer.

The introduction provides a clear and concise explanation of op-deployer, using a helpful comparison to Terraform. This approach makes it easy for readers to understand the tool's purpose and functionality.


124-127: LGTM: Helpful resources provided for further reading.

The Next Steps section provides valuable links to the op-deployer repository and OPCM documentation, which are excellent resources for users seeking more detailed information.

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