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

feat: cometbft to rollkit how-to guide #477

Merged
merged 7 commits into from
Oct 8, 2024
Merged

Conversation

yarikbratashchuk
Copy link
Contributor

@yarikbratashchuk yarikbratashchuk commented Oct 7, 2024

Closes #444

Summary by CodeRabbit

  • New Features
    • Added two new guides to the "How To Guides" section:
      • "CometBFT into a Rollkit app"
      • "Use Ignite to create a Rollkit app"
    • Comprehensive guides for transforming CometBFT applications and using Ignite to create Rollkit applications.
  • Bug Fixes
    • Updated the igniteVersionTag to the latest version for improved compatibility and features.

@yarikbratashchuk yarikbratashchuk self-assigned this Oct 7, 2024
Copy link
Contributor

coderabbitai bot commented Oct 7, 2024

Walkthrough

The pull request introduces enhancements to the VitePress site configuration by adding two new guides to the sidebar: "CometBFT into a Rollkit app" and "Use Ignite to create a Rollkit app." Additionally, it updates the igniteVersionTag in the constants file. Two new markdown files provide detailed instructions for each guide, outlining the necessary steps for integrating CometBFT and Ignite with Rollkit applications.

Changes

File Path Change Summary
.vitepress/config.ts Added sidebar entries for "CometBFT into a Rollkit app" and "Use Ignite to create a Rollkit app."
.vitepress/constants/constants.js Updated igniteVersionTag from "v28.4.0" to "v28.5.3".
guides/cometbft-to-rollkit.md New guide added detailing the transformation of a CometBFT app into a Rollkit app.
guides/ignite-rollkit.md New guide added for using Ignite to create a Rollkit application.
guides/overview.md Added links to the new guides in the "How To Guides" section.

Assessment against linked issues

