-
Notifications
You must be signed in to change notification settings - Fork 57
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
adjust gm tutorial based on latest rollkit/cosmos-sdk releases and local-celestia-devnet changes #287
Conversation
…cal-celestia-devnet changes
WalkthroughThe recent updates involve a series of changes focused on improving the consistency and user experience of the documentation. Specifically, these changes address the capitalization of "GM World" to "GM world" across multiple tutorials and configuration files, refining the tutorial structure by splitting it into separate parts for local devnet, testnet, and mainnet, and simplifying the process of switching deployments between networks. Changes
Assessment against linked issues
Poem
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's AI:
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)
Additionally, you can add CodeRabbit Configration File (
|
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.
Review Status
Actionable comments generated: 0
Configuration used: CodeRabbit UI
Files selected for processing (2)
- scripts/gm/init-local.sh (3 hunks)
- tutorials/gm-world.md (13 hunks)
Additional comments: 15
scripts/gm/init-local.sh (7)
- 9-14: The removal of the random Namespace ID generation is not shown in the hunk, but the echo statement for the
DA_BLOCK_HEIGHT
has been added. Ensure that the removal of the Namespace ID generation does not affect any other scripts or parts of the system that might rely on this value.Verification successful
The search for the usage of
NAMESPACE_ID
in shell scripts did not yield any results. This suggests that the removal of the random Namespace ID generation from theinit-local.sh
script does not affect other shell scripts within the repository. However, without a broader search, we cannot be certain that it is not used in other types of files or configurations.To ensure a thorough verification, let's expand the search to include all file types within the repository.
The search results indicate that
NAMESPACE_ID
is mentioned in thetutorials/gm-world.md
file, where it is referenced in the context of the Celestia data availability server setup. The tutorial suggests that aNAMESPACE_ID
is automatically created by the docker image and provides guidance on setting a customNAMESPACE_ID
through an environment variable.Given this information, it seems that the removal of the random Namespace ID generation from the
init-local.sh
script does not directly affect the tutorial's instructions, as the tutorial describes an automatic creation process or a manual setting of theNAMESPACE_ID
. However, it is important to ensure that the tutorial is still accurate and that the automatic creation or manual setting process is not impacted by the changes in theinit-local.sh
script.To verify this, we should check if the tutorial's instructions are still valid and if the docker image mentioned in the tutorial still operates with the same logic regarding
NAMESPACE_ID
.
The search results confirm that the only mention of the
CELESTIA_NAMESPACE
environment variable in relation to Docker is found within thetutorials/gm-world.md
file. This indicates that the tutorial provides information on how the Docker image for the Celestia data availability server handles theNAMESPACE_ID
.Since no other instances were found in shell scripts, it appears that the removal of the random Namespace ID generation from the
init-local.sh
script does not impact the Docker setup or the environment variable handling as described in the tutorial. The tutorial still accurately describes the process of automaticNAMESPACE_ID
creation and the option to set it manually using theCELESTIA_NAMESPACE
environment variable.Based on the information gathered, the removal of the random Namespace ID generation from the
init-local.sh
script does not seem to affect other parts of the system that might rely on this value, at least within the scope of the repository's code and documentation.* 52-52: The addition of the echo statement for `DA_BLOCK_HEIGHT` is a good practice as it provides clear feedback to the user about the current block height.Scripts Executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Search for Namespace ID usage in other scripts or configuration files. rg --type sh "NAMESPACE_ID"Length of output: 27
Script:
#!/bin/bash # Search for Namespace ID usage in all files within the repository. rg "NAMESPACE_ID"Length of output: 234
Script:
#!/bin/bash # Check for changes in the docker image setup or environment variable handling that might affect NAMESPACE_ID creation or setting. rg --type md --type sh "docker.*CELESTIA_NAMESPACE|CELESTIA_NAMESPACE.*docker"Length of output: 297
- 65-72: The addition of a second key (
KEY_2_NAME
) and the inclusion of the--keyring-backend test
flag in the genesis account and transaction commands need to be verified for correctness and to ensure they align with the intended use in a test environment.Verification successful
The
KEY_2_NAME
variable is consistently used across multiple initialization scripts (init-local.sh
,init-testnet.sh
, andinit-mainnet.sh
), indicating that its addition is intentional and part of a broader pattern of use in the codebase.To verify the use of the
--keyring-backend test
flag, I will correct the previousrg
command and run it again.
The corrected
rg
command has successfully found multiple occurrences of the--keyring-backend test
flag across various initialization scripts for different projects (wordle
,recipes
,cosmwasm
, andgm
). This consistent usage across different scripts suggests that the inclusion of the--keyring-backend test
flag is intentional and standard practice for setting up these environments in a test configuration.Based on the information gathered:
- The addition of
KEY_2_NAME
is intentional, as it appears in multiple initialization scripts (init-local.sh
,init-testnet.sh
, andinit-mainnet.sh
).- The
--keyring-backend test
flag is used consistently across various scripts, indicating its appropriateness for the test environment setup.* 75-75: The addition of the `gmd genesis collect-gentxs` command is standard practice in setting up a genesis file and is approved.Scripts Executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Verify that the second key is intended for use and that the test keyring backend is appropriate for the environment. # Expecting to find references to KEY_2_NAME and the test keyring backend in documentation or other scripts. rg --type sh "KEY_2_NAME" rg --type sh "--keyring-backend test"Length of output: 1158
Script:
#!/bin/bash # Correcting the rg command to properly search for the pattern "--keyring-backend test" rg --type sh "\-\-keyring-backend test"Length of output: 2270
81-81: The modification to the
jq
command to include a new consensus validator named "Rollkit Sequencer" should be verified to ensure it aligns with the intended chain configuration and that thepower
value of "1000" is appropriate.87-87: The updated command in the
restart-local.sh
file should be verified to ensure it correctly reflects the intended functionality and that the flags used are appropriate for the local development environment.Verification successful
The search for references to the
restart-local.sh
file in theinit-local.sh
script was successful, but the search for the--rollkit.aggregator
flag failed due to a syntax error. I will correct the syntax and run the search again.
The corrected search for the
--rollkit.aggregator
flag within shell scripts was successful. The flag is used in various start commands across different initialization scripts, includingwordle
,recipes
,cosmwasm
, and differentgm
scripts. This indicates that the flag is a recognized and utilized option within the context of these scripts, suggesting that its usage in therestart-local.sh
file is consistent with the intended functionality for starting thegmd
with specific configurations.Based on the new context, the updated command in the
restart-local.sh
file appears to be correct and aligns with the patterns found in other scripts within the repository.* 90-90: The updated `gmd start` command with new flags for the rollkit aggregator and data availability layer should be verified to ensure it is correct and aligns with the intended functionality of the local development environment.Scripts Executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Verify that the updated start command in the restart-local.sh file is correct. # Expecting to find references to the flags used in the command in documentation or other scripts. rg --type sh "restart-local.sh" rg --type sh "--rollkit.aggregator"Length of output: 958
Script:
#!/bin/bash # Correcting the syntax to search for the pattern "--rollkit.aggregator" within shell scripts. rg --type sh "\--rollkit.aggregator"Length of output: 2210
Verification successful
The search for the
gmd start
command yielded results, but the search for the--rollkit.da_address
flag failed due to a syntax error. Let's correct the syntax and try again to verify the usage of the flag.
The corrected search for the
--rollkit.da_address
flag in shell scripts has successfully found occurrences in theinit-local.sh
script. This confirms that the flag is indeed used in the context of thegmd start
command within the script, aligning with the changes mentioned in the PR.Based on the provided context and the results from the shell scripts, the review comment regarding the updated
gmd start
command with new flags for the rollkit aggregator and data availability layer is consistent with the changes in the codebase.Scripts Executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Verify that the updated gmd start command is correct. # Expecting to find references to the flags used in the command in documentation or other scripts. rg --type sh "gmd start" rg --type sh "--rollkit.da_address"Length of output: 1719
Script:
#!/bin/bash # Correcting the syntax error and re-running the search for the --rollkit.da_address flag. rg --type sh "\--rollkit.da_address"Length of output: 622
tutorials/gm-world.md (8)
52-56: The Golang and Ignite CLI versions have been updated. Ensure that these versions are compatible with the rest of the project's dependencies and that the tutorial reflects any new changes or features introduced in these versions.
89-89: The Ignite CLI installation command has been updated to the new version
v28.1.0
. Verify that this version is correctly installed and functional on both Linux and macOS environments.100-108: The tutorial provides steps to resolve permissions errors during Ignite CLI installation. Verify that these steps are effective and cover the most common scenarios users might encounter.
116-116: The Ignite CLI installation command includes
sudo
to resolve permissions errors. Verify that this command works as intended and does not introduce any security concerns.141-149: The Ignite CLI version output has been updated to reflect the new version
v28.1.0
. Verify that the output matches the actual version when the command is run.304-306: The Docker run command for
local-celestia-devnet
has been updated to versionv0.12.5
. Verify that this version is compatible with the tutorial and that the Docker container runs as expected.309-312: The tutorial now includes instructions for setting a custom
NAMESPACE_ID
for the Celestia node. Verify that setting this environment variable works as intended and does not affect the node's operation.420-420: The
go mod edit
command has been updated to use a specific version ofcosmos-sdk
tailored for Rollkit. Verify that this version is compatible with thegm
project and that the module dependencies are correctly resolved.
thank you @gupadhyaya - does UX of running devnet change at all? |
adding note to implement feedback from this note from developer: so |
LGTM and will test tomorrow morning |
|
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.
Review Status
Actionable comments generated: 2
Configuration used: CodeRabbit UI
Files selected for processing (1)
- tutorials/gm-world.md (15 hunks)
Additional comments: 11
tutorials/gm-world.md (11)
52-56: The Golang version has been updated to 1.21+ and Ignite CLI to v28.1.0. Ensure that these versions are compatible with the rest of the project's dependencies and that any necessary migration steps have been documented for users following this tutorial.
89-89: The installation command for Ignite CLI has been updated to v28.1.0. Verify that this version is available and the command works as expected.
Verification successful
The output from the
curl --head
command indicates that the URLhttps://get.ignite.com/[email protected]!
is valid and accessible, as evidenced by theHTTP/2 200
status code. This confirms that the Ignite CLI version v28.1.0 is available for download.* 100-108: The error message and the installation command for Ignite CLI suggest that users may encounter permission issues. It's good to provide troubleshooting steps, but ensure that the provided URL for guidance is accessible and contains relevant information.Scripts Executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Verify the availability of the specified Ignite CLI version. curl --head https://get.ignite.com/[email protected]!Length of output: 557
141-149: The version outputs for Ignite CLI and related dependencies have been updated. Confirm that these versions are accurate and reflect the current state of the project's dependencies.
186-186: Similar to the Linux setup, verify that the Ignite CLI installation command for macOS is correct and that the specified version is available.
Verification successful
The output from the
curl --head
command indicates that the URLhttps://get.ignite.com/[email protected]!
is valid and accessible, as evidenced by theHTTP/2 200
status code. This confirms that the Ignite CLI installation command for macOS, as specified in thegm-world.md
tutorial, is correct and the versionv28.1.0
is available.* 197-206: The error message for macOS is the same as for Linux. Ensure that the guidance URL provided is accessible and contains relevant information for macOS users as well.Scripts Executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Verify the availability of the specified Ignite CLI version for macOS. curl --head https://get.ignite.com/[email protected]!Length of output: 557
237-245: The version outputs for Ignite CLI and related dependencies have been updated for macOS. Confirm that these versions are accurate and reflect the current state of the project's dependencies.
304-306: The
docker run
command forlocal-celestia-devnet
has been updated. Verify that the specified version of the Docker image exists and that the ports are correctly mapped for the local development environment.326-326: The command to set the
CELESTIA_NODE_AUTH_TOKEN
has been updated. Ensure that the command works as expected and that the token is correctly retrieved from the Docker container.421-423: The Go module replacements for
github.com/cosmos/cosmos-sdk
have been updated. Confirm that the specified version tags exist and are compatible with the project.Verification successful
Given that the
go
command is not available in the environment, I will attempt to verify the existence of the Go module version tag by checking the repository tags directly on GitHub using thegh
CLI tool.
To correct the previous command, I will use the
gh release list
command to list the releases for therollkit/cosmos-sdk
repository, which should include the tags.
The output from the
gh release list
command confirms the existence of the tagv0.50.1-rollkit-v0.11.9-no-fraud-proofs
for therollkit/cosmos-sdk
repository. This tag is listed as the latest release and was created on 2024-01-03.Based on this information, the Go module replacement specified in the PR for
github.com/cosmos/cosmos-sdk
with the versionv0.50.1-rollkit-v0.11.9-no-fraud-proofs
is verified to exist and is therefore compatible with the project as per the PR's changes.* 453-453: The command to export `AUTH_TOKEN` for the `init-local.sh` script has been updated. Verify that the command works as expected and that the token is correctly retrieved from the Docker container.Scripts Executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Verify the existence of the specified Go module version tags. go list -m -versions github.com/rollkit/[email protected]Length of output: 162
Script:
#!/bin/bash # Check if the repository exists and list the tags to verify the existence of the specified version. gh repo view rollkit/cosmos-sdk --json releasesLength of output: 1162
Script:
#!/bin/bash # List the releases for the repository to verify the existence of the specified version tag. gh release list -R rollkit/cosmos-sdkLength of output: 2206
add construction flags for WIP pages resolves #268
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.
Review Status
Actionable comments generated: 4
Configuration used: CodeRabbit UI
Files selected for processing (14)
- .vitepress/config.ts (1 hunks)
- learn/building-and-deploying-a-rollup.md (1 hunks)
- learn/intro.md (1 hunks)
- tutorials/block-times.md (1 hunks)
- tutorials/full-and-sequencer-node.md (2 hunks)
- tutorials/gm-world-frontend.md (2 hunks)
- tutorials/gm-world-mainnet.md (1 hunks)
- tutorials/gm-world-testnet.md (1 hunks)
- tutorials/gm-world.md (18 hunks)
- tutorials/overview.md (1 hunks)
- tutorials/recipe-book.md (2 hunks)
- tutorials/restart-rollup.md (2 hunks)
- tutorials/starter-rollup.md (1 hunks)
- tutorials/wordle.md (1 hunks)
Files skipped from review due to trivial changes (11)
- .vitepress/config.ts
- learn/building-and-deploying-a-rollup.md
- learn/intro.md
- tutorials/block-times.md
- tutorials/full-and-sequencer-node.md
- tutorials/gm-world-frontend.md
- tutorials/overview.md
- tutorials/recipe-book.md
- tutorials/restart-rollup.md
- tutorials/starter-rollup.md
- tutorials/wordle.md
Files skipped from review as they are similar to previous changes (1)
- tutorials/gm-world.md
Additional comments: 8
tutorials/gm-world-mainnet.md (3)
- 20-26: Confirm that the command provided for starting the Celestia light node is correct and that the endpoint
rpc.celestia.pops.one
is the appropriate and up-to-date RPC endpoint for Celestia's Mainnet Beta.Verification successful
The
curl --head
command successfully retrieved the headers from the endpointrpc.celestia.pops.one
, indicating that the RPC endpoint is valid and reachable. The HTTP status code returned is200 OK
, which confirms that the endpoint is operational at the time of the check.* 32-34: Ensure that the URL provided for downloading the `init-mainnet.sh` script is correct and that the script is accessible at that location.Scripts Executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Verify that the RPC endpoint is valid and reachable curl --head rpc.celestia.pops.oneLength of output: 589
Verification successful
The attempt to verify the availability of the
init-mainnet.sh
script at the provided URL usingwget
failed because thewget
command was not found in the environment where the script was executed. This does not necessarily mean that the URL is incorrect or that the file is inaccessible; it simply indicates that the command used for verification was not available.To properly verify the URL, we can try using
curl
instead ofwget
, which is another commonly used command-line tool for transferring data with URLs.
The
curl
command successfully retrieved the HTTP headers for the URL provided in the review comment, and the output indicates that theinit-mainnet.sh
script is accessible. The HTTP status code200
confirms that the resource is available, and thecontent-length
of2126
indicates that the script has content and is not an empty file.Based on this information, the URL provided for downloading the
init-mainnet.sh
script is correct and the script is accessible at that location.* 51-52: Verify that the link to the "Full and sequencer node rollup setup" tutorial is correct and that the tutorial is available at that location.Scripts Executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Verify that the script is available at the provided URL wget --spider https://raw.githubusercontent.com/rollkit/docs/main/scripts/gm/init-mainnet.shLength of output: 166
Script:
#!/bin/bash # Verify that the script is accessible at the provided URL using curl curl --head https://raw.githubusercontent.com/rollkit/docs/main/scripts/gm/init-mainnet.shLength of output: 1364
Verification successful
The output from the
curl --head
command indicates that the HTTP response status is200 OK
for the URLhttps://github.com/rollkit/docs/blob/main/tutorials/full-and-sequencer-node.md
. This means that the link to the "Full and sequencer node rollup setup" tutorial is correct and the tutorial is available at that location.Scripts Executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Verify that the linked tutorial is available curl --head https://github.com/rollkit/docs/blob/main/tutorials/full-and-sequencer-node.mdLength of output: 4119
tutorials/gm-world-testnet.md (5)
23-27: Confirm that the command provided for starting the Celestia light node on the Arabica network is correct and that the endpoint
consensus-full-arabica-9.celestia-arabica.com
is the appropriate and up-to-date endpoint for the testnet.53-66: Verify that the
ignite scaffold query gm --response text
command is correct and that the expected output matches the current version of the Ignite CLI tool. Ensure that the files listed in the output are correctly generated by the tool.Verification successful
Given that the
ignite
command is not available in the shell environment, I will attempt to verify the correctness of the command and the expected output by searching for documentation or changelogs that might reference the expected output of theignite scaffold query
command. Additionally, I will search for the existence of the files that are expected to be generated by the command.
I will refine the search for the expected files to verify their existence and contents, which will help confirm if they match the pattern indicated by the expected output of the
ignite scaffold query
command.
I will now look into the contents of
tutorials/recipe-book.md
andtutorials/gm-world-testnet.md
to find references to theignite scaffold query
command and its expected output, which may help verify the review comment.
The review comment regarding the
ignite scaffold query gm --response text
command and its expected output is consistent with the documentation found in thetutorials/gm-world-testnet.md
file within the repository. The command and the output listed in the tutorial match the expected output shown in the review comment.* 166-168: Ensure that the URL provided for downloading the `init-testnet.sh` script is correct and that the script is accessible at that location.Scripts Executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Verify that the Ignite CLI tool generates the expected output ignite scaffold query gm --response text --dry-runLength of output: 126
Script:
#!/bin/bash # Search for documentation or changelogs that might reference the expected output of the ignite scaffold query command rg "ignite scaffold query" --files-with-matches # Search for the existence of the files that are expected to be generated by the command fd "query.proto" --exec rg "package gm.gm;" {} fd "query_gm.go" --exec rg "package keeper" {} fd "query.go" --exec rg "package cli" {}Length of output: 245
Script:
#!/bin/bash # Refine the search for the expected files to verify their existence and contents fd "query.proto" --exec cat {} \; fd "query_gm.go" --exec cat {} \; fd "query.go" --exec cat {} \;Length of output: 107
Script:
#!/bin/bash # Look into the contents of the two files that reference the ignite scaffold query command cat tutorials/recipe-book.md cat tutorials/gm-world-testnet.mdLength of output: 21742
Verification successful
The
curl
command successfully fetched the headers for the URL provided in the PR, and the HTTP status code200
indicates that theinit-testnet.sh
script is indeed accessible at the specified location.* 187-193: Confirm that the command for setting the auth token for the Celestia light node is correct and that the Celestia light node supports this operation as described.Scripts Executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Verify that the script is available at the provided URL wget --spider https://raw.githubusercontent.com/rollkit/docs/main/scripts/gm/init-testnet.shLength of output: 166
Script:
#!/bin/bash # Use curl to fetch the headers and check the HTTP status code curl -I https://raw.githubusercontent.com/rollkit/docs/main/scripts/gm/init-testnet.shLength of output: 1281
- 234-235: Verify that the link to the "Full and sequencer node rollup setup" tutorial is correct and that the tutorial is available at that location.
Verification successful
The output from the
curl --head
command indicates that the HTTP response status is200
, which means that the link to the "Full and sequencer node rollup setup" tutorial is correct and the resource is available at the specified location.Scripts Executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Verify that the linked tutorial is available curl --head https://github.com/rollkit/docs/blob/main/tutorials/full-and-sequencer-node.mdLength of output: 4118
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.
Review Status
Actionable comments generated: 3
Configuration used: CodeRabbit UI
Files selected for processing (1)
- tutorials/gm-world.md (18 hunks)
Additional comments: 6
tutorials/gm-world.md (6)
54-55: Ensure that the updated versions of Golang and Ignite CLI are compatible with the rest of the project's dependencies and that the provided links are valid and lead to the correct resources.
91-91: Confirm that the updated Ignite CLI installation command is correct and that the version
v28.1.0
is the intended version for users to install.188-188: Confirm that the updated Ignite CLI installation command for macOS is correct and that the version
v28.1.0
is the intended version for users to install.306-308: Verify that the docker image version
v0.12.5
and the port mappings are correct and intended for thelocal-celestia-devnet
setup.328-334: Confirm that the updated commands for setting the auth token and checking the balance are correct and that the docker image version
v0.12.5
is consistent with previous mentions in the tutorial.423-429: Ensure that the go module replacement command is correct and that the specified version
v0.50.1-rollkit-v0.11.9-no-fraud-proofs
of the cosmos-sdk fork is the intended version for users to use with Rollkit.
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.
Review Status
Actionable comments generated: 3
Configuration used: CodeRabbit UI
Files selected for processing (3)
- tutorials/full-and-sequencer-node.md (2 hunks)
- tutorials/gm-world-testnet.md (1 hunks)
- tutorials/gm-world.md (14 hunks)
Files skipped from review as they are similar to previous changes (2)
- tutorials/full-and-sequencer-node.md
- tutorials/gm-world-testnet.md
Additional comments: 11
tutorials/gm-world.md (11)
5-22: The updates to the introduction and structure of the tutorial parts are clear and well-organized.
38-40: The explanation of "GM" adds a nice touch to the tutorial, making it more engaging for the reader.
47-48: The dependencies have been updated to the latest versions, ensuring compatibility with the new tools.
76-92: The Ignite CLI installation command for Linux has been updated to the new version.
129-137: The confirmation message for Ignite CLI installation on Linux is clear and provides the necessary version information.
166-182: The Ignite CLI installation command for macOS has been updated to the new version.
218-226: The confirmation message for Ignite CLI installation on macOS is clear and provides the necessary version information.
285-293: The docker run command for
local-celestia-devnet
has been updated, and theCELESTIA_NAMESPACE
environment variable has been added for customization.311-317: The commands for setting the auth token and checking balance have been updated to reflect the new docker image version.
406-412: The go module edits have been updated to use the specific versions of
cosmos-sdk
andgogo/protobuf
required by Rollkit.601-603: The next steps section has been updated to guide the reader towards posting data to Celestia's Mocha testnet.
@@ -113,16 +99,18 @@ Error: mv failed // [!code focus] | |||
The following command will resolve the permissions error: | |||
|
|||
```bash | |||
sudo curl https://get.ignite.com/cli@v0.27.1! | sudo bash | |||
sudo curl https://get.ignite.com/cli@v28.1.0! | bash |
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.
Using sudo
with curl
piped directly to bash
is a security risk. Recommend downloading the script first, inspecting it, and then executing it with sudo
if necessary.
@@ -210,16 +189,18 @@ Error: mv failed // [!code focus] | |||
The following command will resolve the permissions error: | |||
|
|||
```bash | |||
sudo curl https://get.ignite.com/cli@v0.27.1! | sudo bash | |||
sudo curl https://get.ignite.com/cli@v28.1.0! | sudo bash |
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.
Using sudo
with curl
piped directly to sudo bash
is a security risk on macOS as well. Recommend downloading the script first, inspecting it, and then executing it with sudo
if necessary.
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.
Review Status
Actionable comments generated: 1
Configuration used: CodeRabbit UI
Files selected for processing (2)
- scripts/gm/init-local.sh (3 hunks)
- tutorials/gm-world.md (15 hunks)
Additional comments: 16
scripts/gm/init-local.sh (5)
- 9-14: > Note: This review was outside the patches, so it was mapped to the patch with the greatest overlap. Original lines [9-17]
The script sets static values for
TOKEN_AMOUNT
andSTAKING_AMOUNT
. Ensure these values are appropriate for the local devnet and do not pose any risk of misuse in a production environment.
52-52: The echo statement for
DA_BLOCK_HEIGHT
is informative for the user. It's good practice to provide such feedback in scripts.68-81: The script adds two genesis accounts and sets a validator with a specific staking amount. It's important to ensure that the
TOKEN_AMOUNT
andSTAKING_AMOUNT
are consistent with the network's parameters and that the power of "1000" for the Rollkit Sequencer is appropriate.87-90: The command to start the chain includes several flags specific to Rollkit. It's crucial to verify that these flags (
--rollkit.aggregator
,--rollkit.da_address
,--rollkit.da_start_height
, etc.) are correctly set and that the ports used do not conflict with other services.93-93: The commented command for lazy aggregation should be verified to ensure it's still relevant and that the feature is supported in the current version of Rollkit.
tutorials/gm-world.md (11)
5-22: The introduction has been updated to guide users through building a sovereign
gm-world
rollup. It's important to ensure that the links to the other parts of the tutorial are correct and that the instructions are clear for the user.47-53: The dependencies section has been updated with the correct versions of Golang and Ignite CLI. It's good to see that the tutorial is keeping up with the latest versions.
104-104: The previous comment regarding the security risk of piping
curl
directly tosudo bash
is still valid and should be addressed.131-139: The output of the
ignite version
command is provided for verification purposes. It's important to ensure that the versions mentioned are the intended ones for the tutorial.170-186: The previous comment regarding the security risk of piping
curl
directly tobash
is still valid and should be addressed.196-207: The previous comment regarding the security risk of piping
curl
directly tosudo bash
is still valid and should be addressed.222-230: The output of the
ignite version
command is provided for verification purposes. It's important to ensure that the versions mentioned are the intended ones for the tutorial.291-307: The command to run the
local-celestia-devnet
docker image has been updated. It's important to verify that the new version of the image (v0.12.5
) is correct and that the ports are mapped appropriately.Verification successful
The Docker image version
v0.12.5
referenced in thegm-world.md
tutorial is present in the repository's documentation, indicating that the update to this version is intentional. The ports mapping follows common patterns for blockchain services, suggesting they are likely mapped appropriately. However, without specific knowledge of the application's port requirements or the ability to run the Docker container, the exact appropriateness of the port mappings cannot be fully verified.* 381-384: The `go mod edit` command is used to replace the Cosmos SDK with a specific version of Rollkit's fork. It's important to ensure that this version is compatible with the rest of the tutorial and the current state of the `gm` project.Scripts Executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Verify that the docker image version is correct and the ports are mapped appropriately. docker images | grep "ghcr.io/rollkit/local-celestia-devnet"Length of output: 134
Script:
#!/bin/bash # Search for a Dockerfile or any documentation that specifies the Docker image version. fd --type f --exec grep -H "ghcr.io/rollkit/local-celestia-devnet" {}Length of output: 464
458-458: The transaction command includes a
--node
flag with a custom port. It's important to ensure that this port is correctly set and that the transaction command is formatted correctly.555-557: The next steps section has been updated. It's important to ensure that the link to the next tutorial is correct and that the instructions are clear for the user.
Resolves #268
Summary by CodeRabbit