Skip to content

Conversation

K-Ho
Copy link
Contributor

@K-Ho K-Ho commented May 30, 2024

Description

Add section calling out withdrawal network must be 1 for CGT

@K-Ho K-Ho requested a review from a team as a code owner May 30, 2024 00:25
@K-Ho K-Ho requested a review from a team May 30, 2024 00:25
Copy link
Contributor

coderabbitai bot commented May 30, 2024

Walkthrough

The recent changes to the custom-gas-token.mdx file introduce new instructions for setting specific variables related to fee withdrawals to L2 addresses and provide clarifications on fee withdrawal support to L1. These updates aim to enhance the documentation by making it clearer and more comprehensive for users managing custom gas tokens.

Changes

File Path Change Summary
pages/.../management/custom-gas-token.mdx Added instructions for setting variables for fee withdrawals to L2 addresses and clarified L1 support for fee withdrawals.

Recent Review Details

Configuration used: .coderabbit.yaml
Review profile: CHILL

Commits Files that changed from the base of the PR and between 96364d1 and f6337be.
Files selected for processing (1)
  • pages/builders/chain-operators/management/custom-gas-token.mdx (1 hunks)
Additional Context Used
LanguageTool (5)
pages/builders/chain-operators/management/custom-gas-token.mdx (5)

Near line 21: This sentence should probably be started with a verb instead of the noun ‘Checkout’. If not, consider inserting a comma for better clarity.
Context: ...> ### Deploying Your Contracts * Checkout the [v2.0.0-beta.1 of the contracts](...
Rule ID: SENT_START_NN_DT


Near line 27: The word ‘deploy’ is a verb. Did you mean the noun “deployment” (= release, placement)?
Context: ...s token! * Update the deploy config in `contracts-bedrock/deploy-con...
Rule ID: PREPOSITION_VERB


Near line 63: The word ‘deploy’ is a verb. Did you mean the noun “deployment” (= release, placement)?
Context: ...G_PATH` is the path to the file for the deploy config used to deploy ### Generating...
Rule ID: PREPOSITION_VERB


Near line 85: The word ‘deploy’ is a verb. Did you mean the noun “deployment” (= release, placement)?
Context: ...G_PATHis the path to the file for the deploy config used to deploy * STATE_DUMP...
Rule ID: PREPOSITION_VERB


Near line 108: Possible missing comma found.
Context: ...our deployment This calls the WETH predeploy which should be considered wrapped nati...
Rule ID: AI_HYDRA_LEO_MISSING_COMMA

Path-based Instructions (1)
pages/builders/chain-operators/management/custom-gas-token.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).
    "
Additional comments not posted (1)
pages/builders/chain-operators/management/custom-gas-token.mdx (1)

50-50: Clarify the network settings for fee withdrawals.

The added instructions on setting network values for fee withdrawals are crucial. However, the sentence could be clearer. Consider rephrasing for better readability and to ensure the imperative form is maintained:

- Additionally ensure that you have set your `baseFeeVaultWithdrawalNetwork`, `l1FeeVaultWithdrawalNetwork`, and `sequencerFeeVaultWithdrawalNetwork` to `1` so that fees can be withdrawn to L2. Also, ensure your `baseFeeVaultRecipient`, `l1FeeVaultRecipient`, and `sequencerFeeVaultRecipient` are set to the L2 address that you wish to withdraw fees to. Fee withdrawals to L1 are not currently supported, but will be added soon.
+ Additionally, ensure that your `baseFeeVaultWithdrawalNetwork`, `l1FeeVaultWithdrawalNetwork`, and `sequencerFeeVaultWithdrawalNetwork` are set to `1` to enable fee withdrawals to L2. Also, set your `baseFeeVaultRecipient`, `l1FeeVaultRecipient`, and `sequencerFeeVaultRecipient` to the L2 address to which you wish to withdraw fees. Note that fee withdrawals to L1 are not currently supported but will be implemented soon.

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>.
    • 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 generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @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 as 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.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

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

netlify bot commented May 30, 2024

Deploy Preview for docs-optimism ready!

Name Link
🔨 Latest commit f6337be
🔍 Latest deploy log https://app.netlify.com/sites/docs-optimism/deploys/6657d333dd249c000814220d
😎 Deploy Preview https://deploy-preview-718--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 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 (3)
pages/builders/chain-operators/management/custom-gas-token.mdx (3)

Line range hint 21-21: Revise the verb usage for clarity.

The verb "Checkout" might be confusing here. Consider using "Check out" as two words to clarify that it's an action:

- Checkout the [`v2.0.0-beta.1` of the contracts](https://github.com/ethereum-optimism/optimism/tree/op-contracts/v2.0.0-beta.1) and use the commit to deploy.
+ Check out the [`v2.0.0-beta.1` of the contracts](https://github.com/ethereum-optimism/optimism/tree/op-contracts/v2.0.0-beta.1) and use the commit to deploy.

Line range hint 27-27: Standardize terminology for consistency.

The term "deploy" is used inconsistently. Consider using "deployment" for clarity and consistency:

- Update the deploy config in `contracts-bedrock/deploy-config` with new fields: `useCustomGasToken` and `customGasTokenAddress`
+ Update the deployment configuration in `contracts-bedrock/deploy-config` with new fields: `useCustomGasToken` and `customGasTokenAddress`

- `DEPLOY_CONFIG_PATH` is the path to the file for the deploy config used to deploy
+ `DEPLOY_CONFIG_PATH` is the path to the file for the deployment configuration used to deploy

- `DEPLOY_CONFIG_PATH` is the path to the file for the deploy config used to deploy
+ `DEPLOY_CONFIG_PATH` is the path to the file for the deployment configuration used to deploy

Also applies to: 63-63, 85-85


Line range hint 108-108: Correct grammatical errors for clarity.

There are a couple of grammatical issues in this line that could lead to confusion:

- This calls the `WETH` predeploy which should be considered wrapped native asset in the context of custom gas token.
+ This calls the `WETH` predeploy, which should be considered a wrapped native asset in the context of custom gas tokens.

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Outside diff range and nitpick comments (3)
pages/builders/chain-operators/management/custom-gas-token.mdx (3)

Line range hint 21-21: Consider starting the sentence with a verb or adding a comma for clarity.

- Checkout the [`v2.0.0-beta.1` of the contracts](https://github.com/ethereum-optimism/optimism/tree/op-contracts/v2.0.0-beta.1) and use the commit to deploy.
+ Check out the [`v2.0.0-beta.1` of the contracts](https://github.com/ethereum-optimism/optimism/tree/op-contracts/v2.0.0-beta.1), and use the commit to deploy.

Line range hint 27-27: Use "deployment" instead of "deploy" for clarity.

- Update the deploy config in `contracts-bedrock/deploy-config` with new fields: `useCustomGasToken` and `customGasTokenAddress`
+ Update the deployment config in `contracts-bedrock/deploy-config` with new fields: `useCustomGasToken` and `customGasTokenAddress`

- `DEPLOY_CONFIG_PATH` is the path to the file for the deploy config used to deploy
+ `DEPLOY_CONFIG_PATH` is the path to the file for the deployment config used to deploy

- `DEPLOY_CONFIG_PATH` is the path to the file for the deploy config used to deploy
+ `DEPLOY_CONFIG_PATH` is the path to the file for the deployment config used to deploy

Also applies to: 63-63, 85-85


Line range hint 108-108: Add a comma for better readability.

- This calls the `WETH` predeploy which should be considered wrapped native asset in the context of custom gas token.
+ This calls the `WETH` predeploy, which should be considered wrapped native asset in the context of custom gas token.

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