Objective Addressed Explanation
Add how to guides for: (1) Turn your cometBFT app into a rollkit app (2) Use ignite to create a rollkit app (#444)

Possibly related PRs

Suggested labels

documentation

Suggested reviewers

  • MSevey
  • gupadhyaya
  • jcstein
  • tuxcanfly

Poem

🐰 In the garden where knowledge blooms,
Two guides sprout, dispelling glooms.
CometBFT and Ignite, a rollup delight,
With commands and steps, they take flight.
Hop along, dear coder, and see,
How easy it is to set your app free! 🌱


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.

CodeRabbit Configuration 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
Contributor

github-actions bot commented Oct 7, 2024

PR Preview Action v1.4.8
🚀 Deployed preview to https://rollkit.github.io/docs-preview/./pr-477/
on branch main at 2024-10-08 10:41 UTC

@yarikbratashchuk yarikbratashchuk force-pushed the yarik/cometbft-to-rollkit branch from 4927f4c to 95ca7b0 Compare October 7, 2024 11:53
@yarikbratashchuk
Copy link
Contributor Author

Addressing #444

@MSevey
Copy link
Contributor

MSevey commented Oct 7, 2024

Addressing #444

REF: https://docs.github.com/en/issues/tracking-your-work-with-issues/using-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword

Addressing isn't a keyword that will close the issue. Also it needs to be in the PR description or a commit msg, not a PR comment.

MSevey
MSevey previously approved these changes Oct 7, 2024
Copy link
Contributor

@MSevey MSevey left a comment

Choose a reason for hiding this comment

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

Noting my other comment. @yarikbratashchuk needs to either close the issue manually or update the keyword per the documentation.

@yarikbratashchuk yarikbratashchuk changed the title Yarik/cometbft to rollkit feat: cometbft to rollkit how-to guide Oct 8, 2024
@yarikbratashchuk yarikbratashchuk dismissed MSevey’s stale review October 8, 2024 10:39

The merge-base changed after approval.

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

🧹 Outside diff range and nitpick comments (15)
guides/overview.md (1)

22-23: LGTM! Consider reordering for better organization.

The new guide entries are well-formatted, consistent with existing entries, and directly address the objectives outlined in issue #444. They provide valuable information for users working with Rollkit, CometBFT, and Ignite.

Consider reordering the list to group related topics together. For example, you could move these new entries next to other app creation or integration guides:

* [Create genesis for your rollup](/guides/create-genesis)
* [Restart your rollup](/guides/restart-rollup)
* [Run a rollup full node](/guides/full-node)
* [Turn your CometBFT app into a Rollkit app](/guides/cometbft-to-rollkit)
* [Use Ignite to create a Rollkit app](/guides/ignite-rollkit)

This grouping could improve the overall organization and make it easier for users to find related guides.

guides/cometbft-to-rollkit.md (8)

1-11: Enhance the prerequisites section for clarity.

The introduction provides a good overview of the guide's purpose. However, the prerequisites section could be more detailed to ensure users are fully prepared before starting.

Consider expanding the prerequisites section to include:

  1. A link to CometBFT documentation for setting up a CometBFT app.
  2. The minimum required version of Ignite CLI.
  3. Any other system requirements or dependencies.

This will help users ensure they have everything needed before proceeding with the guide.


13-19: LGTM! Consider adding a version check step.

The installation instructions are clear and use a specific version of Rollkit, which is good practice.

Consider adding a step to verify the successful installation of Rollkit. For example:

ignite version

This would help users confirm that Rollkit was installed correctly and show them the installed version.


21-27: Provide more details on Rollkit feature integration.

While the command to add Rollkit features is clear, this section could benefit from more explanation.

Consider enhancing this section by:

  1. Briefly explaining what features are being added.
  2. Mentioning any potential impacts on the existing app structure or functionality.
  3. Providing guidance on what users should expect to see after running the command.

This additional information would give users a better understanding of the changes being made to their app.


29-37: Expand on Local DA initialization and alternatives.

The section provides a good introduction to initializing Rollkit with Local DA. However, it could be more comprehensive.

Consider enhancing this section by:

  1. Explaining the benefits and limitations of using Local DA.
  2. Mentioning any alternative DA options, if available.
  3. Providing guidance on when to use Local DA versus other options in different scenarios.

This additional context would help users make informed decisions about their Rollkit configuration.


39-49: Provide more details on rollkit.toml configuration.

The section explains the purpose of the rollkit.toml file and how to generate it. However, it could be more informative.

Consider enhancing this section by:

  1. Listing some key parameters that can be customized in the rollkit.toml file.
  2. Providing an example of a basic rollkit.toml configuration.
  3. Adding a link to more detailed documentation on rollkit.toml configuration options, if available.

This additional information would help users understand how to customize their Rollkit configuration effectively.


51-57: Explain command flags and expected output.

The section provides the command to start the Rollkit app, but it lacks explanation of the command flags and what to expect after starting.

Consider enhancing this section by:

  1. Explaining the purpose of the --rollkit.aggregator and --rollkit.da_address flags.
  2. Mentioning what users should expect to see in the console output when the app starts successfully.
  3. Providing troubleshooting tips for common startup issues.

This additional information would help users understand the startup process and troubleshoot any issues they might encounter.


59-61: Enhance the summary with next steps and resources.

The summary concisely wraps up the guide, but it could provide more value to the users.

Consider enhancing the summary by:

  1. Suggesting next steps for users to explore or test their newly converted Rollkit app.
  2. Providing links to additional resources, such as Rollkit documentation, community forums, or related guides.
  3. Encouraging users to provide feedback or contribute to the Rollkit project.

These additions would give users a clear path forward after completing the guide and help foster community engagement.


1-61: Overall, a well-structured guide that meets the PR objectives.

This guide successfully addresses the first objective of issue #444 by providing step-by-step instructions for turning a CometBFT app into a Rollkit app. The content is clear, concise, and follows a logical progression.

To further improve the guide and align it more closely with the PR objectives:

  1. Consider adding a section on best practices for migrating CometBFT apps to Rollkit.
  2. Include information on how this conversion process enhances modularity and improves data availability, as mentioned in the introduction.
  3. Add a troubleshooting section to address common issues developers might face during the conversion process.

These enhancements would make the guide more comprehensive and valuable to developers, further supporting the adoption of Rollkit technology.

guides/ignite-rollkit.md (5)

23-25: Consider adding explanations for the command flags.

The blockchain scaffolding command includes several flags (--address-prefix gm --minimal --skip-proto) that might not be immediately clear to all users. Consider adding brief explanations for each flag to improve user understanding.


33-41: Add an explanation of Data Availability (DA) and its importance.

While the instructions for setting up a local DA node are clear, the guide would benefit from a brief explanation of what Data Availability is and why it's necessary for a Rollkit app. This context would help users understand the purpose of this step in the overall process.


55-61: Provide more details about the Rollkit features being added.

While the command to add Rollkit features is clear, the guide would benefit from a brief explanation of what specific features are being added and how they enhance the blockchain. This information would give users a better understanding of the modifications being made to their project.


75-79: Provide more information about the rollkit.toml file.

While the guide mentions that the rollkit.toml file is used for managing and running the blockchain, it would be helpful to provide more details about its contents and how it affects the blockchain's configuration. Consider adding a brief explanation or linking to further documentation about this configuration file.


91-93: Consider adding next steps or additional resources.

The summary effectively recaps the main points of the guide. To further assist users, consider adding a section on next steps (e.g., how to interact with the newly created Rollkit app) or providing links to additional resources (such as Rollkit documentation or community forums) for users who want to learn more.

.vitepress/config.ts (1)

289-296: LGTM! Consider adding collapsed sub-items for consistency.

The new entries for CometBFT and Ignite guides are correctly placed within the "How To Guides" section and align with the PR objectives. Great job on addressing the requirements from issue #444.

For consistency with other sections like "Rollkit" and "EVM" under Tutorials, consider adding these new guides as collapsed sub-items under a new "Integrations" or "Migrations" category. This would improve the sidebar's organization as the number of guides grows.

Example structure:

{
  text: "Integrations",
  collapsed: true,
  items: [
    {
      text: "CometBFT into a Rollkit app",
      link: "/guides/cometbft-to-rollkit",
    },
    {
      text: "Use Ignite to create a Rollkit app",
      link: "/guides/ignite-rollkit",
    },
  ],
},
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between 24c83ee and c5dd496.

📒 Files selected for processing (5)
  • .vitepress/config.ts (1 hunks)
  • .vitepress/constants/constants.js (1 hunks)
  • guides/cometbft-to-rollkit.md (1 hunks)
  • guides/ignite-rollkit.md (1 hunks)
  • guides/overview.md (1 hunks)
🧰 Additional context used
🔇 Additional comments (3)
guides/ignite-rollkit.md (2)

1-93: Add a prerequisites section and overall approval.

The guide provides a comprehensive walkthrough for creating a Rollkit app using Ignite. To further improve it, consider adding a "Prerequisites" section at the beginning, outlining any necessary system requirements, software versions, or prior knowledge needed.

Overall, the guide is well-structured, easy to follow, and covers the essential steps. With the suggested improvements, it will be an excellent resource for developers looking to create Rollkit apps using Ignite.


81-89: Explain the "aggregator" concept and verify the DA address.

The command to start the rollup introduces the concept of an "aggregator" without explanation. Consider adding a brief description of what an aggregator is in the context of Rollkit.

Also, ensure that the DA address (http://localhost:7980) matches the address set up in the earlier "Run a local Data Availability (DA) node" section.

To verify the DA address consistency:

#!/bin/bash
# Description: Check if the DA address is consistent throughout the guide.

# Test: Search for all occurrences of the DA address
rg -i 'localhost:7980' guides/ignite-rollkit.md
.vitepress/config.ts (1)

Line range hint 1-496: File changes enhance documentation structure.

The modifications to .vitepress/config.ts successfully add new entries for CometBFT and Ignite guides to the sidebar configuration. These additions align with the PR objectives and improve the documentation structure for users. The changes are isolated to the sidebar configuration and don't introduce any potential issues to the overall VitePress setup.

.vitepress/constants/constants.js Show resolved Hide resolved
guides/ignite-rollkit.md Show resolved Hide resolved
guides/ignite-rollkit.md Show resolved Hide resolved
@MSevey MSevey merged commit 1f673fb into main Oct 8, 2024
6 checks passed
@MSevey MSevey deleted the yarik/cometbft-to-rollkit branch October 8, 2024 13:33
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.

Add how to guides for: (1) Turn your cometBFT app into a rollkit app (2) Use ignite to create a rollkit app
2 participants