-
Notifications
You must be signed in to change notification settings - Fork 260
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
Conversation
✅ Deploy Preview for docs-optimism ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
WalkthroughThis pull request introduces new documentation files for the Changes
Possibly related issues
Possibly related PRs
Suggested labels
Suggested reviewers
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? 🪧 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: 1
🧹 Outside diff range and nitpick comments (18)
pages/builders/tools/fee-calculator.mdx (1)
13-14
: LGTM: Bullet points reformatted for consistencyThe 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 clarityThe introduction paragraph is informative, but there's a minor inconsistency in capitalization and a small opportunity to improve clarity.
Please apply the following changes:
- Capitalize "Monorepo" in "Optimism Monorepo releases page" for consistency with proper nouns.
- 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 sectionThe 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:
- Use sentence case for the section title:
-## Purpose +## Purpose
- 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.
- 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.
- 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" sectionThe "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:
- Use sentence case for the section title:
-## Learn more +## Learn more
- 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:
Add a prominent security warning about the placeholder addresses used in the example. Emphasize that these should never be used in production environments.
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:
- Use consistent formatting for tutorial links and descriptions.
- Use the Oxford comma consistently in descriptions.
- 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:
- Use consistent capitalization for "Optimism SDK" throughout the section.
- Add the Oxford comma in the list of key points.
- 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 equivalentviem
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 withviem
imports.
+* Migrate SDK methods: Refactor your code to use equivalentviem
methods. Refer to theviem
documentation andopstack
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:
- Use consistent formatting for bullet points.
- Capitalize "Optimism SDK" consistently.
- 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:
- Use consistent formatting for bullet points.
- Use the Oxford comma in the introductory sentence.
- 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
📒 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 concisenessThe 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 simplifiedThe 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 titleThe 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.
Description
Tests
Additional context
Metadata