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

fix: wrong Deploy.s.sol file path #1019

Merged
merged 2 commits into from
Oct 23, 2024

Conversation

jsvisa
Copy link
Contributor

@jsvisa jsvisa commented Oct 23, 2024

Description

the deploy.sol is at scripts/deploy/Deploy.sol instead of scripts/Deploy.sol

Tests

Additional context

Metadata

@jsvisa jsvisa requested a review from a team as a code owner October 23, 2024 06:47
Copy link

netlify bot commented Oct 23, 2024

Deploy Preview for docs-optimism ready!

Name Link
🔨 Latest commit b1afbc9
🔍 Latest deploy log https://app.netlify.com/sites/docs-optimism/deploys/67189c1c74853900080707ad
😎 Deploy Preview https://deploy-preview-1019--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 23, 2024

Walkthrough

The pull request includes updates to several documentation files related to deploying smart contracts and managing custom gas tokens within the OP Stack. Key changes involve updating script paths, adding warnings about deprecated methods, and enhancing instructions for deploying L2 rollups. The changes ensure that users are directed to the correct resources and methods, reflecting updates in the directory structure and clarifying the deployment process.

Changes

File Path Change Summary
pages/builders/chain-operators/deploy/smart-contracts.mdx Updated script path from scripts/Deploy.s.sol to scripts/deploy/Deploy.s.sol. Added a warning about legacy methods. Clarified deployment configuration and execution sections.
pages/builders/chain-operators/features/custom-gas-token.mdx Corrected title, updated deployment script path, added warnings about beta status, and clarified methods for depositing and withdrawing custom gas tokens.
pages/builders/chain-operators/tutorials/create-l2-rollup.mdx Updated title and description, added software dependencies, clarified environment variables, and refined deployment steps. Updated script path for deploying contracts.

Possibly related issues

  • ethereum-optimism/docs#728: The changes in the tutorial on creating an L2 rollup testnet address the need for updates mentioned in this issue regarding outdated content.
  • ethereum-optimism/docs#917: The updates to the tutorial align with the request for an audit and improvements to ensure current methods are documented.
  • ethereum-optimism/docs#992: This PR's changes regarding deployment methods are relevant to the updates requested in this issue, which seeks to move away from legacy scripts.
  • ethereum-optimism/docs#991: The updates in this PR regarding the deployment process relate to the need for clarification and updates mentioned in this issue.
  • ethereum-optimism/docs#627: The changes made in the L2 rollup tutorial address the need for improvements outlined in this request.

Possibly related PRs

Suggested labels

flag:merge-pending-release

Suggested reviewers

  • sbvegan
  • cpengilly

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

🧹 Outside diff range and nitpick comments (3)
pages/builders/chain-operators/deploy/smart-contracts.mdx (1)

Line range hint 1-100: Documentation requires style improvements

Please update the following to align with the documentation guidelines:

  1. Header Capitalization:

    • Change "OP Stack Smart Contract Deployment" to "OP Stack smart contract deployment"
    • Change "State Diff" to "State diff"
    • Change "Best Practices" to "Best practices"
  2. Replace personal pronouns:

    • Change "you can see" to "developers can see"
    • Change "Before deploying your OP Stack contracts" to "Before deploying the OP Stack contracts"
  3. Add Oxford commas in lists:

    • Change "including a new SuperchainConfig" to "including a new SuperchainConfig,"
    • Add comma after "op-challenger" in the infrastructure requirements list
- # OP Stack Smart Contract Deployment
+ # OP Stack smart contract deployment

- ### State Diff
+ ### State diff

- ## Best Practices
+ ## Best practices

- you can see the [smart contract overview]
+ developers can see the [smart contract overview]

- Before deploying your OP Stack contracts
+ Before deploying the OP Stack contracts

- including a new SuperchainConfig
+ including a new SuperchainConfig,

