-
Notifications
You must be signed in to change notification settings - Fork 194
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
Conversation
Signed-off-by: jsvisa <[email protected]>
Signed-off-by: jsvisa <[email protected]>
✅ Deploy Preview for docs-optimism ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
WalkthroughThe 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
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: 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 improvementsPlease update the following to align with the documentation guidelines:
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"
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"
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), andpages/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 headersAccording 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
📒 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
toscripts/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 updatedThe path update from
scripts/Deploy.s.sol
toscripts/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 correctionThe 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:
- Find if the Deploy.s.sol file exists anywhere in the repository
- 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 1Length of output: 1641
Description
the deploy.sol is at
scripts/deploy/Deploy.sol
instead ofscripts/Deploy.sol
Tests
Additional context
Metadata