- [op-challenger](https://github.com/ethereum-optimism/optimism/tree/develop/op-challenger) and
+ [op-challenger](https://github.com/ethereum-optimism/optimism/tree/develop/op-challenger), and
pages/builders/chain-operators/features/custom-gas-token.mdx (2)

Line range hint 1-14: Fix typo in the title: "How torRun" should be "How to run"

The title contains a typographical error that should be corrected for clarity and professionalism.

Apply this diff:

-# How torRun a custom gas token chain
+# How to run a custom gas token chain

Line range hint 132-146: Apply sentence case to section headers

According to the coding guidelines, H1, H2, and H3 headers should use sentence case, capitalizing only the first word and proper nouns.

Apply these changes to the headers:

-### Spinning up your infrastructure
+### Spinning up your infrastructure

-### Validating your deployment
+### Validating your deployment

-### Depositing custom gas token into the chain
+### Depositing custom gas token into the chain

-### Withdrawing custom gas tokens out of the chain
+### Withdrawing custom gas tokens out of the chain
📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between 06b7e70 and b1afbc9.

📒 Files selected for processing (3)
  • pages/builders/chain-operators/deploy/smart-contracts.mdx (2 hunks)
  • pages/builders/chain-operators/features/custom-gas-token.mdx (1 hunks)
  • pages/builders/chain-operators/tutorials/create-l2-rollup.mdx (1 hunks)
🧰 Additional context used
📓 Path-based instructions (3)
pages/builders/chain-operators/deploy/smart-contracts.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 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).
  • Use sentence case for H1, H2, and H3 headers, capitalizing only the first word and any proper nouns.
  • For all headers (H1, H2, H3), do not change the capitalization of proper nouns; keep them as they are.
    "
pages/builders/chain-operators/features/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. 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 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).
  • Use sentence case for H1, H2, and H3 headers, capitalizing only the first word and any proper nouns.
  • For all headers (H1, H2, H3), do not change the capitalization of proper nouns; keep them as they are.
    "
pages/builders/chain-operators/tutorials/create-l2-rollup.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 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).
  • Use sentence case for H1, H2, and H3 headers, capitalizing only the first word and any proper nouns.
  • For all headers (H1, H2, H3), do not change the capitalization of proper nouns; keep them as they are.
    "
🔇 Additional comments (4)
pages/builders/chain-operators/deploy/smart-contracts.mdx (2)

47-47: Script path updates look good!

The path corrections from scripts/Deploy.s.sol to scripts/deploy/Deploy.s.sol accurately reflect the actual file location in the repository.

Also applies to: 74-74


47-47: Command formatting and structure are well-documented!

The commands are properly formatted with:

  • Clear environment variable usage
  • Consistent structure
  • Appropriate bash syntax highlighting

Also applies to: 74-77

pages/builders/chain-operators/features/custom-gas-token.mdx (1)

59-62: LGTM: Deployment script path has been correctly updated

The path update from scripts/Deploy.s.sol to scripts/deploy/Deploy.s.sol accurately reflects the correct location of the deployment script.

pages/builders/chain-operators/tutorials/create-l2-rollup.mdx (1)

421-421: LGTM: Script path correction

The updated path scripts/deploy/Deploy.s.sol aligns with the PR objectives to fix the incorrect file path reference.

✅ Verification successful

Let me try a different approach to verify the script path.

This will help us:

  1. Find if the Deploy.s.sol file exists anywhere in the repository
  2. Find any references to this file in other files to understand the correct path

Let's check the references to understand the correct path being used across the documentation.


✅ Script path change is correct and consistent

The updated path scripts/deploy/Deploy.s.sol in the tutorial is correct and consistent with other documentation files. This is evidenced by:

  • The same path is used in smart-contracts.mdx for deployment commands
  • The reference in rollup.mdx links to the official repository with the same path structure
  • The script is located at packages/contracts-bedrock/scripts/deploy/Deploy.s.sol in the monorepo
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Verify the existence of the deployment script at the new path
fd "Deploy.s.sol" | grep "deploy/Deploy.s.sol"

Length of output: 44


Script:

#!/bin/bash
# Search for any Deploy.s.sol files in the repository
fd "Deploy.s.sol"

# Also search using ripgrep to find any references to Deploy.s.sol
rg -l "Deploy\.s\.sol"

Length of output: 279


Script:

#!/bin/bash
# Check how Deploy.s.sol is referenced in other documentation files
rg "Deploy\.s\.sol" pages/builders/chain-operators/deploy/smart-contracts.mdx pages/builders/chain-operators/configuration/rollup.mdx -A 1 -B 1

Length of output: 1641

@krofax krofax merged commit 7a55317 into ethereum-optimism:main Oct 23, 2024
5 of 6 checks passed
@jsvisa jsvisa deleted the fix-custom-gas-token branch October 23, 2024 09:29
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